/* =====================================================================
   INVIDO – styly
   ===================================================================== */
:root {
    --brand-400: #64d4dc;
    --brand-800: #21757b;
    --brand-900: #1a4d52;
    --ease-medical: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-soft: cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-medical: 0 40px 80px -20px rgba(15, 23, 42, 0.08), 0 20px 40px -10px rgba(15, 23, 42, 0.04);
    --glass-border: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: #0f172a;
    overflow-x: hidden;
}

/* ---------- Pozadí: canvas + viněta mikroskopu ---------- */
#microscopeCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #ffffff;
    pointer-events: none;
}

.microscope-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0) 20%, rgba(241, 245, 249, 0.9) 100%);
    pointer-events: none;
}

main,
#site-footer {
    position: relative;
    z-index: 10;
}

/* ---------- Animace načtení stránky ---------- */
.page-enter {
    animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-badge { opacity: 0; animation: heroReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards; }
.reveal-title { opacity: 0; animation: heroReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards; }
.reveal-text { opacity: 0; animation: heroReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }
.reveal-buttons { opacity: 0; animation: heroReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards; }
.reveal-brands { opacity: 0; animation: heroReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards; }

@keyframes heroReveal {
    0% { opacity: 0; transform: translateY(50px) scale(0.96); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
    .page-enter, .reveal-badge, .reveal-title, .reveal-text, .reveal-buttons, .reveal-brands {
        animation: none;
        opacity: 1;
    }
}

.hero-title {
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.text-clinical {
    letter-spacing: -0.01em;
    line-height: 1.7;
}

/* =====================================================================
   NAVIGACE – plovoucí skleněná bublina
   Stav 1 (nahoře): tyrkysové sklo, bílé aktivní odkazy
   Stav 2 (.scrolled): světlé sklo, tyrkysové aktivní odkazy
   ===================================================================== */
.nav-glass-pill {
    width: min(94%, 80rem);
    border-radius: 9999px;
    padding: 0.75rem 0;
    background: linear-gradient(135deg, rgba(100, 212, 220, 0.45), rgba(40, 132, 138, 0.35));
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 15px 40px -10px rgba(28, 132, 138, 0.3);
    transition: width 0.9s var(--ease-soft), padding 0.9s var(--ease-soft), background 0.9s var(--ease-soft),
        border-color 0.9s var(--ease-soft), box-shadow 0.9s var(--ease-soft), border-radius 0.4s ease;
}

.nav-glass-pill.scrolled {
    width: min(88%, 72rem);
    padding: 0.5rem 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.45));
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    border-color: rgba(100, 212, 220, 0.35);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 20px 50px -15px rgba(0, 0, 0, 0.12);
}

.logo-img {
    height: 2.75rem;
    transition: height 0.7s var(--ease-medical);
}

.nav-glass-pill.scrolled .logo-img {
    height: 2rem;
}

/* Odkazy v menu */
.nav-link {
    position: relative;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.65);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover { color: #ffffff; }

.nav-link.active {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.nav-link.active::after { width: 60%; }

.nav-glass-pill.scrolled .nav-link { color: #475569; }
.nav-glass-pill.scrolled .nav-link:hover { color: var(--brand-800); }

.nav-glass-pill.scrolled .nav-link.active {
    color: var(--brand-800);
    text-shadow: none;
}

.nav-glass-pill.scrolled .nav-link::after {
    background: var(--brand-400);
    box-shadow: 0 0 8px var(--brand-400);
}

/* Tlačítko Kontakt v menu */
.nav-cta {
    background: #ffffff;
    color: var(--brand-800);
    border-color: #ffffff;
    transition: all 0.6s var(--ease-soft);
}

.nav-cta:hover,
.nav-cta.active {
    background: var(--brand-800);
    border-color: var(--brand-800);
    color: #ffffff;
}

.nav-glass-pill.scrolled .nav-cta {
    background: transparent;
    border-color: var(--brand-400);
    color: var(--brand-800);
}

.nav-glass-pill.scrolled .nav-cta:hover,
.nav-glass-pill.scrolled .nav-cta.active {
    background: var(--brand-400);
    border-color: var(--brand-400);
    color: #ffffff;
}

/* Přepínač jazyka */
.lang-btn {
    color: rgba(15, 23, 42, 0.45);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover { color: var(--brand-900); }

.lang-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.nav-glass-pill.scrolled .lang-btn,
.nav-glass-pill.menu-open .lang-btn { color: rgba(40, 132, 138, 0.55); }

.nav-glass-pill.scrolled .lang-btn.active,
.nav-glass-pill.menu-open .lang-btn.active {
    color: var(--brand-900);
    background: rgba(100, 212, 220, 0.2);
}

/* ---------- Mobilní menu ---------- */
.nav-toggle {
    color: #0f172a;
    transition: background 0.3s ease;
}

.nav-toggle:hover { background: rgba(255, 255, 255, 0.25); }

.burger {
    position: relative;
    width: 20px;
    height: 14px;
    display: block;
}

.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.35s var(--ease-soft), opacity 0.2s ease, top 0.35s var(--ease-soft);
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }

.menu-open .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease-soft);
}

.mobile-menu > div {
    overflow: hidden;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease, padding 0.45s var(--ease-soft);
}

.nav-glass-pill.menu-open .mobile-menu { grid-template-rows: 1fr; }

.nav-glass-pill.menu-open .mobile-menu > div {
    opacity: 1;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
}

.nav-glass-pill.menu-open {
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(100, 212, 220, 0.35);
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2);
}

.mobile-link {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    color: #334155;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-link:hover { background: #f1f5f9; }

.mobile-link.active {
    background: #eefbfa;
    color: var(--brand-800);
    font-weight: 700;
}

/* =====================================================================
   KARTY A TLAČÍTKA
   ===================================================================== */
.btn-medical {
    position: relative;
    transition: all 0.6s var(--ease-soft);
}

.btn-medical:hover {
    box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.15), 0 0 40px rgba(100, 212, 220, 0.3) !important;
    transform: scale(1.02);
    z-index: 10;
}

.glass-card {
    background: rgba(100, 212, 220, 0.08);
    backdrop-filter: blur(35px) saturate(150%);
    -webkit-backdrop-filter: blur(35px) saturate(150%);
    border: 1px solid rgba(100, 212, 220, 0.3);
    box-shadow: var(--glass-border), var(--shadow-medical);
    transition: all 0.7s var(--ease-medical);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: var(--glass-border), 0 60px 100px -20px rgba(15, 23, 42, 0.12);
}

.bento-medical-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.03);
    transition: all 0.7s var(--ease-medical);
}

