/* ==========================================================================
   Шрифты: локальные копии Google Fonts (кириллица и латиница), OFL
   ========================================================================== */
/* Inter normal 400 600, cyrillic */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter normal 400 600, latin-ext */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter normal 400 600, latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Merriweather italic 300, cyrillic */
@font-face {
    font-family: 'Merriweather';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/merriweather-italic-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Merriweather italic 300, latin-ext */
@font-face {
    font-family: 'Merriweather';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/merriweather-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Merriweather italic 300, latin */
@font-face {
    font-family: 'Merriweather';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/merriweather-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Merriweather normal 300 400, cyrillic */
@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 300 400;
    font-display: swap;
    src: url('../fonts/merriweather-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Merriweather normal 300 400, latin-ext */
@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 300 400;
    font-display: swap;
    src: url('../fonts/merriweather-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Merriweather normal 300 400, latin */
@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 300 400;
    font-display: swap;
    src: url('../fonts/merriweather-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat normal 400 700, cyrillic */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Montserrat normal 400 700, latin-ext */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Montserrat normal 400 700, latin */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   CSS Variables & Design Tokens (William Federico & Premium Aesthetics)
   ========================================================================== */
:root {
    /* Colors */
    --color-dark: #0b1220;
    --color-dark-surface: #131c2c;
    --color-light: #ffffff;
    --color-light-surface: #f4f7f6;
    --color-accent: #c5a880; /* Muted Gold из DESIGN.md, в тон тёплому свету на фото */
    --color-accent-ink: #85663a; /* то же золото для текста и иконок на светлом фоне, контраст 4,5+ */
    --color-accent-hover: #d6c09c;
    --color-text-dark: #cbd5e1;
    --color-text-light: #334155;
    --color-muted-dark: #94a3b8;  /* второстепенный текст на тёмном */
    --color-muted-light: #526175; /* второстепенный текст на светлом */
    --color-heading-light: #0f172a;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-serif: 'Merriweather', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Spacing & Layout */
    --section-pad: 6rem 0;
    --container-width: 1200px;
    --radius-lg: 24px;
    --radius-md: 12px;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Base Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--color-text-light);
    -webkit-font-smoothing: antialiased;
    background-color: var(--color-light);
    overflow-x: hidden;
}

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.25rem, 3.6vw, 3.4rem); margin-bottom: 1.5rem; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 1rem; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.25rem; font-weight: 400; margin-bottom: 1.5rem; }
.subheader { font-size: 1.125rem; font-family: var(--font-serif); font-style: italic; color: var(--color-muted-light); margin-bottom: 3rem; }
.dark-section .subheader { color: #94a3b8; }
.section-label {
    display: inline-block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}
.site-header.scrolled {
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0.75rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-light);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.header-logo:hover { color: var(--color-accent); }
.header-descriptor {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--color-muted-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.header-nav a {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}
.header-nav a:not(.btn):hover { color: var(--color-light); }
.header-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}
.header-nav a:not(.btn):hover::after { width: 100%; }

.btn-nav {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Burger */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 210;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-light);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================================================
   Layout & Structure
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.wrapper {
    /* Using native scroll-timeline if supported */
    view-timeline: --page-scroll;
}

.layer {
    padding: var(--section-pad);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Themes */
.dark-section {
    background-color: var(--color-dark);
    color: var(--color-text-dark);
}
.dark-section h1, .dark-section h2, .dark-section h3 { color: var(--color-light); }
.light-section {
    background-color: var(--color-light-surface);
    color: var(--color-text-light);
}

/* Background Numbering (William Federico Style) */
.bg-num {
    position: absolute;
    bottom: -5%;
    right: -2%;
    font-size: 30vw;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    pointer-events: none;
    user-select: none;
}
.dark-num { color: rgba(0, 0, 0, 0.03); }

/* ==========================================================================
   Components: Glassmorphism & Cards
   ========================================================================== */
.glass-card, .glassmorphism, .glassmorphism-dark {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}
.glassmorphism-dark {
    background: rgba(11, 18, 32, 0.8);
    border: 1px solid rgba(255,255,255,0.05);
}
.glassmorphism-dark h3 { color: var(--color-light); }
.glassmorphism-dark p { color: var(--color-text-dark); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary {
    background: var(--color-accent);
    color: var(--color-dark);
    border: none;
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
}
.btn-outline:hover { background: var(--color-dark); color: var(--color-light); }

/* ==========================================================================
   Sections Specifics
   ========================================================================== */

/* Hero */
.hero {
    min-height: 100vh;
    padding: 7rem 0 5rem;
}
.parallax-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 120%;
    background: radial-gradient(circle at 70% 30%, rgba(20, 27, 38, 1) 0%, rgba(11, 18, 32, 1) 100%);
    z-index: 1;
}
/* Fallback parallax using JS */
.parallax-bg.js-parallax { transition: transform 0.1s linear; }

.hero-grid {
    align-items: center;
}
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}
.hero-large-photo {
    width: 100%;
    max-width: 500px;
    height: 650px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.hero-badge {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.hero-badge strong { color: var(--color-accent); font-family: var(--font-heading); font-size: 1.125rem; }
.hero-badge span { color: var(--color-text-dark); font-size: 0.875rem; }

.hero-content { max-width: 800px; margin: 0; }
.cta-group { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-micro { font-size: 0.875rem; opacity: 0.7; }

/* Grid Cards */
.cards-grid, .grid-2x2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card-icon { font-size: 3rem; color: var(--color-accent); margin-bottom: 1rem; }
.tag-audience {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    font-size: 0.875rem;
    margin-top: 1rem;
    color: var(--color-accent);
}

/* Queries Section */
.queries-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: 20%;
}
.queries-bento {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}
.query-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-text-dark);
}
.query-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: var(--color-light);
}
.query-card .icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    opacity: 0.8;
    transition: all 0.3s ease;
}
.query-card:hover .icon {
    opacity: 1;
    transform: scale(1.1);
}
.query-card span {
    font-weight: 500;
    line-height: 1.4;
    font-size: 1.05rem;
}

.quote-block { border-left: 4px solid var(--color-accent); font-family: var(--font-serif); font-size: 1.125rem; font-style: italic; }
.quote-icon { font-size: 2rem; color: var(--color-accent); margin-bottom: 1rem; }

/* Split Sections */

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.parallax-image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 600px;
}
.parallax-image {
    width: 100%;
    height: 120%; /* For parallax bleed */
    object-fit: cover;
    position: absolute;
    top: -10%;
}
.about-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.125rem;
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
}
.feature-list { list-style: none; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.feature-list .icon { color: var(--color-accent); font-size: 1.5rem; flex-shrink: 0; }

/* Formats */
.formats-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.format-card { padding: 2rem; border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius-md); height: 100%; }
.duration { margin-top: 1rem; font-weight: 600; color: var(--color-accent); }
.highlight-format { border: none; }

