:root {
    --bg: #070708;
    --bg-2: #101114;
    --bg-3: #17181c;
    --line: #2c2e33;
    --text: #f5f5f6;
    --muted: #b4b5ba;
    --red: #e10600;
    --red-2: #ff2d22;
    --white: #fff;
    --max: 1120px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(225, 6, 0, .22), transparent 55%),
        radial-gradient(700px 380px at -10% 30%, rgba(225, 6, 0, .1), transparent 50%),
        var(--bg);
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 .8rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
p { margin: 0 0 .9rem; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--red);
    color: var(--white);
    padding: .6rem 1rem;
    z-index: 20;
}
.skip:focus { top: 1rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.topbar {
    background: #000;
    color: var(--muted);
    font-size: .86rem;
    border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topbar a { color: var(--white); text-underline-offset: 3px; }
.age { color: var(--red-2); font-weight: 700; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(7, 7, 8, .92);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--red);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 78px; }
.logo img { width: 210px; height: auto; }
.nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav a {
    display: inline-flex;
    padding: .45rem .6rem;
    text-decoration: none;
    color: var(--muted);
    font-size: .95rem;
}
.nav a[aria-current="page"], .nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
.nav-cta { display: none; }
.header-cta { display: flex; gap: .5rem; }
.nav-toggle, .burger { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 44px;
    padding: .65rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-2); }
