/* ===== VARIABLES ===== */
:root {
    --color-primary: #58A9D4;
    --color-primary-dark: #2D5D9F;
    --color-primary-light: #EAF6FC;
    --color-dark: #18324B;
    --color-dark-card: #243B67;
    --color-text: #374151;
    --color-text-light: #6B7280;
    --color-white: #FFFFFF;
    --color-bg: #FAFBFC;
    --color-bg-alt: #F3F4F6;
    --color-border: #E5E7EB;
    --color-accent: #C90D46;
    --color-danger: #EF4444;
    --color-purple: #5A3D91;
    --color-purple-hover: #6D4AA5;
    --color-ink: #1D1D1F;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-card: 0 14px 38px rgba(24,50,75,0.06);
    --transition: 0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 28px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    gap: 28px;
}
.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--color-primary-dark); }
.btn-nav {
    font-size: 0.875rem;
    padding: 10px 24px;
    background: var(--color-purple);
    border-color: var(--color-purple);
    color: #fff;
    transition: var(--transition);
}
.btn-nav:hover { background: var(--color-purple-hover); border-color: var(--color-purple-hover); }
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-outline-purple {
    background: transparent;
    color: var(--color-purple);
    border-color: var(--color-purple);
    min-height: 52px;
    padding: 0 30px;
    font-size: 1rem;
}
.btn-outline-purple:hover {
    background: var(--color-purple);
    color: #fff;
    transform: translateY(-1px);
}

/* ===== HERO ===== */
.hero {
    --hero-progress: 0;
    --hero-inverse: 1;
    --hero-start-y: 0px;
    --hero-image-start-y: 0px;
    --hero-end-y: 190px;
    --hero-start-image-opacity: 1;
    --hero-start-scale: 1;
    --hero-end-y-image: -95px;
    --hero-end-opacity: 0;
    --hero-equation-progress: 0;
    --hero-equation-y: 18px;
    --hero-equation-item-1: 0;
    --hero-equation-item-2: 0;
    --hero-equation-item-3: 0;
    --hero-equation-item-4: 0;
    --hero-equation-item-5: 0;
    --hero-word-1: 0;
    --hero-word-2: 0;
    --hero-word-3: 0;
    --hero-word-4: 0;
    --hero-word-5: 0;
    --hero-word-6: 0;
    --hero-word-7: 0;
    height: 250vh;
}
.hero-dark {
    background: var(--color-white);
    padding: 118px 0 88px;
    height: 100vh;
    min-height: 100svh;
    position: sticky;
    top: 0;
    left: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero-dark::before {
    content: none;
}
.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 78px;
    position: relative;
    z-index: 1;
}
.hero-media {
    width: min(54%, 640px);
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
}
.hero-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 24px 38px rgba(24,50,75,0.14));
    will-change: opacity, transform;
}
.hero-main-image-start {
    opacity: var(--hero-start-image-opacity);
    transform: translateY(var(--hero-image-start-y)) scale(var(--hero-start-scale));
}
.hero-main-image-end {
    position: absolute;
    inset: 0;
    opacity: var(--hero-end-opacity);
    transform: translateY(var(--hero-end-y-image));
}
.hero-title-stack {
    flex: 0 1 650px;
    position: relative;
    min-height: 330px;
    display: flex;
    align-items: center;
    z-index: 1;
}
.hero h1,
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 5.45vw, 76px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-ink);
    max-width: 650px;
    margin-bottom: 0;
    letter-spacing: -0.04em;
    will-change: opacity, transform;
}
.hero-title-start {
    position: relative;
    z-index: 2;
    opacity: var(--hero-inverse);
    transform: translateY(var(--hero-start-y));
}
.hero-nowrap {
    white-space: nowrap;
}
.loading-dots {
    display: inline;
    font-size: 1.2em;
    line-height: 0;
    letter-spacing: -0.08em;
    white-space: nowrap;
    color: var(--color-purple);
}
.loading-dots span {
    display: inline-block;
    animation: loadingDot 1.25s ease-in-out infinite;
    opacity: 0.25;
}
.loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes loadingDot {
    0%, 80%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-0.04em);
    }
}
.hero-title-end {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    opacity: 1;
    transform: translateY(calc(-50% + var(--hero-end-y)));
    z-index: 1;
}
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(calc(12px * (1 - var(--word-progress, 0))));
    will-change: opacity, transform;
}
.hero-word:nth-child(1) { --word-progress: var(--hero-word-1); opacity: var(--hero-word-1); }
.hero-word:nth-child(2) { --word-progress: var(--hero-word-2); opacity: var(--hero-word-2); }
.hero-word:nth-child(3) { --word-progress: var(--hero-word-3); opacity: var(--hero-word-3); }
.hero-word:nth-child(4) { --word-progress: var(--hero-word-4); opacity: var(--hero-word-4); }
.hero-word:nth-child(5) { --word-progress: var(--hero-word-5); opacity: var(--hero-word-5); }
.hero-word:nth-child(6) { --word-progress: var(--hero-word-6); opacity: var(--hero-word-6); }
.hero-word:nth-child(7) { --word-progress: var(--hero-word-7); opacity: var(--hero-word-7); }
.hero-word-accent {
    color: var(--color-purple);
}
.hero h1 em {
    font-style: normal;
    color: var(--color-ink);
}
.hero-equation {
    position: absolute;
    top: calc(50% + 205px);
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-ink);
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
    opacity: 1;
    transform: translateY(var(--hero-equation-y));
    will-change: opacity, transform;
}
.hero-equation span {
    opacity: 0;
    transform: translateY(calc(10px * (1 - var(--item-progress, 0))));
    will-change: opacity, transform;
}
.hero-equation span:nth-child(1) { --item-progress: var(--hero-equation-item-1); opacity: var(--hero-equation-item-1); }
.hero-equation span:nth-child(2) { --item-progress: var(--hero-equation-item-2); opacity: var(--hero-equation-item-2); }
.hero-equation span:nth-child(3) { --item-progress: var(--hero-equation-item-3); opacity: var(--hero-equation-item-3); }
.hero-equation span:nth-child(4) { --item-progress: var(--hero-equation-item-4); opacity: var(--hero-equation-item-4); }
.hero-equation span:nth-child(5) { --item-progress: var(--hero-equation-item-5); opacity: var(--hero-equation-item-5); }
.hero-equation span:nth-child(2),
.hero-equation span:nth-child(4) {
    color: #86868B;
    font-family: var(--font-display);
    font-size: 0.72em;
    font-weight: 600;
}

