/* ========================================================================
   Оперплан — landing page styles
   Палитра: бирюзово-синий #1B6B93 + мятный #4FB6A5 + песочный #F7F5F0
   ======================================================================== */

:root {
    --color-primary: #1B6B93;
    --color-primary-dark: #0F4C6E;
    --color-primary-light: #2A8AB8;
    --color-accent: #4FB6A5;
    --color-accent-dark: #2E8F7F;
    --color-bg: #F7F5F0;
    --color-bg-alt: #ECE8DE;
    --color-surface: #FFFFFF;
    --color-text: #1F2937;
    --color-text-muted: #5B6470;
    --color-text-soft: #8A8F98;
    --color-border: #E4E1D8;
    --color-danger: #D9534F;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(15, 43, 61, 0.06);
    --shadow-md: 0 8px 32px rgba(15, 43, 61, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 43, 61, 0.12);

    --container: 1240px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-heading: 'Onest', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img, svg { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.125rem; }

p { color: var(--color-text-muted); }
.lead { font-size: 1.125rem; color: var(--color-text-muted); line-height: 1.6; }

/* ============ Layout ============ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: 96px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}
.section-subtitle {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
    margin-bottom: 16px;
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid transparent;
}
.btn--primary {
    background: var(--color-primary);
    color: #fff;
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff;
}
.btn--accent {
    background: var(--color-accent);
    color: #fff;
}
.btn--accent:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); }
.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
}
.btn--ghost {
    background: rgba(27, 107, 147, 0.08);
    color: var(--color-primary);
}
.btn--ghost:hover { background: rgba(27, 107, 147, 0.14); }
.btn--lg { padding: 18px 36px; font-size: 1.0625rem; }

/* ============ Header ============ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(247, 245, 240, 0.82);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}
.header.is-scrolled {
    background: rgba(247, 245, 240, 0.95);
    border-bottom-color: var(--color-border);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.header__logo img { height: 36px; width: auto; }

.header__nav {
    display: flex;
    gap: 36px;
    list-style: none;
}
.header__nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 8px 0;
}
.header__nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}
.header__nav a:hover::after { width: 100%; }

.header__actions { display: flex; gap: 12px; align-items: center; }

.menu-btn {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(27, 107, 147, 0.08);
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
    display: block;
    width: 20px; height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    position: relative;
    transition: all var(--transition);
}
.menu-btn span::before,
.menu-btn span::after {
    content: '';
    position: absolute;
    left: 0;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after  { top: 6px; }
.menu-btn.is-open span { background: transparent; }
.menu-btn.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-btn.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero {
    /* Ровняем hero ровно по области под шапкой (72px) + внутренний воздух */
    min-height: 100vh;
    padding: 96px 0 48px; /* 72 (шапка) + 24 воздуха */
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at top right, rgba(79, 182, 165, 0.18), transparent 55%),
                radial-gradient(ellipse at bottom left, rgba(27, 107, 147, 0.12), transparent 60%),
                var(--color-bg);
    display: flex;
    align-items: flex-start;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}