/* Pricing & Confidentiality (Premium Box) */
.align-stretch { align-items: stretch; }
.premium-box {
    padding: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}
.premium-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.5;
}
.premium-list .icon { font-size: 1.5rem; color: var(--color-accent); margin-top: 0.25rem; }
.rounded-image { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--glass-shadow); }

.price-box { border: 1px solid rgba(197, 168, 128, 0.2); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.25rem; font-family: var(--font-heading); }
.price-row .dots { flex-grow: 1; border-bottom: 1px dashed rgba(255,255,255,0.2); margin: 0 1rem; }
.price-title { font-weight: 600; }
.price-val { font-weight: 700; color: var(--color-light); }
.price-hint { font-size: 0.9rem; color: #94a3b8; margin-top: 0.25rem; }
.price-row.highlight .price-title, .price-row.highlight .price-val { color: var(--color-accent); }

.comparison-card {
    background: rgba(255,255,255,0.03);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.comparison-card.accent { background: rgba(197, 168, 128, 0.1); border: 1px solid rgba(197, 168, 128, 0.3); }
.comparison-card strong { color: var(--color-light); font-family: var(--font-heading); }
.comparison-card.accent strong { color: var(--color-accent); }

/* Footer & CTA */
.cta-final { flex-direction: column; justify-content: center; position: relative; }
.relative-z { position: relative; z-index: 2; }
.final-card { padding: 4rem; max-width: 900px; margin: 0 auto; text-align: center; }
.huge-title { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 1rem; color: var(--color-light); }
.btn-large { padding: 1.25rem 2.5rem; font-size: 1.125rem; }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.5); color: var(--color-light); }
.btn-outline-light:hover { background: var(--color-light); color: var(--color-dark); }
.cta-flex { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin: 2.5rem 0 1.5rem; }

