/* Сайт НейроРесурс 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;
}

* { box-sizing: border-box; }
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 15% 8%, rgba(100,204,227,.40), transparent 32%),
        radial-gradient(circle at 88% 4%, rgba(217,102,140,.24), transparent 30%),
        radial-gradient(circle at 80% 42%, rgba(124,111,224,.20), transparent 34%),
        radial-gradient(circle at 10% 62%, rgba(214,154,51,.18), transparent 32%),
        radial-gradient(circle at 70% 92%, rgba(100,204,227,.22), transparent 34%),
        #ffffff;
    -webkit-font-smoothing: antialiased;
}
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); }
.btn-primary:hover { background: #4fc0da; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(100,204,227,.5); }
.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; transition: background .2s, color .2s; }
.pill-nav a:hover { background: #e2e8f0; color: var(--primary-dark); }
.top-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Первый экран ---------- */
.hero { padding: 64px 0 56px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.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);
}
h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -1.5px; font-weight: 800; margin: 18px 0 16px; color: var(--ink); }
.lead { font-size: 18px; color: #3f4650; margin: 0 0 28px; max-width: 540px; }
.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); }

/* ---------- Макет окна СРМ ---------- */
.mock {
    position: relative; background: #fff; border: 1px solid var(--border-light); border-radius: 18px;
    box-shadow: 0 30px 60px rgba(15,23,42,.12), 0 8px 20px rgba(15,23,42,.06);
    transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transform-origin: left center;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border-light); }
.mock-bar img { width: 24px; height: 24px; }
.mock-brand { display: flex; flex-direction: column; line-height: 1.1; margin-right: 6px; }
.mock-brand b { font-size: 11.5px; font-weight: 800; }
.mock-brand small { font-size: 6.5px; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; }
.mock-menu { display: flex; gap: 2px; background: var(--pill); border-radius: 10px; padding: 3px; margin-left: auto; overflow: hidden; }
.mock-menu span { font-size: 9.5px; font-weight: 700; color: #4a5568; padding: 4px 7px; border-radius: 7px; white-space: nowrap; }
.mock-menu span.on { background: var(--primary); color: #fff; box-shadow: 0 3px 8px rgba(100,204,227,.45); }
.mock-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; background: #fbfbf9; border-radius: 0 0 18px 18px; }
.mock-col { background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.mock-col.today { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(100,204,227,.25); }
.mock-day { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 4px; }
.mock-day b { font-size: 12px; font-weight: 800; }
.mock-day small { font-size: 10px; color: var(--text-muted); font-weight: 700; }
.mock-room { font-size: 9px; font-weight: 800; color: var(--slate); text-transform: uppercase; letter-spacing: .03em; margin-top: 3px; display: flex; justify-content: space-between; }
.mock-room i { font-style: normal; background: #e6f4ea; color: var(--st-completed); border-radius: 999px; padding: 0 6px; }
.mc {
    --tc: var(--teach-1);
    position: relative; font-size: 10px; font-weight: 600; color: var(--ink); line-height: 1.25;
    background: color-mix(in srgb, var(--tc) 14%, white); border-left: 3px solid var(--tc); border-radius: 7px; padding: 4px 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc em { font-style: normal; font-weight: 800; color: var(--slate); font-size: 9px; margin-right: 2px; }
.mc small { display: block; font-size: 8.5px; color: var(--text-muted); font-weight: 700; }
.mc .d { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; }
.mc .d.planned { background: var(--st-planned); } .mc .d.completed { background: var(--st-completed); }
.mc .d.sick { background: var(--st-sick); } .mc .d.moved { background: var(--st-moved); }
.mc-free { font-size: 9.5px; color: #94a3b8; border: 1px dashed var(--border-light); border-radius: 7px; text-align: center; padding: 7px 0; }
.t1 { --tc: var(--teach-1); } .t2 { --tc: var(--teach-2); } .t3 { --tc: var(--teach-3); } .t4 { --tc: var(--teach-4); } .t5 { --tc: var(--teach-5); }
.mock-float {
    position: absolute; right: -18px; bottom: -26px; width: 210px; background: #fff; border: 1px solid var(--border-light);
    border-radius: 14px; padding: 12px 14px; box-shadow: 0 16px 36px rgba(15,23,42,.14); transform: rotate(1.5deg);
}
.mf-title { font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.mf-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); padding: 2px 0; }
.mf-row b { color: var(--text-dark); }
.mf-bar { height: 6px; background: var(--pill); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.mf-bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

/* ---------- Разделы ---------- */
.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-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -1px; font-weight: 800; 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; }
.c1 { background: color-mix(in srgb, var(--teach-1) 16%, white); } .c2 { background: color-mix(in srgb, var(--teach-2) 16%, white); }
.c3 { background: color-mix(in srgb, var(--teach-3) 16%, white); } .c4 { background: color-mix(in srgb, var(--teach-4) 16%, white); }
.c5 { background: color-mix(in srgb, var(--teach-5) 16%, white); } .c6 { background: color-mix(in srgb, var(--teach-6) 16%, white); }
.c7 { background: color-mix(in srgb, var(--teach-7) 16%, white); } .c8 { background: color-mix(in srgb, var(--teach-8) 16%, white); }
.c9 { background: color-mix(in srgb, var(--teach-9) 16%, white); }

/* Роли */
.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 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); }

/* Безопасность */
.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 50px; position: relative; font-size: 15px; color: #3f4650; }
.safety-list li::before { content: "🛡️"; position: absolute; left: 16px; top: 15px; font-size: 18px; }
.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); }
.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 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 { font-size: 44px; }
.done h3 { font-size: 24px; margin: 6px 0 8px; }
.done p { color: #4b5360; }
.creds { text-align: left; background: #f8fafc; border: 1px solid var(--border-light); border-radius: 12px; padding: 6px 16px; margin: 16px 0 18px; }
.creds div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border-light); font-size: 15px; }
.creds div:first-child { border-top: 0; }
.creds span { color: var(--text-muted); }
.creds b { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 14.5px; word-break: break-all; text-align: right; }

/* Вопросы */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 0 20px; }
.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: 28px 0; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand-small img { width: 28px; height: 28px; }
.brand-small b { font-size: 14px; }
.foot-contacts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot-contacts a { text-decoration: none; font-weight: 600; }
.foot-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.foot-links a { color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.foot-links a:hover { color: var(--primary-dark); }

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
    .pill-nav { display: none; }
    .top-actions { margin-left: auto; }
    .hero-in, .safety, .signup { grid-template-columns: 1fr; gap: 40px; }
    .mock { transform: none; max-width: 640px; margin: 0 auto 20px; }
    .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; }
    .mock-menu span:nth-child(n+3) { display: none; }
    .mock-body { grid-template-columns: repeat(2, 1fr); }
    .mock-col:nth-child(3) { display: none; }
    .mock-float { right: 8px; bottom: -30px; width: 190px; }
    .form { padding: 20px; }
    .foot-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .feat { transition: none; }
}

