/* ZERO HOUR | RU — оформление сайта */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --panel: #16161a;
  --panel-2: #1c1c21;
  --line: #2a2a31;
  --text: #ebe7e0;
  --muted: #9b968e;
  --dim: #6c6862;
  --red: #e3402a;
  --red-deep: #8f1d12;
  --amber: #f0a43a;
  --ok: #5cc27c;
  --radius: 4px;
  --maxw: 1160px;
  --f-head: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(227, 64, 42, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(240, 164, 58, .05), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  overflow-x: hidden;
}
/* Плёночное зерно поверх всего */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

h1, h2, h3, .head {
  font-family: var(--f-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 20px; letter-spacing: .06em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.mt { margin-top: 16px; }
.hidden { display: none !important; }
.mono { font-family: var(--f-mono); }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 700; font-size: 20px;
  letter-spacing: .08em; color: var(--text); white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border: 2px solid var(--red); border-radius: 50%;
  position: relative; flex: none;
}
.logo-mark::before, .logo-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--red);
  transform-origin: 50% 100%; width: 2px; margin-left: -1px;
}
.logo-mark::before { height: 10px; margin-top: -10px; }
.logo-mark::after { height: 7px; margin-top: -7px; transform: rotate(0deg); background: var(--amber); }
.logo small { color: var(--red); font-size: 14px; margin-left: 2px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: var(--muted); font-family: var(--f-head); text-transform: uppercase;
  letter-spacing: .08em; font-size: 14px;
}
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }
.nav .cta { color: var(--red); }
.burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--text); width: 42px; height: 38px; border-radius: var(--radius); cursor: pointer;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 15px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: #f04d36; border-color: #f04d36; }
.btn-ghost { background: transparent; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---------- Главный экран ---------- */
.hero { position: relative; padding: 72px 0 56px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: -120px; width: 620px; height: 620px;
  border: 1px solid rgba(227, 64, 42, .18); border-radius: 50%;
  box-shadow: inset 0 0 0 60px rgba(227, 64, 42, .025), 0 0 0 90px rgba(227, 64, 42, .02);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 13px; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--red); }
.hero h1 { font-size: clamp(54px, 9vw, 112px); font-weight: 700; letter-spacing: .02em; margin-bottom: 12px; }
.hero h1 .ru { color: var(--red); }
.slogan { font-size: clamp(18px, 2.2vw, 22px); color: var(--text); max-width: 34ch; margin-bottom: 6px; }
.slogan-en { font-family: var(--f-mono); font-size: 13px; color: var(--dim); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Часы */
.clock {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 6px; padding: 26px 24px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.clock-label {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase;
}
.clock-digits {
  font-family: var(--f-mono); font-weight: 700;
  font-size: clamp(44px, 7vw, 72px); line-height: 1; letter-spacing: .02em;
  color: var(--amber); text-shadow: 0 0 24px rgba(240, 164, 58, .35);
  margin: 16px 0 10px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.clock-digits.live { color: var(--red); text-shadow: 0 0 28px rgba(227, 64, 42, .5); }
.clock-sub { font-size: 14px; color: var(--muted); min-height: 1.6em; }
.clock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.stat {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--bg-2);
}
.stat b { display: block; font-family: var(--f-mono); font-size: 20px; font-weight: 600; }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); margin-right: 6px; vertical-align: middle; }
.dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.off { background: var(--red); }
.address {
  margin-top: 10px; display: flex; gap: 8px; align-items: stretch;
}
.address code {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--f-mono); font-size: 15px; padding: 10px 12px;
  background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); white-space: nowrap;
}
.address .btn { padding: 10px 14px; font-size: 13px; }
.clock .vote { display: flex; width: 100%; margin-top: 12px; }
.vote-hint { margin-top: 8px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- Секции ---------- */
section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-num { font-family: var(--f-mono); color: var(--red); font-size: 14px; }
.sec-head p { color: var(--muted); max-width: 60ch; margin: 0; flex-basis: 100%; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px;
  position: relative;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .ico {
  font-family: var(--f-mono); font-size: 12px; color: var(--red); letter-spacing: .1em; margin-bottom: 14px; display: block;
}
.card.accent { border-color: rgba(227, 64, 42, .45); background: linear-gradient(180deg, rgba(227, 64, 42, .08), var(--panel) 60%); }

ul.list { list-style: none; padding: 0; margin: 0 0 1em; }
ul.list li { position: relative; padding-left: 20px; margin-bottom: 8px; }
ul.list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--red); }