.site-footer { width: 100%; text-align: center; padding: 3rem 0; background-color: var(--color-dark); border-top: 1px solid rgba(255,255,255,0.05); }
.dark-footer { color: #94a3b8; }
.dark-footer a { color: var(--color-accent); text-decoration: none; }

/* Utilities */
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

/* ==========================================================================
   Quiz Section
   ========================================================================== */
.quiz-section { min-height: 100vh; }
.quiz-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Progress Bar */
.quiz-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.quiz-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent), #dcc7a4);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.quiz-step-indicator {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-muted-dark);
    margin-bottom: 2.5rem;
}

/* Steps */
.quiz-step {
    display: none;
    animation: quizFadeIn 0.5s ease forwards;
}
.quiz-step.active { display: block; }
@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.quiz-step h2 { margin-bottom: 2rem; }

/* Options Grid (Step 1 — many options) */
.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

/* Options List (Steps 2–4 — fewer options) */
.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

/* Option Button */
.quiz-option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: var(--color-text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-family: var(--font-body);
}
.quiz-option .icon {
    font-size: 2rem;
    color: var(--color-accent);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.quiz-option strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-light);
    font-weight: 600;
}
.quiz-option span {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Hover */
.quiz-option:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.quiz-option:hover .icon { opacity: 1; }

/* Selected */
.quiz-option.selected {
    background: rgba(197, 168, 128, 0.12);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent), 0 8px 25px rgba(0,0,0,0.3);
}
.quiz-option.selected .icon { opacity: 1; }

/* "Other" option — spans full width */
.quiz-option-other { grid-column: 1 / -1; }

/* List options — horizontal layout */
.quiz-options-list .quiz-option {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
}
.quiz-options-list .quiz-option .icon { flex-shrink: 0; }
.quiz-options-list .quiz-option strong { margin: 0; }

/* Result */
.quiz-result-card {
    text-align: center;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}
.quiz-result-icon .icon {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}
.quiz-result-main {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}
.quiz-result-modifier {
    font-family: var(--font-serif);
    font-style: italic;
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 2rem;
}
.quiz-result-cta { margin-top: 1.5rem; }

/* ==========================================================================
   Dot Navigation (Scroll Spy)
   ========================================================================== */
.dot-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(128,128,128,0.5);
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}
.dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.3);
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
    .header-nav { gap: 1.25rem; }
    .header-nav a { font-size: 0.75rem; }
    .btn-nav { font-size: 0.7rem; padding: 0.5rem 1rem; }
}

@media (max-width: 992px) {
    .split-grid, .formats-layout { grid-template-columns: 1fr; gap: 3rem; }
    .parallax-image-container { height: 400px; }
    .dot-nav { display: none; }
    .queries-left { position: relative; top: 0; margin-bottom: 1rem; }
    .hero-visual { justify-content: center; margin-top: 2rem; }
    .bg-num { font-size: 25vw; right: 0; } /* Prevent horizontal overflow */
}

