/* L2 Valiant — тёмная тема с золотом. Правится сверху, из переменных. */

:root {
  --bg:        #0a0b0f;
  --bg-soft:   #10131b;
  --card:      #14171f;
  --card-2:    #191d27;
  --line:      #262b38;
  --line-soft: #1d222d;
  --text:      #e8e6e0;
  --muted:     #8b8f9c;
  --gold:      #c9a227;
  --gold-2:    #e8c766;
  --gold-dim:  rgba(201, 162, 39, .14);
  --ok:        #5fbf7d;
  --bad:       #d1584f;
  --warn:      #d6a34a;
  --radius:    14px;
  --shadow:    0 18px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #f3dc9c; }

h1, h2, h3 { font-family: Philosopher, Georgia, serif; font-weight: 700; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

p { margin: 0 0 14px; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em;
  background: #0a0c11;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--gold-2);
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.gold { color: var(--gold-2); }
.ta-r { text-align: right; }
.ta-c { text-align: center; }
.mt { margin-top: 26px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 10px; z-index: 99; }

/* ------------------------------------------------------------------ шапка */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(8, 9, 13, .88);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
}
.topbar-in {
  max-width: 1120px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { filter: drop-shadow(0 0 12px rgba(201, 162, 39, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: Cinzel, Philosopher, Georgia, serif;
  font-size: 21px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  background: linear-gradient(180deg, #f6e6ae, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: 11.5px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 8px 12px; border-radius: 8px; color: var(--text);
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent;
}
.nav a:hover { background: var(--card); color: var(--gold-2); }
.nav a.is-active { color: var(--gold-2); background: var(--gold-dim); }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.nav a.nav-cta {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #17140c; font-weight: 700;
}
.nav a.nav-cta:hover { filter: brightness(1.08); color: #17140c; }
.nav a.nav-ghost { border-color: var(--line); }
.nav a.nav-cabinet { border-color: var(--line); color: var(--gold-2); }

.burger { display: none; }

/* -------------------------------------------------------------------- герой */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 32%;
  transform: scale(1.03);
  animation: heroDrift 40s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.03) translateY(0); }
  to   { transform: scale(1.09) translateY(-14px); }
}
.hero-grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 520px at 18% 48%, rgba(8, 9, 13, .88) 0%, rgba(8, 9, 13, .42) 52%, transparent 76%),
    linear-gradient(180deg, rgba(8, 9, 13, .50) 0%, rgba(8, 9, 13, .22) 32%, rgba(10, 11, 15, .78) 80%, var(--bg) 100%);
}
.hero-in {
  position: relative;
  min-height: 600px;
  display: grid; grid-template-columns: 1.55fr .95fr; gap: 34px; align-items: center;
  padding: 62px 20px 66px;
}
.hero-mark { filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .7)); margin-bottom: 8px; }
.hero-title {
  font-family: Cinzel, Philosopher, Georgia, serif;
  font-size: clamp(38px, 6.4vw, 68px);
  letter-spacing: 3px; text-transform: uppercase; margin: 0 0 6px;
  background: linear-gradient(180deg, #fff6d8 10%, var(--gold-2) 55%, #9a7a1c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.hero-tag {
  font-family: Philosopher, Georgia, serif; font-size: clamp(17px, 2.2vw, 22px);
  color: #d9d4c4; margin-bottom: 14px;
}
.hero-lead { max-width: 54ch; color: #b9bcc6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.hero-rates { display: flex; gap: 8px; flex-wrap: wrap; }

.pill {
  border: 1px solid var(--line); background: rgba(20, 23, 31, .72);
  border-radius: 999px; padding: 5px 13px; font-size: 13.5px; color: var(--muted);
}
.pill b { color: var(--gold-2); font-family: Philosopher, serif; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card-2); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 600;
  transition: transform .15s ease, border-color .15s ease, filter .15s ease;
}
.btn:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: #a5831c; color: #17140c;
  box-shadow: 0 10px 26px rgba(201, 162, 39, .22);
}
.btn-primary:hover { filter: brightness(1.07); color: #17140c; }
.btn-wide { width: 100%; margin-top: 16px; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------ статус-карта */

.statuscard {
  background: linear-gradient(180deg, rgba(25, 29, 39, .96), rgba(16, 19, 27, .96));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); text-align: center;
}
.status-top { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 14.5px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-on { background: var(--ok); box-shadow: 0 0 0 4px rgba(95, 191, 125, .16); }
.dot-off { background: var(--bad); box-shadow: 0 0 0 4px rgba(209, 88, 79, .16); }
.bignum {
  font-family: Philosopher, serif; font-size: 46px; line-height: 1.1; margin-top: 10px;
  background: linear-gradient(180deg, #fff3ce, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.status-list { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; }
.status-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line-soft); color: var(--muted);
}
.status-list li span:last-child, .status-list li code { color: var(--text); }

/* --------------------------------------------------------------- карточки */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px auto; }
.narrow { max-width: 520px; margin: 40px auto; }

section.wrap { padding-top: 8px; padding-bottom: 8px; }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 40px 0 18px;
}
.sec-head h2, .sec-title { margin: 0; }
.sec-title { margin: 40px 0 18px; }
.link-more { font-size: 14.5px; white-space: nowrap; }

