/* ==========================================================================
   Комната агрессии — тёмная тема
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #ffffff08;
  --panel: #141416;
  --panel-2: #1a1a1e;
  --line: #2a2a30;
  --line-soft: #ffffff14;
  --text: #ededf0;
  --muted: #9c9ca6;
  --dim: #6e6e78;
  --accent: #ff3b1f;
  --accent-soft: #ff3b1f24;
  --accent-line: #ff3b1f55;
  --warn: #ffc400;
  --ok: #32d583;
  --radius: 4px;
  --maxw: 1180px;
  --pad: 24px;
  --head: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* цепь — повторяющийся тайл, звенья не растягиваются */
  --chain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='20' viewBox='0 0 26 20'%3E%3Cg fill='none' stroke='%23ff3b1f' stroke-width='3.2'%3E%3Cellipse cx='0' cy='10' rx='10.5' ry='6'/%3E%3Cellipse cx='26' cy='10' rx='10.5' ry='6'/%3E%3Cellipse cx='13' cy='10' rx='6.5' ry='8.4'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* зернистость поверх всего фона */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .95;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0a0a0bd9;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar__in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

/* --- логотип: «ДОБЕЙ» + топор + «МЕНЯ» на цепи --- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  gap: .1em;
  font-family: var(--head);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.logo__w1 { color: var(--text); }

.logo__w2 {
  color: var(--accent);
  padding-bottom: 9px;
  background: var(--chain) left bottom repeat-x;
  background-size: 17px 13px;
}

.logo__axe {
  width: 1.06em;
  height: 1.06em;
  flex: none;
  margin: 0 -.08em;
  transform: rotate(-30deg);
}

.logo__tag {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
  padding-bottom: 2px;
}

@media (max-width: 1040px) { .logo__tag { display: none; } }

@media (max-width: 420px) { .logo__mark { font-size: 21px; } }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color .18s;
  padding-block: 6px;
}

.nav a:hover { color: var(--text); }

.topbar .btn { padding: 11px 20px; font-size: 12px; }

.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  width: 42px;
  height: 38px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .18s, background .18s;
  box-shadow: 0 0 0 0 var(--accent-soft);
}

.btn:hover {
  background: #ff5335;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px #ff3b1f88;
}

.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.btn--ghost:hover {
  background: #ffffff0a;
  border-color: var(--accent-line);
  box-shadow: none;
}

.btn[disabled] { opacity: .55; pointer-events: none; }

/* --------------------------------------------------------------------------
   Первый экран
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(64px, 11vw, 130px) clamp(56px, 9vw, 110px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero::after {
  content: "";
  position: absolute;
  top: -35%;
  left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, #ff3b1f26 0%, #ff3b1f00 62%);
  pointer-events: none;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 8px 15px;
  border-radius: 100px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(40px, 8.4vw, 100px);
  max-width: 17ch;
  line-height: 1;
  padding-bottom: .08em;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero__lead {
  font-size: clamp(16px, 2.1vw, 20px);
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 38px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 60px);
  margin-top: 58px;
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}

.stat b {
  display: block;
  font-family: var(--head);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.stat span {
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   Секции
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(58px, 8.5vw, 104px); position: relative; }

.section + .section { border-top: 1px solid var(--line-soft); }

.section--alt { background: var(--bg-2); }

.section__head { margin-bottom: clamp(34px, 5vw, 52px); max-width: 62ch; }

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section h2 { font-size: clamp(32px, 5.6vw, 62px); margin-bottom: 16px; }

.section__head p { color: var(--muted); font-size: 17px; margin: 0; }

/* --------------------------------------------------------------------------
   Как проходит
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.step {
  background: var(--bg);
  padding: 32px 28px 36px;
  position: relative;
  transition: background .2s;
}

.step:hover { background: var(--panel); }

.step__n {
  font-family: var(--head);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff12;
  margin-bottom: 14px;
}

.step:hover .step__n { color: var(--accent-soft); }

.step h3 { font-size: 20px; margin-bottom: 10px; }

.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* --------------------------------------------------------------------------
   Тарифы
   -------------------------------------------------------------------------- */
.tariffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
}

.tariff {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  position: relative;
  transition: transform .18s, border-color .18s;
}

.tariff:hover { transform: translateY(-4px); border-color: var(--accent-line); }

.tariff--featured { border-color: var(--accent); background: var(--panel-2); }

.tariff__badge {
  position: absolute;
  top: -10px;
  left: 26px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
}

.tariff h3 { font-size: 25px; margin-bottom: 8px; }

.tariff__meta {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: .04em;
  margin-bottom: 20px;
}

.tariff__price {
  font-family: var(--head);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 22px;
}

.tariff__price small {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0;
}

.tariff__price--ask { font-size: 26px; color: var(--warn); }

.tariff ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 14.5px;
  color: var(--muted);
  flex: 1;
}

