/* ArvexMine — оформление сайта.

   Раскладка собрана по макету из design/: тёмный фон, крупный первый экран с
   артом справа, ряд карточек-возможностей, полоса цифр, витрина, новости и
   подвал в пять колонок. Акцент — фирменное золото логотипа вместо сиреневого
   из макета.

   Внешних шрифтов и библиотек нет: сайт должен открываться и там, где
   сторонние домены недоступны. */

:root {
    --bg: #0d0a06;
    --bg-2: #120e09;
    --card: #17120b;
    --card-2: #1e1810;
    --line: rgba(255, 197, 49, .13);
    --line-2: rgba(255, 197, 49, .26);

    --gold: #ffc531;
    --gold-2: #f0a91b;
    --gold-deep: #d18d00;
    --gold-ink: #2a1c00;
    --gold-soft: rgba(255, 197, 49, .12);

    --ink: #f6efe0;
    --ink-2: #d8cdb8;
    --muted: #9d907a;

    --green: #57d977;
    --red: #ef6b52;

    --r-lg: 20px;
    --r: 14px;
    --r-sm: 10px;
    --wrap: 1200px;

    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --shadow-gold: 0 10px 30px rgba(214, 150, 20, .28);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(23px, 2.7vw, 34px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 36px)); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pixel { image-rendering: pixelated; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

/* --- Шапка ------------------------------------------------------------- */

.topbar { position: sticky; top: 0; z-index: 40; background: rgba(13, 10, 6, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 22px; min-height: 72px; }

.logo { flex-shrink: 0; display: block; }
.logo img { height: 38px; width: auto; }
.logo:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-link {
    position: relative; color: var(--ink-2); font-weight: 600; font-size: 13.5px;
    text-transform: uppercase; letter-spacing: .06em; padding: 10px 13px; white-space: nowrap;
}
.nav-link:hover { color: var(--gold); text-decoration: none; }
.nav-link.is-active { color: var(--gold); }
/* Активный пункт помечен золотой чертой снизу — как в макете. */
.nav-link.is-active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px; background: var(--gold); border-radius: 2px; }

.ip-chip {
    display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
    background: var(--card); border: 1px solid var(--line-2); color: var(--ink);
    border-radius: 10px; padding: 9px 15px; cursor: pointer; font: inherit; font-size: 13.5px;
}
.ip-chip:hover { border-color: var(--gold); background: var(--card-2); }
.ip-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.ip-chip-dot.is-online { background: var(--green); box-shadow: 0 0 0 3px rgba(87, 217, 119, .18); }
.ip-chip-dot.is-offline { background: var(--red); }
.ip-chip-label { color: var(--muted); }
.ip-chip-count { font-family: var(--mono); font-weight: 700; color: var(--gold); }
/* Подсказка о копировании — псевдоэлементом: внутренняя разметка чипа при
   этом остаётся нетронутой. */
.ip-chip.is-copied .ip-chip-label { visibility: hidden; }
.ip-chip.is-copied .ip-chip-count { visibility: hidden; }
.ip-chip.is-copied::after { content: "Адрес скопирован"; position: absolute; color: var(--gold); }
.ip-chip { position: relative; }

.burger { display: none; flex-direction: column; gap: 4px; justify-content: center; width: 42px; height: 38px; margin-left: auto; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; width: 17px; margin-inline: auto; background: var(--ink); }

/* --- Кнопки ------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 11px; border: 0;
    font: inherit; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .05em;
    cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn img { width: 18px; height: 18px; image-rendering: pixelated; }

.btn-primary { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: var(--gold-ink); box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: linear-gradient(180deg, #ffd45f, var(--gold)); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold); }
.btn-small { padding: 10px 18px; font-size: 12.5px; }
.btn-wide { width: 100%; }
.btn-lg { padding: 17px 34px; font-size: 15px; }

.link-arrow { font-weight: 600; font-size: 14px; color: var(--gold); }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: none; }

/* --- Первый экран ------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.hero-art {
    position: absolute; inset: 0 0 0 50%; z-index: 0;
    background-size: cover; background-position: center 38%;
    /* Арт вырезан из макета и остаётся пиксельным при растяжении — сглаживание
       превратило бы его в мыло. */
    image-rendering: pixelated;
}
/* Арт уходит в фон слева, чтобы текст читался поверх без плашки. */
.hero-art::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(13, 10, 6, .88) 26%, rgba(13, 10, 6, .28) 70%, rgba(13, 10, 6, .5));
}
.hero-inner { position: relative; z-index: 1; padding: 84px 0 74px; max-width: 640px; }