.btn-line { background: transparent; color: var(--white); border-color: #5a5c62; }
.btn-line:hover { border-color: var(--white); }
.hero-actions, .cluster { display: flex; flex-wrap: wrap; gap: .7rem; }

.hero { padding: 2.5rem 0 1rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.kicker { color: var(--red-2); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; margin-bottom: .6rem; }
.lead { font-size: 1.08rem; color: #ddd; }
.hero-visual {
    background: #000;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
picture { display: block; max-width: 100%; }
.hero-visual picture { height: 100%; }
.hero-visual { aspect-ratio: 3 / 4; }
.hero-visual img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: top; }
.aside-visual { width: 100%; max-height: 640px; object-fit: cover; object-position: top; border-radius: 16px; }

.aeo, .panel, .card, .quote, .case, .faq details, .form, .map-card {
    background: rgba(16, 17, 20, .92);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.aeo { padding: 1rem 1.1rem; margin: 1.5rem 0 0; }
.aeo strong { color: var(--white); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; padding: 1.5rem 0; }
.stat { background: var(--bg-3); border-radius: 14px; padding: 1rem; border-top: 3px solid var(--red); }
.stat b { display: block; font-size: 1.35rem; }
.stat span { color: var(--muted); font-size: .92rem; }

.section { padding: 1.2rem 0 2rem; }
.grid-3, .grid-2 { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.2fr .8fr; }
.card, .case, .quote { padding: 1.1rem 1.15rem; }
.card p, .case p, .quote p { color: var(--muted); }
.card a, .text a, .related a, .prose a { color: #ffb4ae; }
.meta { color: var(--muted); font-size: .9rem; }
.post-grid h2 { font-size: 1.15rem; }
.post-grid h2 a { text-decoration: none; color: var(--text); }
.post-grid h2 a:hover { color: #ffb4ae; }

.crumbs { width: min(var(--max), calc(100% - 2rem)); margin: .8rem auto 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .2rem; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .92rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: #666; }
.crumbs a { color: var(--white); text-decoration: none; }

.prose { max-width: 74ch; }
.list { margin: 0 0 1rem; padding-left: 1.1rem; }
.list li { margin: .35rem 0; }

.faq details { padding: .2rem 1rem; }
.faq details + details { margin-top: .6rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: .85rem 0; }
.faq details p { margin-top: 0; color: var(--muted); }

.quote { border-left: 4px solid var(--red); }
.quote footer { color: var(--white); font-size: .92rem; }
.topic { color: var(--red-2); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.case .no { color: var(--red); font-weight: 800; font-size: .9rem; }

.banner-link { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.banner-link img { width: 100%; }

.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.related a { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; background: var(--bg-3); padding: 1rem; border-radius: 12px; border: 1px solid var(--line); }
.related span { color: var(--muted); }

.form { padding: 1.1rem; display: grid; gap: .75rem; }
label { display: grid; gap: .3rem; font-weight: 650; }
input, select, textarea {
    width: 100%;
    background: #0c0d10;
    color: var(--text);
    border: 1px solid #3a3c42;
    border-radius: 8px;
    padding: .75rem .8rem;
    font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.check { font-weight: 500; grid-template-columns: auto 1fr; align-items: start; }
.hp { position: absolute; left: -9999px; }
.error { background: #3a1010; color: #ffd0d0; padding: .7rem .9rem; border-radius: 8px; }
.map-card iframe { width: 100%; height: 320px; border: 0; border-radius: 16px 16px 0 0; }
.map-card div { padding: 1rem; }

.site-footer { border-top: 1px solid var(--line); margin-top: 1rem; background: #050506; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr .8fr; gap: 1.5rem; padding: 2rem 0 1rem; }
.site-footer h2 { font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--white); }
.footer-lead, .fine { color: var(--muted); }
.footer-base { border-top: 1px solid var(--line); padding: 1rem 0 1.4rem; color: #9a9ba0; font-size: .88rem; }

.msg-toggle { position: absolute; opacity: 0; pointer-events: none; }
.msg-fab {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 12;
    background: var(--red);
    color: white;
    font-weight: 800;
    border-radius: 999px;
    min-width: 64px;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
}
.msg-panel {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 5.4rem;
    z-index: 12;
    width: min(280px, calc(100% - 2rem));
    background: #141518;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .9rem;
    box-shadow: var(--shadow);
}
.msg-panel a, .msg-panel p, .msg-panel small { display: block; }
.msg-panel a { text-decoration: none; background: #0c0d10; border-radius: 8px; padding: .7rem .8rem; margin-bottom: .4rem; }
.msg-toggle:checked ~ .msg-panel { display: block; }
button.btn { cursor: pointer; font: inherit; border: 0; }
button.btn-line { border: 1px solid #5a5c62; }
.msg-toggle:focus-visible ~ .msg-fab, .burger:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--red-2);
    outline-offset: 2px;
}

body.has-cookie { padding-bottom: 88px; }
.cookie {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 13;
    width: auto;
    background: #141518;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: .85rem 1rem;
    display: flex;
    gap: .8rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}
.cookie p { margin: 0; color: var(--muted); font-size: .92rem; }
.cookie button { background: var(--red); color: white; border: 0; border-radius: 8px; padding: .6rem .8rem; font-weight: 700; cursor: pointer; }

.empty { padding: 3rem 0 4rem; }

@media (max-width: 980px) {
    .hero-grid, .grid-2, .footer-grid, .stats, .grid-3, .related ul { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .header-cta { display: none; }
    .nav-cta { display: flex; }
    .burger {
        display: inline-flex;
        margin-left: auto;
        border: 1px solid #5a5c62;
        border-radius: 8px;
        padding: .55rem .8rem;
        cursor: pointer;
    }
    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #0c0d10;
        border-bottom: 1px solid var(--line);
        padding: .6rem 1rem 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    .nav ul { flex-direction: column; }
    .nav-toggle:checked ~ .nav { display: flex; }
    .site-header { position: sticky; }
    .header-inner { position: relative; }
    .msg-fab { display: inline-flex; }
}

@media (max-width: 980px) {
    body.has-cookie .msg-fab { bottom: 7.4rem; }
    body.has-cookie .msg-panel { bottom: 12rem; }
}

@media (max-width: 680px) {
    .hero-grid, .grid-2, .footer-grid, .stats, .grid-3, .related ul, .topbar-inner { grid-template-columns: 1fr; }
    .topbar-inner { display: grid; }
    .cookie { bottom: 0; flex-direction: column; align-items: stretch; }
    body.has-cookie { padding-bottom: 11rem; }
    body.has-cookie .msg-fab { bottom: 8.6rem; }
    body.has-cookie .msg-panel { bottom: 13.2rem; }
}

@media (max-width: 980px) {
    .nav-toggle:checked ~ .nav { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