/* ===== ANALYSIS OFFER ===== */
.analysis-offer {
    background: var(--color-white);
    padding: 108px 0 112px;
}
.analysis-offer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.analysis-proof {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 10px;
    margin-bottom: 24px;
    border-radius: var(--radius-full);
    border: 1px solid #D7EAF6;
    background: #F2FAFE;
    color: #18324B;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 28px rgba(24,50,75,0.06);
}
.analysis-proof strong {
    color: var(--color-purple);
    font-weight: 800;
}
.proof-avatars {
    display: flex;
    align-items: center;
    padding-left: 3px;
}
.proof-avatars img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-white);
    margin-left: -8px;
    box-shadow: 0 2px 8px rgba(24,50,75,0.12);
}
.proof-avatars img:first-child { margin-left: 0; }
.analysis-title {
    max-width: 760px;
    margin: 0 auto 22px;
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 4vw, 3.9rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.045em;
    color: var(--color-ink);
}
.analysis-kicker {
    margin: 0 auto 28px;
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--color-purple);
}
.analysis-services {
    display: grid;
    gap: 18px;
    max-width: 760px;
    margin: 0 auto;
}
.analysis-service {
    display: grid;
    grid-template-columns: 108px 1fr;
    align-items: center;
    gap: 24px;
    text-align: left;
    padding: 18px 24px 18px 18px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.analysis-service-img {
    width: 108px;
    height: 88px;
    border-radius: 16px;
    object-fit: cover;
}
.analysis-service h3 {
    margin: 0 0 4px;
    font-size: 1.26rem;
    line-height: 1.2;
    color: #06162D;
}
.analysis-service p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--color-text-light);
}
.analysis-service-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
}
.analysis-service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--color-text-light);
}
.analysis-service-list li::before {
    content: "✓";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #F5F2FB;
    color: var(--color-purple);
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.analysis-cta {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}
.analysis-cta-btn {
    background: var(--color-purple);
    color: var(--color-white);
    min-height: 58px;
    padding: 0 34px;
    border: 2px solid var(--color-purple);
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    box-shadow: 0 16px 32px rgba(90,61,145,0.22);
}
.analysis-cta-btn:hover {
    background: var(--color-purple-hover);
    border-color: var(--color-purple-hover);
    transform: translateY(-2px);
}

/* ===== SECTIONS BASE ===== */
.section {
    padding: 100px 0;
}
.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-purple);
    margin-bottom: 12px;
}
.tag-light { color: rgba(255,255,255,0.7); }

