/* Сайт НейроРесурс CRM. Визуальный язык — тот же, что у самой СРМ (client/css/style.css):
   бирюзовый акцент, цветные пятна на фоне, белые карточки с рамкой #e6e6e2 и радиусом 14px,
   «таблетка»-меню на #f1f5f9, цвета сотрудников teach-1…teach-5 и цвета статусов записей. */
:root {
    --primary: #64cce3;
    --primary-dark: #0f7a95;
    --accent-warm: #c98a2e;
    --border-light: #e6e6e2;
    --text-dark: #1d1d1d;
    --text-muted: #76726c;
    --ink: #0f172a;
    --slate: #475569;
    --pill: #f1f5f9;

    --teach-1: #2f9fb8; --teach-2: #7c6fe0; --teach-3: #3fb37f; --teach-4: #d69a33; --teach-5: #d9668c;
    --teach-6: #d9574f; --teach-7: #8bb33f; --teach-8: #9a5fd9; --teach-9: #b8763f;

    --st-planned: #0f7a95; --st-completed: #137333; --st-sick: #c5221f; --st-moved: #6a4fc4;

    --radius: 14px;
    --shadow-card: 0 1px 3px rgba(15,23,42,.04), 0 10px 30px rgba(15,23,42,.06);
    --wrap: 1160px;
    --font-display: 'Golos Text', 'Golos UI', sans-serif;
}

* { box-sizing: border-box; }
.ico-svg { display: block; flex-shrink: 0; }

/* Плавный переход МЕЖДУ страницами (Оплата, О нас, Поддержка и т.д.) — без этого правила клик
   по пункту меню, ведущему на отдельную страницу, выглядит как грубая мгновенная перезагрузка
   на фоне плавной прокрутки внутри одной страницы. Chrome/Edge сами делают кросс-фейд между
   двумя полными загрузками страницы, если на ОБЕИХ подключён этот же site.css — опять же без
   единой строчки JS; в неподдерживающих браузерах правило просто игнорируется, переход как
   раньше. Тот же приём, что и у полоски прогресса прокрутки чуть ниже. */
@view-transition { navigation: auto; }

/* «Сборка» содержимого страницы при открытии — те же keyframe, кривая и тайминги, что у
   переключения вкладок в самой СРМ (client/css/style.css viewBlockIn/.crm-view.view-enter):
   блоки внутри <main> проявляются с лёгким сдвигом снизу вверх, друг за другом с небольшой
   задержкой, а не просто разом возникают. Кросс-фейд выше (@view-transition) просто меняет
   одну полную страницу на другую — без этого блока переход выглядел более плоско, чем «сборка»
   вкладок в СРМ, на которую и просили быть похожим. Класс .page-enter ставится на <main> общим
   кодом в common.js на время анимации при каждой загрузке страницы. */
@keyframes pageBlockIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
main.page-enter > * { animation: pageBlockIn .42s cubic-bezier(.2,.7,.2,1) both; }
main.page-enter > :nth-child(2) { animation-delay: .06s; }
main.page-enter > :nth-child(3) { animation-delay: .12s; }
main.page-enter > :nth-child(4) { animation-delay: .18s; }
main.page-enter > :nth-child(5) { animation-delay: .24s; }
main.page-enter > :nth-child(6) { animation-delay: .3s; }
main.page-enter > :nth-child(7) { animation-delay: .36s; }
main.page-enter > :nth-child(n+8) { animation-delay: .42s; }
@media (prefers-reduced-motion: reduce) { main.page-enter > * { animation: none; } }