.tariff li { display: flex; gap: 11px; align-items: flex-start; line-height: 1.45; }

.tariff li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

.tariff .btn { width: 100%; padding-block: 14px; font-size: 13px; }

/* --------------------------------------------------------------------------
   Правила
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

.rules li {
  display: flex;
  gap: 16px;
  padding: 17px 20px;
  background: var(--panel);
  border-left: 2px solid var(--accent);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

.rules li b { color: var(--accent); font-family: var(--head); font-size: 17px; flex: none; }

/* аккордеон FAQ */
.faq { border-top: 1px solid var(--line-soft); }

.faq details { border-bottom: 1px solid var(--line-soft); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-family: var(--head);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  transition: color .16s;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary:hover { color: var(--accent); }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq p { margin: -4px 0 22px; color: var(--muted); font-size: 15.5px; max-width: 68ch; }

/* --------------------------------------------------------------------------
   Форма записи
   -------------------------------------------------------------------------- */
.book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 70px); align-items: start; }

.form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px);
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0d0d0f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 15.5px;
  padding: 14px 15px;
  transition: border-color .16s, background .16s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #101012;
}

.field textarea { resize: vertical; min-height: 88px; }

.field--hp { position: absolute; left: -9999px; opacity: 0; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }

.slot {
  border: 1px solid var(--line);
  background: #0d0d0f;
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 15px;
  font-family: var(--head);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}

.slot:hover:not([disabled]) { border-color: var(--accent-line); }

.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.slot[disabled] { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

.slots__empty { color: var(--dim); font-size: 14px; }

.form .btn { width: 100%; margin-top: 6px; }

.form__note { font-size: 12.5px; color: var(--dim); margin: 14px 0 0; line-height: 1.5; }

.msg { border-radius: var(--radius); padding: 14px 16px; font-size: 14.5px; margin-bottom: 18px; display: none; }

.msg--err { display: block; background: #ff3b1f1a; border: 1px solid var(--accent-line); color: #ff8f7a; }

.msg--ok { display: block; background: #32d5831a; border: 1px solid #32d58355; color: #7ce6ad; }

.book__side h2 { margin-bottom: 20px; }

.book__side p { color: var(--muted); }

.contacts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }

.contacts li { display: flex; gap: 14px; align-items: center; font-size: 16px; }

.contacts a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent-line); }

.contacts a:hover { color: var(--accent); }

.contacts span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); min-width: 80px; }

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 44px;
  font-size: 13.5px;
  color: var(--dim);
}

.footer__in { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; justify-content: space-between; }

.footer a { color: var(--muted); text-decoration: none; }

.footer a:hover { color: var(--accent); }

/* предупреждающая лента */
.tape {
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 18px, #0a0a0b 18px 36px);
  opacity: .55;
}

/* --------------------------------------------------------------------------
   Появление при скролле
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }

.reveal.is-in { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .book { grid-template-columns: 1fr; }
  .book__side { order: -1; }
}

@media (max-width: 760px) {
  :root { --pad: 18px; }

  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #0d0d0f;
    border-bottom: 1px solid var(--line);
    padding: 8px 18px 16px;
  }

  .nav.is-open { display: flex; }

  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }

  .burger { display: block; }

  .topbar .btn { display: none; }

  .hero__cta .btn { width: 100%; }

  .row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Админка
   -------------------------------------------------------------------------- */
.admin { padding-block: 34px 70px; }

.admin__bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }

.admin__bar h1 { font-size: 30px; margin-right: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.chip {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
}

.chip:hover { border-color: var(--accent-line); color: var(--text); }

.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 860px; }

th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  padding: 14px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }

tr:last-child td { border-bottom: none; }

tr:hover td { background: #ffffff05; }

td.nowrap { white-space: nowrap; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid;
}

.badge--new { color: var(--warn); border-color: #ffc40055; background: #ffc4001a; }
.badge--confirmed { color: var(--ok); border-color: #32d58355; background: #32d5831a; }
.badge--done { color: var(--dim); border-color: var(--line); background: #ffffff08; }
.badge--cancelled { color: #ff8f7a; border-color: var(--accent-line); background: var(--accent-soft); }

.statusform { display: flex; gap: 7px; align-items: center; }

.statusform select {
  background: #0d0d0f;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 7px 9px;
  font-size: 13px;
  font-family: inherit;
}

.statusform button {
  background: #ffffff10;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
}

.statusform button:hover { border-color: var(--accent-line); color: var(--accent); }

.empty { padding: 60px 20px; text-align: center; color: var(--dim); }

.warnbar {
  background: #ffc4001a;
  border: 1px solid #ffc40055;
  color: var(--warn);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 14px;
  margin-bottom: 22px;
}

/* вход в админку */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }

.login__card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.login__card h1 { font-size: 26px; margin-bottom: 8px; }

.login__card p { color: var(--dim); font-size: 14px; margin: 0 0 26px; }