/* Shared Apple-style display heading */
.h2-display {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 4vw, 3.7rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.045em;
    color: var(--color-ink);
}
.h2-display em {
    font-style: normal;
    color: var(--color-purple);
}
.feature-header-block {
    max-width: 900px;
    margin-bottom: 48px;
}
.feature-header-desc {
    font-size: 1.08rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-top: 14px;
    max-width: 640px;
}
/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== WHY DIETS FAIL ===== */
.why-section {
    background: var(--color-white);
}
.why-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.why-inner .h2-display {
    margin-bottom: 22px;
}
.why-lead {
    font-size: 1.12rem;
    color: var(--color-text-light);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto;
}
.why-lead strong {
    color: var(--color-purple);
    font-weight: 700;
}
.why-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 760px;
    /* spodní margin .cycle-wrap (64px) se s tímto překrývá — pro reálnou mezeru musí být větší než 64px */
    margin: 114px auto 0;
    padding: 28px 32px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-align: left;
}
.why-stat-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.stat-figures {
    display: flex;
    gap: 5px;
    color: #E4DCF3;
}
.stat-figure {
    display: flex;
}
.stat-figure svg {
    width: 24px;
    height: 24px;
}
.stat-figure.is-filled {
    color: var(--color-purple);
}
.why-stat-card.visible .stat-figure {
    animation: statFigIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.25s + var(--fi) * 0.06s) backwards;
}
@keyframes statFigIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.6);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.why-stat-text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 440px;
    margin: 0;
}
.why-stat-text strong {
    color: var(--color-ink);
    font-weight: 700;
}
.why-stat-btn {
    background: var(--color-purple);
    color: #fff;
    border: 2px solid var(--color-purple);
    min-height: 52px;
    padding: 0 30px;
    font-size: 0.98rem;
    font-weight: 700;
    flex-shrink: 0;
}
.why-stat-btn:hover {
    background: var(--color-purple-hover);
    border-color: var(--color-purple-hover);
    transform: translateY(-1px);
}

/* ===== METABOLIC CYCLE (začarovaný kruh) ===== */
.cycle-wrap {
    margin: 60px 0 64px;
}
.metabolic-cycle {
    --cycle-w: min(700px, calc(100vw - 48px));
    --cycle-h: min(520px, calc(100vw - 48px));
    --ring-rx: calc(var(--cycle-w) * 0.46);
    --ring-ry: calc(var(--cycle-h) * 0.46);
    position: relative;
    width: var(--cycle-w);
    height: var(--cycle-h);
    margin: 0 auto;
}

/* SVG kružnice + kometa */
.cycle-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.cycle-track {
    fill: none;
    stroke: #ECE6F7;
    stroke-width: 1.6;
    stroke-dasharray: 360;
}
.cycle-comet-group {
    transform-box: view-box;
    transform-origin: 50% 50%;
    transition: transform 0.75s cubic-bezier(0.65, 0, 0.3, 1);
    will-change: transform;
}
.cycle-comet-tail,
.cycle-comet-head {
    fill: none;
    stroke: var(--color-purple);
    stroke-linecap: round;
}
.cycle-comet-tail {
    stroke-width: 1.9;
    stroke-dasharray: 34 326;
    opacity: 0.22;
}
.cycle-comet-head {
    stroke-width: 2.1;
    stroke-dasharray: 13 347;
    stroke-dashoffset: -21;
}

/* Šipky mezi kroky */
.cycle-arrow {
    position: absolute;
    left: calc(50% + var(--ring-rx) * cos(var(--a)));
    top: calc(50% + var(--ring-ry) * sin(var(--a)));
    transform: translate(-50%, -50%) rotate(calc(var(--a) + 90deg));
    display: flex;
    color: #CBBEE6;
    z-index: 1;
    pointer-events: none;
}

/* Kroky kruhu */
.cycle-node {
    position: absolute;
    left: calc(50% + var(--ring-rx) * cos(var(--a)));
    top: calc(50% + var(--ring-ry) * sin(var(--a)));
    transform: translate(-50%, -50%) scale(var(--s, 1));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 158px;
    padding: 14px 12px 13px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    font-family: var(--font);
    cursor: pointer;
    z-index: 2;
    transition:
        transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}
.cycle-node:focus-visible {
    outline: 2px solid var(--color-purple);
    outline-offset: 3px;
}
.cycle-node:not(.is-active):hover {
    --s: 1.05;
    border-color: #D9CEEE;
    box-shadow: var(--shadow-lg);
}
.cycle-node-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F5F2FB;
    color: var(--color-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.35s ease, color 0.35s ease;
}
.cycle-node-label {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-ink);
    text-align: center;
    transition: color 0.35s ease;
}
.cycle-node.is-active {
    --s: 1.13;
    background: linear-gradient(150deg, #6D4AA5 0%, #4C3380 100%);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(90, 61, 145, 0.35);
    z-index: 3;
}
.cycle-node.is-active .cycle-node-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.cycle-node.is-active .cycle-node-label {
    color: #fff;
}
.cycle-node.is-active::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    animation: cyclePulse 2.1s ease-out infinite;
    pointer-events: none;
}