@media (max-width: 768px) {
    .layer { padding: 4rem 0; min-height: auto; }
    .hero { min-height: auto; padding: 5rem 0 3rem; } /* Let content define height */

    .container { padding: 0 1.25rem; }

    /* Header Mobile */
    .burger { display: block; }
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: rgba(11, 18, 32, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 2rem;
        padding: 3rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 200;
        border-left: 1px solid rgba(255,255,255,0.05);
    }
    .header-nav.open { right: 0; }
    .header-nav a {
        font-size: 1.1rem;
        text-transform: none;
        letter-spacing: 0;
    }
    .btn-nav { width: 100%; text-align: center; margin-top: 1rem; }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }
    .lead { font-size: 1.05rem; }
    .subheader { font-size: 1rem; margin-bottom: 1.5rem; }

    /* Background numbers — hide on mobile, they're decorative */
    .bg-num { display: none; }

    /* Hero Adjustments */
    .hero-large-photo { height: 350px; max-width: 100%; }
    .hero-badge { left: 1rem; bottom: 1rem; padding: 0.75rem 1rem; }
    .hero-text { order: 1; } /* Text first on mobile */
    .hero-visual { order: 2; } /* Photo second on mobile */

    /* CTAs — full-width, thumb-friendly */
    .cta-flex { flex-direction: column; gap: 1rem; align-items: stretch; }
    .cta-flex .btn, .cta-group .btn { width: 100%; justify-content: center; }
    .cta-group { flex-direction: column; align-items: stretch; gap: 1rem; }
    .btn-large { padding: 1rem 1.5rem; font-size: 1rem; }

    /* Padding Adjustments */
    .glass-card, .glassmorphism, .glassmorphism-dark { padding: 1.5rem; }
    .premium-box { padding: 1.5rem; }
    .final-card { padding: 2rem 1.25rem; }

    /* Cards grid — prevent overflow on small screens (320px) */
    .cards-grid, .grid-2x2 { grid-template-columns: 1fr; }

    /* Queries bento — single column on phones */
    .queries-bento { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .query-card { padding: 1rem; }
    .query-card .icon { font-size: 2rem; }
    .query-card span { font-size: 0.95rem; }

    /* Formats */
    .formats-layout { grid-template-columns: 1fr; }

    /* Lists and Details */
    .premium-list li, .clean-list li { font-size: 1rem; }
    .feature-list li { font-size: 0.95rem; }
    .price-row { font-size: 1.05rem; }
    .price-row .dots { display: none; } /* Hide dots to avoid layout break */
    .price-val { white-space: nowrap; }
    .rounded-image { height: 220px; }

    /* Quiz */
    .quiz-section { min-height: auto; }
    .quiz-wrapper { max-width: 100%; }
    .quiz-options-grid { grid-template-columns: 1fr 1fr; }
    .quiz-option { padding: 1rem; }
    .quiz-option strong { font-size: 0.95rem; }
    .quiz-option span { font-size: 0.8rem; }
    .quiz-result-card { padding: 2rem 1.25rem; }
    .quiz-result-main { font-size: 1rem; }
    .quiz-options-list { max-width: 100%; }

    /* Disable hover effects for touch (they "stick" on mobile) */
    .query-card:hover, .quiz-option:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 400px) {
    /* Very small phones (iPhone SE, Galaxy S8) */
    .container { padding: 0 1rem; }
    h1 { font-size: 1.75rem; }
    .hero-large-photo { height: 280px; }
    .queries-bento { grid-template-columns: 1fr; }
    .query-card { flex-direction: row; align-items: center; padding: 1rem; }
    .query-card .icon { font-size: 1.5rem; flex-shrink: 0; }

    /* Quiz — single column on tiny screens */
    .quiz-options-grid { grid-template-columns: 1fr; }
    .quiz-option { flex-direction: row; align-items: center; gap: 1rem; padding: 1rem; }
    .quiz-option .icon { font-size: 1.5rem; flex-shrink: 0; }
}

/* ==========================================================================
   v3: блоки, возвращённые из согласованного текста v2.2
   ========================================================================== */
html { scroll-padding-top: 80px; }
.layer-auto { min-height: auto; }
.align-start { align-items: start; }
.text-center { text-align: center; }

