/* Font Faces */
@font-face {
    font-family: 'Hatton';
    src: url('./fonts/Hatton-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soin Sans Neue';
    src: url('./fonts/SoinSansNeue-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soin Sans Neue';
    src: url('./fonts/SoinSansNeue-Roman.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soin Sans Neue';
    src: url('./fonts/SoinSansNeue-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Soin Sans Neue';
    src: url('./fonts/SoinSansNeue-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #48a6b2;
    --color-primary-dark: #436877;
    --color-secondary: #446877;
    --color-bg-light: #fcfcfd;
    --color-bg-dark: #000;
    --color-text-dark: #436877;
    --color-text-light: #fcfcfd;
    --color-accent: #d7d6ca;
    --color-overlay: rgba(68, 104, 119, 0.08);
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 80px;
    
    /* Typography */
    --font-primary: 'Soin Sans Neue', sans-serif;
    --font-heading: 'Hatton', serif;

    /* Modulárna typografická škála (pomer ~1.25 major third, väčšie kroky
       pri display veľkostiach). Nahrádza predtým roztrúsených ~24 veľkostí. */
    --fs-overline: 13px;   /* verzálkové labely nad nadpismi */
    --fs-caption: 14px;    /* drobný text, meta */
    --fs-body: 16px;       /* základný text */
    --fs-body-lg: 18px;    /* zvýraznený text, perex v kartách */
    --fs-lead: 20px;       /* úvodné odseky sekcií */
    --fs-h4: 24px;         /* názvy kariet */
    --fs-h3: 30px;         /* medzinadpisy */
    --fs-h2: 40px;         /* nadpisy sekcií */
    --fs-h1: 52px;         /* nadpisy podstránok */
    --fs-hero: 64px;       /* hero titul */
    --fs-display: 84px;    /* veľký display (technológia) */

    /* Kerning/tracking podľa veľkosti – veľké nadpisy tesnejšie, verzálky
       rozpálené, telo mierne kladné (rovnako ako v hero sekcii). */
    --ls-display: -0.02em;
    --ls-heading: -0.01em;
    --ls-body: 0.005em;
    --ls-overline: 0.12em;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    /* clip (nie hidden) – hidden by z body spravil scroll kontajner a rozbil position:sticky */
    overflow-x: clip;
    /* lepšie párové vyrovnanie (kerning) a hladšie renderovanie písma */
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1344px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Section */
.section {
    padding: var(--spacing-xl) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-xl) 0;
    }
}

/* Typography */
.section-subtitle {
    color: var(--color-primary);
    font-size: var(--fs-body-lg);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.section-subtitle.light {
    color: var(--color-primary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: var(--ls-heading);
    color: var(--color-secondary);
    max-width: 574px;
}

.section-title.light {
    color: white;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 32px;
    }
}

.section-header {
    margin-bottom: var(--spacing-2xl);
}

.section-header.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.56px;
    line-height: 1.2;
    transition: var(--transition);
    white-space: nowrap;
    height: 48px;
    gap: var(--spacing-sm);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #3a8891;
    transform: translateY(-2px);
}

/* Tlačidlo „Objednajte sa" v navigácii – gradient (vymenené s hero tlačidlom) */
#navBookingBtn {
    /* .btn má space-between – ikonu a text by to roztlačilo k okrajom */
    justify-content: center;
    gap: 10px;
    padding: 0 26px;
    background: linear-gradient(126deg, rgba(120, 191, 204, 1) 3.82%, rgba(184, 182, 139, 1) 66.51%);
    color: var(--color-bg-light);
    /* mäkko vytlačené („3D“) tlačidlo – vnútorné lemy + tieň pod ním */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -3px 8px rgba(40, 62, 72, 0.22),
        0 4px 8px rgba(20, 35, 42, 0.18),
        0 12px 24px rgba(20, 35, 42, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#navBookingBtn:hover {
    background: linear-gradient(126deg, rgba(120, 191, 204, 1) 3.82%, rgba(184, 182, 139, 1) 66.51%);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -3px 8px rgba(40, 62, 72, 0.22),
        0 6px 12px rgba(20, 35, 42, 0.2),
        0 18px 32px rgba(20, 35, 42, 0.26);
}

/* stlačenie – tlačidlo si sadne a tieň sa stiahne */
#navBookingBtn:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 2px 5px rgba(40, 62, 72, 0.3),
        0 2px 5px rgba(20, 35, 42, 0.18);
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
    padding: 0 33px;
    font-size: 16px;
    letter-spacing: 0.64px;
    font-weight: 700;
    gap: var(--spacing-sm);
    height: 48px;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(72, 166, 178, 0.3);
}

.btn-dark {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: 0 8px 0 24px;
    font-size: 16px;
    letter-spacing: 0.64px;
    gap: var(--spacing-sm);
    height: 48px;
}

.btn-dark:hover {
    background-color: #355663;
}

.location-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-navigate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-primary-dark);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.64px;
    text-decoration: none;
    border: 1.5px solid var(--color-primary-dark);
    border-radius: var(--radius-md);
    height: 48px;
    padding: 0 24px;
    transition: all 0.2s ease;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
}

.btn-navigate:hover {
    background: var(--color-primary-dark);
    color: var(--color-text-light);
}

.btn-light {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    padding: 0 8px 0 24px;
    font-size: 16px;
    letter-spacing: 0.64px;
    gap: var(--spacing-sm);
    height: 48px;
}

.btn-light:hover {
    background-color: #c7c6ba;
}

.btn-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.btn-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.btn-arrow {
    position: relative;
    width: 14px;
    height: 14px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn:hover .btn-arrow {
    transform: translate(4px, -4px);
}

.btn-light:hover .btn-arrow {
    animation: arrow-bounce 0.6s ease-in-out;
}

/* šípka v arrow.svg má stroke #436877 – na tmavom tlačidle ju prefarbíme na bielu */
.btn-secondary .btn-arrow {
    filter: brightness(0) invert(1);
}

.btn-dark:hover .btn-arrow,
.btn-secondary:hover .btn-arrow {
    animation: arrow-bounce 0.6s ease-in-out;
}

@keyframes arrow-bounce {
    0% {
        transform: translate(0, 0);
    }
    30% {
        transform: translate(6px, -6px);
    }
    50% {
        transform: translate(4px, -4px);
    }
    70% {
        transform: translate(6px, -6px);
    }
    100% {
        transform: translate(4px, -4px);
    }
}

/* Hero Section */
/* Hero je odsadený „box“ – nedotýka sa okrajov okna a má zaoblené rohy */
.hero-section {
    position: relative;
    height: 800px;
    background-color: var(--color-bg-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 16px;
    border-radius: 32px;
}

.hero-section > * {
    max-width: 1344px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.8;
    overflow: hidden;
    max-width: none;
    margin: 0;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: filter 0.45s ease;
}

/* pri prejdení myšou po kartách sa video zastaví a jemne rozostrí */
.hero-section.is-card-hover .hero-bg-video {
    filter: blur(6px);
}

.hero-bg-image {
    width: 100%;
    height: 111%;
    object-fit: cover;
    object-position: center;
}

/* Fixed Navigation Wrapper */
.page-nav {
    position: fixed;
    /* hero má margin 16px – nav odsadíme tak, aby bol od jeho okraja ~24px */
    top: 24px;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    padding: 0 40px;
}
/* Odopnutá (plávajúca) navigácia – po scrollovaní sa z nej stane zaoblený pruh */
.page-nav .navbar {
    max-width: 1344px;
    margin: 0 auto;
    border-radius: 16px;
    transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease,
                border-radius 0.3s ease;
}
.page-nav.scrolled .navbar {
    background: rgba(15, 25, 30, 0.85);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    height: 76px;
    grid-template-rows: 76px;
}

@media (max-width: 968px) {
    .page-nav {
        top: 8px;
        padding: 0 12px;
    }
}

/* Navigation */
.navbar {
    position: relative;
    z-index: 100;
    display: grid;
    grid-template-columns: minmax(300px, auto) 1fr minmax(300px, auto);
    align-items: center;
    /* prvý riadok drží výšku pillu, aj keď navbar narastie kvôli menu */
    grid-template-rows: 100px;
    align-content: start;
    padding: 0 36px;
    height: 100px;
    gap: 50px;
}

@media (max-width: 1200px) {
    .navbar {
        grid-template-columns: minmax(250px, auto) auto minmax(200px, auto);
        gap: 24px;
        padding: 0 24px;
    }
}

@media (max-width: 968px) {
    .navbar {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: 80px;
        gap: 12px;
        padding: 0 16px;
        height: 80px;
    }
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-self: start;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .nav-left {
        gap: 24px;
    }
}

@media (max-width: 968px) {
    .nav-left {
        display: flex;
    }
}

.nav-center {
    display: flex;
    justify-content: center;
    justify-self: center;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    justify-self: end;
}

@media (max-width: 968px) {
    .nav-right {
        display: flex;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 19px;
}

.logo-icon {
    height: 50px;
    width: auto;
}

.logo-text {
    height: 36.565px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-icon {
        height: 40px;
    }
    
    .logo-text {
        height: 29px;
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: var(--spacing-xs);
    justify-self: start;
    order: -1;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}



.nav-mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: var(--spacing-xl) var(--spacing-md);
    gap: var(--spacing-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 98;
    display: none;
}



.nav-mobile-menu .nav-link {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile-menu .btn {
    margin-top: var(--spacing-md);
    width: 100%;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    /* širší preklad – pôsobí remeselnejšie/„artsy" */
    letter-spacing: 1.6px;
    line-height: 1.5;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
}

.nav-link-underline {
    display: none;
}

.nav-divider {
    display: none;
}

/* Hero Content */
/* Ľavý okraj hero obsahu lícuje s tlačidlom Menu v navigácii.
   Odvodené z navigácie: .page-nav má padding 40px, .navbar max-width 1344px
   (teda centrovanie v 100vw − 80px) a padding 36px → tlačidlo začína na
   76px + max(0, (100vw − 1424px) / 2). Hero je odsadené marginom 16px,
   takže od jeho okraja je to o 16px menej.
   Počítame z % šírky hero sekcie (nie z vw), nech to nerozhodí scrollbar. */
.hero-content {
    position: absolute;
    top: 42%;
    left: max(60px, calc(50% - 636px));
    transform: translateY(-50%);
    z-index: 10;
    /* odznak sedí inline za posledným riadkom, headline preto potrebuje
       viac miesta ako samotný text */
    max-width: 960px;
}

@media (max-width: 768px) {
    .hero-content {
        left: var(--spacing-md);
        max-width: calc(100% - 48px);
    }
}

.hero-subtitle {
    color: var(--color-primary);
    font-size: var(--fs-body-lg);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--fs-hero);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: var(--ls-display);
    background: linear-gradient(126deg, rgba(120, 191, 204, 1) 3.82%, rgba(184, 182, 139, 1) 66.51%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 968px) {
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 568px) {
    .hero-title {
        font-size: 36px;
    }
}

/* Hero Bottom */
.hero-bottom {
    position: absolute;
    bottom: 64px;
    /* rovnaký výpočet ľavého okraja ako .hero-content – texty tak presne
       lícujú s headlinom aj s tlačidlom Menu pri každej šírke okna */
    left: max(60px, calc(50% - 636px));
    right: auto;
    z-index: 10;
    padding: 0;
    max-width: 697px;
    width: auto;
}

/* pod 1200px má .navbar padding 24px namiesto 36px – tlačidlo Menu sa
   posunie o 12px doľava, hero obsah musí ísť s ním */
@media (max-width: 1200px) {
    .hero-content,
    .hero-bottom {
        left: max(48px, calc(50% - 648px));
    }
}

@media (max-width: 968px) {
    .hero-bottom {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: auto;
        padding: var(--spacing-md);
    }
}

.hero-columns {
    /* zostal jediný textový stĺpec – nech využije celú šírku (inak 2-stĺpcový
       grid dával textu len polovicu a riadky sa zalamovali navyše) */
    display: block;
    margin-right: auto;
    max-width: 720px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero-columns {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-left: 0;
        max-width: 100%;
    }
}

.hero-text {
    color: white;
    font-size: 18px;
    font-weight: 300;
    /* 1.2 bolo pritesné – vzdušnejšie riadkovanie je čitateľnejšie */
    line-height: 1.5;
    letter-spacing: 0.005em;
    white-space: pre-wrap;
}

.hero-cta {
    display: flex;
    justify-content: center;
}

/* Two Columns Layout */
.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-3xl);
}

@media (max-width: 968px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

.column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.text-large {
    font-size: 24px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.24px;
    color: var(--color-secondary);
    white-space: pre-wrap;
}

.text-medium {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.18px;
    color: var(--color-secondary);
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .text-large {
        font-size: 20px;
    }
    
    .text-medium {
        font-size: 16px;
    }
}

/* Technology Section */
.technology-section {
    background-color: var(--color-bg-light);
    padding: 0;
    position: relative;
    /* POZOR: žiadny overflow:hidden – rozbil by position:sticky vnútri */
}

/* --- Scroll-driven prelínačka: headline -> anatomická skica oka --- */
.tech-scroll {
    position: relative;
    height: 150vh;
}

.tech-sticky {
    position: sticky;
    top: 0;
    height: min(100vh, 1000px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tech-stage {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 1340px;
    padding: 0 24px;
}

/* obe vrstvy ležia na sebe v tej istej bunke gridu */
.tech-headline,
.tech-reveal {
    grid-area: 1 / 1;
    text-align: center;
    will-change: opacity, transform;
}

.tech-eyebrow {
    color: var(--color-primary);
    font-size: var(--fs-body-lg);
    font-weight: 500;
    letter-spacing: 0.01em;
    margin: 0 0 20px;
}

.tech-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.4vw, 60px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: var(--ls-display);
    color: var(--color-secondary);
    margin: 0;
}

.tech-reveal {
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* ilustrácia vľavo, sprievodný text vpravo */
.tech-reveal-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    width: 100%;
}

.tech-copy {
    max-width: 360px;
    text-align: left;
    opacity: 0;
    will-change: opacity;
}

.tech-copy p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-secondary);
    opacity: 0.85;
    margin-bottom: 16px;
}

.tech-copy p:last-child {
    margin-bottom: 0;
}

.tech-eye {
    width: min(440px, 60vw);
    max-height: 52vh;
    object-fit: contain;
    display: block;
    /* žiadny rámček – okraje fotky sa jemne strácajú do pozadia sekcie */
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 52%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 52%, transparent 100%);
}

/* --- Tri vrstvy slzného filmu (CSS oblúky pred ilustráciou) --- */
.tech-eye-wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

/* anatomická schéma vrstiev – má vlastné popisky, preto bez masky aj bez
   odsadenia, ktoré predtým robilo miesto pre animované popisky */
.tech-diagram {
    width: min(560px, 66vw);
    max-height: 62vh;
    -webkit-mask-image: none;
    mask-image: none;
}

/* kotva presne v strede zrenice na fotke */
.tear-layers {
    position: absolute;
    top: 54.5%;
    left: 37.5%;
    height: 0;
}

/* oblúky majú tvar šošovky (pomer ~27 % × 39 % ilustrácie) a sú s ňou sústredné –
   rastú od stredu šošovky smerom von, takže kopírujú jej zakrivenie */
.tear-layer {
    position: absolute;
    top: 0;
    left: 50%;
    width: 152px;
    height: 210px;
    margin-left: -76px;
    margin-top: -105px;
    border-radius: 50%;
    /* pozor: transform:scale() zväčšuje aj hrúbku rámu, preto je základ tenký */
    border: 3px solid currentColor;
    /* z elipsy necháme len prednú (ľavú) štvrtinu – zakrivená čiapočka na rohovke.
       Širšia výseč = vrstvy sa navzájom prekrývajú, čo vytvára hĺbku. */
    clip-path: inset(0 60% 0 0);
    /* drop-shadow (nie box-shadow) rešpektuje clip-path → tieň kopíruje oblúk */
    filter: drop-shadow(3px 0 7px rgba(40, 62, 72, 0.22));
    /* rezná hrana smerom k oku sa jemne stráca, nech nepôsobí odseknuto */
    -webkit-mask-image: linear-gradient(to right, #000 58%, rgba(0, 0, 0, 0.35) 100%);
    mask-image: linear-gradient(to right, #000 58%, rgba(0, 0, 0, 0.35) 100%);
    opacity: 0;
    transform-origin: 50% 50%;
    will-change: transform, opacity;
}

/* mucínová je najbližšie k oku, preto je navrchu */
.tear-layer--mucin {
    color: #446877;
    background: rgba(68, 104, 119, 0.5);
    z-index: 3;
}

.tear-layer--aqua {
    color: #48a6b2;
    background: rgba(72, 166, 178, 0.45);
    z-index: 2;
}

.tear-layer--lipid {
    color: #c2ab6e;
    background: rgba(194, 171, 110, 0.5);
    z-index: 1;
}

.tear-label {
    position: absolute;
    top: 0;
    right: 285px;      /* mimo najvzdialenejšej elipsy */
    z-index: 4;        /* nad vyplnenými elipsami */
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.15px;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    flex-direction: row-reverse;   /* bodka je bližšie k oku, text vľavo od nej */
    gap: 10px;
    opacity: 0;
    will-change: opacity;
}

.tear-label::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* popisky v stĺpci vľavo, zvislo rozostúpené, aby sa neprekrývali */
.tear-label--mucin { margin-top: -88px; }
.tear-label--aqua  { margin-top: -8px; }
.tear-label--lipid { margin-top: 72px; }

.tear-label--mucin::before { background: #446877; }
.tear-label--aqua::before  { background: #48a6b2; }
.tear-label--lipid::before { background: #c2ab6e; }

/* na užších displejoch skladáme ilustráciu a text pod seba */
@media (max-width: 1200px) {
    .tech-reveal-inner {
        flex-direction: column;
        gap: 32px;
    }

    .tech-eye-wrap { margin-left: 0; }
    .tech-copy { max-width: 620px; text-align: center; }

    /* bez ľavého odsadenia by popisky vyliezli mimo obrazovku – oblúky ostávajú */
    .tear-label { display: none; }
}

/* vrstvy s popiskami sa na malých displejoch nezmestia vedľa oka */
@media (max-width: 900px) {
    .tear-layers { display: none; }
}

.tech-cta {
    padding: 0 48px;
}

@media (max-width: 768px) {
    .tech-scroll { height: 220vh; }
}

.technology-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    /* pattern posunutý vyššie za headline */
    transform: translate(-50%, -50%) translateY(-140px);
    width: 100%;
    max-width: 1441px;
    height: auto;
    pointer-events: none;
    z-index: 0;
}

.pattern-bg {
    width: 100%;
    height: auto;
    display: block;
}

.technology-section .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .technology-pattern {
        width: 150%;
        max-width: none;
    }
}

/* Stats Section */
.stats-section {
    background-color: var(--color-bg-light);
    padding: var(--spacing-2xl) 0;
}

.stats-layout {
    display: grid;
    grid-template-columns: 606px 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

@media (max-width: 1200px) {
    .stats-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

.stats-image {
    position: relative;
    width: 606px;
    height: 606px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, #436877 0%, #244245 100%);
}

.stats-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 44px;
}
.stats-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .stats-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.stats-heading {
    font-family: var(--font-primary);
    font-size: var(--fs-h4);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--color-primary);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

/* jednotné ikony, čísla aj popisky pre všetky tri položky */
.stat-ic {
    width: 44px;
    height: 44px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-secondary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.stat-num span {
    font-size: 0.6em;
    margin-left: 0.06em;
    opacity: 0.7;
}

.stat-label {
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-secondary);
    opacity: 0.75;
}

/* Experts Section */
.experts-section {
    position: relative;
    background-color: var(--color-primary-dark);
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
}

.experts-bg {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

.experts-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experts-carousel-wrapper {
    overflow: hidden;
    margin-top: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.experts-carousel {
    overflow: visible;
}

.experts-track {
    display: flex;
    gap: var(--spacing-2xl);
    animation: scroll-infinite 30s linear infinite;
    width: fit-content;
    will-change: transform;
}

.experts-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-infinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 968px) {
    .experts-track {
        animation-duration: 20s;
        gap: var(--spacing-lg);
    }
}

.experts-grid {
    display: none;
}

.expert-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-4px);
}

.expert-image-wrapper {
    width: 397px;
    height: 423px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .expert-image-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 397 / 423;
    }
}

.expert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.expert-name {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: var(--ls-heading);
    color: white;
    margin: 0;
}

.expert-role {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.16px;
    color: rgba(252, 252, 253, 0.8);
}

.expert-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.expert-btn-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expert-btn-arrow {
    position: relative;
    width: 14px;
    height: 14px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.expert-card:hover .expert-btn {
    background-color: #fff;
}

.expert-card:hover .expert-btn-circle {
    opacity: 1;
}

.expert-card:hover .expert-btn-arrow {
    animation: arrow-bounce 0.6s ease-in-out;
}

/* Locations Section */
.locations-section {
    background-color: var(--color-bg-light);
    padding: var(--spacing-2xl) 0;
}

.locations-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: start;
    width: 100%;
}

@media (max-width: 1400px) {
    .locations-wrapper {
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .locations-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        justify-content: stretch;
    }
}

@media (max-width: 968px) {
    .locations-wrapper {
        grid-template-columns: 1fr;
    }
}

.locations-cards-column {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 556px;
}

@media (max-width: 1400px) {
    .locations-cards-column {
        gap: 16px;
    }
}

@media (max-width: 1200px) {
    .locations-cards-column {
        grid-column: 1;
        height: auto;
    }
}

@media (max-width: 968px) {
    .locations-cards-column {
        grid-column: 1;
        flex-direction: column;
        height: auto;
    }
}

@media (max-width: 640px) {
    .locations-cards-column {
        flex-direction: column;
    }
}

.location-card {
    position: relative;
    width: 210px;
    height: 127px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
    flex-shrink: 0;
}

.location-card:hover {
    transform: scale(1.02);
    border-color: var(--color-primary);
}

.location-card.active {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(72, 166, 178, 0.25);
}

.location-card.active .location-image {
    filter: blur(0) !important;
}

.location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(9px);
    transition: filter 0.3s ease;
}

/* Gradient placeholders for locations - matching Figma design */
.location-gradient-ba {
    background:
        linear-gradient(180deg,
            rgba(72, 166, 178, 0.05) 0%,
            rgba(72, 166, 178, 0.15) 30%,
            rgba(68, 104, 119, 0.55) 80%,
            rgba(40, 60, 75, 0.85) 100%
        ),
        url('bratislava.png');
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05);
}

.location-gradient-za {
    background:
        linear-gradient(180deg,
            rgba(86, 140, 150, 0.05) 0%,
            rgba(86, 140, 150, 0.15) 30%,
            rgba(68, 104, 119, 0.55) 80%,
            rgba(40, 60, 75, 0.85) 100%
        ),
        url('zilina.png');
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05);
}

.location-gradient-st {
    background:
        linear-gradient(180deg,
            rgba(72, 166, 178, 0.06) 0%,
            rgba(72, 166, 178, 0.18) 30%,
            rgba(68, 104, 119, 0.58) 80%,
            rgba(40, 60, 75, 0.86) 100%
        ),
        url('stara-tura.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05);
}

.location-gradient-zv {
    background:
        linear-gradient(180deg,
            rgba(72, 166, 178, 0.05) 0%,
            rgba(72, 166, 178, 0.15) 30%,
            rgba(68, 104, 119, 0.55) 80%,
            rgba(40, 60, 75, 0.85) 100%
        ),
        url('zvolen.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.05);
}

.location-number {
    position: absolute;
    top: 26px;
    left: 23px;
    color: var(--color-text-light);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    z-index: 2;
}

.location-name {
    position: absolute;
    bottom: 20px;
    left: 23px;
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.18px;
    z-index: 2;
    margin: 0;
}

.location-map-wrapper {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 556px;
    overflow: hidden;
    border-radius: 16px;
    background-color: rgba(68, 104, 119, 0.08);
}

@media (max-width: 1200px) {
    .location-map-wrapper {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 968px) {
    .location-map-wrapper {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        height: 400px;
    }
}

.location-map {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
}

#map {
    width: 100%;
    height: 100%;
}

.location-info-panel {
    grid-column: 3;
    grid-row: 1;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    border-radius: 16px;
    background-color: transparent;
    width: 420px;
    height: 556px;
    justify-content: flex-start;
    transition: opacity 0.15s ease;
}

@media (max-width: 1200px) {
    .location-info-panel {
        grid-column: 1;
        grid-row: auto;
        width: auto;
        height: auto;
    }
}

@media (max-width: 968px) {
    .location-info-panel {
        grid-column: 1;
        width: auto;
        height: auto;
    }
}

.location-info-number {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.16px;
}

.location-info-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: var(--ls-heading);
    color: var(--color-secondary);
    margin: 0 0 var(--spacing-sm) 0;
}

.location-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: var(--spacing-xs) 0 var(--spacing-lg) 0;
}

#locationAddress {
    margin-bottom: 16px;
}

.location-info-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.16px;
    color: var(--color-secondary);
    margin: 0;
}