.bento-medical-card:hover {
    background: #f4fbfb;
    border-color: rgba(100, 212, 220, 0.4);
    box-shadow: inset 0 4px 25px rgba(255, 255, 255, 0.8), 0 30px 60px -15px rgba(100, 212, 220, 0.15);
    transform: translateY(-4px);
}

.bento-img-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 1.25rem;
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgba(100, 212, 220, 0.2);
}

/* ---------- Aktuality ---------- */
.news-list {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

/* 1 aktualita = jedna karta uprostřed, 2–3 = vedle sebe */
.news-list[data-count="1"] { max-width: 46rem; margin: 0 auto; }

@media (min-width: 768px) {
    .news-list[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .news-list[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.news-archive {
    display: grid;
    gap: 1.25rem;
    max-width: 46rem;
    margin: 0 auto;
}

.news-card {
    display: flex;
    gap: 1.25rem;
    padding: 0.75rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(100, 212, 220, 0.3);
    box-shadow: 0 14px 34px -20px rgba(15, 23, 42, 0.25);
    transition: all 0.6s var(--ease-medical);
}

.news-card:hover {
    background: #ffffff;
    border-color: rgba(100, 212, 220, 0.65);
    box-shadow: 0 24px 44px -20px rgba(40, 132, 138, 0.35);
    transform: translateY(-3px);
}

/* Náhled obrázku – ukazuje horní část (u letáku nadpis) */
.news-thumb {
    flex-shrink: 0;
    width: 7.5rem;
    aspect-ratio: 4 / 5;
    border-radius: 1rem;
    overflow: hidden;
    background: #eefbfa;
}

@media (min-width: 768px) {
    .news-list[data-count="1"] .news-thumb,
    .news-archive .news-thumb { width: 9rem; }
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.9s var(--ease-medical);
}

.news-card:hover .news-thumb img { transform: scale(1.05); }

/* Detail aktuality – obrázek celý, klik otevře plnou velikost */
.article-img {
    display: block;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(100, 212, 220, 0.3);
    box-shadow: var(--shadow-medical);
    cursor: zoom-in;
}

.article-img img { width: 100%; height: auto; display: block; }

.article-body p { margin-bottom: 1.1rem; }
.article-body a { color: var(--brand-800); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: #0f172a; }

.reveal-news { opacity: 0; animation: heroReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards; }

/* ---------- Slovní hříčka + smajlík ---------- */
.motto-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 1.5rem 0.6rem 0.65rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(100, 212, 220, 0.35);
    box-shadow: 0 14px 34px -18px rgba(40, 132, 138, 0.35);
}

.safe-smiley { width: 3.25rem; height: 3.25rem; flex-shrink: 0; }
.sm-face { fill: #eefbfa; stroke: var(--brand-800); stroke-width: 2.5; }
.sm-eye { fill: var(--brand-800); }
.sm-smile { fill: none; stroke: var(--brand-800); stroke-width: 3; stroke-linecap: round; }

/* Mrknutí: chvíli po načtení, pak každých 6 s; po najetí myší hned */
.sm-wink {
    transform-box: fill-box;
    transform-origin: center;
    animation: smWink 6s ease-in-out 2.2s infinite;
}

.motto-pill:hover .sm-wink { animation: smWinkNow 0.4s ease-in-out; }

@keyframes smWink {
    0%, 6%, 100% { transform: scaleY(1); }
    3% { transform: scaleY(0.1); }
}

@keyframes smWinkNow {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-news { animation: none; opacity: 1; }
    .sm-wink { animation: none; }
}

/* Havarijní tlačítka */
.sos-btn:hover {
    background: #dc2626;
    border-color: #fecaca;
}

/* Patička */
.footer-glass {
    background: rgba(100, 212, 220, 0.22);
    backdrop-filter: blur(40px) saturate(170%);
    -webkit-backdrop-filter: blur(40px) saturate(170%);
    border: 1px solid rgba(100, 212, 220, 0.4);
    box-shadow: 0 -15px 50px -10px rgba(100, 212, 220, 0.2);
}

/* Viditelný fokus pro ovládání klávesnicí */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand-800);
    outline-offset: 3px;
    border-radius: 0.75rem;
}

/* Když je jen jedna aktualita, zúží se i nadpis bloku na šířku karty */
#news:has(.news-list[data-count="1"]) { max-width: calc(46rem + 3rem); }
#news .news-list[data-count="1"] { max-width: none; }

/* =====================================================================
   PŘECHODY MEZI STRÁNKAMI
   - Chrome/Edge/Safari 18+: plynulé prolnutí (View Transitions), menu a pozadí zůstávají na místě
   - ostatní prohlížeče: krátké jemné objevení obsahu
   ===================================================================== */
@view-transition {
    navigation: auto;
}

#mainNav { view-transition-name: site-nav; }
#microscopeCanvas { view-transition-name: bg-canvas; }
.microscope-vignette { view-transition-name: bg-vignette; }

/* Pozadí se neprolíná – stará „fotka“ drží, dokud se nové pozadí nevykreslí (buňky jsou na stejném místě) */
::view-transition-old(bg-canvas),
::view-transition-new(bg-canvas),
::view-transition-old(bg-vignette),
::view-transition-new(bg-vignette) {
    animation: none;
}
::view-transition-new(bg-canvas) { opacity: 0; }

/* Menu jen plynule změní velikost (když bylo na staré stránce zmenšené) */
::view-transition-group(site-nav) {
    animation-duration: 0.45s;
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
::view-transition-old(site-nav),
::view-transition-new(site-nav) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-old(site-nav) { display: none; }

/* Obsah: stará stránka rychle zmizí, nová vyjede o kousek zespodu */
::view-transition-old(root) {
    animation: vtOut 0.18s ease-in both;
}
::view-transition-new(root) {
    animation: vtIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* Bez podpory View Transitions – jemné objevení obsahu */
@supports not (view-transition-name: none) {
    .page-enter { animation: pageIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
}
@supports (view-transition-name: none) {
    .page-enter { animation: none; }
}
@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* Úvodní animace na Domů jen při první návštěvě – při návratu je stránka hned celá */
.intro-seen .reveal-news,
.intro-seen .reveal-badge,
.intro-seen .reveal-title,
.intro-seen .reveal-text,
.intro-seen .reveal-buttons,
.intro-seen .reveal-brands {
    animation: none;
    opacity: 1;
}

/* EN režim: obsah se ukáže až po přeložení (žádné probliknutí češtiny) */
.lang-pending main { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) { animation: none !important; }
}

/* =====================================================================
   PORTFOLIO – kategorie a produktové karty
   ===================================================================== */
.cat-nav {
    position: sticky;
    top: 5.5rem;
    z-index: 20;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 3.5rem;
    padding: 0.4rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(100, 212, 220, 0.3);
    box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.2);
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-chip {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
}
.cat-chip:hover { background: #eefbfa; color: var(--brand-800); }

@media (max-width: 767px) {
    .cat-nav { top: 5rem; border-radius: 1.25rem; }
}

.portfolio-cat { scroll-margin-top: 10rem; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.product-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 2rem;
    background: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
    transition: all 0.6s var(--ease-medical);
}
.product-card:hover {
    background: #f4fbfb;
    border-color: rgba(100, 212, 220, 0.4);
    box-shadow: 0 30px 60px -15px rgba(100, 212, 220, 0.18);
}
@media (min-width: 768px) { .product-card { padding: 2.5rem; } }

.product-features {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(100, 212, 220, 0.25);
}

.feature-list { display: grid; gap: 0.55rem; }
.feature-list li {
    display: flex;
    gap: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #334155;
}
.feature-list li span::first-letter { text-transform: uppercase; }

.product-cta {
    margin-top: auto;
    padding-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.75rem;
}
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-800);
}
.cta-link:hover { color: var(--brand-900); }
.cta-link--pdf { color: #475569; font-weight: 600; }
.cta-link--pdf:hover { color: var(--brand-800); }
.cta-pdf {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    background: #f1f5f9;
    color: #64748b;
}

/* Jediný produkt v kategorii: popis vlevo, výhody vpravo */
@media (min-width: 1024px) {
    .product-card--wide {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 3.5rem;
        align-items: start;
    }
    .product-card--wide .product-features {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin-top: 0;
        padding-top: 0;
        padding-left: 2.5rem;
        border-top: 0;
        border-left: 1px solid rgba(100, 212, 220, 0.25);
    }
    .product-card--wide .product-cta { grid-column: 1; }
}

/* Fotky produktů */
.product-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    border-radius: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(100, 212, 220, 0.2);
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
    transition: transform 0.9s var(--ease-medical);
}

.product-card:hover .product-img img { transform: scale(1.04); }

.product-img--empty {
    background: linear-gradient(135deg, #eefbfa, #ffffff);
}
.product-img--empty span {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(40, 132, 138, 0.35);
    text-align: center;
}

/* Jediný produkt s fotkou: fotka vlevo, text a výhody vpravo */
@media (min-width: 1024px) {
    .product-card--wide.has-img {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    }
    .product-card--wide.has-img .product-img {
        grid-column: 1;
        grid-row: 1 / span 3;
        margin-bottom: 0;
        aspect-ratio: auto;
        height: 100%;
        min-height: 22rem;
    }
    .product-card--wide.has-img .product-main,
    .product-card--wide.has-img .product-cta { grid-column: 2; }
    .product-card--wide.has-img .product-features {
        grid-column: 2;
        grid-row: auto;
        margin-top: 1.75rem;
        padding: 1.5rem 0 0;
        border-left: 0;
        border-top: 1px solid rgba(100, 212, 220, 0.25);
    }
}

@media (min-width: 1024px) {
    .product-card--wide.has-img { grid-template-rows: auto auto 1fr; }
    .product-card--wide.has-img .product-img {
        height: 24rem;
        min-height: 0;
        align-self: start;
    }
}

/* =====================================================================
   SERVISNÍ FORMULÁŘ
   ===================================================================== */
.sf-section { scroll-margin-top: 7rem; }

.sf-card {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(100, 212, 220, 0.3);
    box-shadow: var(--shadow-medical);
}
@media (min-width: 768px) { .sf-card { padding: 2.75rem 3rem; } }

.sf-block {
    border: 0;
    padding: 0 0 2rem;
    margin: 0 0 2rem;
    border-bottom: 1px solid rgba(100, 212, 220, 0.22);
    min-width: 0;
}

.sf-legend {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.sf-num {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eefbfa;
    color: var(--brand-800);
    font-size: 0.85rem;
    font-weight: 800;
}

/* Volba typu servisu */
.sf-options {
    display: grid;
    gap: 0.75rem;
}
@media (min-width: 768px) { .sf-options { grid-template-columns: repeat(3, 1fr); } }

.sf-option { position: relative; cursor: pointer; }
.sf-option input { position: absolute; opacity: 0; pointer-events: none; }
.sf-option-body {
    display: block;
    height: 100%;
    padding: 1rem 1.1rem 1rem 2.6rem;
    border-radius: 1.1rem;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.sf-option-body::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1.15rem;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    border: 2px solid #cbd5e1;
    background: #fff;
    transition: all 0.2s ease;
}
.sf-option-body strong { display: block; font-size: 0.92rem; color: #0f172a; }
.sf-option-body small { display: block; margin-top: 0.2rem; font-size: 0.78rem; color: #64748b; line-height: 1.4; }
.sf-option:hover .sf-option-body { border-color: rgba(100, 212, 220, 0.7); }
.sf-option input:checked + .sf-option-body {
    border-color: var(--brand-800);
    background: #f4fbfb;
    box-shadow: 0 0 0 3px rgba(100, 212, 220, 0.18);
}
.sf-option input:checked + .sf-option-body::before {
    border-color: var(--brand-800);
    background: radial-gradient(circle, var(--brand-800) 0 40%, #fff 45%);
}
.sf-option input:focus-visible + .sf-option-body { outline: 2px solid var(--brand-800); outline-offset: 2px; }
.sf-option input[value="repair"]:checked + .sf-option-body { border-color: #dc2626; background: #fff7f7; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); }
.sf-option input[value="repair"]:checked + .sf-option-body::before { border-color: #dc2626; background: radial-gradient(circle, #dc2626 0 40%, #fff 45%); }

/* Pole */
.sf-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.sf-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 0.85rem;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font: inherit;
    font-size: 0.92rem;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sf-input::placeholder { color: #94a3b8; }
.sf-input:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgba(100, 212, 220, 0.25);
}
textarea.sf-input { resize: vertical; min-height: 6rem; }

.was-validated .sf-input:invalid { border-color: #f87171; background: #fffafa; }
.was-validated .sf-options:has(input:invalid) .sf-option-body { border-color: #fca5a5; }

/* Přístroje */
.sf-device-head,
.sf-device {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) 4.5rem 2.5rem;
    gap: 0.6rem;
    align-items: center;
}
.sf-device-head {
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}
@media (max-width: 639px) {
    .sf-device-head { display: none; }
    .sf-device {
        grid-template-columns: minmax(0, 1fr) 4rem 2.5rem;
        padding: 0.75rem;
        border-radius: 1rem;
        background: #f8fafc;
    }
    .sf-device input[name="model"] { grid-column: 1 / -1; }
}

.sf-remove {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-size: 1.35rem;
    line-height: 1;
    color: #94a3b8;
    transition: background 0.2s ease, color 0.2s ease;
}
.sf-remove:hover { background: #fef2f2; color: #dc2626; }

.sf-add {
    margin-top: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 9999px;
    border: 1.5px dashed rgba(40, 132, 138, 0.45);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-800);
    transition: background 0.2s ease;
}
.sf-add:hover { background: #eefbfa; }

/* Zaškrtávátko – cenová nabídka */
.sf-check {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background: #f4fbfb;
    border: 1px solid rgba(100, 212, 220, 0.35);
    cursor: pointer;
}
.sf-check input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: var(--brand-800);
    flex-shrink: 0;
}
.sf-check strong { display: block; font-size: 0.92rem; color: #0f172a; }
.sf-check small { display: block; font-size: 0.8rem; color: #64748b; margin-top: 0.15rem; }

.sf-note { margin-top: 0.75rem; font-size: 0.8rem; color: #64748b; }

.sf-alert {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 0.9rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.85rem;
}

.sf-submit {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
    align-items: stretch;
}
@media (min-width: 640px) {
    .sf-submit { flex-direction: row; justify-content: space-between; align-items: center; }
}

.sf-btn {
    padding: 1rem 2.2rem;
    border-radius: 1.25rem;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.sf-btn:disabled { opacity: 0.6; cursor: wait; }

.sf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Vložení seznamu přístrojů z Excelu */
.sf-help { margin: -0.1rem 0 0.6rem; font-size: 0.8rem; color: #64748b; line-height: 1.5; }
.sf-paste {
    min-height: 9rem;
    white-space: pre;
    overflow-x: auto;
    tab-size: 18;
    -moz-tab-size: 18;
    font-size: 0.85rem;
    line-height: 1.6;
}
.sf-preview {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: #f4fbfb;
    border: 1px solid rgba(100, 212, 220, 0.35);
}
.sf-preview-count { font-size: 0.82rem; font-weight: 800; color: var(--brand-800); margin-bottom: 0.5rem; }
.sf-preview-scroll { overflow-x: auto; }
.sf-preview table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.sf-preview th, .sf-preview td {
    padding: 0.35rem 0.6rem;
    border-top: 1px solid rgba(100, 212, 220, 0.25);
    text-align: left;
    white-space: nowrap;
    color: #334155;
}
.sf-preview th { width: 2rem; color: #94a3b8; font-weight: 600; }
.sf-preview tr:first-child th, .sf-preview tr:first-child td { border-top: 0; }
.sf-preview-more { color: #64748b; font-style: italic; }
.sf-preview-head td { font-weight: 800; color: #0f172a; }

/* =====================================================================
   PRÁVNÍ TEXTY (Ochrana osobních údajů)
   ===================================================================== */
html[lang="en"] .only-cs,
html:not([lang="en"]) .only-en { display: none; }

.legal {
    padding: 2rem 1.5rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(100, 212, 220, 0.3);
    box-shadow: var(--shadow-medical);
    color: #334155;
    line-height: 1.7;
    font-size: 0.97rem;
}
@media (min-width: 768px) { .legal { padding: 3rem 3.5rem; } }
.legal h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: #0f172a; line-height: 1.15; margin-bottom: 0.75rem; }
.legal-lead { font-size: 1.1rem; color: #64748b; margin-bottom: 2rem; }
.legal h2 { font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 2.25rem 0 0.75rem; scroll-margin-top: 7rem; }
.legal h3 { font-size: 0.95rem; font-weight: 700; color: var(--brand-800); margin: 1.25rem 0 0.4rem; }
.legal p { margin-bottom: 0.85rem; }
.legal a { color: var(--brand-800); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: #0f172a; }
.legal-date { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(100, 212, 220, 0.25); font-size: 0.85rem; color: #94a3b8; }

/* Aktivní kategorie v liště portfolia */
.cat-chip.active {
    background: var(--brand-800);
    color: #ffffff;
    box-shadow: 0 6px 16px -6px rgba(40, 132, 138, 0.6);
}
.cat-chip.active:hover { background: var(--brand-900); color: #ffffff; }
.cat-chip { transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }

/* Jedna aktualita na úvodní stránce – větší karta */
#news:has(.news-list[data-count="1"]) { max-width: calc(58rem + 3rem); }
.news-list[data-count="1"] .news-card,
.news-archive .news-card { gap: 1.75rem; padding: 1rem; border-radius: 1.75rem; }
.news-list[data-count="1"] .news-thumb,
.news-archive .news-thumb { width: 9.5rem; border-radius: 1.25rem; }
.news-list[data-count="1"] .news-card h3,
.news-archive .news-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.news-list[data-count="1"] .news-card p,
.news-archive .news-card p { font-size: 0.92rem; -webkit-line-clamp: 3; }
.news-list[data-count="1"] .news-card time,
.news-archive .news-card time { font-size: 0.75rem; }
.news-list[data-count="1"] .news-card .mt-auto,
.news-archive .news-card .mt-auto { font-size: 0.85rem; }

@media (min-width: 768px) {
    .news-list[data-count="1"] .news-card,
    .news-archive .news-card { padding: 1.1rem 1.75rem 1.1rem 1.1rem; }
    .news-list[data-count="1"] .news-thumb,
    .news-archive .news-thumb { width: 13rem; }
    .news-list[data-count="1"] .news-card h3,
    .news-archive .news-card h3 { font-size: 1.4rem; }
    .news-list[data-count="1"] .news-card .flex-col,
    .news-archive .news-card .flex-col { justify-content: center; padding: 0.5rem 0; }
}
.news-archive { max-width: 58rem; }
.news-list[data-count="1"] .news-card .mt-auto,
.news-archive .news-card .mt-auto { margin-top: 0.9rem; }
@media (max-width: 767px) {
    .news-list[data-count="1"] .news-thumb,
    .news-archive .news-thumb { width: 7rem; }
    .news-list[data-count="1"] .news-card,
    .news-archive .news-card { gap: 1.1rem; padding: 0.8rem; }
    .news-list[data-count="1"] .news-card h3,
    .news-archive .news-card h3 { font-size: 1.05rem; }
}

/* =====================================================================
   MOBIL – spodní lišta rychlých akcí + panel s telefony
   ===================================================================== */
.quickbar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 45;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 0.4rem;
    padding: 0.4rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(100, 212, 220, 0.35);
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.28);
    view-transition-name: quickbar;
}

.qb-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3.4rem;
    border-radius: 1.05rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    transition: background 0.2s ease, transform 0.15s ease;
}
.qb-btn svg { color: var(--brand-800); }
.qb-btn:active { transform: scale(0.96); }
.qb-btn--active { background: #eefbfa; color: var(--brand-800); }
.qb-btn--primary {
    flex-direction: row;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-800), #1f6f74);
    box-shadow: 0 8px 18px -8px rgba(40, 132, 138, 0.8);
}
.qb-btn--primary svg { color: #fff; }

/* místo pro lištu, aby nezakrývala patičku */
@media (max-width: 767px) {
    body { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

.quicksheet { position: fixed; inset: 0; z-index: 60; }
.qs-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.qs-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 88vh;
    overflow-y: auto;
    padding: 0.75rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    border-radius: 1.75rem 1.75rem 0 0;
    background: #fff;
    box-shadow: 0 -20px 50px -10px rgba(15, 23, 42, 0.25);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.quicksheet.open .qs-backdrop { opacity: 1; }
.quicksheet.open .qs-panel { transform: none; }
.qs-lock, .qs-lock body { overflow: hidden; }

.qs-handle { width: 2.5rem; height: 0.3rem; border-radius: 9999px; background: #e2e8f0; margin: 0 auto 1rem; }
.qs-close { width: 2.25rem; height: 2.25rem; border-radius: 9999px; background: #f1f5f9; font-size: 1.4rem; line-height: 1; color: #64748b; }

.qs-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}
.qs-label--urgent { color: #dc2626; }

.qs-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    border-radius: 1.1rem;
    background: #f8fafc;
    border: 1px solid #eef2f6;
}
.qs-row:active { background: #eefbfa; }
.qs-ico {
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eefbfa;
    color: var(--brand-800);
}
.qs-row--urgent { background: #fff7f7; border-color: #fee2e2; }
.qs-row--urgent .qs-ico { background: #dc2626; color: #fff; }

.qs-all {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem;
    border-radius: 1.1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-800);
    background: #eefbfa;
}
@media (min-width: 768px) {
    .quickbar, .quicksheet { display: none !important; }
}


/* =====================================================================
   ŠIRŠÍ LAYOUT – velké nadpisy a pásy přes celou šířku
   ===================================================================== */
/* nadpis na úvodní stránce se plynule zvětšuje se šířkou obrazovky */
.hero-xl { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 6.25rem); line-height: 1.04; }
.hero-lead { font-size: clamp(1.1rem, 0.95rem + 0.55vw, 1.5rem); }
.page-title { font-size: clamp(2.4rem, 1.4rem + 3vw, 4.5rem); line-height: 1.05; letter-spacing: -0.035em; }
.band-title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; }

/* prvek přes celou šířku okna i uvnitř užšího kontejneru */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* pás se značkami */
.brand-band {
    padding: 3rem 0 2.5rem;
    background:
        linear-gradient(90deg, rgba(100, 212, 220, 0) 0%, rgba(100, 212, 220, 0.12) 50%, rgba(100, 212, 220, 0) 100%),
        rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(100, 212, 220, 0.25);
    border-bottom: 1px solid rgba(100, 212, 220, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* tmavé pásy (servis na úvodu, havarijní linka) */
.cta-band,
.sos-band {
    position: relative;
    z-index: 10;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(100, 212, 220, 0.28), transparent 60%),
        radial-gradient(50% 100% at 0% 100%, rgba(33, 117, 123, 0.55), transparent 60%),
        #0f1f2a;
}
.sos-band {
    margin-top: 1rem;
    background:
        radial-gradient(55% 120% at 100% 0%, rgba(239, 68, 68, 0.22), transparent 60%),
        radial-gradient(50% 100% at 0% 100%, rgba(33, 117, 123, 0.5), transparent 60%),
        #0f1f2a;
}
.sos-band .sos-btn { border-color: transparent; }

/* patička těsně pod tmavým pásem na úvodní stránce */


/* =====================================================================
   PRODUKTOVÁ KARTA – kompaktní řádek (celý produkt vidět najednou)
   mobil: fotka nahoře (nízká), pod ní text a výhody
   tablet: fotka vlevo, text vpravo, výhody pod tím ve 2 sloupcích
   počítač: fotka | popis | výhody vedle sebe
   ===================================================================== */
.product-card,
.product-card--wide.has-img { display: grid; grid-template-columns: 1fr; padding: 1.25rem; border-radius: 1.75rem; gap: 0; }
.product-card .product-img,
.product-card--wide.has-img .product-img {
    aspect-ratio: auto;
    height: 12rem;
    min-height: 0;
    margin: 0 0 1.25rem;
    padding: 0.9rem;
    grid-row: auto;
    grid-column: auto;
}
.product-card .product-features,
.product-card--wide.has-img .product-features {
    margin-top: 1.1rem;
    padding: 1.1rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(100, 212, 220, 0.25);
    grid-column: auto;
    grid-row: auto;
}
.product-card .product-cta { padding-top: 1.1rem; grid-column: auto; }
.feature-list { gap: 0.4rem; }
.feature-list li { font-size: 0.86rem; }

@media (min-width: 768px) {
    .product-card,
    .product-card--wide.has-img {
        grid-template-columns: 13rem minmax(0, 1fr);
        grid-template-areas: "img main" "feat feat" "cta cta";
        column-gap: 1.75rem;
        padding: 1.5rem;
        align-items: start;
    }
    .product-card .product-img,
    .product-card--wide.has-img .product-img { grid-area: img; height: 11rem; margin: 0; }
    .product-card .product-main { grid-area: main; }
    .product-card .product-features,
    .product-card--wide.has-img .product-features { grid-area: feat; }
    .product-card .product-cta,
    .product-card--wide.has-img .product-cta { grid-area: cta; }
    .product-card .feature-list { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}

@media (min-width: 1100px) {
    .product-card,
    .product-card--wide.has-img {
        grid-template-columns: 15rem minmax(0, 1.1fr) minmax(0, 1fr);
        grid-template-areas: "img main feat" "img cta feat";
        grid-template-rows: auto 1fr;
        column-gap: 2.25rem;
        padding: 1.5rem 2rem 1.5rem 1.5rem;
    }
    .product-card .product-img,
    .product-card--wide.has-img .product-img { height: 100%; min-height: 12.5rem; max-height: 15rem; }
    .product-card .product-features,
    .product-card--wide.has-img .product-features {
        margin-top: 0;
        padding: 0 0 0 2rem;
        border-top: 0;
        border-left: 1px solid rgba(100, 212, 220, 0.25);
        align-self: stretch;
    }
    .product-card .feature-list { grid-template-columns: 1fr; }
    .product-card .product-cta { align-self: end; }
}

/* mírnější velké nadpisy – na notebooku nezaberou půl obrazovky */
.hero-xl { font-size: clamp(2.4rem, 1rem + 3.4vw, 5rem); line-height: 1.06; }
.page-title { font-size: clamp(2.2rem, 1.3rem + 1.9vw, 3.5rem); }
.band-title { font-size: clamp(1.8rem, 1.1rem + 1.6vw, 3rem); }


/* Karty značek s logy (stránka Zastoupení) */
.brand-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.6rem 1.75rem 1.75rem;
    border-radius: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(100, 212, 220, 0.25);
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.18);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.brand-card:hover {
    border-color: rgba(100, 212, 220, 0.6);
    box-shadow: 0 24px 50px -24px rgba(40, 132, 138, 0.3);
    transform: translateY(-2px);
}
.brand-logo { height: 3.25rem; display: flex; align-items: center; }
.brand-logo img { max-height: 100%; max-width: 13rem; width: auto; object-fit: contain; }


/* Stránka 404 */
.nf-code {
    font-size: clamp(6rem, 4rem + 10vw, 11rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-800));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}
.nf-link {
    padding: 0.9rem 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(100, 212, 220, 0.35);
    font-weight: 700;
    color: #0f172a;
    transition: all 0.3s ease;
}
.nf-link:hover { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }

/* Vlastní čtvercový náhled aktuality (thumb) */
.news-thumb--custom { aspect-ratio: 1 / 1; }
.news-thumb--custom img { object-position: center; }
.news-thumb--custom { align-self: center; height: auto; }