/* Полоска прогресса прокрутки — страница длинная (12к+ px), а мобильное меню не даёт понять,
   сколько ещё листать. Chrome/Edge умеют scroll-driven анимации без единой строчки JS; в
   остальных браузерах просто не покажется — никакого вреда, это чистое усиление. */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 21;
    background: var(--primary); transform: scaleX(0); transform-origin: 0 50%;
    animation: scroll-progress-fill linear forwards;
    animation-timeline: scroll(root);
}
@keyframes scroll-progress-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    /* Премиум-спокойствие: один сдержанный акцент вместо пёстрого конфетти из пятен —
       тёплый тон бумаги снизу, еле заметный бирюзовый градиент сверху, без ярких цветных клякс */
    background:
        radial-gradient(circle at 18% 0%, rgba(100,204,227,.16), transparent 42%),
        radial-gradient(circle at 85% 8%, rgba(15,122,149,.08), transparent 38%),
        #fbfaf7;
    -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: no-preference) {
    /* Та же "дорогая" кривая замедления, что у входа хиро-блока (cubic-bezier(.16,1,.3,1),
       expo-out) — вместо линейного "ease" по умолчанию: разгон быстрый, остановка плавная. */
    .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
    .reveal.in { opacity: 1; transform: none; }
    /* Карточки внутри сеток появляются не все разом, а друг за другом — "крутой" эффект без
       лишней навороченности: ровный, короткий, предсказуемый, без JS-правок по каждой карточке */
    .features.reveal .feat, .roles.reveal .role, .plans.reveal .plan, .steps.reveal > li {
        opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
    }
    .features.reveal.in .feat, .roles.reveal.in .role, .plans.reveal.in .plan, .steps.reveal.in > li {
        opacity: 1; transform: none;
    }
    .features.reveal.in .feat:nth-child(1) { transition-delay: .02s; } .features.reveal.in .feat:nth-child(2) { transition-delay: .06s; }
    .features.reveal.in .feat:nth-child(3) { transition-delay: .10s; } .features.reveal.in .feat:nth-child(4) { transition-delay: .14s; }
    .features.reveal.in .feat:nth-child(5) { transition-delay: .18s; } .features.reveal.in .feat:nth-child(6) { transition-delay: .22s; }
    .features.reveal.in .feat:nth-child(7) { transition-delay: .26s; } .features.reveal.in .feat:nth-child(8) { transition-delay: .30s; }
    .features.reveal.in .feat:nth-child(9) { transition-delay: .34s; } .features.reveal.in .feat:nth-child(10) { transition-delay: .38s; }
    .features.reveal.in .feat:nth-child(11) { transition-delay: .42s; }
    .roles.reveal.in .role:nth-child(1) { transition-delay: .02s; } .roles.reveal.in .role:nth-child(2) { transition-delay: .10s; }
    .roles.reveal.in .role:nth-child(3) { transition-delay: .18s; }
    .plans.reveal.in .plan:nth-child(1) { transition-delay: .02s; } .plans.reveal.in .plan:nth-child(2) { transition-delay: .10s; }
    .plans.reveal.in .plan:nth-child(3) { transition-delay: .18s; }
    .steps.reveal.in > li:nth-child(1) { transition-delay: .02s; } .steps.reveal.in > li:nth-child(2) { transition-delay: .10s; }
    .steps.reveal.in > li:nth-child(3) { transition-delay: .18s; }
}
img { max-width: 100%; }
a { color: var(--primary-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
    font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(100,204,227,.45); position: relative; overflow: hidden; }
.btn-primary:hover { background: #4fc0da; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(100,204,227,.5); }
/* Лёгкий блик пробегает по кнопке при наведении — "дорогая" деталь без анимации по умолчанию */
.btn-primary::after {
    content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-18deg); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    .btn-primary::after { transition: left .65s cubic-bezier(.16,1,.3,1); }
    .btn-primary:hover::after { left: 125%; }
}
.btn-ghost { background: #fff; color: var(--primary-dark); border-color: var(--border-light); }
.btn-ghost:hover { background: var(--pill); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:focus-visible, .input:focus-visible, summary:focus-visible, .pill-nav a:focus-visible { outline: 3px solid rgba(100,204,227,.6); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ---------- Шапка ---------- */
.top {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border-light);
}
.top-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-weight: 800; font-size: 16px; letter-spacing: -.4px; }
.brand small { font-size: 9.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.pill-nav { display: flex; gap: 3px; background: var(--pill); padding: 5px; border-radius: 14px; margin: 0 auto; }
.pill-nav a { padding: 7px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: #4a5568; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
/* Шапка шире основной колонки (1300 против 1160): логотип + 9 пунктов + 2 кнопки занимают
   ~1225px и в 1160 не помещались — кнопки вылезали за край колонки, а «О нас» переносилось. */
.top .wrap { max-width: 1300px; }
.pill-nav a:hover { background: #e2e8f0; color: var(--primary-dark); }
.top-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Мобильное меню ----------
   Чекбокс-хак — ни одна страница, кроме index.html, не подключает site.js, а меню должно
   работать на всех 11 страницах. Чекбокс и подпись-гамбургер лежат в шапке, сама панель —
   отдельным <nav> сразу после </header>; закрытие по клику на пункт/крестик — через
   `onclick="…checked=false"` прямо в разметке страницы (без правки общих common.js/site.js). */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
    display: none; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; cursor: pointer;
    background: var(--pill); border: none; margin-left: auto; color: var(--ink);
}
.nav-burger svg { width: 20px; height: 20px; display: block; }
/* aria-label запрещён ARIA-спецификацией на <label> (поймано Lighthouse best-practices,
   2026-11-02, aria-prohibited-attr) — текст для скринридера кладём видимо-скрытым span'ом
   внутри самого label вместо атрибута. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-burger .ico-close { display: none; }
.nav-toggle:checked ~ .top .nav-burger .ico-open { display: none; }
.nav-toggle:checked ~ .top .nav-burger .ico-close { display: block; }

.nav-drawer {
    display: none; position: fixed; left: 0; right: 0; top: 64px; bottom: 0; z-index: 19;
    background: #fff; overflow-y: auto; padding: 10px 24px max(24px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light);
}
.nav-toggle:checked ~ .nav-drawer { display: block; }
.nav-drawer-link {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 15px 2px; font-size: 16.5px; font-weight: 700; color: var(--ink);
    text-decoration: none; border-bottom: 1px solid var(--border-light);
}
.nav-drawer-link.on { color: var(--primary-dark); }
.nav-drawer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

@media (min-width: 1431px) { .nav-drawer { display: none !important; } }
@media (max-width: 1430px) {
    .nav-burger { display: inline-flex; }
}
@media (max-width: 640px) {
    .nav-drawer { top: 58px; }
}

/* ---------- Первый экран — «Лицо» ---------- */
.chip {
    display: inline-block; background: #fff; border: 1px solid var(--border-light); color: var(--primary-dark);
    font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.chip-link { text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.chip-ico { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-dark); }
.chip-link:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(100,204,227,.3); border-color: var(--primary); }
h1 { font-family: var(--font-display); font-optical-sizing: auto; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.14; letter-spacing: -.4px; font-weight: 650; margin: 18px 0 16px; color: var(--ink); }
h1 em { font-style: normal; font-weight: 800; color: var(--primary-dark); }
.lead { font-size: 17px; color: #3f4650; margin: 0 0 24px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--text-muted); }
.hero-facts li::before { content: "✓"; color: var(--st-completed); font-weight: 800; margin-right: 6px; }
.hero-facts b { color: var(--text-dark); }
.hero-facts-bottom { position: relative; z-index: 1; justify-content: center; max-width: 860px; margin: 36px auto 0; }

/* Мягкий градиент-меш вместо плоских радиалов — тот же набор цветов (teal/amber), просто
   крупнее и мягче размыт. Никаких новых цветов, никакого WebGL — три блюрнутых круга. */
.hero-face { position: relative; overflow: hidden; padding: 56px 0 64px; }
.hero-mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #fbfaf7; }
.mesh-blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.mesh-teal { width: 52vw; height: 52vw; max-width: 620px; max-height: 620px; top: -14%; left: -12%; background: #64cce3; opacity: .32; }
.mesh-pale { width: 40vw; height: 40vw; max-width: 480px; max-height: 480px; top: 18%; right: 6%; background: #a9e6f2; opacity: .3; }
.mesh-amber { width: 36vw; height: 36vw; max-width: 440px; max-height: 440px; bottom: -16%; right: -8%; background: #c98a2e; opacity: .16; }

.hero-face-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head head" "photo body"; align-items: center; column-gap: 0; row-gap: 28px; }
.hero-head { grid-area: head; position: relative; z-index: 3; justify-self: center; max-width: 1040px; text-align: center; }
.hero-head h1 { font-size: clamp(30px, 3.9vw, 50px); line-height: 1.1; letter-spacing: -.6px; margin: 0; text-wrap: balance; }
.hero-note { margin: 12px 0 0; font-size: 13.5px; color: var(--text-muted); }
.hero-note::before { content: "✓"; color: var(--st-completed); font-weight: 800; margin-right: 6px; }
.hero-note b { color: var(--text-dark); font-weight: 700; }
.hero-note .nw { white-space: nowrap; }

.hero-photo { position: relative; z-index: 2; grid-area: photo; align-self: end; display: flex; justify-content: center; align-items: flex-end; height: auto; }
.hero-photo img { width: min(82%, 480px); height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(15,23,42,.18)); }
.hero-caption-pill {
    position: absolute; right: calc(50% + 4px); top: 71.6%; z-index: 3; max-width: 240px;
    background: rgba(255,255,255,.62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.7); border-radius: 14px; padding: 10px 14px;
    font-size: 12.5px; line-height: 1.4; color: var(--ink); box-shadow: 0 10px 26px rgba(15,23,42,.1);
}
.hero-caption-pill b { display: block; font-size: 13px; margin-bottom: 1px; }
.hero-caption-co {
    display: block; margin-top: 8px; padding-top: 8px;
    border-top: 1px solid rgba(15,23,42,.08); color: var(--text-muted);
}
.hero-caption-co b { display: block; font-size: 13px; margin-bottom: 1px; color: var(--ink); }

.hero-glass {
    position: relative; z-index: 3; grid-area: body; justify-self: start; max-width: 540px;
    background: rgba(255,255,255,.58); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255,255,255,.7); border-radius: 24px; padding: 30px 32px;
    box-shadow: 0 30px 60px rgba(15,23,42,.1), 0 8px 20px rgba(15,23,42,.05);
}
.hero-glass .lead { margin-bottom: 20px; }
.hero-live-chip {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 8px 14px;
    background: rgba(255,255,255,.7); border: 1px solid var(--border-light); border-radius: 999px;
    font-size: 13px; font-weight: 700; color: var(--ink);
}
.hero-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--st-completed); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
    .hero-live-dot { animation: heroLivePulse 2s ease-in-out infinite; }
    @keyframes heroLivePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(19,115,51,.4); } 50% { box-shadow: 0 0 0 5px rgba(19,115,51,0); } }
}
.hero-verticals { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); }

/* Один момент при загрузке: меш проявляется, фото поднимается на место, слово "собирается"
   из перепутанных букв — та же идея, что на футболке Насти, только сайт её "оживляет".
   Дальше — тишина, двигается только живая точка. prefers-reduced-motion — сразу финал. */
@media (prefers-reduced-motion: no-preference) {
    .hero-mesh { animation: heroMeshIn 1.1s ease both; }
    .hero-photo { animation: heroPhotoIn .9s cubic-bezier(.16,1,.3,1) .15s both; }
    .hero-glass { animation: heroGlassIn .7s cubic-bezier(.16,1,.3,1) .55s both; }
    .chip, .hero-facts, .hero-head h1 { animation: heroTextIn .7s cubic-bezier(.16,1,.3,1) .1s both; }
    @keyframes heroMeshIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes heroPhotoIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
    @keyframes heroGlassIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    @keyframes heroTextIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
    .hero-face-in { grid-template-columns: 1fr; grid-template-areas: "head" "photo" "body"; min-height: 0; row-gap: 20px; text-align: center; }
    .hero-head h1 { font-size: clamp(28px, 7.6vw, 40px); margin-top: 0; }
    .hero-photo { flex-direction: column; align-items: center; }
    .hero-photo img { width: min(74%, 340px); }
    .hero-caption-pill {
        position: relative; left: auto; bottom: auto; right: auto; top: auto; transform: none;
        margin-top: -34px; width: calc(100% - 32px); max-width: 320px; text-align: left;
    }
    .hero-glass { justify-self: center; text-align: left; max-width: 100%; }
    /* Список галочек под хиро стоит вне .wrap — без своих отступов текст упирался в края экрана */
    .hero-facts-bottom { padding: 0 24px; justify-content: flex-start; }
}
@media (max-width: 640px) {
    .hero-facts-bottom { padding: 0 16px; }
}
@media (max-width: 480px) {
    .hero-glass { padding: 22px 20px; border-radius: 18px; }
    .hero-note { text-align: center; }
}


/* ---------- Мобильная витрина ---------- */
/* Три телефона в ряд, одного размера, без наклона — спокойно и ровно, как весь остальной сайт */
.mobile-row { display: flex; align-items: flex-start; justify-content: center; gap: 28px; max-width: 920px; margin: 0 auto; }
.mobile-item, .mobile-item-mid { flex: 1; max-width: 230px; text-align: center; }
.mobile-frame {
    /* Скругление рамки = паддинг + скругление картинки (15 - 7 = 8, см. img ниже) — не
       произвольное число: если рамка и картинка скруглены на разную "глубину", на кривой
       рамки остаётся видимый уступ (прямой угол картинки торчит из-под круглого угла рамки),
       ровно это и было видно по углам на реальном телефоне (нашла владелица, 2026-10-17).
       Раньше рамка была скруглена на 26px при том же паддинге и той же картинке — отсюда
       и уступ. Дальше меняя padding/радиус картинки всегда пересчитывай это число так же. */
    background: var(--ink); border-radius: 15px; padding: 7px; box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(15,23,42,.16), 0 6px 14px rgba(15,23,42,.1);
    margin-bottom: 18px; border: 0; display: block; width: 100%; cursor: zoom-in;
    transition: transform .2s, box-shadow .2s;
}
.mobile-frame:hover { transform: translateY(-3px); box-shadow: 0 26px 48px rgba(15,23,42,.2), 0 8px 18px rgba(15,23,42,.12); }
/* Скругление поменьше, чем у самой рамки: значок настроек и нижнее меню в снимке стоят у
   самого края экрана — радиус 20px их заметно обрезал (см. баг с реальными скриншотами) */
.mobile-frame img { width: 100%; height: auto; display: block; border-radius: 8px; }
.mobile-item p { font-size: 14px; color: #4b5360; margin: 0; }
.mobile-item p b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
@media (max-width: 860px) {
    .mobile-row { flex-wrap: wrap; }
    .mobile-item, .mobile-item-mid { max-width: 220px; margin-bottom: 0; }
    .mobile-item:first-child .mobile-frame, .mobile-item:last-child .mobile-frame { transform: none; }
}
@media (max-width: 480px) {
    /* Та же логика, что и в базовом правиле выше (радиус рамки = паддинг + радиус картинки),
       просто под более тонкую рамку на узком экране: 4 + 6 = 10. */
    .mobile-frame { border-radius: 10px; padding: 4px; }
    .mobile-frame img { border-radius: 6px; }
}

/* ---------- Основатели — честно, без эффектов ----------
   Фото + настоящий скриншот расписания + короткий текст, тем же светлым стилем, что весь
   остальной сайт — никаких новых "материалов" (тёмный фон/рукописный шрифт пользователь
   забраковал как выбивающиеся из общего вида). */
.founders-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
.tuesday-shot { position: relative; min-width: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--border-light); line-height: 0; }
.tuesday-shot img { width: 100%; height: auto; display: block; }
.tuesday-side { display: flex; flex-direction: column; }
.tuesday-side .eyebrow { margin-bottom: 14px; }
.tuesday-portrait { width: 100%; max-width: 260px; height: auto; border-radius: 18px; display: block; border: 4px solid #fff; box-shadow: var(--shadow-card); margin-bottom: 18px; }
.tuesday-quote {
    font-family: var(--font-display); font-size: clamp(18px, 2vw, 21px); font-weight: 600;
    line-height: 1.48; color: var(--ink); margin: 0 0 16px; padding-left: 18px;
    border-left: 3px solid var(--primary); quotes: none;
}
.tuesday-attrib { color: #4b5360; font-size: 14px; line-height: 1.55; margin: 0; }
.tuesday-attrib b { color: var(--ink); }
@media (max-width: 760px) {
    .founders-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Разделы ---------- */
.section { padding: 80px 0; }
.section-tint { background: rgba(255,255,255,.62); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.sec-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-dark); margin-bottom: 10px; }
h2 { font-family: var(--font-display); font-optical-sizing: auto; font-size: clamp(27px, 3.4vw, 40px); line-height: 1.16; letter-spacing: -.3px; font-weight: 600; margin: 0 0 14px; color: var(--ink); }
.sec-head p { font-size: 17px; color: #4b5360; margin: 0; }
h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; color: var(--ink); letter-spacing: -.2px; }

.card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow-card); }

/* Возможности */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 22px; transition: transform .2s ease, box-shadow .2s ease; }
.feat:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.feat p { margin: 0; color: #4b5360; font-size: 15px; }
.feat-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
/* Премиум-спокойствие: не 9 разных ярких цветов на карточку, а семья из 3 сдержанных тонов
   по кругу — узнаваемо бренд, без эффекта «радужного конфетти» */
.c1, .c4, .c7, .c10 { background: color-mix(in srgb, var(--primary) 15%, white); color: var(--primary-dark); }
.c2, .c5, .c8, .c11 { background: color-mix(in srgb, var(--ink) 7%, white); color: var(--ink); }
.c3, .c6, .c9, .c12 { background: color-mix(in srgb, var(--accent-warm) 16%, white); color: var(--accent-warm); }

/* Два последних пункта — то, чего обычно нет у готовых CRM для записи, а не рядовой пункт
   списка. Последний ряд сетки и так неполный (2 из 3) — усиливаем это лёгкой рамкой и тегом. */
.feat-rare { border-color: color-mix(in srgb, var(--accent-warm) 35%, var(--border-light)); position: relative; }
.feat-rare-tag { position: absolute; top: 18px; right: 18px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-warm); background: color-mix(in srgb, var(--accent-warm) 12%, white); padding: 3px 9px; border-radius: 999px; }