.locations-grid {
    display: none;
}

.location-detail {
    display: none;
}

.location-detail-panel {
    display: none;
}

.location-info {
    display: none;
}

/* FAQ Section */
.faq-section {
    background-color: var(--color-bg-light);
    padding: var(--spacing-2xl) 0;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    /* ľavý stĺpec sa roztiahne na výšku zoznamu, aby sa dal otáznik vertikálne vycentrovať */
    align-items: stretch;
}

@media (max-width: 968px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

.faq-header {
    position: relative;
}
/* otáznik v kruhu, vertikálne vycentrovaný oproti zoznamu vpravo */
.faq-lottie {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    max-width: 100%;
    border-radius: 50%;
    border: 3px solid rgba(68, 104, 119, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq-lottie svg {
    display: block;
    /* otáznik menší než kruh, s vnútorným odsadením */
    width: 58%;
    height: 58%;
}
/* otáznik je kreslený stroke-om – prefarbíme do značkovej tyrkysovej
   a nastavíme presnú hrúbku 2px (non-scaling-stroke = px bez ohľadu na mierku) */
.faq-lottie svg path {
    stroke: var(--color-primary) !important;
    stroke-width: 8px !important;
    vector-effect: non-scaling-stroke;
}
.faq-lottie svg path[fill]:not([fill="none"]) {
    fill: var(--color-primary) !important;
}
@media (max-width: 968px) {
    /* na mobile otáznik nezobrazujeme */
    .faq-lottie {
        display: none;
    }
}

.faq-decorative-line {
    width: 100%;
    max-width: 550px;
    height: 1px;
    background-color: var(--color-primary-dark);
    opacity: 0.2;
    margin-top: var(--spacing-xl);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--color-overlay);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 21px 14px;
    text-align: left;
    font-size: var(--fs-body-lg);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--color-primary-dark);
}

.faq-question:hover {
    background-color: rgba(68, 104, 119, 0.12);
}

.faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(237, 240, 242, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-primary-dark);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 14px;
}