.hero .eyebrow { margin-bottom: 24px; }
.hero__title {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.025em;
}
.hero__title em {
    display: inline-block;
}
.hero__title em {
    font-style: normal;
    color: var(--color-primary);
    position: relative;
    white-space: nowrap;
}
.hero__title em::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 10px;
    background: rgba(79, 182, 165, 0.35);
    border-radius: 4px;
    z-index: -1;
}
.hero__lead {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    max-width: 480px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__badges {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: nowrap;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1.5px solid var(--color-accent);
    border-radius: 999px;
    background: rgba(79, 182, 165, 0.08);
    color: var(--color-text);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: all var(--transition);
}
.hero__badge:hover {
    background: rgba(79, 182, 165, 0.16);
}
.hero__badge svg { color: var(--color-accent); flex-shrink: 0; }

/* Бейджи магазинов — мягкий outline-вариант, без громкой заливки */
.hero__platforms {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: transparent;
    color: var(--color-text);
    border-radius: 10px;
    line-height: 1;
    border: 1px solid var(--color-text-soft);
}
.store-badge__icon {
    flex-shrink: 0;
}
.store-badge__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.store-badge__line1 {
    font-size: 0.6875rem;
    font-weight: 400;
    opacity: 0.9;
}
.store-badge__line2 {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============ Phone mockup ============ */
.phone {
    width: 270px;
    max-width: 100%;
    background: #0F2B3D;
    border-radius: 44px;
    padding: 10px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05) inset;
    position: relative;
}
.phone::before {
    content: '';
    position: absolute;
    top: 20px; left: 50%;
    transform: translateX(-50%);
    width: 86px; height: 18px;
    background: #0F2B3D;
    border-radius: 999px;
    z-index: 2;
}
.phone__screen {
    background: linear-gradient(180deg, #F7F5F0 0%, #E8F3F0 100%);
    border-radius: 34px;
    aspect-ratio: 9 / 19;
    padding: 48px 16px 16px;
    overflow: hidden;
    position: relative;
}
/* Вариант экрана для живого GIF/видео */
.phone__screen--media {
    padding: 0;
    background: #000;
}
.phone__screen--media img,
.phone__screen--media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.phone__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.phone__header-title { font-weight: 700; color: #1F2937; font-size: 0.9rem; }
.phone__avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4FB6A5, #1B6B93);
}
.phone__card {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(15,43,61,0.06);
}
.phone__card-title { font-size: 0.75rem; font-weight: 600; color: #1F2937; margin-bottom: 8px; }
.phone__progress {
    height: 8px;
    background: #ECE8DE;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}
.phone__progress-fill {
    height: 100%;
    width: 68%;
    background: linear-gradient(90deg, #4FB6A5, #1B6B93);
    border-radius: 999px;
}
.phone__progress-label { font-size: 0.65rem; color: #8A8F98; }
.phone__row { display: flex; gap: 8px; margin-bottom: 12px; }
.phone__row .phone__card { flex: 1; margin-bottom: 0; }
.phone__stat-value { font-size: 1.2rem; font-weight: 700; color: #1B6B93; }
.phone__stat-label { font-size: 0.6rem; color: #8A8F98; margin-top: 2px; }
.phone__nav {
    position: absolute;
    left: 12px; right: 12px; bottom: 12px;
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 4px 16px rgba(15,43,61,0.08);
}
.phone__nav-item {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: #F7F5F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A8F98;
}
.phone__nav-item.is-active {
    background: rgba(79,182,165,0.16);
    color: #1B6B93;
}

/* Decorative blob around phone */
.hero__visual::before {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,182,165,0.2), transparent 70%);
    z-index: -1;
}

/* ============ Problem / "Знакомая история" ============ */
.problem {
    background: var(--color-bg);
}
.problem__cloud {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    min-height: 340px;
}
.problem__bubble {
    display: inline-flex;
    padding: 12px 20px;
    background: #fff;
    border-radius: 999px;
    font-weight: 500;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin: 6px;
    font-size: 0.9375rem;
    transition: transform var(--transition);
}
.problem__bubble:hover { transform: translateY(-2px); border-color: var(--color-accent); }
.problem__bubble--accent {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff; border-color: transparent;
    font-weight: 600;
}
.problem__bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 880px;
    margin: 0 auto;
}
.problem__summary {
    margin-top: 56px;
    text-align: center;
    max-width: 680px;
    margin-left: auto; margin-right: auto;
}

/* ============ Solution ============ */
.solution {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}
.solution__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}
.solution__card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.solution__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}
.solution__card-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(79,182,165,0.2), rgba(27,107,147,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.solution__card h3 { margin-bottom: 12px; }
.solution__card ul { list-style: none; margin-top: 16px; }
.solution__card li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
    color: var(--color-text-muted);
}
.solution__card li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 16px; height: 10px;
    border-left: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(-45deg);
}

/* ============ Stages (timeline) ============ */
.stages {
    background: var(--color-bg);
}
.stages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    position: relative;
}
.stages__grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 10%; right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--color-accent) 0 8px, transparent 8px 16px);
    z-index: 0;
}
.stage {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}
.stage:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stage__num {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(27,107,147,0.25);
}
.stage h3 { margin-bottom: 10px; }
.stage p { font-size: 0.9375rem; }