/* ---------- Страница «Оплата» (pay.html) ---------- */
.pill-nav a.on { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(100,204,227,.45); }
.pay-page { padding-top: 56px; }
.pay { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.pay-title { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -1px; margin: 0 0 14px; }
.pay-side p { font-size: 17px; color: #4b5360; }
.pay-note { margin-top: 22px; font-size: 14px; color: var(--slate); background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 12px 14px; }
.form-block-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-dark); margin: 4px 0 12px; }
.form-block-title:not(:first-child) { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-light); }
.input.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 15px; }
.opt { font-weight: 400; color: var(--text-muted); }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice-4 { grid-template-columns: repeat(4, 1fr); }
.choice-btn {
    border: 1px solid #d7dde4; background: #f8fafc; border-radius: 12px; padding: 10px 8px; cursor: pointer; font: inherit;
    display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.choice-btn b { font-size: 15px; font-weight: 800; color: var(--ink); }
.choice-btn small { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.choice-btn:hover { border-color: var(--primary); }
.choice-btn.on { border: 2px solid var(--primary); background: #fff; box-shadow: 0 4px 14px rgba(100,204,227,.25); padding: 9px 7px; }
.choice-btn:focus-visible { outline: 3px solid rgba(100,204,227,.6); outline-offset: 2px; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; background: #e3f6fa; border-radius: 12px; padding: 12px 16px; margin-top: 4px; }
.pay-total span { font-weight: 700; color: var(--primary-dark); }
.pay-total b { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.pay-total small { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
@media (max-width: 1020px) { .pay { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) { .choice, .choice-4 { grid-template-columns: 1fr 1fr; } .pay-page { padding-top: 32px; } }

/* ---------- Юридические документы (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 { font-size: 24px; line-height: 1; }
.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; } }

/* ---------- «Изнутри»: снимки СРМ ---------- */
.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 { 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); }
.tour-tabs button.on { background: var(--primary); 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; }
.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%; font-size: 18px; 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, #e3f6fa 0%, #f1eefc 100%); border: 1px solid #cdeef6; border-radius: 22px;
    padding: 44px 48px; box-shadow: 0 20px 50px rgba(100,204,227,.18);
}
.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-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 { font-size: 34px; line-height: 1; }
.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 { font-size: 26px; line-height: 1; }
.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; } .top-actions .btn-primary { display: none; } }

/* ---------- Инструкция (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%; } }

/* Уведомление о cookie — только информирует (используются лишь необходимые для работы сайта
   cookie, без выбора "отклонить"), само исчезает через 12 сек., или сразу по кнопке. */
.cookie-notice {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 5000;
    max-width: 640px; margin: 0 auto;
    background: var(--ink); color: #fff; border-radius: 14px;
    padding: 14px 16px; box-shadow: 0 12px 32px rgba(0,0,0,.35);
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: 13.5px; line-height: 1.5;
    animation: cookieIn .3s ease;
}
.cookie-notice a { color: #9fe3f2; }
.cookie-notice-ok {
    flex-shrink: 0; background: var(--primary); color: #0f172a; border: none; border-radius: 9px;
    padding: 8px 16px; font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit;
    margin-left: auto;
}
.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) {
    .cookie-notice { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; font-size: 12.5px; }
    .cookie-notice-ok { margin-left: 0; width: 100%; text-align: center; }
}
