/* ==========================================================================
   Панель опитувань — стилі (без збірки, редагуйте напряму)
   ========================================================================== */

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope.woff") format("woff");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #14213d;
    --ink-2: #24345a;
    --accent: #ff6b35;
    --accent-dark: #e8551f;
    --accent-soft: #fff0e9;
    --teal: #1fa99c;
    --teal-soft: #e3f6f3;
    --bg: #f7f5f0;
    --surface: #ffffff;
    --surface-2: #faf9f6;
    --line: #e7e2d8;
    --line-2: #d8d2c4;
    --text: #1d2433;
    --muted: #6b7180;
    --danger: #d64545;
    --danger-soft: #fdeceb;
    --success: #1f9d61;
    --success-soft: #e5f6ed;
    --warn: #b7791f;
    --warn-soft: #fdf4e3;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(20, 33, 61, .05), 0 8px 24px -12px rgba(20, 33, 61, .18);
    --shadow-lg: 0 24px 60px -24px rgba(20, 33, 61, .35);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
    color: var(--text); background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink-2); text-decoration-color: rgba(36, 52, 90, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 720px; }
.container-md { max-width: 920px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 20px; }
.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)); }
.grow { flex: 1; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(247, 245, 240, .88); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; flex: none;
}
.logo-mark .bars > span { display: block; width: 5px; background: var(--accent); border-radius: 2px; margin: 0 1.5px; align-self: end; }
.logo-mark .bars { display: flex; align-items: flex-end; height: 16px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.main-nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { background: rgba(20, 33, 61, .06); color: var(--ink); }
.main-nav a.active { color: var(--accent-dark); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px 0; }
.balance-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
    background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: .9rem; text-decoration: none;
}
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav .btn { justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c8cfdf; padding: 40px 0 28px; margin-top: 64px; font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { background: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer;
    text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s, color .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(255, 107, 53, .8); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(20, 33, 61, .06); color: var(--ink); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #f4c7c5; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #17824f; color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 6px 11px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.inline { display: inline; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card-flat { box-shadow: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card + .card { margin-top: 20px; }
.card-pad-0 { padding: 0; overflow: hidden; }
.card-pad-0 .card-head { padding: 18px 20px 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.hint, .field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.req { color: var(--accent-dark); }
.input, select.input, textarea.input {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    font: inherit; font-size: .97rem; background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(36, 52, 90, .14); }
.input.is-invalid { border-color: var(--danger); }
.input-sm { padding: 7px 10px; font-size: .9rem; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7180' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
select.input.input-sm { padding-top: 7px; padding-bottom: 7px; font-size: .9rem; background-position: right 10px center; padding-right: 28px; }
select.input[multiple] { background-image: none; padding-right: 13px; min-height: 140px; }
.error { color: var(--danger); font-size: .85rem; margin-top: 5px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; font-size: .95rem; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); max-height: 260px; overflow: auto; }
.checks-grid .check { font-size: .9rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 6px; margin: 0 0 20px; }
legend { font-weight: 800; padding: 0 8px; color: var(--ink); }

/* ---------- Alerts / badges ---------- */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: #146c43; border-color: #bfe6d2; }
.alert-error { background: var(--danger-soft); color: #a52f2f; border-color: #f4c7c5; }
.alert-info { background: #eaf0fb; color: var(--ink-2); border-color: #cfdaf1; }
.alert-warn { background: var(--warn-soft); color: #8a5a12; border-color: #f1dcb0; }
.alert ul { margin: 6px 0 0; padding-left: 20px; font-weight: 500; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: .76rem; font-weight: 700; background: #eef0f4; color: var(--ink-2); white-space: nowrap; }
.badge-active, .badge-completed, .badge-paid { background: var(--success-soft); color: #146c43; }
.badge-draft, .badge-in_progress { background: #eef0f4; color: #4a5470; }
.badge-paused, .badge-pending { background: var(--warn-soft); color: #8a5a12; }
.badge-closed, .badge-rejected { background: var(--danger-soft); color: #a52f2f; }
.badge-screened_out { background: #f1ecfb; color: #5b3d9e; }
.badge-accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge-teal { background: var(--teal-soft); color: #117a70; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fcfbf8; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions > * { margin-left: 4px; }
.amount-plus { color: var(--success); font-weight: 700; }
.amount-minus { color: var(--danger); font-weight: 700; }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 4px; flex-wrap: wrap; list-style: none; padding: 0; margin: 18px 0 0; }
.pagination a, .pagination span { display: inline-block; min-width: 36px; text-align: center; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink); }
.pagination .active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled span { color: #b8bcc6; }

/* ---------- Stats ---------- */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat .stat-label { font-size: .82rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat .stat-value { font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1.15; margin-top: 4px; }
.stat .stat-sub { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.stat-accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat-accent .stat-label, .stat-accent .stat-sub { color: #b9c3da; }
.stat-accent .stat-value { color: #fff; }

/* ---------- Bars (results) ---------- */
.bars-list { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(160px, 36%) minmax(0, 1fr); gap: 12px; align-items: center; }
.bar-label { font-size: .93rem; }
.bar-track { position: relative; height: 26px; background: #f0ede6; border-radius: 7px; overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent), #ff9a6b); border-radius: 7px; min-width: 2px; }
.bar-fill.teal { background: linear-gradient(90deg, var(--teal), #5fd1c4); }
.bar-value { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: .8rem; font-weight: 800; color: var(--ink); }
@media (max-width: 640px) { .bar-row { grid-template-columns: 1fr; gap: 4px; } }
.col-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.col-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.col-chart .col-bar { width: 100%; background: linear-gradient(180deg, #ff9a6b, var(--accent)); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.col-chart .col-num { font-size: .72rem; font-weight: 800; color: var(--ink); }
.col-chart .col-lbl { font-size: .7rem; color: var(--muted); white-space: nowrap; }

/* ---------- Landing ---------- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.02; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: #444b5c; max-width: 34em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-dark); margin-bottom: 14px; }
.hero-stats { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 1.6rem; color: var(--ink); font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .9rem; }
.hero-art { position: relative; }
.mock-card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px; border: 1px solid var(--line); }
.mock-card .q { font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.mock-opt { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 11px; margin-bottom: 8px; font-weight: 600; font-size: .93rem; }
.mock-opt i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.mock-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.mock-opt.on i { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.mock-reward { position: absolute; right: -14px; bottom: -22px; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); font-weight: 700; transform: rotate(-3deg); }
.mock-reward b { color: var(--accent); font-size: 1.4rem; }
.mock-progress { height: 6px; background: #f0ede6; border-radius: 9px; margin-bottom: 18px; overflow: hidden; }
.mock-progress div { width: 62%; height: 100%; background: var(--teal); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 420px; } }

.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #d5dbe8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .card h3 { color: var(--ink); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: #aab5cc; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 14px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.section-dark .feature { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .feature p { color: #aab5cc; }
.section-dark .feature-icon { background: rgba(255, 107, 53, .15); color: #ff9a6b; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.cta-band { background: var(--accent); color: #fff; border-radius: 22px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band .btn-dark:hover { background: #000; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 20px 18px; color: #444b5c; white-space: pre-line; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 760px; }
.auth-card h1 { font-size: 1.7rem; }

/* ---------- Cabinet ---------- */
.page-head { padding: 32px 0 20px; }
.page-head h1 { margin: 0; font-size: 1.8rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-color: var(--accent); }
.tabs a:hover { color: var(--ink); }
.survey-item { display: flex; gap: 18px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.survey-item + .survey-item { margin-top: 12px; }
.survey-item .reward { text-align: center; min-width: 88px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); }
.survey-item .reward b { display: block; font-size: 1.4rem; line-height: 1; }
.survey-item .reward span { font-size: .72rem; font-weight: 700; }
.survey-item h3 { margin: 0 0 4px; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }
@media (max-width: 600px) { .survey-item { flex-direction: column; align-items: stretch; } .survey-item .reward { display: flex; gap: 8px; align-items: baseline; justify-content: center; } }
.progress-thin { height: 8px; border-radius: 9px; background: #f0ede6; overflow: hidden; }
.progress-thin div { height: 100%; background: var(--teal); border-radius: 9px; }

/* ---------- Survey taking ---------- */
.survey-body { background: var(--bg); }
.survey-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.survey-top .container { display: flex; align-items: center; gap: 16px; height: 60px; }
.survey-progress { height: 4px; background: #efebe3; }
.survey-progress div { height: 100%; background: linear-gradient(90deg, var(--teal), #58cfc1); transition: width .4s; }
.survey-shell { max-width: 700px; margin: 0 auto; padding: 40px 20px 80px; }
.q-number { font-size: .85rem; font-weight: 800; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.q-text { font-size: clamp(1.3rem, 3vw, 1.65rem); font-weight: 800; color: var(--ink); line-height: 1.3; margin-bottom: 8px; white-space: pre-line; }
.q-help { color: var(--muted); margin-bottom: 22px; }
.choices { display: grid; gap: 10px; margin-top: 22px; }
.choice { position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 600; transition: border-color .12s, background .12s, box-shadow .12s; }
.choice:hover { border-color: var(--ink-2); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark { width: 22px; height: 22px; flex: none; border: 2px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: all .12s; background: #fff; }
.choice.multi .mark { border-radius: 6px; }
.choice input:checked ~ .mark { border-color: var(--accent); background: var(--accent); }
.choice input:checked ~ .mark::after { content: ""; width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.choice.multi input:checked ~ .mark::after { width: 11px; height: 6px; border-radius: 0; background: none; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(255, 107, 53, .12); }
.choice input:focus-visible ~ .mark { box-shadow: 0 0 0 3px rgba(36, 52, 90, .25); }
.scale { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 22px; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; }
.scale span { display: grid; place-items: center; height: 52px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); font-weight: 800; cursor: pointer; transition: all .12s; }
.scale span:hover { border-color: var(--ink-2); }
.scale input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.scale input:focus-visible + span { box-shadow: 0 0 0 3px rgba(36, 52, 90, .25); }
.scale-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-top: 8px; gap: 12px; }
@media (max-width: 520px) { .scale span { height: 44px; font-size: .9rem; } .scale { gap: 4px; } }
.survey-nav { margin-top: 32px; display: flex; justify-content: flex-end; }
.done-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; }
.done-icon svg { width: 38px; height: 38px; }
.done-icon.ok { background: var(--success-soft); color: var(--success); }
.done-icon.so { background: #f1ecfb; color: #5b3d9e; }
.reward-big { font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.test-ribbon { background: var(--warn-soft); color: #8a5a12; text-align: center; font-weight: 700; font-size: .85rem; padding: 6px; border-bottom: 1px solid #f1dcb0; }

/* ---------- Admin ---------- */
.admin-body { background: #f3f2ee; }
.admin-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--ink) 240px, transparent 240px); }
.sidebar { background: var(--ink); color: #c3cbdc; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { color: #fff; padding: 4px 8px 20px; }
.sidebar .logo-mark { background: #fff; }
.sidebar nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; color: #c3cbdc; text-decoration: none; font-weight: 600; font-size: .93rem; margin-bottom: 2px; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.active { background: rgba(255, 107, 53, .16); color: #fff; }
.sidebar nav .nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #7d89a6; padding: 16px 12px 6px; font-weight: 800; }
.sidebar .count { background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; border-radius: 99px; padding: 1px 7px; }
.sidebar-foot { margin-top: 24px; padding: 12px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.sidebar-foot .link-btn { color: #c3cbdc; }
.admin-main { padding: 28px 32px 60px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.6rem; margin: 0; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.admin-mobile-bar { display: none; }
@media (max-width: 960px) {
    .admin-layout { grid-template-columns: 1fr; background: none; }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
    .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
    .admin-mobile-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; }
    .admin-mobile-bar .logo { color: #fff; }
    .admin-mobile-bar .logo-mark { background: #fff; }
    .admin-mobile-bar .nav-toggle { display: block; border-color: rgba(255,255,255,.3); margin-left: auto; }
    .admin-mobile-bar .nav-toggle span { background: #fff; }
    .admin-main { padding: 20px 16px 60px; }
}
.subnav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 5px; width: fit-content; max-width: 100%; }
.subnav a { padding: 7px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--muted); }
.subnav a.active { background: var(--ink); color: #fff; }
.subnav a:hover:not(.active) { color: var(--ink); background: var(--surface-2); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filters .field { margin: 0; }
.filters .input { min-width: 150px; }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 16px; }
.q-card + .q-card { margin-top: 10px; }
.q-num { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.q-card .q-title { font-weight: 700; color: var(--ink); white-space: pre-line; }
.q-card .q-opts { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.q-card .q-opts li { font-size: .82rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px; }
.q-card .q-opts li.act-screenout { background: #f1ecfb; border-color: #dcd0f5; }
.q-card .q-opts li.act-jump { background: #eaf0fb; border-color: #cfdaf1; }
.q-card .q-opts li.act-complete { background: var(--success-soft); border-color: #bfe6d2; }
.q-tools { margin-left: auto; display: flex; gap: 4px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.opt-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 250px 220px 90px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.opt-row .handle { color: var(--muted); font-weight: 800; text-align: center; font-size: .85rem; }
@media (max-width: 900px) { .opt-row { grid-template-columns: 1fr 1fr; } .opt-row .handle { display: none; } .opt-row .opt-text { grid-column: 1 / -1; } }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: .93rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
.copy-box { display: flex; gap: 8px; }
.copy-box .input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.text-answers { list-style: none; padding: 0; margin: 0; max-height: 340px; overflow: auto; }
.text-answers li { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: .93rem; white-space: pre-line; }
.danger-zone { border-color: #f4c7c5; }
.inline-form { display: inline; }
details.more > summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }

/* ---------- Install ---------- */
.checklist { list-style: none; padding: 0; margin: 0; columns: 2; font-size: .9rem; }
.checklist li { padding: 3px 0; break-inside: avoid; }
.checklist .ok::before { content: "✓ "; color: var(--success); font-weight: 800; }
.checklist .bad::before { content: "✗ "; color: var(--danger); font-weight: 800; }
.checklist .bad { color: var(--danger); font-weight: 700; }
@media (max-width: 600px) { .checklist { columns: 1; } .kv { grid-template-columns: 1fr; } }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }

/* ---------- Колл-центр ---------- */
.phone-big { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: .02em; margin: 6px 0 14px; }
.phone-big a { text-decoration: none; color: var(--ink); }
.phone-big a::before { content: "☎ "; color: var(--teal); }
.script-box { background: #fffdf5; border-color: #efe2b8; font-size: 1.05rem; }
.call-timer { font-size: 1.3rem; font-weight: 800; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; font-variant-numeric: tabular-nums; }
.cati-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; position: relative; }
.cati-bar .muted.small { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.cati-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(31,157,97,.08); } }
.cati-stop { position: relative; }
.cati-stop > summary { list-style: none; }
.cati-stop > summary::-webkit-details-marker { display: none; }
.badge-refused, .badge-wrong_number, .badge-exhausted { background: var(--danger-soft); color: #a52f2f; }
.badge-no_answer, .badge-busy { background: #eef0f4; color: #4a5470; }
.badge-callback, .badge-interrupted { background: var(--warn-soft); color: #8a5a12; }
.badge-new { background: #eaf0fb; color: var(--ink-2); }
.badge-cati { background: var(--teal-soft); color: #117a70; }
.badge-web { background: #eef0f4; color: #4a5470; }
.meter { display: inline-block; width: 70px; height: 7px; border-radius: 9px; background: #f0ede6; vertical-align: middle; margin-right: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--teal); }
.table tfoot td { font-weight: 800; background: var(--surface-2); border-top: 2px solid var(--line); }
.kv dd { overflow-wrap: anywhere; }