/* ============ Features (4 разделов приложения) ============ */
.features {
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.feature {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    transition: all var(--transition);
}
.feature:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.feature__icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(79,182,165,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    grid-row: 1 / 3;
    grid-column: 2;
}
.feature__title {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.375rem;
    margin-bottom: 0;
}
.feature__body { grid-column: 1; grid-row: 2; }
.feature__body p { margin-bottom: 12px; }
.feature__body ul { list-style: none; }
.feature__body li {
    padding-left: 20px;
    position: relative;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 6px;
}
.feature__body li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* ============ Diary (дневник симптомов — акцент) ============ */
.diary {
    background: linear-gradient(135deg, #0F4C6E 0%, #1B6B93 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.diary::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(79,182,165,0.25), transparent 70%);
}
.diary__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    position: relative;
}
.diary h2 { color: #fff; }
.diary p { color: rgba(255,255,255,0.78); }
.diary__list {
    list-style: none;
    margin-top: 32px;
}
.diary__list li {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    align-items: start;
}
.diary__list li:last-child { border-bottom: none; }
.diary__list-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(79,182,165,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}
.diary__list-title { color: #fff; font-weight: 600; margin-bottom: 2px; }
.diary__list-desc { font-size: 0.9375rem; color: rgba(255,255,255,0.7); }

.diary__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============ Proof (цифры + цитата) ============ */
.proof {
    background: var(--color-bg);
    text-align: center;
}
.proof__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 56px 0;
}
.proof__stat {
    padding: 32px;
}
.proof__stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.proof__stat-label {
    color: var(--color-text-muted);
    font-size: 1rem;
}
.proof__quote {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: left;
    position: relative;
}
.proof__quote::before {
    content: '"';
    position: absolute;
    top: -24px; left: 24px;
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--color-accent);
    line-height: 1;
}
.proof__quote-text {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 20px;
    font-style: italic;
}
.proof__quote-author {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}
.proof__quote-avatar {
    width: 108px; height: 108px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    overflow: hidden;
    flex-shrink: 0;
}
.proof__quote-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.proof__quote-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text);
}
.proof__quote-role {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.45;
}

/* ============ Team ============ */
.team { background: var(--color-bg-alt); }
.team__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.team__member {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--color-border);
    display: flex;
    gap: 20px;
    align-items: center;
}
.team__avatar {
    width: 108px; height: 108px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.75rem;
    font-family: var(--font-heading);
    overflow: hidden;
    position: relative;
}
.team__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
/* Увеличить лицо (приблизить кадр) */
.team__avatar--zoom img {
    transform: scale(1.35);
    transform-origin: center 12%;
}
/* Ещё сильнее приблизить лицо */
.team__avatar--zoom-xl img {
    transform: scale(1.9);
    transform-origin: center 32%;
}
.team__name { font-size: 1.25rem; margin-bottom: 4px; font-family: var(--font-heading); font-weight: 700; }
.team__role { color: var(--color-primary); font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.team__bio { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.5; }

/* ============ FAQ ============ */
.faq { background: var(--color-bg); }
.faq__list {
    max-width: 760px;
    margin: 48px auto 0;
}
.faq__item {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq__item.is-open { border-color: var(--color-accent); }
.faq__question {
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    font-family: var(--font-body);
}
.faq__toggle {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(27,107,147,0.08);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all var(--transition);
}
.faq__item.is-open .faq__toggle {
    background: var(--color-primary);
    color: #fff;
    transform: rotate(45deg);
}
.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq__answer-inner {
    padding: 0 24px 20px;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.faq__item.is-open .faq__answer { max-height: 400px; }

/* ============ CTA (early access) ============ */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before,
.cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,182,165,0.35), transparent 70%);
}
.cta::before { width: 600px; height: 600px; top: -200px; left: -200px; }
.cta::after  { width: 500px; height: 500px; bottom: -200px; right: -200px; }
.cta__inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta h2 { color: #fff; margin-bottom: 20px; }
.cta p {
    color: rgba(255,255,255,0.82);
    font-size: 1.125rem;
    margin-bottom: 36px;
}
/* ----- Pilot form (B2B) ----- */
.cta-form {
    max-width: 720px;
    margin: 8px auto 0;
    text-align: left;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cta-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cta-form__field { display: flex; flex-direction: column; gap: 6px; }
.cta-form__field--full { grid-column: 1 / -1; }
.cta-form__field label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.01em;
}
.cta-form__req { color: var(--color-accent); margin-left: 2px; }
.cta-form__field input,
.cta-form__field textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.18);
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all var(--transition);
    resize: vertical;
}
.cta-form__field input::placeholder,
.cta-form__field textarea::placeholder {
    color: rgba(255,255,255,0.45);
}
.cta-form__field input:focus,
.cta-form__field textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.14);
    border-color: var(--color-accent);
}
.cta-form__field.is-invalid input,
.cta-form__field.is-invalid textarea {
    border-color: #FF8A8A;
    background: rgba(255, 138, 138, 0.12);
    animation: shake 0.35s cubic-bezier(.36,.07,.19,.97) both;
}
.cta-form__field.is-invalid label { color: #FFB3B3; }
.cta-form__consent.is-invalid .cta-form__consent-check {
    border-color: #FF8A8A;
    background: rgba(255, 138, 138, 0.18);
    animation: shake 0.35s cubic-bezier(.36,.07,.19,.97) both;
}
.cta-form__consent.is-invalid { color: #FFB3B3; }

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* Подсветка для полей в модалке (.form__field) */
.form__field.is-invalid input,
.form__field.is-invalid textarea {
    border-color: var(--color-danger);
    background: rgba(217, 83, 79, 0.06);
    animation: shake 0.35s cubic-bezier(.36,.07,.19,.97) both;
}
.form__field.is-invalid label { color: var(--color-danger); }
.cta-form__footer {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.cta-form__footer .btn { flex-shrink: 0; }

.cta-form__consent {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    user-select: none;
}
.cta-form__consent input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.cta-form__consent-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all var(--transition);
    margin-top: 1px;
}
.cta-form__consent:hover .cta-form__consent-check {
    border-color: rgba(255,255,255,0.55);
}
.cta-form__consent input:checked + .cta-form__consent-check {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}
.cta-form__consent input:focus-visible + .cta-form__consent-check {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.cta-form__consent-text { min-width: 0; }
.cta-form__consent a { color: var(--color-accent); text-decoration: underline; }

.cta-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.cta-info__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
    padding: 16px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
}
.cta-info__item svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.cta-info__item strong {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 2px;
}
.cta-info__item span {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
}

/* ============ Footer ============ */
.footer {
    background: #0F2B3D;
    color: rgba(255,255,255,0.7);
    padding: 64px 0 32px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer__logo { margin-bottom: 16px; }
.footer__logo img { height: 36px; }
.footer__about {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    max-width: 300px;
}
.footer__col h4 {
    color: #fff;
    font-size: 0.9375rem;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.8125rem;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 10px; }
.footer__col a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    transition: color var(--transition);
}
.footer__col a:hover { color: var(--color-accent); }
.footer__legal {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.55);
}
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}