.faq-item.active .faq-answer {
    /* dosť vysoké aj pre najdlhšiu odpoveď s medzinadpismi (inak sa text oreže) */
    max-height: 1600px;
    padding: 0 14px 21px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-secondary);
    margin-bottom: 14px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-subhead {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.faq-subhead + p {
    margin-bottom: 18px;
}

/* Diagnostika */
.diagnostics-section {
    background-color: var(--color-bg-light);
}

.diagnostics-lead,
.diagnostics-outro {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-secondary);
    opacity: 0.85;
}

/* --- Card stack: karty sa pri scrollovaní vrstvia na seba --- */
.stack {
    position: relative;
    /* výška = počet kariet × 100vh → scrollovacia dráha pre (n-1) prechodov */
    height: 500vh;
    margin: var(--spacing-md) 0;
}

.stack-sticky {
    position: sticky;
    /* pripnutá plocha s kartami – zastropovaná na 825px, aby na vysokých
       monitoroch nebolo okolo karty veľké prázdno (na nižších oknách 100vh) */
    top: 0;
    height: min(100vh, 825px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.stack-cards {
    position: relative;
    list-style: none;
    width: 100%;
    max-width: 940px;
    height: min(78vh, 560px);
}

.stack-card {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 45% 1fr;
    overflow: hidden;
    border-radius: 24px;
    background-color: #fff;
    box-shadow: 0 24px 60px rgba(40, 62, 72, 0.16);
    transform-origin: center center;
    will-change: transform;
}

.stack-card-media {
    position: relative;
    /* rovnaký gradient ako tlačidlo „Objednajte sa" v navigácii */
    background: linear-gradient(126deg, rgba(120, 191, 204, 1) 3.82%, rgba(184, 182, 139, 1) 66.51%);
    overflow: hidden;
}

.stack-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* placeholder, kým nie sú reálne fotky – veľké číslo kroku vo vzore */
.stack-card-media {
    /* 0 = číslo skryté dole, 1 = na mieste (nastavuje JS podľa scrollu) */
    --num-p: 0;
}

.stack-card-media::after,
.stack-card-num {
    content: attr(data-num);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 132px;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.22);
    /* číslo sa vysunie zdola a zväčší, keď karta dosadne */
    opacity: var(--num-p);
    transform: translateY(calc((1 - var(--num-p)) * 48px))
               scale(calc(0.82 + var(--num-p) * 0.18));
    will-change: transform, opacity;
}

/* keď JS vloží „preklápacie“ číslice, statický ::after už netreba */
.stack-card-media.has-flap::after {
    content: none;
}

/* číslice majú prirodzenú šírku; tabular-nums drží rovnaký krok pri napočítavaní */
.stack-card-num {
    font-variant-numeric: tabular-nums;
}

.stack-card-num i {
    font-style: normal;
}

/* keď je na karte reálna fotka, placeholder s číslom sa nezobrazuje */
.stack-card-media:has(img)::after {
    content: none;
}

.stack-card-media:has(img) .stack-card-num {
    display: none;
}

.stack-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 52px;
}

