@import url("tokens.css");

:root {
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
  --radius: 16px;
  --header: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  z-index: 40;
  padding: 8px 12px;
  background: var(--gold);
  color: var(--bg);
}

.kicker {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  max-width: 24ch;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.lede,
.section-lede {
  max-width: 46rem;
  color: var(--muted);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header);
  padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.brand em {
  font-style: normal;
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover,
.nav a.is-current {
  color: var(--text);
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.lang button.is-on {
  background: var(--bg);
  color: var(--gold-bright);
}

.header .btn-solid {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  margin-left: auto;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-solid {
  background: var(--gold);
  color: var(--bg);
}

.btn-solid:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold-dim);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 7vw 48px;
  background:
    radial-gradient(ellipse at 80% 20%, rgb(198 165 114 / 12%), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgb(20 40 60 / 80%), transparent 46%),
    var(--bg-elev);
}

.fine {
  margin-top: 16px;
  color: var(--dim);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 28%);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 0 rgb(224 196 138 / 70%);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgb(224 196 138 / 0%);
  }
}

.bars {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bars li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

.bars b {
  color: var(--text);
  font-weight: 600;
}

.bars b::after {
  content: " мс";
  color: var(--dim);
  font-weight: 400;
}

.bars i {
  grid-column: 1 / -1;
  height: 2px;
  background: var(--line);
  border-radius: 99px;
  position: relative;
}

.bars i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: var(--gold);
  border-radius: inherit;
}

.panel-sum {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.panel-sum small {
  display: block;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-sum strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}

.panel-sum p {
  margin: 0;
  max-width: 16rem;
  color: var(--muted);
  font-size: 13px;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tile {
  min-height: 72px;
  padding: 8px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgb(244 237 227 / 6%), transparent 40%),
    #101820;
  border: 1px solid var(--line);
  font-size: 11px;
}

.tile b {
  display: block;
  color: var(--gold-bright);
  font-weight: 600;
}

.tile span {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats article {
  background: var(--bg);
  padding: 28px 32px 32px;
}

.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
}

.stats strong span {
  font-size: inherit;
  color: inherit;
}

.stats article > span {
  color: var(--dim);
  font-size: 13px;
}

.section {
  padding: 88px 7vw;
}

.cards {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.pack .price {
  margin: 12px 0 16px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 2rem;
}

.pack .price small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--dim);
}

.pack-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
}

.pack ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.pack li + li {
  margin-top: 8px;
}

.pack.is-featured {
  border-color: var(--gold-dim);
  box-shadow: inset 0 0 0 1px rgb(198 165 114 / 25%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps li span {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.calc {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  margin-top: 36px;
}

.calc-form,
.calc-out {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 22px;
}

.field span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
}

.field input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.seg,
.checks {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}

.seg legend,
.checks legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seg label {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.seg label:has(input:checked) {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
}

.seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.checks label {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.calc-out .total {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
}

.muted {
  color: var(--dim);
}

.calc-out ul {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.calc-out li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.calc-out .btn {
  width: 100%;
}

.geo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.geo article {
  padding: 22px;
  border-top: 1px solid var(--gold-dim);
}

.geo p {
  margin: 0;
  color: var(--muted);
}

.faq {
  max-width: 46rem;
  margin-top: 28px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 12px 0 4px;
  color: var(--muted);
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 840px;
  margin-top: 32px;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.lead-form .wide,
.lead-form .consent,
.lead-form button,
.lead-form .form-status {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.lead-form .consent {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.form-status {
  color: var(--gold-bright);
  margin: 8px 0 0;
}

.footer {
  padding: 40px 7vw 56px;
  border-top: 1px solid var(--line);
  color: var(--dim);
}

.footer .brand {
  margin-bottom: 12px;
}

.header.is-open .nav {
  display: flex;
}

.news,
.split,
.cards.two {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.news,
.cards.two {
  grid-template-columns: 1fr 1fr;
}

.split {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.meta {
  margin: 0 0 8px;
  color: var(--dim);
  font-size: 13px;
}

.air {
  list-style: none;
  margin: 0;
  padding: 0;
}

.air li {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  column-gap: 12px;
  row-gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.air b {
  grid-row: 1 / span 2;
  color: var(--gold-bright);
  font-weight: 600;
}

.air .ch {
  grid-column: 2;
  color: var(--text);
  font-weight: 600;
}

.air .note {
  grid-column: 2;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.card + .card {
  margin-top: 0;
}

@media (max-width: 980px) {
  .hero,
  .calc,
  .cards.four,
  .cards.three,
  .steps,
  .geo,
  .stats,
  .lead-form,
  .news,
  .split,
  .cards.two {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .nav {
    display: none;
    position: absolute;
    inset: var(--header) 0 auto;
    flex-direction: column;
    padding: 16px 28px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: block;
  }

  .header .btn-solid {
    display: none;
  }

  .stats article {
    padding: 22px 7vw;
  }

  h2 {
    max-width: none;
  }
}