/* Таймлайн рейда */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tl { padding: 22px 20px; background: var(--panel); border-right: 1px solid var(--line); }
.tl:last-child { border-right: 0; }
.tl .t { font-family: var(--f-mono); font-size: 22px; color: var(--amber); display: block; margin-bottom: 6px; }
.tl.hot { background: linear-gradient(180deg, rgba(227, 64, 42, .16), var(--panel)); }
.tl.hot .t { color: var(--red); }
.tl b { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 6px; }
.tl p { font-size: 14px; color: var(--muted); margin: 0; }

/* Таблицы */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; color: var(--muted); font-size: 13px; }
.table td.num, .table .mono { font-family: var(--f-mono); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }

/* Шаги подключения */
.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li {
  list-style: none; counter-increment: s; position: relative;
  padding: 16px 18px 16px 64px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
}
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 18px; top: 15px;
  font-family: var(--f-mono); color: var(--red); font-weight: 700;
}
.steps { padding: 0; margin: 0; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 13px; font-family: var(--f-mono); color: var(--red); font-size: 20px; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 18px 16px; color: var(--muted); }

/* Плашка-призыв */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 32px; border: 1px solid rgba(227, 64, 42, .5); border-radius: 6px;
  background: linear-gradient(120deg, rgba(227, 64, 42, .16), rgba(227, 64, 42, .02));
}
.banner h3 { font-size: 26px; margin: 0 0 6px; }
.banner-tg { border-color: rgba(84, 169, 235, .5); background: linear-gradient(120deg, rgba(84, 169, 235, .14), rgba(84, 169, 235, .02)); }
.banner-mon { border-color: rgba(240, 164, 58, .5); background: linear-gradient(120deg, rgba(240, 164, 58, .12), rgba(240, 164, 58, .02)); }
.banner p { max-width: 62ch; }
.banner p { margin: 0; color: var(--muted); }

/* ---------- Формы ---------- */
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--dim); margin-top: 4px; }
input[type=text], input[type=password], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240, 164, 58, .15); }
textarea { min-height: 150px; resize: vertical; }
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% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.notice { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); font-size: 15px; }
.notice.err { border-color: rgba(227, 64, 42, .6); color: #ffb2a6; }
.notice.ok { border-color: rgba(92, 194, 124, .5); }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 12px 18px;
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-size: 15px; cursor: pointer; margin-bottom: -1px;
}
.tabs button.on { color: var(--text); border-bottom-color: var(--red); }

/* Переписка тикета */
.thread { display: grid; gap: 12px; margin: 20px 0; }
.msg { padding: 14px 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); white-space: pre-wrap; word-wrap: break-word; }
.msg.admin { border-color: rgba(240, 164, 58, .4); background: linear-gradient(180deg, rgba(240, 164, 58, .07), var(--panel)); }
.msg .who { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; white-space: normal; }
.msg.admin .who { color: var(--amber); }
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 3px; font-family: var(--f-mono); font-size: 12px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.badge.open { border-color: rgba(240, 164, 58, .6); color: var(--amber); }
.badge.progress { border-color: rgba(120, 160, 255, .5); color: #a9c1ff; }
.badge.answered { border-color: rgba(92, 194, 124, .55); color: var(--ok); }
.badge.closed { color: var(--dim); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- Текстовые страницы ---------- */
.page { padding: 56px 0 84px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose li { margin-bottom: 6px; }

/* ---------- Подвал ---------- */
footer { padding: 40px 0 56px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .tl:nth-child(2) { border-right: 0; }
  .tl:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 40px; }
  .grid-3, .grid-2, .row-2 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .tl { border-right: 0; border-bottom: 1px solid var(--line); }
  .tl:last-child { border-bottom: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .banner { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