/* ============ Page (legal/static) ============ */
.page {
    padding: 88px 0 96px;
    background: var(--color-bg);
    min-height: 100vh;
}
.container--narrow { max-width: 820px; }

.breadcrumbs { margin-bottom: 28px; }
.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}
.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}
.breadcrumbs li + li::before {
    content: '/';
    margin: 0 10px;
    color: var(--color-text-soft);
    opacity: 0.7;
}
.breadcrumbs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs a svg { color: currentColor; }
.breadcrumbs [aria-current="page"] {
    color: var(--color-text);
    font-weight: 500;
}

.page__header { margin-bottom: 48px; text-align: left; }
.page__header h1 {
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    margin-top: 12px;
    margin-bottom: 12px;
}
.page__meta {
    font-size: 0.875rem;
    color: var(--color-text-soft);
    margin: 0;
}
.page__back { margin-top: 48px; }

.prose {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}
.prose h2 {
    font-size: 1.375rem;
    margin: 40px 0 16px;
    color: var(--color-text);
    letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; color: var(--color-text-muted); }
.prose ul { padding-left: 0; margin: 0 0 20px; list-style: none; }
.prose ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.prose ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}
.prose a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(27, 107, 147, 0.35);
    text-underline-offset: 2px;
}
.prose a:hover { text-decoration-color: var(--color-primary); }
.prose strong { color: var(--color-text); font-weight: 600; }

.prose__dl {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 12px 24px;
    margin: 0 0 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.prose__dl dt {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}
.prose__dl dd {
    margin: 0;
    color: var(--color-text);
    font-weight: 500;
}
@media (max-width: 640px) {
    .page { padding: 80px 0 64px; }
    .prose__dl {
        grid-template-columns: 1fr;
        gap: 4px 0;
        padding: 20px;
    }
    .prose__dl dd { margin-bottom: 10px; }
}

/* ============ Modal ============ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal.is-open { display: flex; }
.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 43, 61, 0.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}
.modal__dialog {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.modal__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition);
}
.modal__close:hover { background: var(--color-border); color: var(--color-text); }
.modal h3 { margin-bottom: 12px; font-size: 1.5rem; }
.modal p { margin-bottom: 24px; }

.modal__dialog--center { text-align: center; }
.modal__icon-success {
    width: 72px;
    height: 72px;
    margin: 8px auto 20px;
    border-radius: 50%;
    background: rgba(79, 182, 165, 0.15);
    color: var(--color-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
@keyframes popIn {
    0%   { transform: scale(0.3); opacity: 0; }
    60%  { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

.form { display: flex; flex-direction: column; gap: 14px; }
.form__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}
.form__field input,
.form__field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all var(--transition);
}
.form__field input:focus,
.form__field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
}
.form__field textarea { resize: vertical; min-height: 100px; }
.form__consent {
    font-size: 0.75rem;
    color: var(--color-text-soft);
    line-height: 1.5;
}
.form__consent a { color: var(--color-primary); text-decoration: underline; }
.form__status {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-top: 24px;
    padding: 0;
    border-radius: 12px;
    transition: all 0.25s ease;
}
.form__status:empty { display: none; }
.form__status.is-success,
.form__status.is-error,
.form__status.is-info {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form__status.is-success {
    color: #1F6B5A;
    background: rgba(79, 182, 165, 0.18);
    border: 1px solid rgba(79, 182, 165, 0.4);
}
.form__status.is-error {
    color: #FFDCDC;
    background: rgba(255, 138, 138, 0.15);
    border: 1px solid rgba(255, 138, 138, 0.4);
}
.form__status.is-error::before {
    content: '';
    width: 18px; height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB3B3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

/* В модалке (светлый фон) — тёмный вариант ошибки */
.modal .form__status.is-error {
    color: var(--color-danger);
    background: rgba(217, 83, 79, 0.08);
    border-color: rgba(217, 83, 79, 0.3);
}
.modal .form__status.is-error::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9534F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");
}