/* Задачи и табель — отдельная секция, не рядовая карточка в «Возможностях» */
.planner-wrap { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 48px; align-items: start; }
.planner-text p { font-size: 17px; color: #4b5360; }
.planner-list { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 12px; }
.planner-list li { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px 16px 14px 48px; position: relative; font-size: 14.5px; color: #3f4650; }
.planner-ico { position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 6px; background: color-mix(in srgb, var(--accent-warm) 16%, white); color: var(--accent-warm); display: grid; place-items: center; }
.planner-list b { color: var(--ink); }
/* Текст в этом блоке вырос (личные задачи + рабочие в одном описании) и теперь заметно выше
   скриншота — без sticky картинка либо «плавала» по центру пустоты, либо отставала от текста,
   пока читаешь. Прилипает под шапкой, пока виден свой столбец, и просто прокручивается дальше. */
.planner-shot { cursor: zoom-in; position: sticky; top: 88px; }
@media (max-width: 1020px) { .planner-wrap { grid-template-columns: 1fr; gap: 28px; } .planner-shot { order: -1; position: static; } }

/* Роли */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 22px; }
.role-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 17px; }
.role-top b { font-weight: 800; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--tc); }
.role ul { margin: 0; padding: 0; list-style: none; }
.role li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--border-light); font-size: 15px; color: #3f4650; }

