/*
    Симпа — фирменные токены. Всё оформление берёт цвета отсюда: правка одного
    места меняет и сайт, и карточку для сторис (её цвета продублированы в
    ShareImageService — Java2D не читает CSS).

    Три ноты градиента — это три оси результата. Разводить их по цвету нужно
    не для красоты: на главном экране три кольца стоят рядом, и различать их
    надо с одного взгляда.
*/

/*
    Фирменный шрифт Golos Text (SIL OFL, кириллица родная). Файлы .woff2 лежат
    в static/fonts, разбиты по начертанию (400/500/700/900) и алфавиту
    (кириллица/латиница): по unicode-range браузер грузит только нужный кусок,
    поэтому русская страница почти не тянет латиницу.

    font-display: swap — текст рисуется системным шрифтом сразу и заменяется
    фирменным по загрузке, без пустого экрана.
*/
@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/golos-text-regular-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/golos-text-regular-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/golos-text-medium-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/golos-text-medium-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/golos-text-bold-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/golos-text-bold-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("/fonts/golos-text-black-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("/fonts/golos-text-black-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --violet: #7C3AED;   /* семья */
    --pink: #EC4899;     /* симпатия */
    --cyan: #06B6D4;     /* дружба */

    --accent: var(--violet);
    --accent-deep: #6D28D9;
    --cyan-deep: #0891B2;

    --ink: #1E1B2E;
    --muted: #6B7280;
    --line: #E5E0EE;
    --bg: #FAFAFC;
    --card: #FFFFFF;

    --brand-gradient: linear-gradient(120deg, var(--violet), var(--pink) 55%, var(--cyan));

    --radius: 20px;
    --shadow: 0 10px 40px rgba(30, 27, 46, 0.08);
    /*
        Golos Text — кириллица родная, лицензия свободная (SIL OFL). Файлы лежат
        в static/fonts и подключены через @font-face выше; системный набор
        остаётся запасным, пока шрифт грузится (font-display: swap).
    */
    --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container { width: min(1120px, 92%); margin: 0 auto; }

section { padding: 84px 0; }

/* ---------- Шапка сайта: та самая тёмная полоса ---------- */
/*
    Всё в одной полосе: знак, позиционирование и вход. Липкая — знак и «Войти»
    не уезжают вместе с героем, иначе со второго экрана нажать некуда.
*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--ink);
    color: #fff;
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}
.site-header .nav-brand { color: #fff; text-decoration: none; font-size: 20px; }
/*
    Позиционирование, а не пункт меню. Поэтому засечный курсив против рубленого
    интерфейса: строка читается как реплика и не спорит с кнопками рядом.
    Georgia есть и в Windows, и в macOS — до появления своего шрифта работает
    у почти всех.
*/
.header-claim {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 16px;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
}
.claim-dot { color: var(--pink); font-style: normal; font-size: 13px; }

/* На узком экране остаются только знак и вход — строка уходит. */
@media (max-width: 860px) {
    .header-claim { display: none; }
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 560px;
    margin: 14px auto 0;
    font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 8px 24px rgba(124, 58, 237, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(236, 72, 153, .4); }
.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1.5px solid rgba(255, 255, 255, .5);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.btn-soft { color: var(--violet); background: #F3EEFE; }
.btn-soft:hover { background: #E9E0FB; transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav { position: relative; z-index: 3; padding-top: 22px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand {
    color: #fff; font-weight: 900; font-size: 22px; letter-spacing: -0.01em;
    display: inline-flex; align-items: center; gap: 9px;
}
/* Знак и слово — одна связка: знак работает один в иконке, слово рядом на сайте.
   Скругления нет: знак стоит без плашки, скруглять нечего. */
.brand-mark { display: block; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-nav {
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: #fff;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, .55);
    font-family: var(--font);
    transition: background .15s ease;
}
.btn-nav:hover { background: rgba(255, 255, 255, .18); }
.btn-nav-solid { background: #fff; color: var(--violet); border-color: #fff; }
.btn-nav-solid:hover { background: #F3EEFE; }
.nav-email { color: #fff; font-size: 14px; font-weight: 600; }
.nav-tariff {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

/* ---------- Store badges ---------- */
.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 14px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .28);
    transition: transform .15s ease, background .15s ease;
    cursor: pointer;
}
.store-badge:hover { transform: translateY(-2px); background: #14121f; }
.store-ico { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; font-weight: 700; font-size: 17px; }
.store-badge small { font-size: 11px; font-weight: 500; opacity: .8; text-transform: uppercase; letter-spacing: .02em; }
.footer-apps-title { color: #C9C4D6; font-size: 15px; margin-bottom: 14px; }
.footer .store-badges, footer .store-badges { margin-bottom: 26px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 96px 0 120px;
    overflow: hidden;
    background: linear-gradient(130deg, #6D28D9, #9333EA 30%, #DB2777 65%, #0891B2);
    background-size: 200% 200%;
    animation: gradientShift 14s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
.hero-badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.hero p {
    font-size: clamp(17px, 2.5vw, 21px);
    max-width: 620px;
    margin: 20px auto 34px;
    opacity: .95;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .heart {
    position: absolute;
    font-size: 26px;
    opacity: .5;
    animation: float 9s ease-in-out infinite;
    user-select: none;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-26px) rotate(12deg); }
}

/* ---------- Demo widget ---------- */
.demo-card {
    background: var(--card);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 36px;
    margin-top: 40px;
}
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.person {
    border: 1.5px solid #EFEAF6;
    border-radius: var(--radius);
    padding: 24px 22px;
    background: #FDFCFF;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
}
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.person h3 { font-size: 19px; margin: 12px 0 16px; }
.person .field { text-align: left; }
.avatar {
    width: 68px; height: 68px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: #fff; font-weight: 700;
    box-shadow: 0 6px 18px rgba(124, 58, 237, .28);
}
.avatar-male { background: linear-gradient(135deg, #6366F1, #7C3AED); }
.avatar-female { background: linear-gradient(135deg, #EC4899, #F472B6); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.optionalHint { color: #9AA0AA; font-weight: 500; font-size: 92%; }
.req { color: #DC2626; font-weight: 800; }
.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E5E0EE;
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font);
    background: #fff;
    transition: border-color .15s ease;
}
.field input:focus { outline: none; border-color: var(--violet); }
.seg { display: flex; gap: 8px; }
.seg button {
    flex: 1;
    padding: 11px;
    border: 1.5px solid #E5E0EE;
    background: #fff;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all .15s ease;
}
.seg button.active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(120deg, var(--violet), var(--pink));
}
.demo-actions { text-align: center; margin-top: 26px; }
.demo-error { color: #DC2626; text-align: center; margin-top: 14px; font-size: 14px; min-height: 18px; }

/* ---------- Result rings ---------- */
.result { margin-top: 30px; display: none; }
.result.show { display: block; animation: fadeUp .5s ease; }
.result-names { text-align: center; font-size: 24px; font-weight: 800; margin-bottom: 22px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rings { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.ring { text-align: center; width: 150px; }
.ring svg { transform: rotate(-90deg); }
.ring .track { fill: none; stroke: #EEE9F5; stroke-width: 12; }
.ring .bar { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.ring .pct { font-size: 26px; font-weight: 800; }
.ring .name { color: var(--muted); font-weight: 600; margin-top: 4px; }
.result-note {
    text-align: center;
    margin-top: 22px;
    font-size: 16px;
    color: var(--ink);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Celebrities ---------- */
.celebs { background: linear-gradient(180deg, #fff, #F6F2FC); }
.celeb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 44px; }
.celeb-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.celeb-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}
.celeb-person { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 90px; }
.celeb-person span { font-size: 14px; font-weight: 600; text-align: center; }
.celeb-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 14px rgba(30, 27, 46, .12);
}
/* Заглушка вместо фото: настоящая фигура в полный рост внутри круга. Файлы
   силуэтов чёрные, а нужен белый на градиенте — поэтому не картинкой, а
   маской по заливке. Без поддержки маски остаётся чистый градиент, а не
   белое пятно. */
.celeb-silh { overflow: hidden; position: relative; }
@supports ((mask-image: url(#m)) or (-webkit-mask-image: url(#m))) {
    .celeb-silh::after {
        content: ''; position: absolute; inset: 0; background: #fff;
        -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
        -webkit-mask-position: center bottom; mask-position: center bottom;
        -webkit-mask-size: auto 86%; mask-size: auto 86%;
    }
    .celeb-silh.celeb-male::after {
        -webkit-mask-image: url(/img/silhouette-male.svg);
        mask-image: url(/img/silhouette-male.svg);
    }
    .celeb-silh.celeb-female::after {
        -webkit-mask-image: url(/img/silhouette-female.svg);
        mask-image: url(/img/silhouette-female.svg);
    }
}
.celeb-male { background: linear-gradient(135deg, #6366F1, #7C3AED); }
.celeb-female { background: linear-gradient(135deg, #EC4899, #F472B6); }
.celeb-heart { font-size: 22px; }
.celeb-title { text-align: center; font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.mini-scores { display: flex; gap: 10px; }
.mini { flex: 1; text-align: center; background: #FAF7FE; border-radius: 12px; padding: 12px 6px; }
.mini .v { font-size: 20px; font-weight: 800; }
.mini .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Tariffs ---------- */
.tariff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 44px; }
.tariff-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    position: relative;
}
.tariff-card.featured { border-color: var(--violet); }
.tariff-card .badge {
    position: absolute; top: -12px; right: 20px;
    background: linear-gradient(120deg, var(--violet), var(--pink));
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 12px; border-radius: 999px;
}
.tariff-card h3 { font-size: 22px; margin-bottom: 8px; }
.tariff-card ul { list-style: none; margin-top: 16px; }
.tariff-card li { padding: 7px 0 7px 26px; position: relative; color: #37324A; }
.tariff-card li::before { content: "✓"; position: absolute; left: 0; color: var(--violet); font-weight: 800; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #C9C4D6; padding: 50px 0 40px; text-align: center; }
footer .disclaimer { max-width: 640px; margin: 0 auto 16px; font-size: 14px; line-height: 1.6; }
footer .brand {
    color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 12px;
    display: inline-flex; align-items: center; gap: 9px;
}
.footer-links { font-size: 14px; margin: 14px 0 6px; }
.footer-links a { color: #E4DEF1; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-credit { font-size: 11.5px; opacity: .55; margin: 4px 0 8px; }
.footer-credit a { color: inherit; }

/* ---------- Реквизиты и оферта ---------- */
/* Пары «название — значение»: на узком экране колонки складываются в строки. */
.req-list { display: grid; grid-template-columns: 220px 1fr; gap: 10px 18px; margin: 14px 0 22px; }
.req-list dt { color: var(--muted); font-size: 14px; }
.req-list dd { margin: 0; font-weight: 600; }
/* Незаполненный реквизит виден сразу — иначе пустая строка проходит незаметно. */
.req-todo { color: #B45309; background: #FEF3C7; padding: 1px 8px; border-radius: 6px;
    font-size: 13px; font-weight: 500; }
@media (max-width: 560px) {
    .req-list { grid-template-columns: 1fr; gap: 2px 0; }
    .req-list dd { margin-bottom: 12px; }
}
.doc-table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 15px; }
.doc-table th, .doc-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-table th { color: var(--muted); font-size: 13px; font-weight: 600; }
.doc-table td:first-child { font-weight: 600; white-space: nowrap; }
/* Таблица шире экрана скроллится внутри себя, а не растягивает страницу. */
.doc { overflow-x: auto; }

/* Порядок получения услуги на странице тарифов. */
.delivery-note { max-width: 680px; margin: 34px auto 0; background: #fff;
    border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.delivery-note h3 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.delivery-note ul { margin: 0; padding-left: 20px; }
.delivery-note li { font-size: 14.5px; line-height: 1.6; margin-bottom: 7px; color: var(--ink); }
.delivery-links { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.delivery-links a { color: var(--muted); }

/* ---------- Calculator ---------- */
.calculator { background: linear-gradient(180deg, #F6F2FC, #fff); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.person select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #E5E0EE;
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font);
    background: #fff;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid #E5E0EE;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--violet); }
.chip.active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(120deg, var(--violet), var(--pink));
}

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(30, 27, 46, .55);
    display: flex; align-items: center; justify-content: center;
    z-index: 50;
    padding: 20px;
}
.modal {
    background: #fff;
    border-radius: 22px;
    padding: 30px;
    width: min(420px, 100%);
    position: relative;
    box-shadow: 0 24px 60px rgba(30, 27, 46, .3);
}
.modal-close {
    position: absolute; top: 14px; right: 16px;
    border: none; background: none;
    font-size: 26px; color: var(--muted);
    cursor: pointer; line-height: 1;
}
.modal-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.modal-tab {
    flex: 1; padding: 11px;
    border: none; border-radius: 12px;
    background: #F3EEFE; color: var(--muted);
    font-weight: 700; cursor: pointer; font-family: var(--font);
}
.modal-tab.active {
    color: #fff;
    background: linear-gradient(120deg, var(--violet), var(--pink));
}
.modal-heading { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal-hint { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.auth-link {
    display: inline-block;
    margin: 6px 0 12px;
    color: var(--violet);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }
.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
    cursor: pointer;
    line-height: 1.4;
}
.consent input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; }
.consent a { color: var(--violet); }

/* Выбор пола при регистрации: две карточки вместо выпадающего списка */
.gender-pick { display: flex; gap: 10px; }
.gender-option { flex: 1; cursor: pointer; }
.gender-option input { position: absolute; opacity: 0; pointer-events: none; }
.gender-option span {
    display: block;
    text-align: center;
    padding: 10px 8px;
    border: 1.5px solid #E5E0EE;
    border-radius: 12px;
    font-size: 14px;
    color: var(--ink);
    transition: border-color .15s, background .15s;
}
.gender-option input:checked + span {
    border-color: var(--violet);
    background: rgba(124, 58, 237, .07);
    font-weight: 600;
}

/* ===== Полнота анкеты и подсказка ===== */
.profile-hint {
    background: #fff;
    border: 1.5px solid #E5E0EE;
    border-left: 4px solid var(--violet);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 24px;
}
.profile-hint-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.hint-close {
    background: none; border: none; font-size: 22px; line-height: 1;
    color: var(--muted); cursor: pointer; padding: 0 4px;
}
.profile-bar { height: 6px; background: #EEEAF6; border-radius: 3px; margin: 10px 0; overflow: hidden; }
.profile-bar-fill { height: 100%; background: var(--violet); border-radius: 3px; transition: width .4s ease; }
.profile-hint-text { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.profile-identity {
    font-size: 14px; color: var(--muted); margin-bottom: 14px;
    padding-bottom: 12px; border-bottom: 1px solid #EEEAF6;
}
.profile-saved { font-size: 14px; color: #16A34A; margin-left: 12px; }

/* ===== Разбор результата ===== */
.result-summary { font-size: 17px; font-weight: 600; text-align: center; margin: 18px 0 6px; }
.result-basedon { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 18px; }
.report-block { margin-top: 18px; }
.report-head { font-size: 15px; margin-bottom: 10px; }
.report-items { display: grid; gap: 10px; }
.report-item { border: 1.5px solid #E5E0EE; border-radius: 12px; padding: 12px 14px; }
.report-item-head { display: flex; justify-content: space-between; align-items: center; }
.report-item-title { font-size: 15px; font-weight: 600; }
.report-item-text { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.report-locked {
    margin-top: 20px; padding: 18px; border-radius: 14px;
    background: rgba(124, 58, 237, .07); text-align: center;
}
.locked-title { font-weight: 600; margin-bottom: 6px; }
.locked-text { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

/* ===== Парная проверка ===== */
.pair-card {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    background: #fff; border: 1.5px solid #E5E0EE; border-radius: 16px; padding: 18px 22px;
}
.pair-title { font-size: 17px; margin-bottom: 4px; }
.pair-text { font-size: 14px; color: var(--muted); }
.btn-disabled { opacity: .55; }
.danger-hint { border-left-color: #DC2626; }

/* ===== Админка ===== */
.admin-search { max-width: 320px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td {
    text-align: left; padding: 10px 12px; border-bottom: 1px solid #EEEAF6; white-space: nowrap;
}
.admin-table th { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.admin-table select { padding: 6px 8px; border: 1.5px solid #E5E0EE; border-radius: 8px; font-family: var(--font); }
.admin-table tr.row-saved { background: rgba(22, 163, 74, .08); }
.btn-link {
    background: none; border: none; padding: 0 0 0 14px;
    color: var(--violet); font-size: 14px; font-family: var(--font); cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }

.avatar-me { background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.avatar-other { background: linear-gradient(135deg, var(--pink), var(--cyan)); }

@media (max-width: 640px) {
    .pair-card { flex-direction: column; align-items: flex-start; }
}

/* Документ-страницы (политика конфиденциальности) */
.doc { max-width: 760px; }
.doc h2 { font-size: 19px; margin: 26px 0 8px; }
.doc p, .doc li { color: #37324A; line-height: 1.6; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc-draft {
    background: #FEF3C7; color: #92400E;
    border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px;
}

/* ---------- Cabinet / Pricing ---------- */
/* Та же тёмная полоса, что на лендинге: шапка везде одна и та же. */
.cab-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--ink);
    padding: 12px 0;
}
.cab-brand { color: #fff; text-decoration: none; }
.cab-email { color: #fff; font-size: 14px; font-weight: 600; opacity: .95; }
.cab-tariff { }
.cab-logout { border-color: rgba(255,255,255,.5); }
.cab-wrap { padding: 40px 0 80px; }

.account-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.account-label { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.account-tariff { font-size: 30px; font-weight: 800; margin: 2px 0; }
.account-limit { color: var(--muted); font-size: 15px; }
.account-until { color: var(--muted); font-size: 14px; margin-top: 4px; }

.cab-section { margin-bottom: 44px; }
.cab-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.cab-sub { color: var(--muted); margin-bottom: 20px; }

.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-row {
    background: var(--card);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.history-date { color: var(--muted); font-size: 14px; }
.history-scores { font-size: 15px; }
.history-scores b { color: var(--violet); }

.price { font-size: 34px; font-weight: 800; margin: 8px 0 4px; }
.price span { font-size: 16px; color: var(--muted); font-weight: 600; }
.pay-notice {
    max-width: 560px;
    margin: 30px auto 0;
    background: #F3EEFE;
    color: var(--ink);
    border-radius: 14px;
    padding: 18px 22px;
    text-align: center;
    font-weight: 600;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .demo-grid { grid-template-columns: 1fr; }
    .demo-card { padding: 22px; }
    section { padding: 60px 0; }
}