/* Střed kruhu */
.cycle-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(380px, 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    pointer-events: none;
}
.cycle-heading {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-purple);
    text-align: center;
    margin-top: 20px;
    /* horní krok kruhu přesahuje ~24px nad kontejner — vizuální mezera pak vychází na 60px */
    margin-bottom: 84px;
}
.cycle-step-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--color-ink);
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cycle-step-desc {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.55;
    min-height: 4.7em;
    margin: 0;
}
/* Výměna textů */
.swap-in {
    animation: cycleSwap 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Nástup kruhu při scrollu do sekce */
.metabolic-cycle:not(.in) .cycle-node,
.metabolic-cycle:not(.in) .cycle-arrow,
.metabolic-cycle:not(.in) .cycle-center,
.metabolic-cycle:not(.in) .cycle-ring {
    opacity: 0;
}
.metabolic-cycle.in .cycle-ring {
    opacity: 1;
}
.metabolic-cycle.in .cycle-track {
    animation: cycleTrackDraw 1.3s cubic-bezier(0.6, 0, 0.3, 1) 0.05s backwards;
}
.metabolic-cycle.in .cycle-comet-group {
    animation: cycleFadeIn 0.8s ease 0.9s backwards;
}
.metabolic-cycle.in .cycle-node {
    animation: cycleNodeIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.25s + var(--i) * 0.1s) backwards;
}
.metabolic-cycle.in .cycle-arrow {
    animation: cycleFadeIn 0.6s ease calc(0.95s + var(--i) * 0.06s) backwards;
}
.metabolic-cycle.in .cycle-center {
    animation: cycleFadeIn 0.7s ease 0.7s backwards;
}

@keyframes cycleNodeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(var(--s, 1));
    }
}
@keyframes cycleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes cycleTrackDraw {
    from { stroke-dashoffset: 360; }
    to { stroke-dashoffset: 0; }
}
@keyframes cyclePulse {
    0% { box-shadow: 0 0 0 0 rgba(109, 74, 165, 0.35); }
    100% { box-shadow: 0 0 0 18px rgba(109, 74, 165, 0); }
}
@keyframes cycleSwap {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cycle-comet-group { transition: none; }
    .cycle-node.is-active::before { animation: none; }
    .metabolic-cycle.in .cycle-node,
    .metabolic-cycle.in .cycle-arrow,
    .metabolic-cycle.in .cycle-center,
    .metabolic-cycle.in .cycle-track,
    .metabolic-cycle.in .cycle-comet-group {
        animation-duration: 0.01s;
        animation-delay: 0s;
    }
}

/* ===== SYMPTOMS SELF-TEST ===== */
.symptoms-section {
    background: linear-gradient(135deg, #241640 0%, var(--color-purple) 100%);
    padding: 180px 0;
}
.symptoms-section .section-tag {
    color: rgba(255, 255, 255, 0.7);
}
.symptoms-section .h2-display {
    color: var(--color-white);
}
.symptoms-section .feature-header-desc {
    color: rgba(255, 255, 255, 0.75);
}
.symptom-check-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.symptom-check-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 22px 20px;
    text-align: left;
    font-family: var(--font);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.symptom-check-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.symptom-check-card:hover .symptom-check {
    border-color: var(--color-purple);
}
.symptom-emoji {
    font-size: 1.9rem;
    line-height: 1;
}
.symptom-text {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-ink);
}
.symptom-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #B9A3E0;
    background: #F5F2FB;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}