/* Мини-сценарий «вопрос → снято с повестки» — живая иллюстрация вместо голого списка пунктов. */
.role-scene { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.role-q, .role-a { border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.4; display: flex; align-items: flex-start; gap: 8px; }
.role-q { background: var(--pill); color: #52596a; }
.role-a { background: color-mix(in srgb, var(--primary) 10%, white); border: 1px solid color-mix(in srgb, var(--primary) 30%, white); color: var(--ink); font-weight: 600; }
.role-q .ico-svg, .role-a .ico-svg { margin-top: 2px; color: var(--primary-dark); opacity: .8; }
.role li:first-child { border-top: 0; }
.role li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; position: relative; }
.steps p { margin: 0; color: #4b5360; font-size: 15px; }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(100,204,227,.45); }
.start-cta { text-align: center; margin-top: 32px; }

/* Безопасность */
.safety { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.safety p { font-size: 17px; color: #4b5360; }
.safety-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.safety-list li { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 16px 18px 16px 52px; position: relative; font-size: 15px; color: #3f4650; }
.safety-ico { position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--primary) 15%, white); color: var(--primary-dark); display: grid; place-items: center; }
.safety-list b { color: var(--ink); }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--border-light); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan-main { border: 2px solid var(--primary); box-shadow: 0 16px 40px rgba(100,204,227,.25); background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 6%, white) 0%, #fff 140px); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.price { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin: 4px 0 16px; color: var(--ink); min-height: 40px; }
.price small { font-size: 15px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.price.on-request { font-size: 18px; letter-spacing: 0; color: var(--slate); padding-top: 8px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plan li { padding: 8px 0; border-top: 1px solid var(--border-light); font-size: 15px; color: #3f4650; }
.plan-list li { display: flex; align-items: center; gap: 10px; border-top: none; padding: 6px 0; }
.plan-list li::before { content: "✓"; flex-shrink: 0; display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #e6f4ea; color: var(--st-completed); font-size: 11px; font-weight: 800; }
.plan-main .plan-list li::before { background: color-mix(in srgb, var(--primary) 20%, white); color: var(--primary-dark); }
.plan li:first-child { border-top: 0; }

/* Регистрация */
.signup { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.signup-side p { font-size: 17px; color: #4b5360; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { font-size: 16px; font-weight: 600; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e6f4ea; color: var(--st-completed); font-size: 13px; font-weight: 800; margin-right: 10px; }
.form { padding: 28px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.input {
    width: 100%; padding: 12px 14px; border: 1px solid #d7dde4; border-radius: 12px; background: #f8fafc;
    font: inherit; font-size: 16px; color: var(--text-dark); transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(100,204,227,.25); }
.input.bad { border-color: var(--st-sick); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.field-err { font-size: 13px; color: var(--st-sick); margin-top: 5px; }
.field-err:empty { display: none; }
.form-err { font-size: 14px; color: var(--st-sick); background: #fce8e6; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.form-err:empty { display: none; }
.form-ok { font-size: 14px; color: var(--st-completed); background: #e6f4ea; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.pass-wrap, .slug-wrap { position: relative; }
.pass-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 16px; cursor: pointer; opacity: .55; padding: 6px; }
.pass-eye:hover { opacity: 1; }
.slug-state { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 700; pointer-events: none; }
.slug-state.ok { color: var(--st-completed); } .slug-state.bad { color: var(--st-sick); }
#f-slug { padding-right: 120px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 15px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #4b5360; margin: 6px 0 4px; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary-dark); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn-block { margin-top: 12px; }
.done { text-align: center; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; background: #e6f4ea; color: var(--st-completed); display: grid; place-items: center; margin: 0 auto 12px; }
.done h3 { font-size: 24px; margin: 6px 0 8px; }
.done p { color: #4b5360; }

/* Вопросы */
.faq-wrap { max-width: 980px; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 0 20px; }
/* На широком экране узкий центр.-одна колонка аккордеона оставляла половину секции пустой —
   тарифам и возможностям хватает места, а вопросы так и просились на две колонки */
@media (min-width: 860px) {
    .faq { display: block; columns: 2; column-gap: 16px; }
    .faq details { break-inside: avoid; margin-bottom: 10px; }
}
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 16.5px; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--primary-dark); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: #4b5360; }

/* Подвал */
.foot { border-top: 1px solid var(--border-light); background: rgba(255,255,255,.8); padding: 44px 0 28px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; max-width: 280px; }
.brand-small img { width: 28px; height: 28px; }
.brand-small b { font-size: 14px; }
.foot-tagline { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.foot-contacts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.foot-contacts a { text-decoration: none; font-weight: 600; color: var(--primary-dark); }
.foot-groups { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-group { display: flex; flex-direction: column; gap: 9px; min-width: 120px; }
.foot-group b { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 2px; }
.foot-group a { font-size: 14px; color: #4a5568; text-decoration: none; white-space: nowrap; }
.foot-group a:hover { color: var(--primary-dark); }
.foot-sign { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: 14px; color: var(--text-muted); }
.foot-sign b { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) {
    .foot-top { flex-direction: column; gap: 28px; }
    .foot-groups { gap: 24px 32px; }
}

/* ---------- Адаптив ---------- */
/* Шапка: логотип + 11 пунктов меню + 2 кнопки (с 2026-10-29 добавились «ИИ-помощник» и
   «Инструкция» — было 9, стало 11) занимают заметно больше места. Чуть уже — сначала сжимаем
   отступы пунктов, а ниже порога прячем меню целиком — иначе кнопки «Войти/Попробовать»
   вылезали за экран и появлялась горизонтальная прокрутка. Пороги подобраны и проверены
   скриншотами на 1920/1600/1440/1366/1280. */
@media (max-width: 1600px) {
    .top-in { gap: 10px; }
    .pill-nav { gap: 1px; }
    .pill-nav a { padding: 7px 7px; }
}
@media (max-width: 1430px) {
    .pill-nav { display: none; }
    .top-actions { margin-left: auto; }
}
@media (max-width: 1020px) {
    .safety, .signup { grid-template-columns: 1fr; gap: 40px; }
    .features, .roles, .steps, .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .top-in { height: 58px; gap: 8px; }
    .brand small { display: none; }
    .top-actions .btn { padding: 8px 12px; font-size: 13.5px; }
    .hero { padding: 36px 0 40px; }
    .lead { font-size: 16.5px; }
    .hero-cta .btn { width: 100%; }
    .section { padding: 56px 0; }
    .features, .roles, .steps, .plans, .row2 { grid-template-columns: 1fr; }
    .form { padding: 20px; }
}
@media (max-width: 480px) {
    /* Бренд + 2 кнопки + гамбургер не помещались в один ряд на узких телефонах (реальные
       390-460px) — ни один из трёх не умел сжиматься (flex-shrink:0), ряд вылезал за экран и
       обрезал текст/даже сам гамбургер по правому краю на ВСЕХ страницах (нашли через QA-аудит
       перед показом сайта инвесторам, 2026-11-02). Обе кнопки уже продублированы в
       .nav-drawer-actions открывающегося по гамбургеру меню — просто прячем их здесь. */
    .top-actions { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .feat { transition: none; }
}

/* ---------- Юридические документы (offer.html, consent.html, dpa.html, docs.html) ---------- */
.doc { max-width: 860px; margin: 32px auto 80px; padding: 40px 48px; }
.doc h1 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 6px; letter-spacing: -.8px; }
.doc .doc-meta { color: var(--text-muted); font-size: 14px; margin: 0 0 24px; }
.doc h2 { font-size: 19px; letter-spacing: -.3px; margin: 30px 0 10px; }
.doc p, .doc li { color: #2f343b; font-size: 15.5px; line-height: 1.6; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .num { font-weight: 700; color: var(--ink); margin-right: 4px; }
.fill { background: #fef7e0; color: #b06000; border-radius: 4px; padding: 0 4px; font-weight: 700; }
.draft { background: #fef7e0; color: #8a4b00; border: 1px solid #f6d58c; border-radius: 12px; padding: 12px 16px; margin-bottom: 22px; font-size: 14px; }
.req-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.req-table td { padding: 9px 0; border-top: 1px solid var(--border-light); font-size: 15px; vertical-align: top; }
.req-table td:first-child { color: var(--text-muted); width: 38%; padding-right: 16px; }
.req-table tr:first-child td { border-top: 0; }
.docs-list { display: grid; gap: 12px; margin: 8px 0 28px; }
.doc-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--border-light); border-radius: var(--radius); text-decoration: none; color: inherit; background: #fff; transition: border-color .2s, box-shadow .2s; }
.doc-card:hover { border-color: var(--primary); box-shadow: var(--shadow-card); }
.doc-card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.doc-card b { display: block; font-size: 16.5px; color: var(--ink); margin-bottom: 2px; }
.doc-card span { font-size: 14px; color: var(--text-muted); }
.doc-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; }
.doc-nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--pill); color: #4a5568; font-weight: 600; }
.doc-nav a.on { background: var(--primary); color: #fff; }
@media (max-width: 640px) { .doc { margin: 12px; padding: 22px 18px; } .req-table td:first-child { width: 44%; } }
@media print { .top, .foot, .doc-nav, .draft { display: none !important; } .doc { box-shadow: none; border: 0; margin: 0; padding: 0; } body { background: #fff; } }

/* ---------- Кнопка «наверх» (создаётся в common.js, на всех страницах) ---------- */
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border-light); background: #fff; color: var(--primary-dark); cursor: pointer;
    display: grid; place-items: center; box-shadow: 0 10px 24px rgba(15,23,42,.14), 0 2px 6px rgba(15,23,42,.08);
    opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s, background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--pill); }
@media (max-width: 640px) { .to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; } }

/* ---------- Переключатель языка RU/EN (создаётся в common.js, только на переведённых страницах) ----------
   Фиксирован сразу под шапкой, у левого края (ближе к логотипу/меню и к фото Насти в хиро —
   владелец, 2026-10-18: "глаза автоматически смотрят наверх на меню и на Настю", прежний нижний
   левый угол никто не замечал). В .top-actions саму шапку не кладу — она и так впритык по
   ширине на десктопе (см. комментарий у .top .wrap), а здесь высота шапки фиксированная (64px,
   58px на мобильном, см. .top-in) — плавающая пилюля чуть ниже не зависит от того, сколько
   места осталось в самой строке меню. z-index выше шапки (20) и мобильного меню (19), чтобы
   кнопка не терялась ни в прокрутке, ни при открытом бургере. */
.lang-switch {
    position: fixed; left: 20px; top: 76px; z-index: 21; display: flex; gap: 3px;
    background: #fff; padding: 4px; border-radius: 12px; border: 1px solid var(--border-light);
    box-shadow: 0 10px 24px rgba(15,23,42,.14), 0 2px 6px rgba(15,23,42,.08);
}
.lang-switch a { padding: 6px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: #4a5568; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.lang-switch a:hover { background: var(--pill); color: var(--primary-dark); }
/* --primary (#64cce3) + белый текст давали контраст 1.86:1 — далеко ниже нужных 4.5:1
   (поймано Lighthouse best-practices, 2026-11-02). --primary-dark даёт ~4.96:1. */
.lang-switch a.on { background: var(--primary-dark); color: #fff; }
/* На мобильном верх под шапкой слишком тесный — переключатель при скролле наезжал на контент
   (бейдж тарифа, подпись поля, заголовок страницы — нашёл форк-аудит 2026-10-30). На десктопе
   сознательно оставлен вверху слева (решение владельца 2026-10-18, см. комментарий выше) — там
   места достаточно и перекрытий нет, трогаю только мобильный порог. */
@media (max-width: 640px) { .lang-switch { left: 14px; top: auto; bottom: 14px; } }

/* ---------- «Изнутри»: снимки СРМ ---------- */
.tour { padding-top: 40px; }
.tour-tabs { display: flex; gap: 4px; background: var(--pill); padding: 5px; border-radius: 14px; width: max-content; max-width: 100%; margin: 0 auto 22px; overflow-x: auto; scrollbar-width: none; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: #4a5568; padding: 9px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tour-tabs button:hover { background: #e2e8f0; color: var(--primary-dark); }
/* --primary + белый текст — тот же недостаточный контраст, что и у .lang-switch выше. */
.tour-tabs button.on { background: var(--primary-dark); color: #fff; box-shadow: 0 4px 14px rgba(100,204,227,.45); }
.tour-tabs button:focus-visible { outline: 3px solid rgba(100,204,227,.6); outline-offset: 2px; }
.tour-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.tour-text h3 { font-size: 22px; letter-spacing: -.5px; margin: 8px 0 10px; }
.tour-text p { color: #4b5360; font-size: 15.5px; margin: 0 0 14px; }
.tour-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tour-text li { position: relative; padding-left: 22px; font-size: 14.5px; color: #3f4650; }
.tour-text li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.tour-shot { display: block; width: 100%; padding: 0; border: 1px solid var(--border-light); border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 24px 50px rgba(15,23,42,.12), 0 6px 16px rgba(15,23,42,.06); text-align: left; }
.tour-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* ai-chat.png — реальное соотношение сторон 1736×728 (не 16:9, как у остальных снимков вкладок,
   снятых по 1920×1080) — иначе browser растягивает картинку под чужое соотношение (поймано
   Lighthouse best-practices, 2026-11-02). */
#ai-shot img { aspect-ratio: 1736 / 728; }
.tour-chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--border-light); background: #f8fafc; }
.tour-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.tour-chrome i:nth-child(1) { background: #f87171; } .tour-chrome i:nth-child(2) { background: #fbbf24; } .tour-chrome i:nth-child(3) { background: #34d399; }
.tour-chrome em { font-style: normal; font-size: 12px; color: var(--text-muted); margin-left: 10px; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(15,23,42,.82); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox button { position: absolute; top: 16px; right: 20px; border: 0; background: rgba(255,255,255,.15); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
@media (max-width: 1020px) { .tour-body { grid-template-columns: 1fr; } .tour-text { order: 2; } }
@media (max-width: 640px) {
    .tour-tabs { justify-content: flex-start; -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%); }
    .tour-tabs button { padding: 8px 12px; font-size: 13.5px; }
}

/* Атрибут hidden должен побеждать display у .btn и прочих — иначе скрытые кнопки видны */
[hidden] { display: none !important; }

/* ---------- Переезд (перенос базы — входит в тариф) ---------- */
.migration {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    background: linear-gradient(135deg, #eef6f5 0%, #f7f4ec 100%); border: 1px solid var(--border-light); border-radius: 22px;
    padding: 44px 48px; box-shadow: 0 20px 50px rgba(15,23,42,.08);
}
.migration-text h2 { margin-bottom: 12px; }
.migration-text p { font-size: 17px; color: #3f4650; margin: 0 0 18px; }
.migration-badge { display: inline-block; background: #fff; border: 1px solid #b7e6f1; color: var(--primary-dark); border-radius: 12px; padding: 10px 14px; font-size: 15px; margin-bottom: 22px; }
.migration-badge b { font-weight: 800; }
.migration-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.migration-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.migration-steps li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 18px 20px; }
.migration-steps .step-n { flex-shrink: 0; margin: 0; }
.migration-steps h3 { margin: 4px 0 4px; }
.migration-steps p { margin: 0; color: #4b5360; font-size: 15px; }
@media (max-width: 1020px) { .migration { grid-template-columns: 1fr; padding: 32px 28px; } }
@media (max-width: 640px) { .migration { padding: 24px 18px; border-radius: 16px; } .migration-cta .btn { width: 100%; } }

/* Условие переноса в разделе «Переезд» */
.migration-note { font-size: 14px !important; color: var(--slate) !important; background: rgba(255,255,255,.7); border-left: 3px solid var(--primary); border-radius: 8px; padding: 10px 12px; margin: -4px 0 18px !important; }

/* ---------- Техподдержка (support.html) ---------- */
.support { padding-top: 48px; padding-bottom: 72px; }
.support-head { max-width: 720px; margin-bottom: 26px; }
.support-head h1 { font-size: clamp(28px, 3.6vw, 42px); margin: 8px 0 12px; }
.support-head p { font-size: 17px; color: #4b5360; margin: 0; }
.support-face { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.support-face-avatars { display: flex; flex-shrink: 0; }
.support-face img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(15,23,42,.12); flex-shrink: 0; }
.support-face-avatars img + img { margin-left: -12px; }
.support-face > span { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.support-hours { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, #e3f6fa 0%, #f1eefc 100%); border: 1px solid #cdeef6; border-radius: 18px; padding: 22px 26px; margin-bottom: 18px; }
.support-clock { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.75); color: var(--primary-dark); display: grid; place-items: center; flex-shrink: 0; }
.support-hours-main { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.support-hours-sub { font-size: 15px; color: #4b5360; margin-top: 4px; }
.support-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.support-channel { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .15s; }
.support-channel:hover { border-color: var(--primary); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.support-channel .ico { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 15%, white); color: var(--primary-dark); display: grid; place-items: center; flex-shrink: 0; }
.support-channel b { display: block; font-size: 16px; color: var(--ink); }
.support-channel .val { display: block; font-size: 15px; color: var(--primary-dark); font-weight: 700; margin: 2px 0; word-break: break-all; }
.support-channel small { font-size: 13px; color: var(--text-muted); }
.support-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; align-items: start; }
.support-card { padding: 24px 26px; }
.support-card h2 { font-size: 20px; letter-spacing: -.3px; margin: 0 0 8px; }
.support-card p { color: #4b5360; font-size: 15px; margin: 0 0 10px; }
.support-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.support-list li { position: relative; padding-left: 22px; font-size: 15px; color: #3f4650; }
.support-list li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.faq-compact { gap: 8px; }
.faq-compact details { border-radius: 12px; padding: 0 16px; }
.faq-compact summary { font-size: 15px; padding: 13px 26px 13px 0; }
.faq-compact summary::after { top: 9px; font-size: 20px; }
.faq-compact p { font-size: 14.5px; margin-bottom: 14px; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .support { padding-top: 28px; } .support-hours { padding: 18px; align-items: flex-start; } .support-hours-main { font-size: 18px; } }

/* ---------- Инструкция (guide.html) ---------- */
.guide-step { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.guide-step:first-of-type { margin-top: 22px; padding-top: 0; border-top: 0; }
.guide-cols { list-style: none; padding: 0; margin: 4px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.guide-cols li { font-size: 15px; color: #2f343b; padding: 3px 0; }
.tip { font-size: 14.5px; color: var(--slate); background: rgba(100,204,227,.10); border-left: 3px solid var(--primary); border-radius: 8px; padding: 10px 12px; margin: 10px 0 4px; }
.guide-outro { margin-top: 36px; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(135deg, #e3f6fa 0%, #f1eefc 100%); border: 1px solid #cdeef6; text-align: center; }
.guide-outro h2 { border: 0; padding: 0; font-size: 21px; }
@media (max-width: 640px) { .guide-cols { grid-template-columns: 1fr; } }
.guide-row { display: flex; gap: 28px; align-items: flex-start; margin: 14px 0; }
.guide-row .guide-text { flex: 1 1 0; min-width: 0; }
.guide-row .guide-shot { flex: 1.1 1 0; min-width: 0; margin: 0; }
.guide-shot { margin: 14px 0; text-align: center; }
.guide-shot img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border-light); box-shadow: var(--shadow-card); display: inline-block; }
.guide-shot figcaption { font-size: 13.5px; color: var(--text-muted); margin-top: 8px; }
.guide-shot-wide img { width: 100%; }
.guide-shot-center img { max-width: min(420px, 100%); }
@media (max-width: 780px) { .guide-row { flex-direction: column; } .guide-row .guide-shot { width: 100%; } }

/* ---------- Наша история (about.html) ----------
   Сплошное повествование в узкой колонке (~700px): шапка с фото, части текста разделены
   тонкой линией, две фразы вынесены крупно, признание про «молодую систему» — карточкой
   с янтарной чертой, в конце подпись. Только существующие цвета и шрифт. */
.story { overflow-x: clip; }
.story-head { padding: 56px 0 8px; }
.story-head-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.story-head-text h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.8px; margin: 0 0 22px; }
.story-head-text .lead { font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 23px); line-height: 1.5; color: #2f343b; max-width: 540px; margin: 0; text-wrap: pretty; }

.story-portrait { position: relative; margin: 0; display: flex; justify-content: center; align-items: flex-end; padding-top: 24px; }
.story-portrait-bg {
    position: absolute; left: 6%; right: 6%; bottom: 0; top: 14%; border-radius: 28px;
    background: radial-gradient(circle at 30% 20%, rgba(100,204,227,.38), transparent 60%),
                radial-gradient(circle at 85% 90%, rgba(201,138,46,.14), transparent 55%), #eef8fa;
    border: 1px solid rgba(100,204,227,.25);
}
.story-portrait img { position: relative; width: min(88%, 440px); height: auto; display: block; border-radius: 0 0 28px 28px; }
.story-portrait-cap { right: auto; left: 0; top: auto; bottom: 28px; }

.story-body { max-width: 748px; padding-top: 72px; padding-bottom: 96px; }
.story-body p { font-size: 18px; line-height: 1.72; color: #2f343b; margin: 0 0 20px; }
.story-part { margin: 0 0 52px; }
.story-part > p:last-child { margin-bottom: 0; }
/* Тонкая линия между частями повествования (кроме первой и тех, что идут после выноски/карточки) */
.story-part + .story-part { padding-top: 52px; border-top: 1px solid var(--border-light); }

.story-body .story-callout {
    margin: 0 0 56px; padding: 30px 0 0; position: relative; text-align: center;
    font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 27px); line-height: 1.42; font-weight: 600;
    letter-spacing: -.3px; color: var(--primary-dark); text-wrap: balance;
}
.story-callout::before { content: ""; position: absolute; top: 0; left: 50%; width: 48px; height: 3px; margin-left: -24px; border-radius: 3px; background: var(--primary); }
.story-body .story-callout-end { margin-bottom: 36px; color: var(--ink); font-size: clamp(23px, 2.7vw, 31px); }

.story-note { margin: 0 0 52px; padding: 24px 28px; background: #fff; border: 1px solid var(--border-light); border-left: 4px solid var(--accent-warm); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.story-body .story-note p { margin: 0; font-size: 18px; color: var(--ink); }

/* Вставные фото в тексте — настоящие, не выгнутые под студийный портрет: рамка со скруглением
   и тенью вместо вырезки по контуру, это оставляет настоящий фон вместо пустоты вокруг фигуры. */
.story-photo { margin: 40px auto; max-width: 380px; }
.story-photo img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-card); border: 1px solid var(--border-light); }
.story-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--text-muted); text-align: center; }
/* Подпись под фото Артёма (ниже) получает ту же структуру "жирное имя + роль", что и
   hero-caption-pill у Насти выше на странице — два равных сооснователя подаются одинаково,
   не "основатель с подписью-ролью" + "просто фото с именем" (находка дизайн-ревью, 2026-11-02). */
.story-photo figcaption b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }

.story-body .story-sign { text-align: center; font-family: var(--font-display); font-size: 20px; font-weight: 650; color: var(--ink); margin: 0 0 36px; line-height: 1.4; }
.story-sign span { display: block; font-size: 16px; font-weight: 500; color: var(--text-muted); margin-bottom: 2px; }
.story-end-btns { justify-content: center; }

@media (max-width: 960px) {
    .story-head-in { grid-template-columns: 1fr; gap: 28px; }
    .story-head-text { text-align: center; }
    .story-head-text .lead { margin-left: auto; margin-right: auto; }
    .story-portrait { max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
    .story-head { padding-top: 32px; }
    .story-portrait-cap { position: relative; left: auto; bottom: auto; margin: -30px auto 0; width: calc(100% - 32px); max-width: 320px; }
    .story-portrait { flex-direction: column; align-items: center; }
    .story-portrait-bg { left: 0; right: 0; bottom: 40px; }
    .story-body { padding-top: 48px; padding-bottom: 56px; }
    .story-body p { font-size: 16.5px; line-height: 1.66; margin-bottom: 16px; }
    .story-part { margin-bottom: 40px; }
    .story-part + .story-part { padding-top: 40px; }
    .story-body .story-callout { margin-bottom: 40px; padding-top: 24px; }
    .story-body .story-callout-end { margin-bottom: 28px; }
    .story-note { padding: 18px 18px; margin-bottom: 40px; }
    .story-body .story-note p { font-size: 16.5px; }
    .story-body .story-sign { font-size: 18px; margin-bottom: 28px; }
}

/* Уведомление о cookie — только информирует (используются лишь необходимые для работы сайта
   cookie, без выбора "отклонить"), само исчезает через 12 сек., или сразу по кнопке. */
.cookie-notice {
    /* Компактная плашка в углу, а не широкая полоса через весь низ экрана — прежняя версия
       шириной до 640px перекрывала вторую кнопку хиро-блока на обычных высотах окна браузера.
       Дальше сжата ещё раз: короче ссылка-«хвост» и плотнее строки — на тарифах и в сетке
       возможностей плашка успевала наезжать на карточки при прокрутке, пока не скрылась сама. */
    position: fixed; right: 16px; left: auto; bottom: 16px; z-index: 5000;
    max-width: 420px; margin: 0;
    background: var(--ink); color: #fff; border-radius: 14px;
    padding: 11px 14px; box-shadow: 0 12px 32px rgba(0,0,0,.35);
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    font-size: 12px; line-height: 1.38;
    animation: cookieIn .3s ease;
}
.cookie-notice a { color: #9fe3f2; font-weight: 700; }
.cookie-notice-ok {
    flex-shrink: 0; background: var(--primary); color: #0f172a; border: none; border-radius: 9px;
    padding: 7px 14px; font-weight: 800; font-size: 12.5px; cursor: pointer; font-family: inherit;
    align-self: flex-end;
}
.cookie-notice-ok:hover { background: #4fb9d1; }
.cookie-notice.cookie-notice-hide { animation: cookieOut .35s ease forwards; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cookieOut { to { opacity: 0; transform: translateY(12px); } }
@media (max-width: 560px) {
    /* Кнопка на всю ширину отдельной строкой делала плашку заметно выше (~22% экрана телефона
       — нашли через QA-аудит, 2026-11-02) — оставляем её компактной, как на десктопе, просто
       чуть плотнее текст вокруг. */
    .cookie-notice { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 9px 12px; font-size: 11px; line-height: 1.3; gap: 4px; }
    .cookie-notice-ok { padding: 6px 13px; }
}
