:root {
  --text: #171717;
  --muted: #66686d;
  --line: #dedede;
  --surface: #f5f5f5;
  --white: #ffffff;
  --red: #d51f2f;
  --red-dark: #b51624;
  --red-soft: #fff0f1;
  --radius: .8rem;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--white); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--red); color: var(--white); font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header { width: min(calc(100% - 2rem), var(--max)); min-height: 4.75rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; aspect-ratio: 1; border-radius: .55rem; background: var(--red); color: var(--white); font-size: .74rem; }
.nav { display: flex; align-items: center; gap: 1.45rem; font-size: .9rem; font-weight: 650; }
.nav a:hover, .nav a:focus-visible { color: var(--red); }
.nav-cta { padding: .68rem 1rem; border-radius: .55rem; background: var(--red); color: var(--white) !important; }
.nav-cta:hover { background: var(--red-dark); }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: .55rem; padding: .6rem .85rem; background: var(--white); color: var(--text); font: inherit; font-weight: 700; }

.hero { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.eyebrow { margin: 0 0 .9rem; color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 13ch; margin-bottom: 1.4rem; font-size: clamp(2.9rem, 6vw, 5.3rem); line-height: .98; letter-spacing: -.055em; }
.hero-lead { max-width: 43rem; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.button { display: inline-flex; min-height: 3.1rem; align-items: center; justify-content: center; padding: .8rem 1.2rem; border-radius: .55rem; font-weight: 750; transition: background .18s ease, color .18s ease; }
.button-primary { background: var(--red); color: var(--white); }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { border: 1px solid var(--line); background: var(--white); }
.button-secondary:hover { border-color: var(--red); color: var(--red); }
.hero-panel { padding: 1.6rem; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); background: var(--surface); }
.hero-panel h2 { margin-bottom: 1rem; font-size: 1.25rem; letter-spacing: -.02em; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .72rem 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.panel-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; font-size: .88rem; font-weight: 700; color: var(--red); }

.section { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: clamp(3.5rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 48rem; margin-bottom: 2rem; }
h2 { margin-bottom: .75rem; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -.045em; }
h3 { margin-bottom: .6rem; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; }
.section-heading > p:last-child:not(.eyebrow) { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.service-grid article { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.service-grid article::before { content: ""; display: block; width: 2.4rem; height: .2rem; margin-bottom: 1.4rem; background: var(--red); }
.service-grid p { margin-bottom: 0; color: var(--muted); }

.placement-list { display: grid; gap: .65rem; }
.placement-list article { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 2rem; padding: 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.placement-list article > div { display: flex; align-items: center; gap: 1rem; }
.platform-icon { display: grid; place-items: center; width: 3rem; aspect-ratio: 1; border-radius: .6rem; background: var(--red); color: var(--white); font-size: .75rem; font-weight: 850; }
.placement-list h3, .placement-list p { margin: 0; }
.placement-list h3 { font-size: 1.55rem; }
.placement-list p { color: var(--muted); }

.prices { width: 100%; max-width: none; padding-left: max(1rem, calc((100% - var(--max)) / 2)); padding-right: max(1rem, calc((100% - var(--max)) / 2)); background: var(--surface); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.price-grid article { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.price-grid article.featured { border: 2px solid var(--red); }
.price-type { margin-bottom: .8rem; color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.price { margin: 1.3rem 0 .9rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 850; letter-spacing: -.05em; }
.price-grid article > p:last-child { margin-bottom: 0; color: var(--muted); }
.draft-note { margin: 1rem 0 0; color: var(--muted); font-size: .86rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 1.35rem; border-top: 3px solid var(--red); background: var(--surface); }
.steps li > span { display: block; margin-bottom: 1.5rem; color: var(--red); font-weight: 850; }
.steps p { margin-bottom: 0; color: var(--muted); }

.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.terms-grid article { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.terms-grid p { margin-bottom: 0; color: var(--muted); }
.legal-links { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.5rem; }
.legal-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-radius: .6rem; background: var(--red-soft); color: var(--red); font-weight: 750; }

.contact { padding: clamp(2rem, 5vw, 3.5rem); border: 0; border-radius: var(--radius); background: var(--red); color: var(--white); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
.contact .eyebrow { color: rgba(255,255,255,.72); }
.contact h2 { max-width: 14ch; }
.contact > div:first-child > p:last-child { max-width: 39rem; margin-bottom: 0; color: rgba(255,255,255,.82); }
.button-light { background: var(--white); color: var(--red); }
.button-light:hover { background: var(--red-soft); }
.contact-actions p { margin: .65rem 0 0; text-align: center; color: rgba(255,255,255,.72); font-size: .8rem; }

.requisites dl { margin: 0; border-top: 1px solid var(--line); }
.requisites dl > div { display: grid; grid-template-columns: .45fr 1fr; gap: 2rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; font-weight: 700; }
.site-footer { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 2rem 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: var(--muted); font-size: .84rem; }
.site-footer > div { display: flex; gap: 1rem; }
.site-footer .brand { color: var(--text); }

.legal-header { border-bottom: 1px solid var(--line); }
.legal-header .site-header { min-height: 4.75rem; }
.back-link { font-size: .9rem; font-weight: 750; color: var(--red); }
.legal-main { width: min(calc(100% - 2rem), 880px); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.legal-intro { padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.legal-intro h1 { max-width: 14ch; color: var(--text); font-size: clamp(2.6rem, 6vw, 4.8rem); }
.legal-intro > p:last-child { max-width: 46rem; color: var(--muted); font-size: 1.05rem; }
.document-status { display: inline-flex; margin-bottom: 1.5rem; padding: .48rem .7rem; border-radius: .45rem; background: var(--red-soft); color: var(--red-dark); font-size: .77rem; font-weight: 800; }
.legal-document { padding-top: 1rem; }
.legal-document section { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.legal-document h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.03em; }
.legal-document h3 { margin-top: 1.5rem; }
.legal-document p, .legal-document li { color: #505156; }
.legal-document ul, .legal-document ol { padding-left: 1.3rem; }
.legal-document li + li { margin-top: .45rem; }
.legal-document strong { color: var(--text); }
.placeholder { padding: .06rem .25rem; border-radius: .25rem; background: var(--red-soft); color: var(--red-dark); }
.legal-requisites { display: grid; gap: .55rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal-requisites p { margin: 0; }
.legal-footer { width: min(calc(100% - 2rem), 880px); }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 1rem; right: 1rem; top: 4.5rem; z-index: 10; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--white); box-shadow: 0 18px 40px rgba(0,0,0,.12); flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-panel { max-width: 600px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 680px) {
  .site-header { min-height: 4.5rem; }
  h1 { font-size: clamp(2.55rem, 12vw, 3.7rem); }
  .hero { padding: 3rem 0; }
  .section { padding: 3.5rem 0; }
  .service-grid, .price-grid, .steps, .terms-grid, .legal-links { grid-template-columns: 1fr; }
  .placement-list article { grid-template-columns: 1fr; gap: .8rem; }
  .contact { width: calc(100% - 2rem); }
  .contact-actions { display: grid; }
  .requisites dl > div { grid-template-columns: 1fr; gap: .2rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
