/* ==========================================================================
   Orion — маркетинговый лендинг (общая дизайн-система)
   Страницы: index.html (бизнес), messenger.html (мессенджер),
   music.html («Музыкальный кот»), install.html (установка)
   Принципы: статика без сборки, ноль внешних шрифтов и библиотек,
   контраст ≥ 4.5:1, тач-цели ≥ 44px, изображения с зарезервированным местом.
   ========================================================================== */

:root {
    /* Цвет */
    --primary: #1976d2;
    --primary-ink: #0d47a1;
    --primary-soft: #e8f1fb;
    --ink: #0b1220;
    --text: #24313f;
    --muted: #4a5568;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --line: #dfe6ee;
    --line-soft: rgba(16, 24, 40, 0.08);
    --success: #0f7b4f;
    --warn-bg: #fff8e1;
    --warn-line: #f2d99b;
    --dark: #0b1220;
    --dark-2: #131d2e;
    --on-dark: #d8e2ee;
    --on-dark-muted: #a9b8ca;

    /* Геометрия */
    --maxw: 1120px;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 1px 2px rgba(13, 24, 40, 0.06);
    --shadow: 0 14px 38px -18px rgba(13, 24, 40, 0.28);
    --shadow-lg: 0 26px 60px -28px rgba(13, 24, 40, 0.4);

    /* Шрифт: только системный стек — нет сети, нет CLS */
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: var(--primary-ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--primary);
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

:focus-visible {
    outline: 3px solid rgba(25, 118, 210, 0.55);
    outline-offset: 2px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--primary-ink);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------- layout */

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 88px 0;
}

.section--tight {
    padding: 56px 0;
}

.section--muted {
    background: var(--surface);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.section__head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section__head--left {
    margin-left: 0;
    text-align: left;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-ink);
}

.h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    font-weight: 900;
}

.h3 {
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 800;
}

.lead {
    margin-top: 16px;
    font-size: 1.06rem;
    color: var(--muted);
    max-width: 62ch;
}

.section__head .lead {
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------------- buttons */

.btn {
    --btn-bg: var(--primary);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
    box-shadow: 0 10px 24px -12px rgba(25, 118, 210, 0.75);
}

.btn:hover {
    --btn-bg: #1565c0;
    color: var(--btn-fg);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px -14px rgba(25, 118, 210, 0.8);
}

.btn:active {
    transform: translateY(0);
}

.btn--ghost {
    --btn-bg: var(--surface);
    --btn-fg: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
    --btn-bg: #eef3f9;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.btn--on-dark {
    --btn-bg: #fff;
    --btn-fg: var(--primary-ink);
    box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.6);
}

.btn--on-dark:hover {
    --btn-bg: #e8f1fb;
    color: var(--primary-ink);
}

.btn--sm {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.94rem;
    border-radius: 12px;
}

.btn--block {
    width: 100%;
}

.btn svg {
    flex: none;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 900;
    font-size: 1.22rem;
    letter-spacing: 0.16em;
    text-decoration: none;
    padding: 6px 0;
}

.brand:hover {
    color: var(--ink);
}

.brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex: none;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    list-style: none;
}