/* ============ Utility animations ============ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .section { padding: 72px 0; }
    .hero__inner,
    .diary__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero__visual { order: 1; }
    .solution__grid,
    .features__grid {
        grid-template-columns: 1fr;
    }
    .team__grid { gap: 20px; }
    .stages__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stages__grid::before { display: none; }
    .proof__stats { grid-template-columns: 1fr; gap: 16px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero__badges { flex-wrap: wrap; }

    .header__nav,
    .header__actions .btn { display: none; }
    .menu-btn { display: flex; }

    .mobile-menu {
        position: fixed;
        inset: 72px 0 0 0;
        background: var(--color-bg);
        z-index: 99;
        padding: 32px 24px;
        display: none;
        flex-direction: column;
        gap: 8px;
        overflow-y: auto;
    }
    .mobile-menu.is-open { display: flex; }
    .mobile-menu a {
        padding: 16px;
        font-size: 1.125rem;
        font-weight: 600;
        border-bottom: 1px solid var(--color-border);
    }
    .mobile-menu .btn { margin-top: 16px; }
}

@media (max-width: 640px) {
    .section { padding: 56px 0; }
    .container { padding: 0 16px; }
    .hero { padding: 88px 0 56px; /* 72 + 16 */ }
    .hero__ctas .btn { width: 100%; }
    .solution__card,
    .feature,
    .team__member,
    .proof__quote,
    .modal__dialog {
        padding: 24px;
    }
    .feature { grid-template-columns: 1fr; }
    .feature__icon { grid-row: 1; grid-column: 1; }
    .feature__title { grid-row: 2; }
    .feature__body { grid-row: 3; }
    .team__grid { grid-template-columns: 1fr; gap: 16px; }
    .team__member { padding: 20px; }

    /* Облако вопросов — компактнее, чтобы больше умещалось */
    .problem__bubble {
        padding: 8px 12px;
        font-size: 0.8125rem;
        margin: 3px;
    }

    /* Секция «Доказано» — компактнее на мобильном */
    .proof__stats { gap: 8px; margin: 32px 0; }
    .proof__stat { padding: 16px 8px; }
    .proof__stat-value { font-size: 2.25rem; margin-bottom: 6px; }
    .proof__stat-label { font-size: 0.9375rem; }
    .proof__quote { padding: 24px; }
    .proof__quote-text { font-size: 1rem; }
    .cta-form { padding: 24px; }
    .cta-form__grid { grid-template-columns: 1fr; }
    .cta-form__footer { flex-direction: column; align-items: stretch; }
    .cta-form__footer .btn { width: 100%; }
    .cta-info { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 40px; }

    /* Подвал — крупнее на мобильном */
    .footer { padding: 56px 0 32px; }
    .footer__logo img { height: 46px; width: auto; }
    .footer__about { font-size: 1.0625rem; line-height: 1.5; }
    .footer__col h4 { font-size: 0.9375rem; margin-bottom: 16px; }
    .footer__col li { margin-bottom: 14px; }
    .footer__col a { font-size: 1.0625rem; }
    .footer__legal { font-size: 0.875rem; margin-top: 20px; padding-top: 20px; }
    .footer__bottom { font-size: 0.875rem; }
}

/* ============ No scroll lock when modal open ============ */
body.no-scroll { overflow: hidden; }

/* ============ Hide fullpage specifics we don't need ============ */
.fp-watermark { display: none !important; }