.symptom-check-card.checked {
    border-color: var(--color-purple);
    background: #FBFAFE;
}
.symptom-check-card.checked .symptom-check {
    border-color: var(--color-purple);
    background: var(--color-purple);
}
.symptom-check-card.checked .symptom-check::after {
    content: "✓";
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}
.symptoms-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 26px 30px;
    max-height: 400px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease,
        max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.45s ease;
}
.symptoms-result.is-hidden {
    max-height: 0;
    opacity: 0;
    transform: translateY(14px);
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    pointer-events: none;
}
.symptoms-result.is-warm { border-color: #E4DCF3; background: #FBFAFE; }
.symptoms-result.is-hot { border-color: var(--color-purple); background: #F5F2FB; }
.symptoms-result-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.symptoms-result-count {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--color-purple);
    flex-shrink: 0;
}
.symptoms-result-count.pop {
    animation: countPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes countPop {
    from {
        transform: scale(0.55);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.symptoms-result-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-ink);
    line-height: 1.5;
    margin: 0;
}
.symptoms-result-btn {
    background: var(--color-purple);
    color: #fff;
    border: 2px solid var(--color-purple);
    min-height: 52px;
    padding: 0 28px;
    font-size: 0.98rem;
    font-weight: 700;
    flex-shrink: 0;
}
.symptoms-result-btn:hover {
    background: var(--color-purple-hover);
    border-color: var(--color-purple-hover);
    transform: translateY(-1px);
}

/* ===== WHAT YOU'LL LEARN (Co zjistíte) ===== */
.findings-section {
    background: var(--color-white);
}
.findings-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 72px;
    align-items: center;
    margin-bottom: 56px;
}
.findings-media img {
    width: 100%;
    height: auto;
}
.findings-list {
    display: flex;
    flex-direction: column;
    max-width: 560px;
}
.finding-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}
.finding-item:first-child {
    border-top: none;
    padding-top: 0;
}
.finding-item:last-child {
    padding-bottom: 0;
}
.finding-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F5F2FB;
    color: var(--color-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.finding-item h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--color-ink);
    line-height: 1.3;
    margin-bottom: 6px;
}
.finding-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}
.finding-scale {
    margin-top: 16px;
    max-width: 340px;
}
.finding-scale-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 36px;
}
.finding-scale-bars span {
    flex: 1;
    height: calc(8px + var(--i) * 1.9px);
    border-radius: 2px;
    background: var(--c);
    transform-origin: bottom;
}
.finding-item.visible .finding-scale-bars span {
    animation: scaleBarIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.35s + var(--i) * 0.045s) backwards;
}
@keyframes scaleBarIn {
    from { transform: scaleY(0); }
}
.finding-scale-labels {
    display: flex;
    gap: 3px;
    margin-top: 6px;
}
.finding-scale-labels span {
    flex: var(--f);
    text-align: center;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-text-light);
}
.findings-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.findings-cta-note {
    font-size: 0.86rem;
    color: var(--color-text-light);
}

/* ===== CLIENT STORIES ===== */
.stories-section {
    background:
        radial-gradient(65% 45% at 12% 10%, rgba(88,169,212,0.5) 0%, rgba(88,169,212,0) 70%),
        radial-gradient(55% 40% at 90% 16%, rgba(201,13,70,0.3) 0%, rgba(201,13,70,0) 68%),
        radial-gradient(60% 40% at 15% 62%, rgba(236,72,153,0.24) 0%, rgba(236,72,153,0) 65%),
        radial-gradient(58% 38% at 85% 66%, rgba(255,176,120,0.28) 0%, rgba(255,176,120,0) 65%),
        linear-gradient(180deg, #4D3287 0%, #6D4AA5 24%, #A98FD5 55%, #EDE4F7 88%, #FFFFFF 100%);
    padding: 0 0 190px;
    overflow: hidden;
}
.stories-cap {
    height: 42px;
    background: var(--color-white);
    border-radius: 0 0 36px 36px;
    margin-bottom: 88px;
}
.stories-header {
    text-align: center;
    margin-bottom: 60px;
}
.stories-title {
    color: var(--color-white);
    max-width: 680px;
    margin: 0 auto;
}
.stories-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 0 24px;
}
.stories-side {
    flex-shrink: 0;
    padding: 7px;
    background: var(--color-white);
    border: none;
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(20,14,44,0.3);
    cursor: pointer;
    transition: transform 0.25s ease;
}
.stories-side:hover {
    transform: scale(1.05);
}
.stories-side img {
    display: block;
    object-fit: cover;
    border-radius: 21px;
}
.stories-side-near img {
    width: 88px;
    height: 264px;
}
.stories-side-far img {
    width: 58px;
    height: 172px;
}
.story-card {
    width: min(860px, 100%);
    background: var(--color-white);
    border-radius: 28px;
    box-shadow: 0 34px 90px rgba(20,14,44,0.4);
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 24px;
    align-items: center;
}
.story-content {
    padding: 28px 6px 28px 28px;
    transition: opacity 0.23s ease;
}
.story-photo {
    position: relative;
    transition: opacity 0.23s ease;
}
.story-card.is-switching .story-content,
.story-card.is-switching .story-photo {
    opacity: 0;
}
.story-stat {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--color-purple);
    margin-bottom: 18px;
}
.story-quote {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.65;
    margin-bottom: 24px;
}
.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.story-tags span {
    background: var(--color-bg-alt);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
}
.story-photo > img {
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    border-radius: 18px;
    display: block;
}
.story-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 2px;
    padding: 4px;
    background: rgba(255,255,255,0.94);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 22px rgba(20,14,44,0.25);
}
.story-toggle-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--color-text-light);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.story-toggle-btn:hover {
    color: var(--color-purple);
}
.story-toggle-btn.active {
    background: var(--color-purple);
    color: var(--color-white);
}
.stories-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.stories-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(90,61,145,0.25);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: width 0.3s ease, background 0.3s ease;
}
.stories-dot.active {
    width: 46px;
    background: rgba(90,61,145,0.18);
}
.stories-dot.active::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    background: var(--color-purple);
    transform-origin: left center;
    animation: storyDotProgress 7.5s linear forwards;
}
.stories-dots.is-paused .stories-dot.active::after {
    animation-play-state: paused;
}
@keyframes storyDotProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
    .stories-dot.active::after { animation: none; transform: scaleX(1); }
}

