:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f4f4f2;
  --muted: #9a9a96;
  --dim: #66665f;
  --accent: #ff4d2e;
  --accent-soft: rgba(255, 77, 46, 0.14);
  --radius: 14px;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.label::before { content: "/"; color: var(--accent); }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; }
h1 { font-size: clamp(42px, 7.2vw, 96px); letter-spacing: -0.06em; }
h2 { font-size: clamp(32px, 4.6vw, 60px); margin-top: 18px; max-width: 18ch; }
h3 { font-size: 22px; letter-spacing: -0.03em; line-height: 1.15; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin-top: 22px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid var(--line-2); background: transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { border-color: #fff; }
.btn-primary { background: #fff; color: #050505; border-color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 5, 5, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; font-size: 19px; }
.logo svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: none; }
.burger span { display: block; width: 16px; height: 1.5px; background: #fff; margin: 5px auto; }

/* Hero */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.22) 1px, transparent 1.2px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 100% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 100% 0%, #000 0%, transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; top: -260px; right: -220px; width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(255,77,46,0.55) 0%, rgba(120,15,5,0.25) 35%, transparent 65%);
  filter: blur(20px);
  animation: pulse 9s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .75; transform: scale(1);} 50% { opacity: 1; transform: scale(1.06);} }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { margin-top: 24px; max-width: 14ch; }
.hero .lead { max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .03em; }

.grid-cells { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, 1fr); }
.cell { padding: 26px 22px 30px; border-right: 1px solid var(--line); background: rgba(5,5,5,0.5); }
.cell:last-child { border-right: 0; }
.cell .k { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .06em; }
.cell strong { display: block; margin-top: 18px; font-weight: 500; font-size: 18px; letter-spacing: -0.02em; line-height: 1.2; }
.cell span.s { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }

/* Head blocks */
.head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.head .lead { margin-top: 0; }

/* Cards grid */
.cards { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 32px 30px 34px; border-right: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 14px; transition: background .25s ease; }
.card:last-child { border-right: 0; }
.card:hover { background: var(--bg-2); }
.card .tag { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 9px; border-radius: 6px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--dim); line-height: 1.6; }
.big-num { font-size: 52px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.big-num small { font-size: 16px; color: var(--muted); letter-spacing: 0; margin-left: 6px; font-weight: 400; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 28px 24px 32px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step h3 { margin-top: 38px; font-size: 20px; }
.step p { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.note-line { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* Table */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 15px; vertical-align: top; }
th:last-child, td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
td:first-child { color: var(--muted); width: 22%; }
td { color: #cfcfca; }
.col-us { background: linear-gradient(180deg, rgba(255,77,46,.10), rgba(255,77,46,.04)); color: #fff; font-weight: 500; }
thead th.col-us { color: var(--accent); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.price-card { border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); background: linear-gradient(160deg, rgba(255,77,46,.10), transparent 55%), var(--bg-2); position: relative; overflow: hidden; }
.price-card .price { font-size: clamp(60px, 8vw, 96px); font-weight: 500; letter-spacing: -0.06em; line-height: 1; margin-top: 22px; }
.price-card .price small { font-size: 20px; color: var(--muted); letter-spacing: -0.01em; margin-left: 8px; font-weight: 400; }
.ticks { list-style: none; margin: 28px 0 32px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: #d8d8d3; font-size: 16px; }
.ticks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent); box-shadow: inset 0 0 0 3px var(--bg-2), inset 0 0 0 8px var(--accent); }
.side-stack { display: grid; gap: 20px; align-content: start; }
.mini { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg); }
.mini .price-s { font-size: 40px; font-weight: 500; letter-spacing: -0.05em; margin: 14px 0 6px; line-height: 1; }
.mini .price-s small { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.mini p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.fine { margin-top: 26px; color: var(--dim); font-size: 13.5px; font-family: var(--mono); line-height: 1.7; }

/* Draft markers */
.draft { outline: 1px dashed rgba(255, 190, 0, .6); outline-offset: -1px; position: relative; }
.draft::after { content: "ЧЕРНОВИК — заполнить"; position: absolute; top: 10px; right: 10px; font-family: var(--mono); font-size: 10px; color: #ffbe00; letter-spacing: .06em; }

/* Person */
.person { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.avatar { aspect-ratio: 1; border: 1px solid var(--line-2); border-radius: var(--radius); background: repeating-linear-gradient(45deg, #0e0e0e, #0e0e0e 8px, #121212 8px, #121212 16px); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--dim); text-align: center; padding: 20px; }
.person .quote { font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.03em; line-height: 1.2; font-weight: 500; max-width: 28ch; }
.person .who { margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; font-size: clamp(18px, 2vw, 22px); letter-spacing: -0.025em; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 22px; line-height: 1; flex: none; transition: transform .25s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 40px 26px 0; max-width: 70ch; font-size: 16px; }

/* Form */
.cta-box { border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(28px, 5vw, 64px); background: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(255,77,46,.28), transparent 65%), var(--bg-2); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.cta-box h2 { max-width: 12ch; }
form { display: grid; gap: 14px; }
label.f { display: grid; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
input, textarea { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 14px 16px; font-family: var(--sans); font-size: 16px; letter-spacing: -0.01em; text-transform: none; outline: none; transition: border-color .2s ease, background .2s ease; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); }
::placeholder { color: var(--dim); }
.form-note { font-size: 13px; color: var(--dim); }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 36px; }
.foot-links { display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.foot-links a:hover { color: #fff; }
.foot-links .t { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.copy { margin-top: 48px; font-family: var(--mono); font-size: 12px; color: var(--dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-bg::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1080px) {
  .grid-cells { grid-template-columns: repeat(3, 1fr); }
  .cell:nth-child(3) { border-right: 0; }
  .cell:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(2n) { border-right: 0; }
  .step:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }
  .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav.open .nav-links { display: grid; position: absolute; top: 68px; left: 0; right: 0; background: #070707; border-bottom: 1px solid var(--line); padding: 8px var(--pad) 22px; gap: 0; }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: #fff; }
  .nav-right .btn { display: none; }
  .cards.c3, .cards.c2 { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .person { grid-template-columns: 1fr; }
  .avatar { max-width: 220px; }
  .cta-box { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-cells { grid-template-columns: 1fr 1fr; }
  .cell, .cell:nth-child(3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .cell:nth-child(2n) { border-right: 0; }
  .cell:nth-last-child(-n+2) { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; }
  .step:last-child { grid-column: auto; }
  .btn { padding: 13px 18px; }
  .hero-cta .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.3; }
  details p { padding-right: 0; }
}
