:root {
    --main: #0a0a0a;
    --second: #151515;
    --third: #202020;
    --red: #f1262d;
    --red-dark: #b70f19;
    --text: #f5f5f5;
    --text-soft: #b9b9b9;
    --line: #343434;
    --page-width: 1040px;
    --radius: 8px;
    --font: "Archivo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--main); color: var(--text); font-family: var(--font); }
body.menu-open, body.popup-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }
.page-width { width: min(calc(100% - 40px), var(--page-width)); margin: 0 auto; }
.main { min-height: 45vh; }

.top-warning { background: var(--red); color: #fff; font-size: 11px; }
.top-warning .page-width { min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.top-warning strong { padding: 2px 6px; border: 1px solid #fff; border-radius: 3px; }

.header { border-bottom: 1px solid var(--line); background: var(--main); }
.header-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; }
.header-logo, .mobile-logo { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.header-logo img, .mobile-logo img { width: 34px; height: 34px; display: block; }
.header-menu { display: flex; align-items: center; gap: 34px; }
.header-menu a { color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
.header-menu a:hover { color: var(--red); }
.menu-button { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-button span { width: 18px; height: 2px; background: var(--text); }

.mobile-menu { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: flex-end; background: rgba(0,0,0,.78); visibility: hidden; opacity: 0; transition: opacity .18s ease; }
.mobile-menu.open { visibility: visible; opacity: 1; }
.mobile-menu-inner { width: min(88vw, 390px); height: 100%; padding: 20px; background: #101010; border-left: 2px solid var(--red); transform: translateX(100%); transition: transform .2s ease; }
.mobile-menu.open .mobile-menu-inner { transform: translateX(0); }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.menu-close { width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 28px; cursor: pointer; }
.mobile-links { display: flex; flex-direction: column; margin-top: 24px; }
.mobile-links a { padding: 15px 2px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 17px; font-weight: 600; }
.mobile-links a:hover { color: var(--red); }

.hero { padding: 30px 0 24px; border-bottom: 1px solid var(--line); }
.hero-inner { display: flex; align-items: flex-start; }
.hero-text { max-width: 860px; }
.hero-label, .page-intro > span, .section-title > span { display: block; margin-bottom: 9px; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(31px, 4vw, 52px); line-height: 1.02; letter-spacing: -.04em; }
.hero p { max-width: 760px; margin: 13px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-tags span { padding: 7px 10px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 3px; color: var(--text); font-size: 11px; font-weight: 600; }

.platform-section { padding: 22px 0 50px; }
.section-title { margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-title > span { margin: 0 0 5px; }
.section-title h2 { margin: 0; font-size: clamp(22px, 3vw, 31px); line-height: 1; letter-spacing: -.03em; }
.platform-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.platform-card { flex: 0 1 calc(33.333% - 10px); aspect-ratio: 1 / 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); background: var(--second); }
.card-image { height: 31%; min-height: 92px; padding: 12px; display: flex; align-items: center; justify-content: center; background: #0e0e0e; border-bottom: 1px solid var(--line); }
.card-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.card-body { flex: 1; padding: 13px; display: flex; flex-direction: column; }
.card-type { color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.card-body h3 { margin: 7px 0 0; font-size: 17px; line-height: 1.12; letter-spacing: -.025em; }
.card-meta { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.card-meta > span:first-child { display: flex; flex-direction: column; }
.card-meta small { color: var(--text-soft); font-size: 8px; text-transform: uppercase; }
.card-meta strong { margin-top: 2px; color: var(--text); font-size: 22px; line-height: 1; }
.card-anj { color: var(--text-soft); font-size: 8.5px; line-height: 1.35; text-align: right; }
.card-button { min-height: 36px; margin-top: 10px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; border-radius: 4px; background: var(--red); color: #fff; text-decoration: none; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.card-button:hover { background: var(--red-dark); }
.card-button span { font-size: 16px; }

.footer { padding: 38px 0 22px; border-top: 1px solid var(--red); background: #080808; }
.footer-resources { display: flex; flex-wrap: wrap; gap: 8px; }
.resource { flex: 1 1 calc(16.666% - 8px); min-width: 130px; height: 92px; padding: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; background: var(--second); text-decoration: none; }
a.resource:hover { border-color: var(--red); }
.resource img { width: 100%; height: 62px; object-fit: contain; }
.footer-alert { margin-top: 26px; padding: 18px 0; display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-alert strong { flex: 0 0 auto; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--red); border-radius: 50%; color: var(--red); }
.footer-alert p { max-width: 850px; margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.55; }
.footer-title { margin: 28px 0 16px; font-size: 20px; letter-spacing: -.02em; }
.footer-texts { display: flex; gap: 28px; }
.footer-text { flex: 1 1 0; min-width: 0; }
.footer-text h3 { margin: 0 0 10px; color: var(--text); font-size: 14px; }
.footer-text p { margin: 0; color: var(--text-soft); font-size: 11.5px; line-height: 1.55; }
.footer-text p + p { margin-top: 8px; }
.help-links { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.help-links a { color: var(--red); font-size: 11px; }
.footer-links { margin-top: 28px; padding: 15px 0; display: flex; flex-wrap: wrap; gap: 12px 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.footer-links a { color: var(--text-soft); text-decoration: none; font-size: 12px; font-weight: 500; padding: 6px 8px; border-radius: 3px; transition: color .2s ease; }
.footer-links a:hover { color: var(--red); background: rgba(241,38,45,.05); }
.footer-bottom { padding-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-bottom p { margin: 0; color: #777; font-size: 10px; line-height: 1.5; }

.cookie-box { position: fixed; right: 16px; bottom: 16px; z-index: 400; width: min(390px, calc(100% - 32px)); padding: 16px; border: 1px solid var(--red); border-radius: 5px; background: #111; box-shadow: 0 12px 35px rgba(0,0,0,.42); pointer-events: auto; }
.cookie-box p { margin: 0; color: var(--text-soft); font-size: 11px; line-height: 1.5; }
.cookie-buttons { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; }
.cookie-buttons button { min-height: 36px; padding: 0 15px; border: 1px solid var(--line); border-radius: 3px; background: #1b1b1b; color: var(--text); font-size: 11px; font-weight: 700; cursor: pointer; }
.cookie-buttons button:last-child { border-color: var(--red); background: var(--red); }

.age-popup { position: fixed; inset: 0; z-index: 1000; padding: 20px; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; background: var(--main); }
.age-popup.show { visibility: visible; opacity: 1; }
.age-box { width: min(100%, 440px); padding: 28px; border: 1px solid var(--red); border-radius: 5px; background: #101010; text-align: center; }
.age-box > img { width: 42px; height: 42px; }
.age-mark { width: 48px; height: 48px; margin: 14px auto 0; display: flex; align-items: center; justify-content: center; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-weight: 800; }
.age-box h2 { margin: 15px 0 0; font-size: 25px; }
.age-box > p { margin: 11px 0 0; color: var(--text-soft); font-size: 12px; line-height: 1.55; }
.age-help a { color: var(--red); }
.age-buttons { margin-top: 20px; display: flex; gap: 8px; }
.age-buttons button { flex: 1 1 0; min-height: 42px; border: 1px solid var(--line); border-radius: 3px; background: #1b1b1b; color: var(--text); font-size: 11px; font-weight: 700; cursor: pointer; }
.age-buttons button:last-child { border-color: var(--red); background: var(--red); }

.page-space { padding: 62px 0 72px; }
.narrow-page { max-width: 900px; }
.page-intro { max-width: 800px; padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.page-intro h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.04em; }
.page-intro p { margin: 16px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.65; }
.page-intro a, .text-block a { color: var(--red); }
.method-list { display: flex; flex-direction: column; }
.method-row { padding: 28px 0; display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.method-row > strong { flex: 0 0 44px; color: var(--red); font-size: 13px; }
.method-row h2 { margin: 0; font-size: 22px; }
.method-row p { max-width: 700px; margin: 9px 0 0; color: var(--text-soft); font-size: 13px; line-height: 1.65; }
.method-note { margin-top: 34px; padding: 24px; border-left: 3px solid var(--red); background: var(--second); }
.method-note h2 { margin: 0; font-size: 21px; }
.method-note p { margin: 10px 0 0; color: var(--text-soft); font-size: 13px; line-height: 1.6; }

.contact-form { max-width: 760px; margin-top: 34px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--second); }
.form-line { display: flex; gap: 14px; }
.form-line .form-field { flex: 1 1 0; }
.form-field { margin-bottom: 15px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 700; }
.form-field input, .form-field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 3px; outline: none; background: #0d0d0d; color: var(--text); font-size: 13px; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--red); }
.form-field textarea { resize: vertical; }
.form-button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 3px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.form-button:hover { background: var(--red-dark); }

.text-page { display: block; }
.text-block { padding: 27px 0; border-bottom: 1px solid var(--line); display: block; }
.text-block h2 { margin: 0 0 10px; font-size: 21px; display: block; }
.text-block p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.7; display: block; }
.important-block { margin: 24px 0; padding: 22px; border: 1px solid var(--red); border-left-width: 4px; background: var(--second); }

.thank-page { min-height: 55vh; display: flex; align-items: center; }
.thank-box { max-width: 700px; text-align: center; }
.thank-icon { width: 68px; height: 68px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-size: 30px; font-weight: 800; }
.thank-box h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); }
.thank-box p { max-width: 600px; margin: 14px auto 0; color: var(--text-soft); font-size: 13px; line-height: 1.65; }
.thank-box a { min-height: 42px; margin-top: 24px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 3px; background: var(--red); color: #fff; text-decoration: none; font-size: 12px; font-weight: 800; }

.liaison-body { min-height: 100vh; background: var(--main); }
.liaison-page { min-height: 100vh; padding: 20px; display: flex; align-items: center; justify-content: center; }
.liaison-box { width: min(100%, 360px); padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 5px; background: var(--second); text-align: center; }
.liaison-box img { width: 48px; height: 48px; }
.liaison-loader { width: 34px; height: 34px; margin: 18px auto; display: block; border: 4px solid #333; border-top-color: var(--red); border-radius: 50%; animation: spin .7s linear infinite; }
.liaison-box h1 { margin: 0; font-size: 22px; }
.liaison-box p { margin: 8px 0 0; color: var(--text-soft); font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 850px) {
    .platform-card { flex-basis: calc(50% - 8px); aspect-ratio: auto; min-height: 355px; }
    .footer-texts { flex-wrap: wrap; }
    .footer-text { flex-basis: calc(50% - 14px); }
}

@media (max-width: 700px) {
    .page-width { width: min(calc(100% - 28px), var(--page-width)); }
    .top-warning .page-width { padding: 5px 0; align-items: flex-start; text-align: left; }
    .header-menu { display: none; }
    .menu-button { display: flex; }
    .hero { padding: 24px 0 20px; }
    .hero h1 { font-size: clamp(31px, 9vw, 46px); }
    .section-title { align-items: flex-start; flex-direction: column; gap: 5px; }
    .platform-section { padding-bottom: 38px; }
    .platform-card { flex-basis: 100%; max-width: 430px; min-height: 0; aspect-ratio: auto; }
    .card-image { height: 125px; }
    .card-body { min-height: 240px; }
    .footer-resources { gap: 6px; }
    .resource { flex-basis: calc(50% - 4px); min-width: 0; }
    .footer-alert { align-items: flex-start; }
    .footer-texts { flex-direction: column; gap: 24px; }
    .footer-text { flex-basis: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
    .age-buttons { flex-direction: column; }
    .page-space { padding: 45px 0 55px; }
    .form-line { flex-direction: column; gap: 0; }
    .method-row { gap: 14px; }
}

@media (max-width: 420px) {
    .hero-tags { flex-direction: column; align-items: flex-start; }
    .cookie-buttons { flex-direction: column; }
    .cookie-buttons button { width: 100%; }
}