/* ===== CLINICS NETWORK ===== */
.network-section {
    background: var(--color-white);
}
.network-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 24px;
}
.network-benefit {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding: 22px 0;
}
.network-benefit + .network-benefit {
    border-top: 1px solid var(--color-border);
}
.network-benefit:first-child {
    padding-top: 0;
}
.network-benefit:last-child {
    padding-bottom: 0;
}
.network-benefit strong {
    display: block;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--color-ink);
    line-height: 1.3;
    margin-bottom: 6px;
}
.network-benefit p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}
.network-photo-wrap {
    position: relative;
}
.network-photo-wrap img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: block;
}
.network-google {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: var(--color-white);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(24,50,75,0.2);
}
.network-google-stars {
    color: #F5A623;
    font-size: 1.05rem;
    letter-spacing: 2px;
    line-height: 1;
}
.network-google p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--color-text-light);
    line-height: 1.4;
}
.network-google p strong {
    display: block;
    font-size: 0.9rem;
    color: var(--color-ink);
}
.clinics-directory {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 44px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.clinics-directory[open] {
    border-color: #E4DCF3;
}
.clinics-directory summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 26px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-ink);
    cursor: pointer;
    list-style: none;
}
.clinics-directory summary::-webkit-details-marker { display: none; }
.clinics-directory-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.clinics-directory-title svg {
    color: var(--color-purple);
    flex-shrink: 0;
}
.clinics-directory[open] .faq-icon { transform: rotate(45deg); }
.clinics-directory-body {
    padding: 22px 30px 30px;
    border-top: 1px solid var(--color-border);
}
.clinic-search {
    position: relative;
    max-width: 380px;
    margin-bottom: 20px;
}
.clinic-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
}
.clinic-search input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--color-ink);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.clinic-search input::placeholder {
    color: var(--color-text-light);
}
.clinic-search input:focus {
    border-color: var(--color-purple);
    background: var(--color-white);
}
.clinics-regions {
    columns: 3;
    column-gap: 44px;
}
.clinics-region {
    break-inside: avoid;
    padding-bottom: 20px;
}
.clinics-region h4 {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-purple);
    margin-bottom: 6px;
}
.clinics-region li {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.5;
    padding: 3px 0;
}
.clinics-region li strong {
    color: var(--color-ink);
    font-weight: 700;
}
.clinic-empty {
    padding: 8px 4px 12px;
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.5;
}
.clinic-empty.is-hidden {
    display: none;
}

/* ===== OFFER RECAP ===== */
.offer-section {
    background: var(--color-white);
    color: var(--color-text);
}
.offer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}
.offer-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--color-ink);
    margin-bottom: 26px;
}
.offer-lead {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 28px;
}
.offer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}
.offer-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.5;
}
.offer-list li span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F5F2FB;
    color: var(--color-purple);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.offer-highlight {
    position: relative;
    background: linear-gradient(135deg, #F7F4FC 0%, #F1EBFA 100%);
    border: 1px solid #E4DCF3;
    border-radius: var(--radius-lg);
    padding: 18px 22px 17px;
    margin-bottom: 32px;
    max-width: 480px;
}
.offer-highlight-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-white);
    background: var(--color-purple);
    border-radius: 999px;
    padding: 4px 10px;
}
.offer-highlight-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    margin: 0 64px 10px 0;
}
.offer-highlight-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.offer-highlight-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.92rem;
    color: var(--color-text);
    line-height: 1.5;
}
.offer-highlight-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.58em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-purple);
}
.offer-price-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.offer-price-note {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.55;
}
.offer-price {
    display: flex;
    flex-direction: column;
}
.offer-price-old {
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}
.offer-price-now {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--color-ink);
}
.offer-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
    max-width: 520px;
}
.offer-guarantee svg { flex-shrink: 0; margin-top: 3px; }

