/* Сайт селлера на его домене (templates/seller/*). Токены — из утверждённого макета
   (серо-синий фон, светлый текст); акцент --ac/--on-ac задаёт шаблон из палитры
   services.seller_site.ACCENTS. Шрифт Inter — те же файлы, что у сайта владельца. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800;
             font-display: swap; src: url(/site-static/fonts/inter-latin.woff2) format('woff2');
             unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800;
             font-display: swap; src: url(/site-static/fonts/inter-latin-ext.woff2) format('woff2');
             unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800;
             font-display: swap; src: url(/site-static/fonts/inter-cyrillic.woff2) format('woff2');
             unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800;
             font-display: swap; src: url(/site-static/fonts/inter-cyrillic-ext.woff2) format('woff2');
             unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
    --bg: #3A4250;
    --bar: #343B48;
    --card: #444D5C;
    --line: #525C6D;
    --fg: #EEF1F5;
    --muted: #B7C0CD;
    --ac: #FED20E;          /* перекрывается <style> шаблона */
    --on-ac: #111111;
    /* плашки иконок: акцент, разбавленный цветом карточки */
    --ac-soft: color-mix(in srgb, var(--ac) 22%, var(--card));
    --gutter: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.muted { color: var(--muted); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.section { margin-bottom: 40px; }
.section > h2 { font-size: 24px; margin-bottom: 16px; }

/* ── кнопки ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--ac);
    background: var(--ac);
    color: var(--on-ac);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn-o { background: transparent; color: var(--ac); font-weight: 600; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn:focus-visible, .nav a:focus-visible, .lang a:focus-visible, .ct:focus-visible,
.dl-card:focus-visible, .brand:focus-visible {
    outline: 2px solid var(--ac); outline-offset: 2px;
}

/* ── шапка ──────────────────────────────────────────────────────────────── */
.top { background: var(--bar); border-bottom: 1px solid var(--line); }
.bar {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 10px 22px; padding-top: 12px; padding-bottom: 12px;
    font-size: 15px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    margin-right: auto; min-width: 0;
    font-size: 18px; font-weight: 700; text-decoration: none;
}
.brand img { height: 32px; width: auto; max-width: 160px; border-radius: 6px; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.nav a, .lang a { text-decoration: none; color: var(--fg); }
.nav a:hover, .lang a:hover { color: var(--ac); }
.lang { color: var(--muted); white-space: nowrap; }
.lang a { color: var(--muted); }
.lang a.on { color: var(--fg); font-weight: 600; }

/* ── первый экран ───────────────────────────────────────────────────────── */
.hero {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px;
    align-items: center; padding-top: 48px; padding-bottom: 48px;
}
.hero-solo { grid-template-columns: minmax(0, 720px); }
.hero h1 { font-size: 44px; line-height: 1.12; margin-bottom: 14px; }
.sub { font-size: 18px; margin-bottom: 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.shot { display: block; width: 100%; border-radius: 10px; }
.hero-shot { box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }

/* ── возможности ────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 12px; padding: 12px;
}
/* скрины разной высоты — одинаковое окно, видна левая верхняя часть экрана */
.card .shot {
    aspect-ratio: 16 / 10; object-fit: cover; object-position: left top;
    margin-bottom: 12px; border-radius: 8px;
}
.card h3 { font-size: 16px; margin-bottom: 4px; }
.card p { font-size: 14px; }

/* ── о нас ──────────────────────────────────────────────────────────────── */
.about {
    padding: 22px 24px; background: var(--card);
    border-left: 4px solid var(--ac); border-radius: 0 12px 12px 0;
}
.about h2 { font-size: 20px; margin-bottom: 8px; }
.about p { white-space: pre-line; }

/* ── контакты ───────────────────────────────────────────────────────────── */
.contacts {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 22px;
    padding: 22px 24px; background: var(--card);
    border: 1px solid var(--line); border-radius: 12px;
}
.contacts h2 { grid-column: 1 / -1; font-size: 20px; margin-bottom: 6px; }
.ct { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; min-width: 0; }
a.ct:hover span { color: var(--ac); }
.ct i {
    flex: none; width: 30px; height: 30px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-style: normal; font-size: 13px; font-weight: 700;
    background: var(--ac-soft); color: var(--ac);
}

/* ── внутренние страницы ────────────────────────────────────────────────── */
.page { padding-top: 48px; padding-bottom: 40px; }
.page h1 { font-size: 36px; line-height: 1.15; margin-bottom: 12px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.dl-card {
    display: flex; flex-direction: column; gap: 6px;
    padding: 20px; background: var(--card);
    border: 1px solid var(--line); border-radius: 12px; text-decoration: none;
}
.dl-card:hover { border-color: var(--ac); }
.dl-card .os { font-size: 20px; font-weight: 700; }
.dl-card em { font-style: normal; color: var(--ac); }
.soon {
    padding: 22px 24px; background: var(--card);
    border-left: 4px solid var(--ac); border-radius: 0 12px 12px 0;
}
.soon h2 { font-size: 20px; margin-bottom: 6px; }

/* ── подвал ─────────────────────────────────────────────────────────────── */
.foot { margin-top: 24px; padding: 28px 0 36px; background: var(--bar); border-top: 1px solid var(--line); }
.foot-name { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.foot p { font-size: 13px; }

/* ── узкие экраны ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    /* меню — второй строкой под логотипом, на всю ширину */
    .nav { order: 1; flex-basis: 100%; }
    .hero h1 { font-size: 36px; }
    .contacts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    :root { --gutter: 16px; }
    /* первая строка — логотип и «Купить ключ», вторая — меню и RU · EN */
    .bar { gap: 8px 14px; }
    .nav { flex: 1 1 220px; gap: 4px 16px; }
    .lang { order: 2; align-self: flex-start; }
    .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; padding-bottom: 32px; }
    .hero h1 { font-size: 30px; }
    .sub { font-size: 16px; }
    .grid, .dl-grid { grid-template-columns: 1fr; }
    .contacts { grid-template-columns: 1fr; padding: 18px; }
    .about, .soon { padding: 18px; }
    .page { padding-top: 28px; }
    .page h1 { font-size: 28px; }
}
@media (max-width: 400px) {
    .brand { font-size: 16px; }
    .brand img { max-width: 110px; }
    .btn { white-space: normal; }
}

/* --- справочник (шаблон alerts.html владельца под оболочкой селлера) --- */
.alerts { padding-block: clamp(28px, 5vw, 56px); }
.alerts .h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; margin: 0; }
.alerts .lead { color: var(--muted); margin-top: 12px; max-width: 56ch; line-height: 1.55; }
.alerts p { margin: 0; }
.alerts a { color: inherit; }
.wrap.narrow { max-width: 760px; }
.notice { color: var(--muted); margin-top: 24px; }
.alerts .split { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    border: 1px solid var(--line); border-radius: 12px; margin-top: 24px; background: var(--card); min-height: 480px; }
.alerts .left { border-right: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; }
.alerts .search input { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--fg);
    border-radius: 9px; padding: 12px 14px; font-size: 15px; font-family: inherit; }
.alerts .search input:focus-visible { outline: 2px solid var(--ac); outline-offset: 1px; }
.alerts .list { margin-top: 10px; overflow-y: auto; max-height: 520px; }
.alerts .hit { display: block; border-bottom: 1px solid var(--line); padding: 12px 8px; text-decoration: none; border-radius: 6px; }
.alerts .hit:last-child { border-bottom: none; }
.alerts .hit:hover { background: rgba(255,255,255,.04); }
.alerts .hit[aria-current="page"] { background: var(--ac-soft); box-shadow: inset 2px 0 0 var(--ac); }
.alerts .hit .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; color: var(--ac); }
.alerts .hit .sum { display: block; font-size: 14.5px; margin-top: 3px; }
.alerts .hit .node { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.alerts .hit mark { background: color-mix(in srgb, var(--ac) 35%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.alerts .empty { color: var(--muted); font-size: 14px; padding: 20px 8px; }
.alerts .empty.pick { padding: 40px 24px; }
.alerts .detail { padding: 22px; min-width: 0; }
.alerts .card h1.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 700; margin: 0; color: var(--ac); overflow-wrap: anywhere; }
.alerts .card dl { margin: 24px 0 0; display: grid; gap: 18px; }
.alerts .card dt { font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.alerts .card dd { margin: 0; font-size: 15.5px; line-height: 1.58; max-width: 70ch; }
.variant-head { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.alerts .cta { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.alerts .cta p { color: var(--muted); font-size: 14.5px; max-width: 42ch; }
.alerts .related { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.alerts .related h2 { font-size: 14px; color: var(--muted); font-weight: 400; margin: 0 0 10px; }
.alerts .related .links { display: flex; flex-wrap: wrap; gap: 8px; }
.alerts .related a { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--muted);
    border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; text-decoration: none; }
.alerts .related a:hover { color: var(--fg); }
@media (max-width: 880px) {
    .alerts .split { grid-template-columns: 1fr; min-height: 0; }
    .alerts .left { border-right: none; border-bottom: 1px solid var(--line); }
}