.stack-card-step {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.stack-card-body h3 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-secondary);
    margin-bottom: 14px;
}

.stack-card-body p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-secondary);
    opacity: 0.78;
}

@media (max-width: 768px) {
    .stack-card {
        grid-template-columns: 1fr;
        grid-template-rows: 42% 1fr;
    }

    .stack-card-body { padding: 28px 26px; }
    .stack-card-body h3 { font-size: 23px; }
    .stack-card-body p { font-size: 15px; }
    .stack-card-media::after { font-size: 84px; }
}

/* Partnership Section */
.partnership-section {
    position: relative;
    padding: var(--spacing-2xl) 0;
}

.partnership-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 391px;
    gap: var(--spacing-3xl);
    background: linear-gradient(90deg, #436877 0%, #244245 100%);
    border-radius: var(--radius-md);
    padding: 45px 87px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .partnership-card {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        padding: var(--spacing-xl) var(--spacing-lg);
    }
}

/* Vodoznak zo značky CSO v ľavej časti karty.
   (Predtým tu bola dočasná Figma MCP URL, ktorá by na produkcii nefungovala.) */
/* Ripple na pozadí – sústredné kruhy vychádzajúce z ľavej strany.
   Predtým tu bola značka CSO, ktorej rovná zadná hrana po zrkadlení robila
   viditeľný zvislý šev. Čisté kruhy žiadny šev nemajú. */