.nav__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.nav__links a:hover {
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.nav__cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__switcher {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
}

.nav__switcher:hover {
    background: var(--primary-soft);
    color: var(--primary-ink);
}

/* Мобильное меню без JS: <details> */
.nav-toggle {
    display: none;
    position: relative;
}

.nav-toggle > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle > summary::-webkit-details-marker {
    display: none;
}

.nav-toggle[open] > summary {
    background: var(--primary-soft);
}

.nav-toggle__panel {
    position: absolute;
    right: 0;
    top: 54px;
    width: min(86vw, 300px);
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 4px;
    /* В меню до 9 ссылок: на низком экране панель не должна уезжать за край. */
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-toggle__panel a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.nav-toggle__panel a:hover {
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.nav-toggle__panel .btn {
    margin-top: 6px;
}

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 80px;
    background:
        radial-gradient(1100px 520px at 82% -10%, rgba(25, 118, 210, 0.16), transparent 62%),
        radial-gradient(760px 420px at 4% 8%, rgba(25, 118, 210, 0.09), transparent 60%),
        var(--bg);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: center;
    gap: 56px;
}

.hero__title {
    margin: 0 0 20px;
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.hero__title em {
    font-style: normal;
    color: var(--primary);
}

.hero__lead {
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    color: #38485a;
    max-width: 56ch;
}

.hero__actions {
    margin-top: 30px;
}

.hero__note {
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--muted);
}

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

.hero__media .browser {
    max-width: 560px;
}

/* --------------------------------------------------------------- chips */

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: #28374a;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

/* ------------------------------------------------------- device frames */

.phone {
    width: min(300px, 78vw);
    padding: 10px;
    border-radius: 40px;
    background: linear-gradient(160deg, #24313f, #0b1220 60%);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.phone img {
    width: 100%;
    border-radius: 31px;
    background: #fff;
}

.phone--float {
    transform: rotate(-1.5deg);
}

.browser {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.browser__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--line);
}

.browser__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
}

.browser__url {
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.66rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser img {
    display: block;
    width: 100%;
}

/* ---------------------------------------------------------------- grid */

.grid {
    display: grid;
    gap: 22px;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card--plain {
    box-shadow: none;
    background: transparent;
    border-color: var(--line-soft);
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary-ink);
}

.card__title {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 800;
}

.card__text {
    font-size: 0.97rem;
    color: var(--muted);
}

.card__text + .card__text {
    margin-top: 10px;
}

/* --------------------------------------------------------- feature rows */

.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.feature-row + .feature-row {
    margin-top: 72px;
}

.feature-row__media {
    display: flex;
    justify-content: center;
}

.feature-row--reverse .feature-row__media {
    order: -1;
}

.feature-row__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.feature-row__title {
    margin-bottom: 14px;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 900;
}

.feature-row__text {
    color: var(--muted);
    font-size: 1rem;
}

.checklist {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 30px;
    font-size: 0.97rem;
    color: var(--text);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-soft);
}

.checklist li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 0.5em;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--primary-ink);
    border-bottom: 2px solid var(--primary-ink);
    transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- steps */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 700;
}

.step__title {
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 800;
}

.step__text {
    font-size: 0.95rem;
    color: var(--muted);
}

/* -------------------------------------------------------------- metrics */

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.metric {
    padding: 22px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-align: center;
}

.metric__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-ink);
    letter-spacing: -0.02em;
}

.metric__label {
    display: block;
    margin-top: 4px;
    font-size: 0.86rem;
    color: var(--muted);
}

/* -------------------------------------------------------------- pricing */

.pricing {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.plan--featured {
    border-color: rgba(25, 118, 210, 0.45);
    box-shadow: 0 22px 48px -26px rgba(25, 118, 210, 0.55);
}

.plan--featured::before {
    content: "Выбирают чаще";
    position: absolute;
    top: -13px;
    left: 26px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan__name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08rem;
    font-weight: 800;
}

.plan__badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.plan__price {
    margin: 14px 0 4px;
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.plan__price span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0;
}

.plan__desc {
    font-size: 0.95rem;
    color: var(--muted);
}

.plan__label {
    margin: 22px 0 10px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.plan__list {
    display: grid;
    gap: 8px;
    list-style: none;
    font-size: 0.94rem;
}

.plan__list li {
    position: relative;
    padding-left: 20px;
}

.plan__list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: -1px;
    color: var(--primary);
    font-weight: 900;
}

.plan__note {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--warn-bg);
    border: 1px solid var(--warn-line);
    font-size: 0.87rem;
    color: #6b4e00;
}

.plan__meta {
    margin-top: 16px;
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.55;
}

.plan__cta {
    margin-top: auto;
    padding-top: 22px;
}

/* ---------------------------------------------------- таблица тарифов */

.money {
    margin-top: 40px;
    padding: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.money__title {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.money__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 22px 0 26px;
}

.money__col {
    padding: 18px;
    border-radius: var(--radius-sm);
    background: #f7fafd;
    border: 1px solid var(--line-soft);
}

.money__col h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 800;
}