.feature-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: -34px auto 34px; position: relative; z-index: 2;
}
.feature {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.feature-badge {
  font-family: Philosopher, serif; font-size: 22px; color: var(--gold-2);
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 12px;
  border: 1px solid rgba(201, 162, 39, .35); border-radius: 12px; background: var(--gold-dim);
}
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; font-size: 14.5px; }

.mech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mech p { margin: 0; }

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

.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th {
  text-align: left; padding: 0 0 10px; font-size: 12px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted);
}
.tbl td { padding: 11px 0; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:first-child td { border-top: 0; }
.rate {
  font-family: Philosopher, serif; font-size: 20px; color: var(--gold-2);
}

.list { margin: 0; padding-left: 20px; }
.list li { margin-bottom: 9px; }
.rules { margin: 0; padding-left: 22px; }
.rules li { margin-bottom: 12px; }

.news { border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 14px; }
.news:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.news h3 { margin-bottom: 2px; }
.faq { border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: 14px; }
.faq:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.faq h3 { margin-bottom: 4px; font-size: 16.5px; }

/* ------------------------------------------------- страницы и спец-блоки */

.pagehead {
  background:
    radial-gradient(700px 260px at 15% 0%, rgba(201, 162, 39, .10), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 46px 0 34px; margin-bottom: 26px;
}
.pagehead h1 { margin-bottom: 8px; }
.lead { font-size: 17px; color: #b9bcc6; max-width: 70ch; margin: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding-top: 26px; }
.step-num {
  position: absolute; top: -14px; left: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: Philosopher, serif; font-size: 19px; color: #17140c;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 20px rgba(201, 162, 39, .25);
}
.step h3 { margin-top: 8px; }
.hostbox {
  margin-top: 14px; padding: 12px; border-radius: 10px;
  background: #0c0e14; border: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 4px;
}

.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 14px; }
.tier { display: flex; flex-direction: column; }
.tier h3 { color: var(--gold-2); }
.tier-price { font-family: Philosopher, serif; font-size: 26px; margin-bottom: 12px; }
.tier .list { margin-top: auto; }

.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 40px 0 56px; padding: 28px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(600px 200px at 90% 20%, rgba(201, 162, 39, .12), transparent 70%),
    linear-gradient(180deg, var(--card-2), var(--card));
}
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.lk-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 30px 0 18px; }

/* ----------------------------------------------------------------- формы */

.form { display: flex; flex-direction: column; gap: 15px; margin: 18px 0 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
.form input, .form select {
  padding: 12px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: #0c0e14; color: var(--text);
  font: inherit; font-size: 15px;
}
.form input:focus, .form select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .13);
}
.form input:disabled, .form select:disabled { opacity: .45; }

.flash {
  padding: 13px 16px; border-radius: 10px; margin: 0 0 16px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 14.5px;
}
.flash-ok   { border-color: #2e5c3f; background: #12251a; }
.flash-err  { border-color: #5c2f2b; background: #251413; }
.flash-warn { border-color: #5c4a24; background: #251f12; }

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

.footer { border-top: 1px solid var(--line-soft); background: var(--bg-soft); margin-top: 40px; }
.footer-in {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 24px;
  padding: 30px 20px; align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-family: Cinzel, Philosopher, serif; letter-spacing: 1.6px; color: var(--gold-2); }
.footer-nav { display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; }

/* -------------------------------------------------------------- мобилка */

@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; padding: 44px 20px 48px; }
  .feature-row { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
  .grid2, .mech-grid, .steps-grid, .tier-grid, .form-row { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }

  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 9px; cursor: pointer;
    border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  }
  .burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
  .topbar-in { flex-wrap: wrap; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    padding: 8px 0 12px; gap: 2px;
  }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav-sep { display: none; }
  .burger-toggle:checked ~ .nav { display: flex; }
}

@media (max-width: 560px) {
  .feature-row { grid-template-columns: 1fr; }
  .statuscard { padding: 20px; }
  .card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}