.partnership-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-radial-gradient(
        circle at 4% 50%,
        rgba(255, 255, 255, 0) 0 30px,
        rgba(255, 255, 255, 0.05) 30px 34px
    );
    /* rings sa strácajú smerom k textovému stĺpcu vpravo */
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 70%);
    mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 70%);
    pointer-events: none;
}

.partnership-content,
.partnership-benefits {
    position: relative;
    z-index: 1;
}

.partnership-content {
    align-self: center;
}

.partnership-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
    .partnership-title {
        font-size: 32px;
    }
}

.partnership-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.partnership-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.partnership-contact-label {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.25;
}

.partnership-contact-phone {
    color: var(--color-text-light);
    font-size: 22px;
    line-height: 1.25;
}

.partnership-intro {
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: var(--spacing-md);
}

.partnership-list {
    list-style: disc;
    list-style-position: inside;
    padding-left: 0;
    margin: 0;
    text-align: left;
}

.partnership-list li {
    color: var(--color-text-light);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 14px;
}

.partnership-list li:last-child {
    margin-bottom: 0;
}

.partnership-list li::marker {
    color: var(--color-accent);
}

.partnership-current {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.partnership-current .partnership-intro {
    margin-top: var(--spacing-xs);
    margin-bottom: 0;
    font-size: 15px;
}

.partnership-current .partnership-contact-phone {
    font-size: 20px;
    max-width: 440px;
}

.partnership-current a {
    color: inherit;
    text-decoration: none;
}

.partnership-current a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Footer */
.footer {
    background-color: var(--color-bg-light);
    padding: var(--spacing-2xl) 0 var(--spacing-xs);
    position: relative;
    overflow: hidden;
}

.footer-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1441px;
    height: auto;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.footer-pattern-bg {
    width: 100%;
    height: auto;
    display: block;
}

.footer .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer-pattern {
        width: 150%;
        max-width: none;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: start;
}
/* logo má pevnú výšku, aby sa naň dala navigácia presne vycentrovať */
.footer-logo img {
    height: 64px;
    width: auto;
}
/* navigácia zvislo vycentrovaná na výšku loga */
.footer-columns {
    display: flex;
    align-items: center;
    min-height: 64px;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 24.7px;
}

.footer-logo .logo-icon {
    height: 65px;
}

.footer-logo .logo-text {
    height: 47.535px;
}

.footer-tagline {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-primary-dark);
    white-space: pre-wrap;
}

.footer-columns {
    /* jediná skupina odkazov – vertikálne vycentrovaná na výšku loga,
       .footer-links (width:100%) drží jeden riadok cez celú šírku */
    display: flex;
    align-items: center;
    min-height: 64px;
}
/* stĺpec musí vyplniť celú 1fr bunku, inak sa zmrští na obsah a space-between
   nemá čo rozprestrieť (odkazy potom nedosahujú po pravý okraj) */
.footer-columns .footer-column {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-primary-dark);
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    /* položky v jednom riadku, rozprestreté po pravý okraj kontajnera */
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-secondary);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(68, 104, 119, 0.1);
    margin-top: var(--spacing-2xl);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

.footer-copyright {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-secondary);
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-legal a {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-legal span {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-secondary);
}

.footer-separator {
    color: var(--color-secondary);
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    :root {
        --spacing-xl: 32px;
        --spacing-2xl: 48px;
        --spacing-3xl: 64px;
    }

    .stats-layout {
        gap: var(--spacing-xl);
    }

    .partnership-card {
        padding: 40px;
    }

    .location-card {
        width: 180px;
    }

    .location-map-wrapper {
        width: 300px;
    }

    .location-info-panel {
        width: 340px;
    }
}

