:root {
  color-scheme: light;
  --ink: #111111;
  --paper: #f7f7f1;
  --paper-strong: #ffffff;
  --muted: #5d625f;
  --line: #d7dbd2;
  --acid: #b6ff5d;
  --blue: #2447ff;
  --red: #ff4d39;
  --charcoal: #181a1b;
  --shadow: 0 22px 80px rgba(17, 17, 17, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(247, 247, 241, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font-weight: 950;
  transform: rotate(-4deg);
}

.brand span:last-child {
  font-size: 15px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

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

.menu-button {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  font-size: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--acid);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--acid);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.button.telegram {
  background: var(--blue);
  border-color: var(--blue);
}

.hero {
  min-height: 86vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.66) 38%, rgba(17, 17, 17, 0.1) 100%),
    image-set(url("/assets/hero-poster.png") type("image/png"));
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 10px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(58px, 13vw, 166px);
  line-height: 0.83;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 650px;
  margin: 30px 0 0;
  font-size: clamp(20px, 2.4vw, 31px);
  line-height: 1.12;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  transform: translateY(50%);
  box-shadow: var(--shadow);
}

.fact {
  min-height: 124px;
  padding: 20px;
  background: var(--paper-strong);
  color: var(--ink);
  border: 1px solid var(--line);
}

.fact strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.fact span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0;
}

.section.after-hero {
  padding-top: 150px;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 42px;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.section h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.94;
  letter-spacing: 0;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  height: 44px;
  border: 1px solid var(--ink);
  background: var(--acid);
  font-weight: 950;
}

.step h3,
.feature h3,
.query-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.12;
}

.step p,
.feature p,
.query-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.phone-scene {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(370px, 100%);
  border: 2px solid var(--ink);
  background: #111111;
  padding: 14px;
  box-shadow: 16px 16px 0 var(--blue);
  transform: rotate(2deg);
}

.phone-screen {
  min-height: 510px;
  background: #f8f8f4;
  padding: 18px;
  color: var(--ink);
}

.chat-line {
  width: fit-content;
  max-width: 86%;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 6px;
  font-weight: 700;
}

.chat-line.bot {
  background: var(--acid);
  margin-left: auto;
}

.conf-file {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--ink);
  background: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}

.mini-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mini-buttons span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.price-band {
  width: 100%;
  background: var(--charcoal);
  color: #ffffff;
}

.price-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.price-symbol {
  font-size: clamp(120px, 22vw, 260px);
  line-height: 0.78;
  font-weight: 950;
  letter-spacing: 0;
  color: var(--acid);
}

.price-text h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.96;
}

.price-text p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.5;
}

.feature-grid,
.query-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature,
.query-card {
  min-height: 210px;
  padding: 26px;
  background: var(--paper-strong);
}

.feature-tag {
  display: inline-flex;
  margin-bottom: 42px;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  background: var(--acid);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.query-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.query-card:hover h3 {
  color: var(--blue);
}

.query-card small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.faq-item p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cta-strip {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 96px;
  padding: 40px;
  border: 2px solid var(--ink);
  background: var(--acid);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 10px 10px 0 var(--ink);
}

.cta-strip h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.98;
}

.cta-strip p {
  margin: 12px 0 0;
  color: #263020;
  line-height: 1.5;
}

.site-footer {
  background: var(--ink);
  color: #ffffff;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.footer-note {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.5;
}

.content-page {
  width: min(930px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0 110px;
}

.content-page h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.94;
}

.content-page h2 {
  margin: 52px 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.content-page p,
.content-page li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.content-page ul,
.content-page ol {
  padding-left: 24px;
}

.notice {
  margin: 34px 0;
  padding: 22px;
  border-left: 8px solid var(--blue);
  background: #ffffff;
}

.page-cta {
  margin-top: 46px;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--acid);
}

@media (max-width: 880px) {
  .header-inner {
    min-height: 64px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav[data-open="true"] {
    display: flex;
  }

  .hero {
    min-height: 82vh;
    background-position: 62% center;
  }

  .hero-facts,
  .section-header,
  .split,
  .price-inner,
  .cta-strip,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-facts,
  .feature-grid,
  .query-grid {
    grid-template-columns: 1fr 1fr;
  }

  .phone-scene {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .hero-inner {
    padding-top: 96px;
  }

  .hero-facts,
  .feature-grid,
  .query-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 82px 0;
  }

  .section.after-hero {
    padding-top: 220px;
  }

  .price-inner,
  .cta-strip {
    padding: 34px 24px;
  }

  .footer-inner {
    padding-bottom: 88px;
  }
}