/* ===== FAQ ===== */
.faq-section {
    background: linear-gradient(160deg, #241640 0%, #33205C 100%);
}
.faq-section .feature-header-block {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.faq-section .section-tag {
    color: rgba(255,255,255,0.7);
}
.faq-section .h2-display {
    color: var(--color-white);
}
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item:hover {
    background: rgba(255,255,255,0.1);
}
.faq-item[open] {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 26px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-white);
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #F5F2FB;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--color-purple);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-section .faq-icon {
    background: rgba(255,255,255,0.16);
}
.faq-section .faq-icon::before,
.faq-section .faq-icon::after {
    background: var(--color-white);
}
.faq-item p {
    padding: 0 26px 22px;
    font-size: 0.96rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.65;
    max-width: 680px;
}

/* ===== BOOKING FORM CARD ===== */
.booking-form-card {
    background: linear-gradient(150deg, #6D4AA5 0%, #4C3380 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 56px rgba(90,61,145,0.3);
    padding: 34px;
}
.booking-form-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 20px;
}
.booking-form-placeholder {
    min-height: 260px;
    border: 2px dashed rgba(255,255,255,0.35);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
}
.booking-form-placeholder p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.75);
}
.booking-form-note {
    margin-top: 16px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(160deg, #150C28 0%, #1F1338 100%);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 72px;
}
.footer-logo {
    margin-bottom: 36px;
}
.footer-logo img {
    height: 36px;
    width: auto;
    display: block;
}
.footer-info p {
    font-size: 0.92rem;
    line-height: 1.85;
}

/* ===== MOBILE STICKY CTA ===== */
.mobile-cta-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 24px rgba(24,50,75,0.12);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transform: translateY(110%);
    transition: transform 0.3s ease;
}
.mobile-cta-bar.visible {
    transform: translateY(0);
}
.mobile-cta-price {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.mobile-cta-old {
    font-size: 0.78rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}
.mobile-cta-now {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-ink);
}
.mobile-cta-btn {
    background: var(--color-purple);
    color: #fff;
    border: 2px solid var(--color-purple);
    min-height: 48px;
    padding: 0 28px;
    font-size: 0.98rem;
    font-weight: 700;
    flex: 1;
    max-width: 220px;
}
.mobile-cta-btn:hover {
    background: var(--color-purple-hover);
    border-color: var(--color-purple-hover);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-inner { gap: 48px; }
    .metabolic-cycle {
        --cycle-w: min(600px, calc(100vw - 48px));
        --cycle-h: min(470px, calc(100vw - 48px));
    }
    .cycle-node { width: 146px; }
    .symptom-check-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .offer-grid { gap: 44px; }
    .findings-grid { gap: 44px; }
    .network-grid { gap: 32px; }
    .clinics-regions { columns: 2; }
    .stories-side-far { display: none; }
    .story-card { grid-template-columns: 1fr 320px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }
    .nav-links a { color: var(--color-text) !important; }
    .nav-links.active { display: flex; }
    .btn-nav { display: none; }
    .mobile-toggle { display: flex; }

    .hero-dark {
        align-items: flex-start;
        padding: 88px 0 56px;
    }
    .hero h1,
    .hero-title {
        font-size: clamp(42px, 10.1vw, 48px);
    }
    .hero-inner {
        max-width: 760px;
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 30px;
    }
    .hero-media {
        width: calc(100vw - 32px);
        max-width: 620px;
        margin-left: calc(50% - 50vw + 16px);
    }
    .hero-title-stack {
        flex: none;
        width: 100%;
        min-height: 250px;
        justify-content: flex-start;
    }
    .hero-equation {
        top: calc(50% + 148px);
        gap: 12px;
        font-size: clamp(32px, 9vw, 42px);
    }

    .analysis-offer {
        padding: 76px 0 82px;
    }
    .analysis-proof {
        font-size: 0.82rem;
        padding-right: 14px;
    }
    .proof-avatars img {
        width: 28px;
        height: 28px;
    }
    .analysis-title {
        margin-bottom: 34px;
    }
    .analysis-services {
        max-width: 560px;
    }
    .analysis-service {
        grid-template-columns: 86px 1fr;
        gap: 16px;
        padding: 14px 16px 14px 14px;
    }
    .analysis-service-img {
        width: 86px;
        height: 86px;
        border-radius: 14px;
    }
    .analysis-service h3 {
        font-size: 1.08rem;
    }
    .analysis-service p {
        font-size: 0.9rem;
    }
    .analysis-cta-btn {
        min-height: 54px;
        padding: 0 28px;
        font-size: 1rem;
    }

    .section { padding: 72px 0; }
    .feature-header-block { margin-bottom: 36px; }
    .h2-display { font-size: clamp(2rem, 8.5vw, 2.8rem); }
    .why-inner .h2-display { margin-bottom: 16px; }
    .why-lead { font-size: 1.02rem; }

    .cycle-wrap { margin: 44px 0 44px; }
    .metabolic-cycle {
        /* uzly (56px) přesahují okraj kruhu — velikost dopočítaná tak, aby k okrajům displeje zbyly ~3px */
        --cycle-w: min(480px, calc((100vw - 62px) / 0.92));
        --cycle-h: var(--cycle-w);
        margin: 0 calc((100% - var(--cycle-w)) / 2);
    }
    .cycle-node {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
    }
    .cycle-node.is-active::before { border-radius: 50%; }
    .cycle-node-label { display: none; }
    .cycle-node-icon {
        width: auto;
        height: auto;
        background: none;
    }
    .cycle-node.is-active { --s: 1.22; }
    .cycle-node.is-active .cycle-node-icon { background: none; }
    .cycle-center { width: 68%; gap: 6px; top: 47%; }
    .cycle-heading { font-size: 1.05rem; letter-spacing: 1.6px; margin-top: 20px; margin-bottom: 74px; padding: 0 12px; }
    .cycle-step-title { font-size: 1.45rem; min-height: 2.2em; }
    .cycle-step-desc { font-size: 1.05rem; line-height: 1.5; min-height: 4.5em; }
    .cycle-arrow svg { width: 9px; height: 9px; }
    .why-stat-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
        padding: 24px 20px;
    }
    .why-stat-content { align-items: center; }
    .stat-figure svg { width: 20px; height: 20px; }
    .why-stat-btn { width: 100%; max-width: 320px; }

    .symptoms-section { padding: 102px 0; }
    .symptom-check-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .symptom-check-card {
        flex-direction: row;
        align-items: center;
        padding: 16px 18px;
    }
    .symptom-emoji { font-size: 1.5rem; }
    .symptom-text { flex: 1; }
    .symptom-check { margin-top: 0; }
    .symptoms-result {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
        padding: 22px;
    }
    .symptoms-result-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .symptoms-result-count { font-size: 2.1rem; }

    .findings-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 44px; }
    .findings-media { max-width: 440px; margin: 0 auto; }
    .finding-item { grid-template-columns: 38px 1fr; gap: 15px; padding: 20px 0; }
    .finding-icon { width: 38px; height: 38px; }
    .finding-icon svg { width: 18px; height: 18px; }

    .network-grid { grid-template-columns: 1fr; gap: 28px; }
    .network-photo-wrap { order: -1; max-width: 440px; margin: 0 auto; width: 100%; }
    .network-benefit { grid-template-columns: 38px 1fr; gap: 15px; padding: 18px 0; }
    .clinics-directory { margin-bottom: 36px; }
    .clinics-directory summary { padding: 16px 18px; font-size: 0.98rem; }
    .clinics-directory-body { padding: 18px 18px 22px; }
    .clinics-regions { columns: 1; }

    .stories-section { padding: 0 0 150px; }
    .stories-cap { height: 30px; border-radius: 0 0 24px 24px; margin-bottom: 56px; }
    .stories-header { margin-bottom: 40px; }
    .stories-side { display: none; }
    .story-card { grid-template-columns: 1fr; gap: 0; padding: 14px; }
    .story-photo { order: -1; }
    .story-content { padding: 22px 12px 14px; }
    .stories-dots { margin-top: 36px; }

    .offer-grid { grid-template-columns: 1fr; gap: 36px; }
    .offer-price-row { gap: 20px; }
    .booking-form-card { padding: 26px 22px; }

    .footer { padding: 48px 0 56px; }
    .footer-logo { margin-bottom: 28px; }

    .mobile-cta-bar { display: flex; }
}