@media (max-width: 968px) {
    .hero-section {
        height: auto;
        min-height: calc(100vh - 24px);
        margin: 12px;
        border-radius: 24px;
    }

    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 24px 24px 0;
        max-width: 100%;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-bottom {
        padding-bottom: 40px;
    }

    .stats-layout {
        grid-template-columns: 1fr;
    }

    .stats-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-height: 400px;
    }

    .stats-content {
        gap: var(--spacing-lg);
    }

    .experts-section {
        padding: var(--spacing-xl) 0;
    }

    .expert-image-wrapper {
        width: 280px;
        height: 300px;
    }

    .locations-wrapper {
        grid-template-columns: 1fr;
    }

    .locations-cards-column {
        flex-direction: row;
        height: auto;
        overflow-x: auto;
        /* posúvanie ostáva, len skryjeme lištu */
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }

    .location-card {
        width: 160px;
        height: 220px;
        scroll-snap-align: start;
    }

    .location-map-wrapper {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        height: 300px;
    }

    .location-info-panel {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        height: auto;
        padding: 24px 0;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .faq-header {
        position: static;
    }

    .partnership-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .partnership-title {
        font-size: 28px;
    }

    .partnership-contact-phone {
        font-size: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100svh - 24px);
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-text {
        font-size: 15px;
    }

    .hero-columns {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .stats-heading {
        font-size: 20px;
    }

    .stat-num {
        font-size: 36px;
    }

    .expert-name {
        font-size: 20px;
    }

    .location-card {
        width: 140px;
        height: 200px;
    }

    .location-name {
        font-size: 15px;
        bottom: 24px;
        left: 16px;
    }

    .location-number {
        top: 16px;
        left: 16px;
        font-size: 14px;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-content {
        padding: 16px 16px 0;
    }

    .hero-title {
        font-size: 30px;
    }

    .btn-secondary {
        font-size: 14px;
        padding: 0 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .text-large {
        font-size: 18px;
    }

    .text-medium {
        font-size: 15px;
    }

    .partnership-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-cta,
    .expert-btn,
    .btn,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Scroll Animations */
.section-header,
.section-title,
.section-subtitle,
.tech-eyebrow,
.tech-title,
.stat-item,
.expert-card,
.location-card,
.faq-item,
.partnership-card,
.stats-image,
.technology-content,
.two-columns > *,
.footer-brand,
.footer-column {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-header.animate-in,
.section-title.animate-in,
.section-subtitle.animate-in,
.tech-eyebrow.animate-in,
.tech-title.animate-in,
.stat-item.animate-in,
.expert-card.animate-in,
.location-card.animate-in,
.faq-item.animate-in,
.partnership-card.animate-in,
.stats-image.animate-in,
.technology-content.animate-in,
.two-columns > *.animate-in,
.footer-brand.animate-in,
.footer-column.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for groups */
.stat-item {
    transition-delay: 0.1s;
}

.stat-item:nth-child(2) {
    transition-delay: 0.2s;
}

.stat-item:nth-child(3) {
    transition-delay: 0.3s;
}

.expert-card:nth-child(1) {
    transition-delay: 0.1s;
}

.expert-card:nth-child(2) {
    transition-delay: 0.2s;
}

.expert-card:nth-child(3) {
    transition-delay: 0.3s;
}

.expert-card:nth-child(4) {
    transition-delay: 0.4s;
}

.expert-card:nth-child(5) {
    transition-delay: 0.5s;
}

.expert-card:nth-child(6) {
    transition-delay: 0.6s;
}

.faq-item:nth-child(1) {
    transition-delay: 0.1s;
}

.faq-item:nth-child(2) {
    transition-delay: 0.2s;
}

.faq-item:nth-child(3) {
    transition-delay: 0.3s;
}

.faq-item:nth-child(4) {
    transition-delay: 0.4s;
}

.faq-item:nth-child(5) {
    transition-delay: 0.5s;
}

.footer-column:nth-child(1) {
    transition-delay: 0.1s;
}

.footer-column:nth-child(2) {
    transition-delay: 0.2s;
}

.footer-column:nth-child(3) {
    transition-delay: 0.3s;
}

.footer-column:nth-child(4) {
    transition-delay: 0.4s;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .section-header,
    .section-title,
    .section-subtitle,
    .stat-item,
    .expert-card,
    .location-card,
    .faq-item,
    .partnership-card,
    .stats-image,
    .technology-content,
    .two-columns > *,
    .footer-brand,
    .footer-column {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* Lottie Calendar Animation in Navigation */
#navBookingBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
}

.calendar-lottie {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calendar-lottie svg {
    width: 100%;
    height: 100%;
}

/* prefarbenie na bielo len pre Lottie SVG – náš statický fallback (.cal-fallback) vynechať */
.calendar-lottie svg:not(.cal-fallback) path,
.calendar-lottie svg:not(.cal-fallback) rect,
.calendar-lottie svg:not(.cal-fallback) circle,
.calendar-lottie svg:not(.cal-fallback) line,
.calendar-lottie svg:not(.cal-fallback) polyline,
.calendar-lottie svg:not(.cal-fallback) polygon {
    fill: white !important;
    stroke: white !important;
}

/* statická záložná ikona kalendára (zobrazí sa, keď sa Lottie nenačíta) */
.cal-fallback {
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* keď sa Lottie úspešne načíta a vykreslí, fallback skryjeme */
.calendar-lottie.lottie-ready .cal-fallback {
    display: none;
}

/* --- Scroll indikátor pri ľavom okraji --- */
.scroll-indicator {
    position: fixed;
    left: 20px;
    top: 50%;
    width: 14px;
    height: 192px;
    margin-top: -96px;
    z-index: 90;
    pointer-events: none;
    /* na svetlých sekciách tmavá, na tmavých biela (prepína JS) */
    color: var(--color-secondary);
    transition: color 0.25s ease, opacity 0.35s ease;
}

.scroll-indicator.is-dark {
    color: #fff;
}

/* na konci stránky stupnicu schováme – nahradí ju návrat hore */
.scroll-indicator.is-end {
    opacity: 0;
}

.scroll-indicator-track,
.scroll-indicator-fill {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        currentColor 0,
        currentColor 1px,
        transparent 1px,
        transparent 5px
    );
}

.scroll-indicator-track {
    opacity: 0.3;
}

.scroll-indicator-fill {
    clip-path: inset(0 0 100% 0);
}

.scroll-indicator-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 1px;
    background-color: currentColor;
}

.scroll-indicator-marker span {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* číslo zobrazíme len keď je vedľa obsahu dosť miesta (obsah je max 1344px + 96px padding),
   inak by zasahovalo do textu v hlavičkách podstránok */
@media (max-width: 1500px) {
    .scroll-indicator-marker span { display: none; }
}

/* --- Návrat hore (na mieste stupnice, keď dorolujeme do päty) --- */
.scroll-to-top {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 8px 4px;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--color-secondary);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s, color 0.25s ease;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-to-top.is-dark {
    color: #fff;
}

.scroll-to-top svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-to-top span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.scroll-to-top:hover svg {
    transform: translateY(-4px);
}

/* na menších displejoch by prekážal celý */
@media (max-width: 1100px) {
    .scroll-indicator,
    .scroll-to-top { display: none; }
}

/* --- Rozbaľovacie menu v navigácii (pill sa roztvorí do panela) --- */
.nav-menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.6px;
    transition: width 0.25s ease, height 0.25s ease, padding 0.25s ease,
                background-color 0.3s ease, border-color 0.3s ease;
}

.nav-menu-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.nav-menu-label {
    transition: opacity 0.2s ease, filter 0.2s ease;
}

/* krížik (otočené plus) – v zatvorenom stave skrytý */
.nav-menu-cross {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    filter: blur(4px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.nav-menu-cross::before,
.nav-menu-cross::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 1.5px;
    background: var(--color-bg-dark);
    border-radius: 2px;
}

.nav-menu-cross::before { transform: rotate(45deg); }
.nav-menu-cross::after { transform: rotate(-45deg); }

/* otvorený stav – z tlačidla sa stane kruh s krížikom */
.navbar.nav-open .nav-menu-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    background: #fff;
    border-color: #fff;
}

.navbar.nav-open .nav-menu-label {
    opacity: 0;
    filter: blur(4px);
}

.navbar.nav-open .nav-menu-cross {
    opacity: 1;
    filter: blur(0);
}

/* panel s odkazmi – zaberá celú šírku pod hlavným riadkom */
.nav-panel {
    /* mimo toku gridu – navbar tak nemusí mať overflow:hidden,
       ktorý orezával tieň tlačidla */
    position: absolute;
    top: 100px;
    left: 36px;
    right: 36px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 8px;
    padding-top: 30px;
}

/* Mapa v prázdnom mieste vpravo – primiešaná cez overlay a po okrajoch
   vyblednutá do nuly, nech nemá viditeľnú hranu. */
.nav-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: clamp(200px, 24vw, 400px);
    background: url('menu-map.jpg') no-repeat center / cover;
    /* screen namiesto overlay = svetlejšie línie mapy viac vystúpia z tmavého panela */
    mix-blend-mode: screen;
    opacity: 0.32;
    /* mäkký fade na všetkých štyroch stranách – dve lineárne masky (vodorovná
       + zvislá) zložené cez intersect. Radial maska bočné hrany nedofadeovala,
       preto tie ostré prechody vľavo/vpravo. */
    -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%),
        linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-composite: intersect;
    pointer-events: none;
}

@media (max-width: 968px) {
    .nav-panel::after { display: none; }
}

.page-nav.scrolled .navbar .nav-panel {
    top: 76px;
}

.navbar.nav-open .nav-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-panel-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 44px;
}

.nav-panel-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-heading);
    /* rovnaká veľkosť ako .section-title (nadpisy sekcií) */
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    /* každý odkaz priletí zhora s malým oneskorením */
    opacity: 0;
    transform: translateY(-18px);
    transition: opacity 0.35s ease, transform 0.35s ease, color 0.25s ease;
}

.navbar.nav-open .nav-panel-link {
    opacity: 1;
    transform: translateY(0);
}

.nav-panel-link:nth-child(1) { transition-delay: 0.06s; }
.nav-panel-link:nth-child(2) { transition-delay: 0.11s; }
.nav-panel-link:nth-child(3) { transition-delay: 0.16s; }
.nav-panel-link:nth-child(4) { transition-delay: 0.21s; }

.navbar:not(.nav-open) .nav-panel-link {
    transition-delay: 0s;
}

.nav-panel-link:hover,
.nav-panel-link.active {
    color: #fff;
}

/* hover: podčiarknutie sa vykreslí zľava + šípka nabehne zdola */
.nav-panel-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.06em;
    width: 100%;
    height: 0.05em;
    background: currentColor;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-panel-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* naša šípka z arrow.svg – cez masku prevezme farbu textu */
.nav-panel-link::after {
    content: '';
    width: 0.36em;
    height: 0.36em;
    margin-left: 0.34em;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('arrow.svg') no-repeat center / contain;
    mask: url('arrow.svg') no-repeat center / contain;
    opacity: 0;
    transform: translateY(0.25em);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-panel-link:hover::after {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .nav-panel-link::before,
    .nav-panel-link::after { transition: none; }
}

/* CTA v paneli – zobrazí sa len na úzkych displejoch, kde sa nezmestí do lišty */
.nav-panel-cta {
    grid-column: 1 / -1;
    display: none;
    justify-content: center;
    margin-top: 24px;
    width: 100%;
}

@media (max-width: 568px) {
    /* tlačidlo v lište by pretekalo – presunieme ho do menu */
    .nav-right { display: none; }
    .nav-panel-cta { display: inline-flex; }
}

/* pill sa pri otvorení viac zaobli a stmavne */
.page-nav .navbar.nav-open {
    background: rgba(15, 25, 30, 0.9);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border-radius: 16px;
}

@media (max-width: 768px) {
    .nav-panel-link { font-size: 32px; }
}

/* menu funguje rovnako na desktope aj na mobile – na úzkych displejoch
   len zmenšíme tlačidlo a odsadenie panela */
@media (max-width: 968px) {
    .nav-menu-btn {
        height: 40px;
        padding: 0 20px;
        font-size: 13px;
        letter-spacing: 1.2px;
    }

    .navbar.nav-open .nav-menu-btn {
        width: 40px;
        height: 40px;
    }

    .nav-panel {
        left: 24px;
        right: 24px;
        top: 80px;
    }

    .nav-panel-links {
        gap: 22px;
        padding: 24px 0 32px;
    }
}


/* Telefón + oddeľovač v navigácii */
.nav-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-phone-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.nav-phone-number {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.6px;
}

.nav-phone:hover {
    color: #fff;
}

.nav-phone:hover .nav-phone-label {
    color: rgba(255, 255, 255, 0.75);
}

.nav-divider {
    /* display treba prebiť – vyššie v súbore je staršie .nav-divider { display: none } */
    display: block;
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .nav-phone,
    .nav-divider { display: none; }
}

/* skrytie vodorovnej lišty pri kartách lokalít (posúvanie funguje ďalej) */
.locations-cards-column::-webkit-scrollbar {
    display: none;
}

/* --- Plávajúca karta s otázkami z E-Eye testu (hero) --- */
.hero-quiz {
    position: absolute;
    /* pravý okraj zarovnaný s obsahom stránky (kontajner 1344px + padding 48px),
       na užších displejoch drží minimálny odstup od kraja */
    right: max(40px, calc(50% - 624px));
    bottom: 50px;
    z-index: 4;
    width: 330px;
    height: 152px;
    /* .hero-section > * inak obmedzuje deti na 1344px a centruje ich */
    max-width: none;
    margin: 0;
    display: block;
}

.hero-quiz-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 15px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(20, 35, 42, 0.24);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s ease;
}

/* predná karta – rovno a navrchu */
.hero-quiz-card.is-front {
    z-index: 2;
    opacity: 1;
    transform: rotate(0deg) translate(0, 0) scale(1);
}

/* zadná karta – pootočená, mierne zmenšená a stlmená */
.hero-quiz-card.is-back {
    z-index: 1;
    opacity: 0.6;
    transform: rotate(-4deg) translate(12px, 12px) scale(0.96);
    box-shadow: 0 10px 26px rgba(20, 35, 42, 0.18);
}

.hero-quiz:hover .hero-quiz-card.is-front {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(20, 35, 42, 0.3);
}

.hero-quiz:hover .hero-quiz-card.is-back {
    transform: rotate(-6deg) translate(16px, 14px) scale(0.96);
}

/* odchádzajúca karta – odletí doprava hore a otočí sa */
.hero-quiz-card.is-leaving {
    z-index: 3;
    opacity: 0;
    transform: translate(46%, -14%) rotate(11deg) scale(0.98);
}

/* návrat karty na spodok stohu má byť okamžitý, nie animovaný */
.hero-quiz-card.no-anim {
    transition: none;
}


.hero-quiz-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hero-quiz-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.hero-quiz-step {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-secondary);
    opacity: 0.5;
    font-variant-numeric: tabular-nums;
}