.money__col p {
    font-size: 0.93rem;
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    background: var(--surface);
}

.price-table th,
.price-table td {
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line-soft);
}

.price-table thead th {
    background: #f1f5f9;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table td.num {
    font-family: var(--mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-ink);
    white-space: nowrap;
}

.money__note {
    margin-top: 16px;
    font-size: 0.87rem;
    color: var(--muted);
}

/* ------------------------------------------------- тарифы по местам */
/* Сетка «места × уровень» (задача 0197). На узком экране строки
   превращаются в карточки правилами ниже — как у таблицы цен на ИИ. */

.price-table--seats {
    width: 100%;
}

/* Шесть колонок не должны сжиматься в нечитаемые: на десктопе разрешаем
   горизонтальную прокрутку внутри .table-wrap. На мобильном это правило
   выключено — там таблица уже перестроена в карточки. */
@media (min-width: 641px) {
    .price-table--seats {
        min-width: 760px;
    }
}

.price-table tbody th[scope="row"] {
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}

.price-table__hint {
    display: block;
    margin-top: 2px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
    white-space: normal;
}

.price-table td.is-muted {
    color: var(--muted);
    font-weight: 600;
}

.price-table .num small {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--muted);
}

/* Одна строка про годовую скидку — без второй таблицы. */
.pricing-note {
    /* Отступ от таблицы: подпись читают сразу после цен, но не «внахлёст» —
       на узком экране таблица превращается в карточки и подпись должна
       отделяться от последней из них. */
    margin: 28px 0 0;
    padding: 16px 18px;
    line-height: 1.6;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: 0.9rem;
}

.pricing-subtitle {
    /* Больше воздуха до заголовка: он открывает новый смысловой блок
       («что входит»), а не продолжает таблицу. */
    margin: 56px 0 20px;
    font-size: 1.25rem;
    font-weight: 900;
}

#services .btn-row {
    margin-top: 22px;
}

/* ------------------------------------------------------------ info-box */

.info-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-top: 32px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.info-box__title {
    margin-bottom: 8px;
    font-size: 1.02rem;
    font-weight: 800;
}

.info-box__text {
    font-size: 0.92rem;
    color: var(--muted);
}

.info-box__text .linkbtn {
    /* Кнопка-ссылка внутри абзаца: держим палец-цель в 44 px.
       inline-block, а не inline-flex: подчёркивание внутри flex-контейнера
       не переходит на анонимный элемент, и ссылка теряла вид. */
    display: inline-block;
    min-height: 44px;
    padding: 0 2px;
    border: none;
    background: none;
    color: var(--primary-ink);
    font: inherit;
    /* после font: inherit — иначе шорткат сбросит line-height */
    line-height: 44px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    vertical-align: middle;
}

/* ----------------------------------------------------------------- faq */

.faq {
    max-width: 820px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 18px 4px;
    cursor: pointer;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--ink);
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "+";
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.faq__item[open] summary::after {
    content: "−";
}

.faq__answer {
    padding: 0 4px 22px;
    color: var(--muted);
    font-size: 0.97rem;
    max-width: 70ch;
}

/* ------------------------------------------------------------- cta band */

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 52px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(620px 300px at 88% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
        linear-gradient(135deg, #0d47a1, #1976d2 72%);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.cta-band__title {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 900;
    max-width: 22ch;
}

.cta-band__text {
    margin-top: 12px;
    max-width: 56ch;
    color: #e3edf9;
    font-size: 1rem;
}

.cta-band__actions {
    margin-top: 26px;
}

/* -------------------------------------------------------------- footer */

.site-footer {
    margin-top: auto;
    background: var(--dark);
    color: var(--on-dark);
    padding: 60px 0 28px;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.footer__brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 10px;
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 0.16em;
    text-decoration: none;
    margin-bottom: 14px;
}

.footer__brand:hover {
    color: #fff;
}

.footer__about {
    font-size: 0.9rem;
    color: var(--on-dark-muted);
    max-width: 36ch;
}

.footer__col h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer__links {
    display: grid;
    gap: 2px;
    list-style: none;
}

.footer__links a,
.footer__links button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 0;
    color: var(--on-dark);
    font-size: 0.92rem;
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    width: fit-content;
}