/* Голоса под первым экраном */
.voc-strip { padding: 3rem 0 3.5rem; border-top: 1px solid rgba(255,255,255,0.05); position: relative; }
.voc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.voc-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-light);
    border-left: 2px solid var(--color-accent);
    padding-left: 1.25rem;
}
.voc-caption { margin: 2rem 0 0; font-size: 0.95rem; color: #94a3b8; }

/* Половое воспитание детей */
.kids-card { display: flex; gap: 2rem; align-items: flex-start; margin-top: 4rem; }
.kids-card .card-icon { flex-shrink: 0; margin-bottom: 0; }
.kids-card h3 { color: var(--color-light); }
.kids-card .section-label { margin-bottom: 0.5rem; }
.kids-note { font-family: var(--font-serif); font-style: italic; color: #94a3b8; margin-bottom: 0; }

/* Первая встреча */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.timeline-step {
    background: var(--color-light);
    border: 1px solid rgba(0,0,0,0.06);
    border-top: 3px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.timeline-time { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--color-dark); margin-bottom: 0.75rem; }
.timeline-step p { margin: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.fact { display: flex; gap: 1rem; align-items: flex-start; }
.fact .icon { font-size: 2rem; color: var(--color-accent); flex-shrink: 0; }
.fact p { margin: 0; }

/* Сравнительные таблицы */
.compare-table, .wait-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare-table th, .wait-table th {
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    padding: 0 1rem 1rem 0;
}
.compare-table td, .wait-table td { padding: 1rem 1rem 1rem 0; vertical-align: top; }
.compare-table td { border-top: 1px solid rgba(255,255,255,0.08); }
.compare-table strong { color: var(--color-light); }
.wait-table td { border-top: 1px solid rgba(0,0,0,0.08); }
.table-note { font-family: var(--font-serif); font-style: italic; color: #94a3b8; margin-top: 1.5rem; }
.light-section .table-note { color: var(--color-muted-light); }

/* Таблетки */
.pill-card { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; margin-top: 4rem; }
.pill-sub { font-family: var(--font-serif); font-style: italic; color: #94a3b8; }
.pill-compare .comparison-card span { color: var(--color-text-dark); }
.pill-note { font-size: 0.9rem; color: #94a3b8; margin: 0; }

/* Если партнёр не готов */
.partner-block {
    margin-top: 4rem;
    background: var(--color-light);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: 3rem;
}
.partner-block h3 { color: var(--color-dark); }
.partner-sub { color: var(--color-muted-light); }
.points-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; margin: 2rem 0; }
.point { border-left: 2px solid var(--color-accent); padding-left: 1.25rem; }
.point strong { display: block; color: var(--color-dark); margin-bottom: 0.25rem; }
.partner-note { font-family: var(--font-serif); font-style: italic; margin: 0; }

/* Аккордеоны: мифы и FAQ */
.accordion details { border-bottom: 1px solid rgba(255,255,255,0.08); }
.light-section .accordion details { border-bottom-color: rgba(0,0,0,0.08); }
.accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 2.5rem 1.25rem 0;
    position: relative;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
}
.accordion summary::-webkit-details-marker { display: none; }
.dark-section .accordion summary { color: var(--color-light); }
.light-section .accordion summary { color: var(--color-dark); }
.accordion summary::after {
    content: '+';
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion details p { padding: 0 2.5rem 1.25rem 0; margin: 0; }
.accordion summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.faq-list { max-width: 860px; }

/* Что я не обещаю */
.promise-list { list-style: none; margin: 1.5rem 0; }
.promise-list li { margin-bottom: 1rem; padding-left: 1.5rem; position: relative; }
.promise-list li::before { content: '×'; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
.promise-list strong { color: var(--color-light); }
.promise-final { font-family: var(--font-serif); font-style: italic; color: var(--color-light); margin: 0; }

/* Если подождать */
.wait-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.wait-step { border-top: 3px solid rgba(197, 168, 128, 0.35); padding-top: 1.25rem; }
.wait-step:nth-child(3) { border-top-color: rgba(197, 168, 128, 0.65); }
.wait-step:nth-child(4) { border-top-color: var(--color-accent); }
.wait-when { display: block; font-family: var(--font-heading); font-weight: 700; color: var(--color-dark); margin-bottom: 0.5rem; }
.wait-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; }
.wait-cta p { margin: 0; font-size: 1.1rem; color: var(--color-dark); font-weight: 600; max-width: 640px; }

/* Тест */
.quiz-wrapper { scroll-margin-top: 90px; }
.quiz-intro { margin-bottom: 2rem; }
.quiz-intro .section-label { margin-bottom: 0.5rem; }
.quiz-intro-text { color: #94a3b8; margin: 0; }
.quiz-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.quiz-topbar .quiz-step-indicator { margin-bottom: 0; margin-left: auto; }
.quiz-back, .quiz-restart {
    background: none;
    border: none;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0;
}
.quiz-back:hover, .quiz-restart:hover { text-decoration: underline; }
.quiz-hint { color: #94a3b8; margin: -1.25rem 0 1.5rem; }
.quiz-step h2:focus { outline: none; }
.quiz-noscript { margin-bottom: 1.5rem; color: var(--color-text-dark); }
.quiz-noscript a { color: var(--color-accent); }
.result-block { text-align: left; margin-bottom: 1.5rem; }
.result-block .result-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}
.result-block p { margin-bottom: 0.5rem; }
.result-block .quiz-result-modifier { margin-bottom: 0; }
.quiz-alt { font-size: 0.9rem; color: #94a3b8; margin: 1rem 0 0.5rem; }
.quiz-alt a { color: var(--color-accent); }

/* Стоимость и конфиденциальность */
.payment-note { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: var(--color-text-dark); margin-top: 1.5rem; }
.payment-note .icon { font-size: 1.5rem; color: var(--color-accent); flex-shrink: 0; }
.confidential-final { font-family: var(--font-serif); font-style: italic; color: var(--color-light); }

/* Запись: три входа */
.final-title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--color-light); margin-bottom: 1rem; }
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2.5rem 0 1rem; text-align: left; }
.entry-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    text-decoration: none;
    color: var(--color-text-dark);
    transition: all 0.3s ease;
}
.entry-card:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.entry-card .icon { font-size: 2rem; color: var(--color-accent); }
.entry-card strong { font-family: var(--font-heading); color: var(--color-light); font-size: 1.05rem; }
.entry-card span { font-size: 0.9rem; }
.entry-card-accent { background: rgba(197, 168, 128, 0.1); border-color: rgba(197, 168, 128, 0.4); }

@media (max-width: 992px) {
    .voc-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .timeline, .wait-steps { grid-template-columns: 1fr 1fr; }
    .facts-grid, .entry-grid { grid-template-columns: 1fr; }
    .pill-card { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
    .voc-strip { padding: 2rem 0 2.5rem; }
    .kids-card { flex-direction: column; gap: 0.5rem; margin-top: 2.5rem; }
    .timeline, .wait-steps, .points-grid { grid-template-columns: 1fr; }
    .partner-block { padding: 1.5rem; margin-top: 2.5rem; }
    .pill-card { margin-top: 2.5rem; }

    /* Таблицы превращаются в карточки */
    .compare-table thead, .wait-table thead { display: none; }
    .compare-table tr, .wait-table tr { display: block; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.08); }
    .wait-table tr { border-top-color: rgba(0,0,0,0.08); }
    .compare-table td, .wait-table td { display: block; position: relative; border: none; padding: 0.25rem 0 0.25rem 8.5rem; }
    .compare-table td::before, .wait-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 7.5rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--color-accent);
        padding-top: 0.15rem;
    }
    .compare-table td:first-child { color: var(--color-light); }
    .wait-table td:first-child { color: var(--color-dark); font-weight: 600; }

    .accordion summary { font-size: 1rem; padding-right: 2rem; }
    .accordion details p { padding-right: 0; }
    .wait-cta .btn { width: 100%; justify-content: center; }
    .final-title { font-size: 1.5rem; }
    .split-grid > * { min-width: 0; }
    .premium-box h2 { font-size: 1.4rem; hyphens: auto; }

    /* Закрытое мобильное меню недоступно с клавиатуры */
    .header-nav { visibility: hidden; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s; }
    .header-nav.open { visibility: visible; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s; }
}

@media (max-width: 400px) {
    /* Варианты теста не распирают сетку на самых узких экранах */
    .quiz-options-grid { grid-template-columns: minmax(0, 1fr); }
    .quiz-options-grid .quiz-option { flex-wrap: wrap; column-gap: 0.75rem; row-gap: 0.25rem; }
    .quiz-options-grid .quiz-option span { flex-basis: 100%; padding-left: 2.25rem; }
}

.nowrap { white-space: nowrap; }


/* ==========================================================================
   v4: полировка под реальные фото, контраст и единый ритм
   ========================================================================== */

/* Кнопка в шапке: спокойный контур вместо второй жёлтой плашки рядом с главной кнопкой */
.header-nav .btn-nav {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid rgba(197, 168, 128, 0.55);
    text-transform: none;
    letter-spacing: 0.2px;
    font-size: 0.875rem;
    padding: 0.6rem 1.35rem;
}
.header-nav .btn-nav:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-dark);
    transform: none;
}
.btn-primary { box-shadow: 0 8px 24px rgba(197, 168, 128, 0.18); }
.btn:focus-visible, .header-nav a:focus-visible, .entry-card:focus-visible, .quiz-option:focus-visible, .quiz-back:focus-visible, .quiz-restart:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Заголовки секций: одинаковый отступ до контента */
.section-header { margin-bottom: 3.5rem; max-width: 780px; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header h2:last-child { margin-bottom: 0; }
.section-header .subheader { margin-bottom: 0; }

/* Светлые секции: тёмные заголовки, бронзовое золото для мелкого текста */
.light-section h2, .light-section h3 { color: var(--color-heading-light); }
.light-section .section-label,
.light-section .duration,
.light-section .wait-table th,
.light-section .wait-table td::before,
.light-section .accordion summary::after,
.light-section .fact .icon,
.light-section .feature-list .icon,
.light-section .card-icon { color: var(--color-accent-ink); }
.subtitle { color: var(--color-muted-light); font-weight: 500; }

/* Карточки на светлом фоне: белые, а не мутно-серое стекло */
.light-section .card.glassmorphism-dark {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.light-section .card.glassmorphism-dark h3 { color: var(--color-heading-light); }
.light-section .card.glassmorphism-dark p { color: var(--color-text-light); }
.light-section .tag-audience { background: rgba(197, 168, 128, 0.16); color: var(--color-accent-ink); }
.format-card { background: #fff; border-color: rgba(15, 23, 42, 0.08); }
.light-section .highlight-format {
    background: var(--color-dark);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(11, 18, 32, 0.22);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.light-section .highlight-format .card-icon { color: var(--color-accent); }
.light-section .highlight-format h3 { color: var(--color-light); }
.light-section .highlight-format p { color: var(--color-text-dark); }

/* Фото */
.hero-large-photo { object-position: 50% 18%; }
.parallax-image { object-position: 50% 12%; }
.rounded-image { height: 320px; object-position: 50% 45%; }
.session-photo {
    display: block;
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: 62% 40%;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: 0 20px 50px rgba(11, 18, 32, 0.18);
}
.final-avatar {
    display: block;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 2px solid var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.final-sign { font-family: var(--font-heading); font-size: 0.85rem; color: var(--color-muted-dark); margin-bottom: 1.5rem; letter-spacing: 0.3px; }

/* Подвал */
.site-footer .container > p { margin-bottom: 0.5rem; }
.footer-facts { color: var(--color-text-dark); }

@media (min-width: 993px) {
    .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }
}

@media (max-width: 768px) {
    .section-header { margin-bottom: 2rem; }
    .hero { padding: 5.5rem 0 3rem; }
    .header-nav .btn-nav { background: var(--color-accent); color: var(--color-dark); border-color: var(--color-accent); justify-content: center; }
    .hero-large-photo { height: 420px; }
    .session-photo { height: 240px; margin-bottom: 2rem; }
    .rounded-image { height: 240px; }
}
@media (max-width: 400px) {
    .hero-large-photo { height: 360px; }
}

@media (min-width: 769px) {
    .premium-box h2 { font-size: clamp(1.75rem, 2.4vw, 2.2rem); }
}

/* Секции не прокручиваются изнутри программно (scrollIntoView, якоря), фон и цифры просто обрезаются */
.layer { overflow: clip; }

@media (max-width: 768px) {
    .hero-badge { left: 0.75rem; bottom: 0.75rem; max-width: calc(100% - 1.5rem); padding: 0.6rem 0.9rem; }
    .hero-badge strong { font-size: 1rem; }
    .hero-badge span { font-size: 0.8rem; }
}

/* ==========================================================================
   Форма записи
   ========================================================================== */
.lead-form {
    text-align: left;
    margin: 2.5rem auto 0;
    max-width: 640px;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(197, 168, 128, 0.35);
    background: rgba(11, 18, 32, 0.55);
    scroll-margin-top: 90px;
}
.lead-title { font-size: 1.35rem; color: var(--color-light); margin-bottom: 0.5rem; }
.lead-sub { color: var(--color-muted-dark); font-size: 0.95rem; margin-bottom: 1.5rem; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-wide { grid-column: 1 / -1; }
.field-label { font-size: 0.875rem; color: var(--color-text-dark); font-weight: 500; }
.field-label em { font-style: normal; color: var(--color-muted-dark); font-weight: 400; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"], .lead-form select, .lead-form textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--color-light);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lead-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-accent) 50%), linear-gradient(135deg, var(--color-accent) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.25rem; }
.lead-form select option { color: #0b1220; }
.lead-form textarea { resize: vertical; min-height: 88px; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #64748b; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2); }
.lead-form [aria-invalid="true"] { border-color: #f08b7a; }
.field-error { display: block; min-height: 0; font-size: 0.85rem; color: #f5a596; }
.field-error:empty { display: none; }
.lead-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1.25rem; font-size: 0.95rem; color: var(--color-text-dark); cursor: pointer; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--color-accent); flex-shrink: 0; }
.consent a, .lead-legal a, .lead-status a { color: var(--color-accent); }
.lead-legal { font-size: 0.85rem; color: var(--color-muted-dark); margin: 0.5rem 0 1.25rem; }
.lead-submit { width: 100%; justify-content: center; border: none; }
.lead-submit:disabled { opacity: 0.7; cursor: wait; transform: none; }
.lead-status { margin: 1rem 0 0; font-size: 0.95rem; }
.lead-status:empty { display: none; }
.lead-status.is-error { color: #f5a596; }
.lead-done { text-align: center; padding: 1rem 0; outline: none; }
.lead-done p { color: var(--color-text-dark); margin: 0; }
.site-footer .legal a { color: var(--color-muted-dark); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 768px) {
    .lead-form { padding: 1.25rem; }
    .lead-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Страницы политики и согласия
   ========================================================================== */
.legal-page { background: var(--color-light-surface); color: var(--color-text-light); }
.legal-header { background: var(--color-dark); padding: 1.25rem 0; }
.legal-header a { color: var(--color-light); text-decoration: none; font-family: var(--font-heading); font-weight: 700; }
.legal-header span { display: block; font-size: 0.7rem; color: var(--color-muted-dark); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 400; }
.legal-main { max-width: 780px; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; }
.legal-main h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); color: var(--color-heading-light); }
.legal-main h2 { font-size: 1.2rem; color: var(--color-heading-light); margin: 2rem 0 0.75rem; letter-spacing: 0; }
.legal-main ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-main li { margin-bottom: 0.4rem; }
.legal-main a { color: var(--color-accent-ink); }
.legal-meta { color: var(--color-muted-light); font-size: 0.9rem; }

.field-note { font-size: 0.8rem; color: var(--color-muted-dark); }