.hero-quiz-q {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    /* pätkové Hatton pri malej veľkosti – jemné rozpálenie pomáha čitateľnosti */
    letter-spacing: 0.01em;
    color: var(--color-secondary);
    /* miesto pre 3 riadky, nech karta pri striedaní neposkakuje */
    min-height: 4.05em;
}

.hero-quiz-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: var(--color-primary);
}

.hero-quiz-arrow {
    width: 11px;
    height: 11px;
    background-color: currentColor;
    -webkit-mask: url('arrow.svg') no-repeat center / contain;
    mask: url('arrow.svg') no-repeat center / contain;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-quiz:hover .hero-quiz-arrow {
    transform: translate(3px, -3px);
}

/* text CTA – kotva pre podčiarknutie len na šírku textu (nie aj šípky) */
.hero-quiz-cta-text {
    position: relative;
}

/* Podčiarknutie ako pri položkách menu – linka sa vypíše zľava
   (rovnaký ::before wipe ako .nav-panel-link). Len na prednej karte,
   tá zadná je aj tak schovaná za ňou. */
.hero-quiz-cta-text::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: currentColor;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-quiz:hover .hero-quiz-card.is-front .hero-quiz-cta-text::before {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 1200px) {
    .hero-quiz { right: 36px; bottom: 44px; width: 290px; }
}

/* na úzkych displejoch by kartu prekrývala – radšej ju skryjeme */
@media (max-width: 968px) {
    .hero-quiz { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-quiz-card { transition: none; }
}

/* Kontakt v rozbalenom menu */
.nav-panel-contact {
    width: 280px;
    /* min-height dopočíta JS podľa najvyššieho pracoviska, aby prepínač
       dole neposkakoval podľa počtu riadkov */
    display: flex;
    flex-direction: column;
    /* odsadené od pravého okraja panela – nelepí sa na hranu */
    margin-right: clamp(0px, 12vw, 190px);
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.6;
}

/* prepínač hneď pod labelom „Kde nás nájdete": ‹ pilulky › */
.nav-loc-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.nav-loc-arrow {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-loc-arrow:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-loc-arrow svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Pilulkový counter – aktívne pracovisko má dvakrát širšiu pilulku
   (rovnaký pomer ako v predlohe: 21px / 43px, výška 6px, medzera 5px) */
.nav-loc-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-loc-dot {
    position: relative;
    width: 21px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.25s ease;
}

.nav-loc-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.nav-loc-dot.is-active {
    width: 43px;
}

/* biela výplň – u aktívnej pilulky sa počas odpočtu naplní zľava doprava */
.nav-loc-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}

.nav-loc-dot.is-active::after {
    transform: scaleX(1);
}

.nav-loc-dot.is-active.is-filling::after {
    animation: nav-loc-fill 4s linear both;
}

/* pri hoveri (a keď je menu zavreté) odpočet zamrzne */
.nav-loc-dots.is-paused .nav-loc-dot::after {
    animation-play-state: paused;
}

@keyframes nav-loc-fill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .nav-loc-dot { transition: background 0.25s ease; }
    .nav-loc-dot.is-active.is-filling::after { animation: none; }
}

/* jemné prelnutie pri prepnutí lokality */
.nav-panel-contact.is-swapping .nav-panel-contact-name,
.nav-panel-contact.is-swapping .nav-panel-contact-addr,
.nav-panel-contact.is-swapping .nav-panel-contact-links,
.nav-panel-contact.is-swapping .nav-panel-contact-hours {
    animation: nav-loc-fade 0.35s ease;
}

@keyframes nav-loc-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.nav-panel-contact-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 14px;
    white-space: nowrap;
}