@media (max-width: 480px) {
    .hero-dark { padding: 88px 0 42px; }
    .hero h1,
    .hero-title {
        font-size: clamp(38px, 10.1vw, 42px);
    }
    .hero-media {
        width: calc(100vw - 24px);
        margin-left: calc(50% - 50vw + 12px);
    }
    .hero-title-stack { min-height: 225px; }
    .hero-equation {
        top: calc(50% + 134px);
        gap: 10px;
        font-size: clamp(30px, 9vw, 38px);
    }
    .analysis-proof {
        align-items: center;
        gap: 8px;
        white-space: normal;
    }
    .analysis-service {
        grid-template-columns: 56px 1fr;
        gap: 6px 14px;
        align-items: center;
        text-align: left;
        padding: 16px;
    }
    /* img, h3 a ul se stanou přímými položkami gridu karty */
    .analysis-service > div { display: contents; }
    .analysis-service-img {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }
    .analysis-service h3 {
        margin: 0;
        font-size: 1.24rem;
        line-height: 1.25;
        max-width: 230px;
    }
    .analysis-service-list {
        grid-column: 1 / -1;
        margin-top: 6px;
    }
    .cycle-node { width: 50px; height: 50px; }
    .cycle-node-icon svg { width: 18px; height: 18px; }
    .cycle-step-title { font-size: 1.3rem; }
    .cycle-step-desc { font-size: 0.98rem; }
    .offer-price-now { font-size: 2.4rem; }
    .story-photo > img { aspect-ratio: 4 / 4.4; }
    .story-quote { font-size: 0.98rem; }
    .faq-item summary { padding: 16px 18px; font-size: 0.98rem; }
    .faq-item p { padding: 0 18px 18px; }
}