.hero h1 { text-transform: uppercase; font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 18px; letter-spacing: -.02em; }
.hero-sub { color: var(--ink-2); font-size: 17px; max-width: 46ch; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-pills { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-pill {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(23, 18, 11, .8); border: 1px solid var(--line);
    border-radius: 10px; padding: 10px 16px; font-size: 14px; color: var(--ink);
    font: inherit; font-size: 14px; cursor: pointer;
}
.hero-pill:hover { border-color: var(--gold); }
.hero-pill img { width: 16px; height: 16px; image-rendering: pixelated; }
.hero-pill b { font-family: var(--mono); font-weight: 600; }
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(87, 217, 119, .18); }

/* --- Секции ------------------------------------------------------------- */

.section { padding: 62px 0; }
.section--tight { padding: 34px 0; }
.section-center { text-align: center; margin-bottom: 38px; }
.section-center h2 { text-transform: uppercase; margin: 0; }
.kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); }
.lead { color: var(--muted); font-size: 16px; max-width: 72ch; margin-inline: auto; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head > div { flex: 1; min-width: 240px; }
.section-head h2 { margin: 0; text-transform: uppercase; }
.section-head .lead { margin: 10px 0 0; margin-inline: 0; }
.section-link { color: var(--gold); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.section-link:hover { text-decoration: none; }
.sub { margin-top: 32px; font-size: 20px; }

/* --- Карточки возможностей ------------------------------------------------ */

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.feature-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    padding: 28px 22px; text-align: center; transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature-ico {
    width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 16px;
    display: grid; place-items: center;
    background: radial-gradient(circle at 50% 40%, rgba(255, 197, 49, .22), rgba(255, 197, 49, .05));
    border: 1px solid var(--line-2);
}
.feature-ico img { width: 32px; height: 32px; image-rendering: pixelated; }
.feature-card h3 { text-transform: uppercase; font-size: 13.5px; letter-spacing: .06em; margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* --- Полоса цифр ---------------------------------------------------------- */

.stats-band {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    background: linear-gradient(120deg, rgba(255, 197, 49, .10), rgba(255, 197, 49, .03));
    border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
}
.stat { display: flex; align-items: center; gap: 16px; padding: 26px 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--line-2); flex-shrink: 0; }
.stat-ico img { width: 24px; height: 24px; image-rendering: pixelated; }
.stat b { display: block; font-size: 27px; font-weight: 800; color: var(--gold); font-family: var(--mono); line-height: 1.1; }
.stat span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }

/* --- Витрина привилегий ---------------------------------------------------- */

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.shop-card {
    display: flex; flex-direction: column; text-align: center; color: var(--ink);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    padding: 24px 18px 18px; transition: transform .14s, border-color .14s, box-shadow .14s;
}
.shop-card:hover { transform: translateY(-4px); border-color: var(--rank-color, var(--gold)); box-shadow: var(--shadow); text-decoration: none; }
.shop-art {
    display: grid; place-items: center; width: 104px; height: 104px; margin: 0 auto 16px;
    border-radius: 20px; border: 1px solid var(--line);
    background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .08), transparent 62%), var(--card-2);
}
.shop-art img { width: 68px; height: 68px; image-rendering: pixelated; }
.shop-name { font-weight: 800; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; }
.shop-hint { display: block; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; margin-top: 3px; }
.shop-price { display: block; font-family: var(--mono); font-size: 20px; font-weight: 800; color: var(--gold); margin: 12px 0 16px; }
.shop-buy { display: block; margin-top: auto; padding: 11px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.shop-card:hover .shop-buy { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: var(--gold-ink); border-color: transparent; }

/* --- Нижний ряд: новости и промо ------------------------------------------- */

.bottom-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 20px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-head h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 0; }

