:root {
    color-scheme: light;
    --bg: #f7f7f8;
    --surface: #ffffff;
    --ink: #161616;
    --muted: #66656b;
    --line: #ececef;
    --soft: #f3f3f5;
    --accent: #111111;
    --accent-ink: #ffffff;
    --gold: #9a6700;
    --shadow: 0 1px 2px rgba(16, 16, 16, .04), 0 10px 28px rgba(16, 16, 16, .05);
    --header: rgba(247, 247, 248, .86);
    --foot: #111113;
    --foot-ink: #ececef;
}
html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0f0f10;
    --surface: #19191b;
    --ink: #f4f4f5;
    --muted: #a1a1aa;
    --line: #2a2a2e;
    --soft: #141416;
    --accent: #f4f4f5;
    --accent-ink: #111111;
    --gold: #e0b15a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px rgba(0, 0, 0, .28);
    --header: rgba(15, 15, 16, .86);
    --foot: #09090b;
    --foot-ink: #e4e4e7;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); color: var(--ink); }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 60; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top {
    position: sticky; top: 0; z-index: 30;
    background: var(--header);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand .wordmark { width: 168px; height: 44px; object-fit: contain; object-position: left center; border: 0; border-radius: 8px; background: transparent; }
.dock {
    position: fixed; left: 50%; right: auto; bottom: 12px; transform: translateX(-50%);
    width: min(392px, calc(100% - 20px)); display: flex; gap: 4px;
    padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow); z-index: 50;
}
.dock a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; font-weight: 700; color: var(--ink); background: transparent;
    border-radius: 12px; padding: 7px 4px 6px; font-size: 12px; line-height: 1.1;
}
.dock svg { width: 18px; height: 18px; }
nav { display: flex; gap: 4px; margin-left: 8px; }
nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 650; padding: 8px 10px; border-radius: 999px; }
nav a[aria-current="page"], nav a:hover { color: var(--ink); background: var(--soft); }
.icon-btn, .btn, .btn-line {
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    border-radius: 999px; min-height: 38px; padding: 0 14px; font: inherit; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
}
.icon-btn { width: 40px; height: 40px; padding: 0; }
.icon-btn svg, .btn svg { width: 20px; height: 20px; display: block; }
.theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: block; }
.menu-btn { display: none; }
.btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-line { background: transparent; }
.menu-btn { display: none; margin-left: auto; }
.theme-btn { margin-left: auto; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding: 54px 0 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 10px; color: var(--gold); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.03em; }
h1 { font-size: clamp(36px, 5vw, 58px); margin: 14px 0 12px; }
h2 { font-size: 30px; margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--muted); margin-top: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.frame { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 8px; box-shadow: var(--shadow); }
.frame img { border-radius: 16px; width: 100%; }
.stats, .grid-3, .grid-2 { display: grid; gap: 14px; }
.stats { grid-template-columns: repeat(3, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.05fr .95fr; align-items: center; }
.card, .quote, .panel, .stat {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.stat, .card, .quote, .panel { padding: 18px; }
.stat strong { display: block; font-size: 20px; }
.stat span, .muted, .person { color: var(--muted); }
.section { padding: 34px 0 6px; }
.ico {
    width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
    background: var(--soft); border: 1px solid var(--line); margin-bottom: 12px;
}
.ico svg { width: 18px; height: 18px; }
.price { font-size: 40px; margin: 6px 0 8px; font-weight: 750; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.quote { margin: 0; }
.quote header { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.stars { color: #d4a017; letter-spacing: 1px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: ""; width: 8px; height: 8px; border-right: 1.8px solid var(--ink); border-bottom: 1.8px solid var(--ink); transform: rotate(45deg); margin-top: 4px; }
.faq details[open] summary:after { transform: rotate(225deg); margin-top: 8px; }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.crumbs { color: var(--muted); font-size: 14px; margin: 22px 0; }
.crumbs a { text-decoration: none; }
form { display: grid; gap: 10px; }
label { font-size: 13px; font-weight: 700; }
input, textarea, select {
    width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
    border-radius: 12px; padding: 12px 12px; font: inherit;
}
.note { background: #ecfdf3; color: #166534; padding: 10px 12px; border-radius: 12px; }
.error { background: #fef2f2; color: #991b1b; padding: 10px 12px; border-radius: 12px; }
html[data-theme="dark"] .note { background: #14281c; color: #bbf7d0; }
html[data-theme="dark"] .error { background: #3b1414; color: #fecaca; }
.foot { background: var(--foot); color: var(--foot-ink); margin-top: 56px; padding: 36px 0 84px; }
.foot a { color: #f3d48a; text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .7fr .8fr; gap: 22px; }
.foot ul { list-style: none; padding: 0; margin: 8px 0 0; }
.foot li { margin: 6px 0; }
.copy { text-align: center; opacity: .65; }
.btn svg { width: 18px; height: 18px; }
.dock a:hover { background: var(--soft); }
.article { margin: 16px 0 18px; }
.prose h3 { margin: 18px 0 8px; font-size: 20px; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--gold); }
.repeat { border: 1px dashed var(--line); border-radius: 14px; padding: 12px; margin: 12px 0; }
.repeat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.danger { background: transparent; color: #b42318; border: 1px solid #f0c9c6; }
.admin h1 { font-size: 32px; }
.login { max-width: 420px; margin: 48px auto; }
.block { margin: 16px 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { font-size: 13px; color: var(--muted); }
@media (min-width: 861px) {
    .dock { width: min(420px, calc(100% - 24px)); bottom: 16px; }
}
@media (max-width: 860px) {
    .hero, .grid-3, .grid-2, .stats, .foot-grid, .pair { grid-template-columns: 1fr; }
    .menu-btn { display: inline-flex; }
    .bar .btn { display: none; }
    nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 14px; flex-direction: column; }
    nav.open { display: flex; }
}