.footer__links a:hover,
.footer__links button:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer__legal {
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 12px;
}

.footer__requisites {
    font-size: 0.83rem;
    line-height: 1.7;
    color: var(--on-dark-muted);
}

.footer__requisites a {
    color: var(--on-dark);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    font-size: 0.83rem;
    color: var(--on-dark-muted);
}

.footer__bottom .doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.footer__bottom .doc-links button {
    min-height: 44px;
    padding: 6px 0;
    background: none;
    border: none;
    color: var(--on-dark);
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.footer__bottom .doc-links button:hover {
    color: #fff;
}

/* --------------------------------------------------------------- modal */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    padding: 20px;
    background: rgba(6, 12, 22, 0.62);
    overflow-y: auto;
}

.modal.is-open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal__panel {
    width: 100%;
    max-width: 720px;
    margin: 6vh auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}

.modal__head h2 {
    font-size: 1.1rem;
    font-weight: 900;
}

.modal__close {
    min-height: 44px;
    padding: 8px 14px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.modal__close:hover {
    background: #f1f5f9;
}

.modal__body {
    padding: 22px 24px;
    max-height: 62vh;
    overflow-y: auto;
    color: var(--text);
    font-size: 0.95rem;
}

.modal__body p {
    margin-bottom: 12px;
}

.modal__body p:last-child {
    margin-bottom: 0;
}

.modal__foot {
    padding: 16px 24px 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
}

/* ------------------------------------------------------------ адаптив */

@media (max-width: 1024px) {
    .hero {
        padding: 56px 0 64px;
    }

    .hero__inner {
        gap: 36px;
    }

    .feature-row {
        gap: 36px;
    }

    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nav__links,
    .nav__switcher {
        display: none;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }
}

@media (max-width: 820px) {
    .hero__inner,
    .feature-row,
    .feature-row--reverse {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-row__media,
    .feature-row--reverse .feature-row__media {
        order: 2;
    }

    .hero__media {
        margin-top: 8px;
    }

    .grid--3,
    .pricing,
    .steps,
    .info-box,
    .money__cols,
    .grid--2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-row + .feature-row {
        margin-top: 52px;
    }

    .footer__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 28px;
    }

    .cta-band {
        padding: 34px 26px;
    }

    .money {
        padding: 24px 20px;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 78px;
    }

    body {
        font-size: 16px;
    }

    .wrap {
        padding: 0 18px;
    }

    .section {
        padding: 58px 0;
    }

    .section--tight {
        padding: 44px 0;
    }

    .section__head {
        margin-bottom: 32px;
    }

    .hero {
        padding: 40px 0 52px;
    }

    .btn-row .btn {
        width: 100%;
    }

    .nav__cta .btn {
        display: none;
    }

    .nav__cta {
        margin-left: auto;
    }

    .footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-table thead {
        display: none;
    }

    .price-table tbody tr {
        display: block;
        padding: 14px;
        border-bottom: 1px solid var(--line);
    }

    .price-table tbody tr:last-child {
        border-bottom: none;
    }

    .price-table tbody th,
    .price-table td {
        display: block;
        border: none;
        padding: 3px 0;
        text-align: left;
    }

    /* Первая ячейка строки — название тарифа: у <th> она уже выделена. */
    .price-table tbody th[scope="row"] {
        font-size: 1rem;
        margin-bottom: 6px;
        padding-top: 0;
        white-space: normal;
    }

    .price-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--muted);
        margin-bottom: 2px;
    }

    .price-table td:first-child::before {
        content: none;
    }

    .price-table td:first-child {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .modal__panel {
        margin: 0;
    }

    .modal__head,
    .modal__body {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .btn:hover,
    .phone--float {
        transform: none;
    }
}