.news-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.news-item:first-of-type { border-top: 0; padding-top: 0; }
.news-thumb { width: 96px; height: 66px; border-radius: var(--r-sm); display: grid; place-items: center; background: linear-gradient(150deg, rgba(255, 197, 49, .22), rgba(255, 197, 49, .04)); border: 1px solid var(--line); }
.news-thumb img { width: 28px; height: 28px; image-rendering: pixelated; }
.news-item h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 4px; }
.news-item time { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.news-item p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.promo {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 197, 49, .14), rgba(255, 197, 49, .03)), var(--card);
    border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 34px;
    display: flex; flex-direction: column; justify-content: center;
}
.promo-ico { width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--line-2); margin-bottom: 18px; }
.promo-ico img { width: 34px; height: 34px; image-rendering: pixelated; }
.promo h2 { text-transform: uppercase; font-size: 22px; margin-bottom: 10px; }
.promo p { color: var(--ink-2); max-width: 44ch; }
.promo .btn { align-self: flex-start; margin-top: 8px; }

/* --- Общие карточки и списки ----------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h3 { font-size: 16px; color: var(--gold); }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.tile-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold); }
.tile-icon svg { width: 22px; height: 22px; }
.tile-icon img { width: 24px; height: 24px; image-rendering: pixelated; }
.tile b { font-size: 15px; }
.tile span { font-size: 13px; color: var(--muted); line-height: 1.45; }

.callout { background: var(--card); border: 1px solid var(--line-2); border-left: 4px solid var(--gold); border-radius: var(--r); padding: 26px 28px; }
.callout h3 { margin-top: 0; color: var(--gold); }
.callout--tight { padding: 20px 24px; margin-bottom: 28px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.note { margin-top: 24px; padding: 16px 20px; background: var(--gold-soft); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; }
.note p:last-child { margin-bottom: 0; }

.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li, .crosses li { position: relative; padding-left: 26px; margin-bottom: 7px; font-size: 14.5px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
.crosses li::before { content: "×"; position: absolute; left: 6px; top: -2px; color: var(--red); font-size: 19px; font-weight: 800; }
.ticks--wide { columns: 2; column-gap: 34px; }
.ticks--wide li { break-inside: avoid; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.step { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.step-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-family: var(--mono); background: var(--gold-soft); border: 1px solid var(--line-2); color: var(--gold); }
.step h3 { margin-bottom: 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.plain-steps { padding-left: 1.3em; }
.plain-steps li { margin-bottom: 7px; color: var(--ink-2); }

/* --- Таблицы --------------------------------------------------------------- */

.table-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; min-width: 620px; }
caption { caption-side: top; text-align: left; padding: 18px 22px; color: var(--muted); font-size: 13.5px; }
th, td { padding: 13px 22px; text-align: left; border-top: 1px solid var(--line); font-size: 14px; }
thead th { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
tbody th { font-weight: 700; }
.rank-cell { display: flex; align-items: center; gap: 10px; }
.rank-cell img { width: 26px; height: 26px; image-rendering: pixelated; }
.requisites { min-width: 520px; }
.requisites th { width: 42%; color: var(--muted); font-weight: 500; }
.requisites td { font-family: var(--mono); font-size: 13.5px; }

/* --- Новости списком -------------------------------------------------------- */

.news-list { display: grid; gap: 14px; }
.news-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; }
.news-row time { color: var(--gold); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-family: var(--mono); }
.news-row h2 { font-size: 18px; }
.news-row p { margin: 0; color: var(--muted); font-size: 14px; }

/* --- Вопросы ---------------------------------------------------------------- */

.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px 22px; }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 21px; font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding-bottom: 14px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 14px; }

/* --- Связь ------------------------------------------------------------------ */

