/* ── Golos Text (Паратайп, OFL) — self-hosted, латиница+кириллица ───── */
@font-face { font-family: "Golos Text"; font-weight: 400; font-style: normal; font-display: swap;
    src: url("../fonts/golos-latin-400.4b88b42724af.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-style: normal; font-display: swap;
    src: url("../fonts/golos-cyrillic-400.a82793f97f91.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-weight: 700; font-style: normal; font-display: swap;
    src: url("../fonts/golos-latin-700.12965d0becae.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-style: normal; font-display: swap;
    src: url("../fonts/golos-cyrillic-700.ee4900035a09.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ── Дизайн-токены (палитра 1С: жёлтый + красный логотип) ───────────── */
:root {
    --yellow: #f5c518;       /* бренд */
    --yellow-hi: #ffd84d;    /* блик/градиент кнопок */
    --yellow-dark: #e0a800;  /* границы/нажатие */
    --red: #d81e05;          /* только логотип */
    --red-dark: #b5170a;
    --ink: #17181b;
    --muted: #6b6558;        /* тёплый серый со сдвигом к жёлтому */
    --line: #ece9e1;         /* тёплый hairline */
    --bg: #faf9f6;           /* тёплый почти-белый вместо холодного */
    --card: #ffffff;
    --grey-bg: #f0eee8;
    --amber: #8a6d00;
    --amber-bg: #fff3cf;
    --green: #0e8a43;
    --green-bg: #e7f6ec;
    --radius: 14px;
    --radius-sm: 10px;
    /* Многослойные тени-высоты вместо одной еле заметной */
    --shadow: 0 1px 2px rgba(28,24,12,.05), 0 1px 3px rgba(28,24,12,.04);
    --e2: 0 2px 4px rgba(28,24,12,.05), 0 6px 16px rgba(28,24,12,.07);
    --e3: 0 8px 20px rgba(28,24,12,.10), 0 2px 6px rgba(28,24,12,.06);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Golos Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { margin-top: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }

/* ── Шапка: жёлтая полоса, красный логотип ─────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    height: 60px;
    background: var(--yellow);
    border-bottom: 1px solid var(--yellow-dark);
}
.brand {
    /* Логотип — прежний системный шрифт (решение владельца), Golos не наследует */
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.5px;
    color: var(--red);
}
.brand:hover { text-decoration: none; color: var(--red-dark); }
.topbar nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topbar nav a {
    color: #2a2620;
    padding: 8px 13px;
    border-radius: 9px;
    font-size: .95rem;
    font-weight: 550;
    transition: background .15s;
}
.topbar nav a:hover { background: rgba(0,0,0,.09); text-decoration: none; }

.container { max-width: 1080px; margin: 28px auto; padding: 0 20px; }

/* ── Карточки ──────────────────────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.card.center { text-align: center; }
.muted { color: var(--muted); font-size: .9em; }
.error { color: var(--ink); }
.pos { color: #097a3a; }
.neg { color: var(--ink); }

/* ── Раскладка с сайдбаром (лента заказов) ─────────────────────────── */
.layout { display: flex; gap: 20px; align-items: flex-start; }
.sidebar {
    flex: 0 0 220px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 16px;
}
.sidebar h3 { margin: 0 0 6px; font-size: 1rem; }
.filter-group { margin-top: 14px; }
.filter-group .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.filter-group a {
    display: block;
    padding: 7px 14px;
    border-radius: 999px;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 550;
    transition: background .15s;
}
.filter-group a:hover { background: var(--grey-bg); text-decoration: none; }
.filter-group a.active { background: var(--yellow); color: #1b1b1b; font-weight: 700; }

.role-tabs { display: flex; gap: 8px; margin: 4px 0 14px; flex-wrap: wrap; }
.role-tabs a {
    display: inline-block;
    padding: 7px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 600;
    transition: border-color .15s, background .15s;
}
.role-tabs a:hover { border-color: var(--yellow-dark); text-decoration: none; }
.role-tabs a.active { background: var(--yellow); border-color: var(--yellow-dark); font-weight: 700; }
.feed { flex: 1; min-width: 0; }

/* ── Строка заказа ─────────────────────────────────────────────────── */
.order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    color: var(--ink);
    transition: transform .14s, box-shadow .18s, border-color .18s;
}
.order-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--e3);
    border-color: color-mix(in srgb, var(--yellow-dark) 55%, var(--line));
    text-decoration: none;
}
.order-title { font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
.order-meta { margin-top: 5px; }
.order-price { white-space: nowrap; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
/* Мета-строка карточки: цветной бейдж + чип категории + зелёные отклики */
.order-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 9px; font-size: .86rem; }
.order-meta-row .muted { font-size: .86rem; }
.tag { background: var(--grey-bg); color: var(--ink); font-weight: 600; padding: 4px 11px; border-radius: 999px; font-size: .82rem; }
.resp { color: var(--green, #0e8a43); font-weight: 700; }

.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Заголовок в карточке задачи — компактный (заказчики пишут простыни), тег h1 для SEO */
h1.task-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.45; margin-bottom: 6px; }
.task-status { margin: 0 0 10px; }
@media (max-width: 760px) {
    h1.task-title { font-size: 1rem; }
}
.desc { white-space: pre-wrap; }

/* ── Бейджи статусов ───────────────────────────────────────────────── */
.badge { font-size: .78rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.badge-published { background: var(--green-bg, #e7f6ec); color: var(--green, #0e8a43); }
.badge-in_progress { background: #e7f0fb; color: #1d5fb0; }
.badge-closed { background: var(--grey-bg); color: #6b6558; }
.badge-expired { background: var(--grey-bg); color: #6b6558; }
.badge-rejected { background: #fdecec; color: #b5170a; }
.badge-pending { background: #fff5d9; color: #8a6d00; }
.badge-customer { background: #fff5d9; color: #8a6d00; }
.badge-executor { background: var(--green-bg, #e7f6ec); color: var(--green, #0e8a43); }

/* ── Кнопки ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 22px;
    background: linear-gradient(180deg, var(--yellow-hi), var(--yellow));
    color: #1b1b1b;
    border: 1px solid var(--yellow-dark);
    border-radius: 999px;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.5);
    transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--e2), inset 0 1px 0 rgba(255,255,255,.5); text-decoration: none; color: #1b1b1b; }
.btn:active { transform: translateY(0); }
.btn.green { background: linear-gradient(180deg, #15a155, #097a3a); color: #fff; border-color: #076c30; }
.btn.green:hover { background: linear-gradient(180deg, #109049, #076c30); color: #fff; }
.btn-link { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; text-decoration: underline; font: inherit; }
.btn-link:hover { color: var(--ink); }

/* ── Формы ─────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: .92em; color: var(--muted); }
.form input[type=text], .form input[type=password], .form input[type=email], .form textarea {
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    color: var(--ink);
    width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--yellow-dark); box-shadow: 0 0 0 3px rgba(245,197,24,.25); }
.form label.checkbox { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.contacts-block { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.contacts-block legend { font-size: .92em; color: var(--muted); padding: 0 6px; }

/* ── Баланс / статы ────────────────────────────────────────────────── */
.balance { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; }
.balance .amount { font-size: 2em; font-weight: 800; }
/* flex-колонка растягивает детей на всю ширину — кнопке ширину по содержимому */
.balance .btn { align-self: flex-start; margin-top: 6px; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.stats .muted { display: block; }

/* ── Таблицы ───────────────────────────────────────────────────────── */
table.txns { width: 100%; border-collapse: collapse; }
table.txns th, table.txns td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: .92em; }
table.txns th { color: var(--muted); font-weight: 600; }
table.top td:first-child { width: 36px; color: var(--muted); }
table.top a { color: var(--ink); }

/* ── Отзывы ────────────────────────────────────────────────────────── */
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: none; }
.review-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-text { margin: 6px 0 0; white-space: pre-wrap; }

/* ── Чат / мессенджер ──────────────────────────────────────────────── */
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.chat-head form { margin: 0; }
.chat-head .btn { margin-top: 0; white-space: nowrap; }
.chat-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.contacts-panel { background: var(--yellow); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; word-break: break-word; }
.flag-warn { display: inline-block; background: #ffe08a; color: #7a5200; border-radius: 6px; padding: 1px 6px; font-size: .8em; white-space: nowrap; cursor: help; }
.breadcrumbs { font-size: .85em; color: var(--muted, #888); margin: 0 0 10px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: var(--text, #333); }
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 4px 0 12px; }
.bubble { max-width: 75%; padding: 8px 12px; border-radius: 12px; }
.bubble-text { white-space: pre-wrap; word-break: break-word; }
.bubble-time { font-size: .75em; margin-top: 3px; }
.bubble.mine { align-self: flex-end; background: var(--yellow); }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2ea043; vertical-align: middle; }
.ticks { color: #9a9a9a; white-space: nowrap; }
/* Двойная галочка «прочитано» — два ✓ внахлёст боксами (хвосты целые, не режутся). */
.ticks.read { color: #1d5fb0; padding-right: 2px; }
.ticks.read i { font-style: normal; display: inline-block; }
.ticks.read i + i { margin-left: -0.42em; }
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #2ea043; color: #fff; font-size: .75rem; line-height: 18px; text-align: center; vertical-align: middle; }
.nav-badge[hidden] { display: none; }
.bubble.theirs { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); }
.chat-form { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 12px; }
.chat-form textarea { flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }
.chat-form .btn { margin-top: 0; white-space: nowrap; }
.responder-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.responder-row:last-child { border-bottom: none; }
.responder-row .btn { margin-top: 0; padding: 6px 16px; }

/* ── Фильтры / пагинация ───────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .82em; color: var(--muted); }
.filters select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); }
.filters input[type=date] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); }
/* Пустое поле (класс .empty вешает JS) — подсказка «дд.мм.гггг» серая;
   как только дата введена, класс снимается и текст становится обычным. */
.filters input[type=date].empty { color: var(--muted); }
.filters .btn { margin-top: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }

/* ── Сообщения ─────────────────────────────────────────────────────── */
.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.msg { padding: 11px 16px; border-radius: 8px; margin-bottom: 8px; }
.msg.success { background: #e7f6ec; color: #097a3a; }
.msg.error { background: #fdecec; color: var(--ink); }
.msg.info { background: #fff5d9; color: #8a6d00; }

/* ── Админ-панель ──────────────────────────────────────────────────── */
.danger { color: var(--red); }
.panel-layout { display: flex; gap: 20px; align-items: flex-start; }
.panel-nav {
    flex: 0 0 200px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.panel-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 550; transition: background .15s; }
.panel-nav a:hover { background: var(--grey-bg); text-decoration: none; }
.panel-nav a.active { background: var(--yellow); font-weight: 700; }
.panel-content { flex: 1; min-width: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 12px 0 24px; }
.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat b { font-size: 1.5rem; }
.stat small { color: var(--muted); }
.stat.queue { color: var(--ink); }
.stat.queue:hover { border-color: var(--yellow-dark); text-decoration: none; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: .92em; }
.admin-table th { color: var(--muted); font-weight: 600; background: var(--bg); }
.admin-table tr:last-child td { border-bottom: none; }

.panel-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.panel-filters input[type=text], .panel-filters select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); }
.panel-filters .btn { margin-top: 0; }

.panel-actions { display: flex; flex-wrap: wrap; gap: 20px; }
.panel-actions form { display: flex; flex-direction: column; gap: 6px; }
.panel-actions label { font-size: .85em; color: var(--muted); }
.panel-actions input[type=text] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.panel-actions .btn { margin-top: 4px; }
.btn.danger { background: #fdecec; color: var(--red); border-color: #f3b9b3; }
.btn.danger:hover { background: #f8d7d2; color: var(--red-dark); }

.panel-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 4px 0; border-bottom: 1px solid var(--line); font-size: .92em; }
ul.plain li:last-child { border-bottom: none; }

.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-presets .preset { margin-top: 0; padding: 6px 14px; }
.invoice .admin-table th { width: 220px; }
.invoice .items th { width: auto; }
.invoice .items .items-total { text-align: right; }
.sitefooter { max-width: 1040px; margin: 32px auto 24px; padding: 16px; border-top: 1px solid var(--line); font-size: .9em; text-align: center; }
.sitefooter a { color: var(--muted); }
.legal h2 { font-size: 1.05rem; margin-top: 22px; }
.legal ul { margin: 6px 0; }
.legal.card .admin-table th { width: 200px; }
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px;
    max-width: 980px; margin: 0 auto;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 14px 18px; font-size: .9em; z-index: 50;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .btn { margin-top: 0; white-space: nowrap; }
.cookie-banner span { flex: 1 1 240px; }
@media print {
    .topbar, .noprint, .messages { display: none !important; }
    .card.invoice { border: none; box-shadow: none; }
}

/* ── Статистика категории на лендинге /uslugi/ ─────────────────────── */
.cat-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 6px; }
.cat-stats .stat {
    flex: 1 1 150px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    background: var(--bg);
}
.cat-stats .stat b { display: block; font-size: 1.5rem; color: var(--red); line-height: 1.1; }
.cat-stats .stat span { color: var(--muted); font-size: .88rem; }

/* ── Адаптив ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    .panel-layout { flex-direction: column; }
    .panel-nav { position: static; width: 100%; flex-basis: auto; flex-direction: row; flex-wrap: wrap; }
    .panel-cols { grid-template-columns: 1fr; }
    .container { margin: 16px auto; }

    /* Шапка: логотип сверху по центру, меню — компактной строкой под ним */
    .topbar {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }
    .topbar .brand { text-align: center; }
    .topbar nav { justify-content: center; gap: 4px; }
    .topbar nav a { padding: 6px 9px; font-size: .88rem; }

    /* Лента: сайдбар наверх, фильтры — компактными «чипами» в строку */
    .layout { flex-direction: column; gap: 14px; }
    .sidebar { position: static; width: 100%; flex-basis: auto; padding: 12px 14px; }
    .sidebar h3 { display: none; }
    .filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
    .filter-group:first-of-type { margin-top: 0; }
    .filter-group .label { width: 100%; margin-bottom: 2px; }
    .filter-group a { display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; }

    /* Строка заказа — в столбик, цена под заголовком */
    .order-row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
    .order-price { align-self: flex-start; }

    .card { padding: 16px; }
    .stats { gap: 16px; }
}

/* Медали топ-3 (золото/серебро/бронза) — рядом с именем в топе, карточках задач и профилях */
.medal {
    display: inline-block;
    font-size: 1.05em;
    line-height: 1;
    vertical-align: -1px;
    cursor: default;
}
.medal + .medal { margin-left: 1px; }
/* Подсветка первой тройки в таблице топа */
.txns.top tr.top-1 td { background: rgba(245, 197, 24, .16); }   /* золото */
.txns.top tr.top-2 td { background: rgba(160, 160, 160, .15); }  /* серебро */
.txns.top tr.top-3 td { background: rgba(176, 118, 60, .13); }   /* бронза */
.txns.top tr.top-1 td:first-child,
.txns.top tr.top-2 td:first-child,
.txns.top tr.top-3 td:first-child { text-align: center; font-size: 1.15em; }

/* Q&A «вопрос-ответ» */
.qa-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.qa-filters a {
    display: inline-block;
    padding: 7px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .9em;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.qa-filters a:hover { border-color: var(--yellow-dark); text-decoration: none; }
.qa-filters a.active { background: var(--yellow); border-color: var(--yellow-dark); color: #1b1b1b; }
.qa-answer { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.qa-body { white-space: pre-line; }
.badge-best { background: var(--green); color: #fff; }
.qa-cta {
    margin: 18px 0;
    padding: 22px 24px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--yellow) 26%, var(--card)), var(--card));
    border: 1px solid var(--yellow-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.qa-cta .btn { margin-top: 12px; }

/* ── Hero + полоса доверия (главная) ───────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    margin: -28px -20px 28px;
    padding: 0 20px;
    background:
      radial-gradient(60% 90% at 88% -20%, color-mix(in srgb, var(--yellow) 38%, transparent), transparent 60%),
      radial-gradient(42% 70% at 6% 130%, color-mix(in srgb, var(--yellow) 20%, transparent), transparent 55%);
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 52px 0 40px; }
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--amber, #8a6d00); background: var(--amber-bg, #fff3cf);
    padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.1; max-width: 18ch; }
/* Жёлтый маркер вместо красного (красный держим только на логотипе) */
.hero h1 em {
    font-style: normal;
    background: linear-gradient(transparent 58%, color-mix(in srgb, var(--yellow) 85%, transparent) 58%);
    padding: 0 .06em;
}
.hero .lead { margin: 16px 0 26px; font-size: 1.12rem; color: var(--muted); max-width: 54ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.btn.ghost:hover { color: var(--ink); }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 40px; }
.trust .cell {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px; box-shadow: var(--shadow);
}
.trust .big { font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.trust .cap { display: block; margin-top: 6px; color: var(--muted); font-size: .87rem; }

/* Широкий вариант формы (Q&A, ответы) — на всю ширину карточки */
.form.form-wide { max-width: none; }
/* Напоминания в панели: широкая форма, дата+повтор в одну строку */
.rem-form { max-width: 640px; }
.form select, .rem-form input[type=date] {
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
.rem-row { display: flex; gap: 14px; }
.rem-row label { flex: 1; }
.rem-edit { margin: 8px 0; }
.rem-edit summary { cursor: pointer; color: var(--muted); font-size: .92em; }
.rem-edit .rem-form { margin-top: 10px; }

/* Справка: вопрос-подзаголовок */
.help-q { margin: 18px 0 4px; font-size: 1.02em; }

/* Карточка вакансии */
.vacancy-card { border-top: 1px solid #eee; padding-top: 14px; margin-top: 16px; }
.vacancy-card .btn { margin-left: 6px; }

/* Антибот-ловушка на регистрации: поле должно быть невидимым для человека, но
   остаться в DOM и в отправке формы — боты заполняют его, живые нет.
   display:none у части ботов вызывает пропуск поля, поэтому прячем смещением. */
.hp-wrap { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