.nav-panel-contact-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
}

.nav-panel-contact-addr {
    font-style: normal;
    margin-bottom: 14px;
}

.nav-panel-contact-links {
    /* samostatné riadky – prázdny údaj sa dá skryť bez osirelého <br> */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nav-panel-contact-links a {
    color: #fff;
    transition: color 0.25s ease;
}

.nav-panel-contact-links a:hover {
    color: var(--color-primary);
}

.nav-panel-contact-hours {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.6;
}

/* na užších displejoch kontakt pod odkazy */
@media (max-width: 968px) {
    .nav-panel {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nav-panel-links { padding-bottom: 0; }
    .nav-panel-contact { width: auto; margin-right: 0; font-size: 14px; }
    .nav-panel-contact-name { font-size: 18px; }
}

/* Zvislá linka medzi úvodným textom a kartami diagnostiky */
.diagnostics-rule {
    display: block;
    width: 1px;
    height: 72px;
    margin: 28px auto 0;
    background: linear-gradient(to bottom,
        rgba(68, 104, 119, 0) 0%,
        rgba(68, 104, 119, 0.45) 100%);
}

@media (max-width: 768px) {
    .diagnostics-rule { height: 64px; margin-top: 32px; }
}

/* --- Kruhový odznak 83 % v hero sekcii --- */
.hero-col {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
}

/* ľavý stĺpec drží dva odseky pod sebou – tesnejšie ako badge stĺpec */
.hero-col-text {
    gap: 20px;
}

/* Kotva odznaku: sedí inline hneď za posledným riadkom headlinu, ale má
   nulovú výšku – riadkovanie h1 tak zostáva nedotknuté. */
.hero-badge-slot {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    width: 168px;   /* 20px medzera + 148px odznak */
    height: 0;
}

.hero-badge {
    position: absolute;
    /* posunutý kúsok doprava a hore od konca „Pre vás." */
    left: 40px;
    top: -68px;
    width: 148px;
    height: 148px;
    flex-shrink: 0;
    /* rovnaká krémová ako headline „Staňte sa partnerským centrom" */
    color: var(--color-accent);
    /* h1 má gradient cez background-clip: text – odznak z toho vyväzujeme */
    -webkit-text-fill-color: var(--color-accent);
    font-family: var(--font-body);
    /* naklonenie aj jemný posun riadi JS podľa pozície myši */
    transform: translate(var(--badge-x, 0px), var(--badge-y, 0px)) rotate(var(--badge-tilt, 0deg));
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-badge svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hero-badge-ring {
    fill: none;
    stroke: currentColor;
    stroke-opacity: 0.55;
    stroke-width: 1;
}

.hero-badge-arc {
    fill: currentColor;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    /* text je v markupe rovno veľkými písmenami (text-transform v SVG
       niekedy zhltne diakritiku) a rozpal rieši textLength = presne obvod */
    opacity: 0.85;
}

/* text obieha dokola */
.hero-badge-spin {
    transform-origin: 100px 100px;
    animation: hero-badge-rotate 22s linear infinite;
}

@keyframes hero-badge-rotate {
    to { transform: rotate(360deg); }
}

.hero-badge-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    color: currentColor;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* percento tesne pri čísle a stlmené */
.hero-badge-unit {
    margin-left: 0.02em;
    font-size: 0.72em;
    opacity: 0.64;
}

@media (max-width: 768px) {
    /* menší odznak = menšia kotva aj iné vycentrovanie (-60px + 24px posun) */
    .hero-badge-slot { width: 134px; }
    .hero-badge { width: 120px; height: 120px; left: 14px; top: -36px; }
    .hero-badge-value { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge-spin { animation: none; }
}