.social-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.social-btn { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.social-btn:hover { text-decoration: none; border-color: var(--gold); }
.social-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--line); flex-shrink: 0; }
.social-ico img { width: 22px; height: 22px; image-rendering: pixelated; }
.social-btn b { display: block; font-size: 14.5px; }
.social-btn span { font-size: 12.5px; color: var(--muted); }

/* --- Внутренние страницы ----------------------------------------------------- */

.page-head { padding: 48px 0 30px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 197, 49, .05), transparent); }
.page-head h1 { margin-bottom: 12px; text-transform: uppercase; }
.page-lead { color: var(--muted); font-size: 16.5px; max-width: 74ch; margin: 0; }

.crumbs { padding: 18px 0 0; font-size: 13px; }
.crumbs .wrap { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--line-2); }
.crumbs b { font-weight: 600; }

/* --- Страница товара ---------------------------------------------------------- */

.product { padding: 26px 0 60px; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.product-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; }
.product-head { display: flex; gap: 24px; align-items: center; margin-bottom: 26px; }
.product-art { width: 124px; height: 124px; border-radius: 22px; flex-shrink: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .08), transparent 62%), var(--card-2); border: 1px solid var(--line); }
.product-art img { width: 88px; height: 88px; image-rendering: pixelated; }
.product-head h1 { margin-bottom: 8px; color: var(--rank-color, var(--gold)); }
.product-lead { font-size: 16px; color: var(--muted); margin: 0; max-width: 60ch; }
.product-main > p { color: var(--ink-2); }

.perk-block { margin-bottom: 20px; }
.perk-block h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.perk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.perk-list li { background: var(--card-2); border-radius: var(--r-sm); padding: 12px 16px 12px 40px; font-size: 14px; position: relative; }
.perk-list li::before { content: ""; position: absolute; left: 17px; top: 1.15em; width: 8px; height: 8px; border-radius: 2px; background: var(--rank-color, var(--gold)); }
.perk-list li.is-inherited { color: var(--muted); }
.perk-list li.is-inherited::before { background: var(--line-2); }

.product-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.product-nav-item { flex: 1; min-width: 210px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--card-2); border: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; gap: 12px; }
.product-nav-item:hover { border-color: var(--gold); text-decoration: none; }
.product-nav-item img { width: 34px; height: 34px; image-rendering: pixelated; flex-shrink: 0; }
.product-nav-item span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.product-nav-item b { font-size: 14.5px; }
.product-nav-item--next { text-align: right; flex-direction: row-reverse; }

.product-side { position: sticky; top: 90px; display: grid; gap: 16px; }
.order-box { background: var(--card); border: 1px solid var(--line-2); border-top: 3px solid var(--gold); border-radius: var(--r-lg); padding: 28px; }
.order-box h2 { font-size: 17px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em; }
.order-price { margin-bottom: 20px; }
.order-price-value { display: block; font-size: 32px; font-weight: 800; font-family: var(--mono); color: var(--gold); }
.order-price .muted { font-size: 12.5px; }
.side-facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.side-facts h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.side-facts dl { margin: 0; display: grid; gap: 9px; }
.side-facts dl > div { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.side-facts dt { color: var(--muted); }
.side-facts dd { margin: 0; text-align: right; font-weight: 600; }

/* --- Формы -------------------------------------------------------------------- */

.form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; max-width: 780px; }
.field { display: block; margin-bottom: 17px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 17px; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

input[type="text"], input[type="email"], select, textarea {
    width: 100%; padding: 13px 15px; font: inherit; font-size: 15px;
    background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-sm);
    transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
input::placeholder, textarea::placeholder { color: #6f6553; }
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 13px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--red); }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.check input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }

.form-status { margin: 13px 0 0; font-size: 14px; min-height: 1px; }
.form-status.is-ok { color: var(--green); }
.form-status.is-bad { color: var(--red); }
.form-note { font-size: 12.5px; margin: 13px 0 0; line-height: 1.5; color: var(--muted); }
.form-note--warn { background: var(--gold-soft); border: 1px solid var(--line-2); color: var(--ink-2); border-radius: var(--r-sm); padding: 12px 14px; }

/* --- Контакты и документы -------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.contact-card h3 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }
.contact-value { display: block; font-size: 17px; font-weight: 700; margin-bottom: 9px; word-break: break-word; }
.contact-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; max-width: 92ch; }
.doc h2 { font-size: 19px; margin-top: 32px; text-transform: uppercase; letter-spacing: .03em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 15.5px; margin-top: 24px; color: var(--gold); }
.doc p { color: var(--ink-2); }
.doc--legal p { font-size: 14.5px; }
.doc--legal b { color: var(--ink); }

.rules { display: grid; gap: 18px; }
.rules-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 32px; }
.rules-block h2 { font-size: 19px; color: var(--gold); text-transform: uppercase; letter-spacing: .03em; }
.rules-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.rules-list li { background: var(--card-2); border-radius: var(--r-sm); padding: 13px 18px 13px 40px; position: relative; font-size: 14px; color: var(--ink-2); }
.rules-list li::before { content: ""; position: absolute; left: 17px; top: 1.25em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }

.address-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line-2); border-left: 4px solid var(--gold); border-radius: var(--r-lg); padding: 28px 32px; }
.address-value { font-family: var(--mono); font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; margin: 0 0 4px; color: var(--gold); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.split .sub:first-child { margin-top: 0; }
.commands { background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; }

.result { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px 40px; text-align: left; }
.result--ok { border-top: 3px solid var(--green); }
.result--fail { border-top: 3px solid var(--red); }
.result p { color: var(--ink-2); }
.result .order-id { font-family: var(--mono); }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* --- Подвал ------------------------------------------------------------------------ */

.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; gap: 30px; }
.footer-col h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); margin-bottom: 16px; }
.footer-col p { font-size: 13px; color: var(--muted); margin-bottom: .6em; }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 34px; width: auto; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: var(--muted); font-size: 13.5px; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }

.footer-status { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 8px; }
.footer-status div { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); }
.footer-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.footer-status b { font-family: var(--mono); font-weight: 600; }

.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; }
.footer-socials a:hover { border-color: var(--gold); }
.footer-socials img { width: 20px; height: 20px; image-rendering: pixelated; }

.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* --- Адаптив -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-col--status { grid-column: span 3; }
}

@media (max-width: 1080px) {
    .product-grid { grid-template-columns: minmax(0, 1fr); }
    .product-side { position: static; }
    .bottom-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .hero-art { inset: 0; opacity: .32; }
    .hero-art::after { background: linear-gradient(180deg, rgba(13, 10, 6, .78), rgba(13, 10, 6, .92)); }
    .hero-inner { max-width: none; padding: 56px 0 48px; }
    .news-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .ticks--wide { columns: 1; }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 820px) {
    .burger { display: flex; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 18px 16px; }
    .nav.is-open { display: flex; }
    .nav-link { padding: 13px 12px; font-size: 14px; }
    .nav-link.is-active::after { left: 12px; width: 22px; right: auto; }
    .topbar-inner { flex-wrap: wrap; position: relative; }
    .ip-chip { order: 3; width: 100%; justify-content: center; margin-bottom: 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col--status { grid-column: span 2; }
}

@media (max-width: 640px) {
    .section { padding: 44px 0; }
    .product-main, .doc, .rules-block, .panel, .promo { padding: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-col--status { grid-column: auto; }
    .result { padding: 30px 24px; }
    .product-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .shop-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .shop-art { width: 84px; height: 84px; }
    .shop-art img { width: 56px; height: 56px; }
    .news-item { grid-template-columns: 64px minmax(0, 1fr); }
    .news-thumb { width: 64px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* --- Витрина: рейка разделов и список товаров ----------------------------- */

.shop-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 24px; align-items: start; }

.rail { position: sticky; top: 92px; display: grid; gap: 14px; }
.rail-nav { background: var(--card); border-radius: var(--r); padding: 8px; display: grid; gap: 2px; }
.rail-link {
    display: flex; align-items: center; gap: 11px; padding: 11px 13px;
    border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; font-size: 14px;
}
.rail-link:hover { background: var(--card-2); color: var(--gold); text-decoration: none; }
.rail-link img { width: 20px; height: 20px; image-rendering: pixelated; flex-shrink: 0; }
.rail-link b { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }

.rail-card { background: var(--card); border-radius: var(--r); padding: 18px; display: grid; gap: 9px; }
.rail-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); font-weight: 700; }
.rail-address {
    display: flex; align-items: center; gap: 9px; width: 100%;
    background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 11px 13px; color: var(--ink); font: inherit; font-family: var(--mono);
    font-size: 13px; font-weight: 700; cursor: pointer;
}
.rail-address:hover { border-color: var(--gold); }
.rail-address .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.rail-address .dot.is-online { background: var(--green); }
.rail-address .dot.is-offline { background: var(--red); }
.rail-card-note { font-size: 12.5px; color: var(--muted); }
.rail-card-note b { color: var(--ink); font-family: var(--mono); }

.shop-main { min-width: 0; }

.shop-block { background: var(--card); border-radius: var(--r); padding: 26px 28px; margin-top: 20px; }
.shop-block h3 { font-size: 18px; margin-bottom: 16px; }
.shop-block .steps { gap: 10px; }
.shop-block .step { background: var(--card-2); }
.shop-block .faq-item { background: var(--card-2); }
.shop-block p:last-child { margin-bottom: 0; }

.pay-methods { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.pay-chip {
    background: var(--card-2); border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 15px; font-size: 13px; color: var(--ink-2);
}

/* --- Окно покупки --------------------------------------------------------- */

body.is-locked { overflow: hidden; }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .74); }

.modal-window {
    position: relative; z-index: 1; width: min(660px, 100%);
    max-height: calc(100vh - 40px); overflow-y: auto;
    background: var(--card); border-radius: var(--r-lg); padding: 30px;
    border-top: 4px solid var(--rank-color, var(--gold)); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.modal-close {
    position: absolute; right: 16px; top: 12px; background: none; border: 0;
    color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.modal-close:hover { color: var(--gold); }

.modal-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; padding-right: 34px; }
.modal-art {
    width: 88px; height: 88px; border-radius: 20px; background: var(--card-2);
    display: grid; place-items: center; flex-shrink: 0;
}
.modal-art img { width: 62px; height: 62px; image-rendering: pixelated; }
.modal-head-text { flex: 1; min-width: 0; }
.modal-head h2 { margin: 0 0 6px; font-size: 24px; color: var(--rank-color, var(--gold)); letter-spacing: .03em; }
.modal-lead { margin: 0; color: var(--muted); font-size: 14px; }
.modal-price { font-family: var(--mono); font-weight: 800; font-size: 23px; white-space: nowrap; }

/* Состав ранга прокручивается внутри окна: у верхних рангов он длинный, и без
   этого форма оплаты уезжала бы за нижний край экрана. */
.modal-body { max-height: 232px; overflow-y: auto; margin-bottom: 22px; padding-right: 8px; }
.modal-body h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); margin: 16px 0 8px; }
.modal-body h3:first-child { margin-top: 0; }
.modal-body .perk-list li { background: var(--card-2); }

.modal-full { display: block; text-align: center; margin-top: 14px; font-size: 13.5px; }

@media (max-width: 900px) {
    .shop-layout { grid-template-columns: minmax(0, 1fr); }
    .rail { position: static; grid-template-columns: minmax(0, 1fr); }
    .rail-nav { display: flex; flex-wrap: wrap; }
    .rail-link { flex: 1; min-width: 150px; }
    .rail-link b { display: none; }
}

@media (max-width: 640px) {
    .modal-window { padding: 22px; }
    .modal-head { flex-wrap: wrap; gap: 14px; }
    .modal-art { width: 64px; height: 64px; border-radius: 16px; }
    .modal-art img { width: 46px; height: 46px; }
    .modal-price { font-size: 20px; }
    .shop-block { padding: 20px; }
}
