/* ============================================================
   PREMIUM EDITORIAL DATA — дизайн-система
   Типографика + сетка + реальные данные + минимальный цвет
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #F7F7F5;
  --text: #111111;
  --muted: #686868;
  --border: #D9D9D6;
  --white: #FFFFFF;
  --accent: #C7FF3D;
  --dark: #111111;
  --dark-text: #F4F4F1;
  --dark-muted: #929292;
  --font-main: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  --radius: 2px;
  --speed: .3s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #111; }
:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 64px; }

/* ---------- Типографика ---------- */
.h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.025em;
}
.h2 {
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.h3 { font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; color: var(--muted); max-width: 660px; }
.text-muted { color: var(--muted); }

/* Моноширинная служебная метка: 01 / SERVICES */
.label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.label::before {
  content: "";
  width: 9px; height: 9px;
  background: var(--accent);
  flex: 0 0 auto;
}
.tags {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Кнопки: острые, моноширинные, в стиле [ ОБСУДИТЬ ПРОЕКТ ] ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: transparent; color: var(--text);
  cursor: pointer;
  transition: background var(--speed), border-color var(--speed), color var(--speed);
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #111; }
.btn-accent:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-dark { background: var(--dark); border-color: var(--dark); color: var(--dark-text); }
.btn-dark:hover { background: var(--bg); border-color: var(--bg); color: #111; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 245, .96);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 16px 0;
}
.brand-name {
  display: block;
  font-weight: 800; font-size: 15px;
  text-transform: uppercase; letter-spacing: .04em;
}
.brand-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  color: var(--muted); margin-top: 2px;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { font-size: 15px; font-weight: 500; transition: opacity var(--speed); }
.main-nav a:not(.btn):hover { opacity: .55; }
.main-nav .btn { padding: 12px 22px; }
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  padding: 0; margin: 0;
  cursor: pointer;
  position: relative; z-index: 60;
  align-items: center; justify-content: center;
}
.nav-icon {
  display: block;
  width: 20px; height: 14px;
  position: relative;
}
.nav-icon i {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--text);
  transition: transform var(--speed), opacity var(--speed), top var(--speed);
}
.nav-icon i:nth-child(1) { top: 0; }
.nav-icon i:nth-child(2) { top: 6px; }
.nav-icon i:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-icon i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-icon i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-icon i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- Секции ---------- */
.section { padding: 120px 0; }
.section-dark { background: var(--dark); color: var(--dark-text); }
.section-dark .lead, .section-dark .text-muted { color: var(--dark-muted); }
.section-dark .label { color: var(--dark-muted); }
.section-accent { background: var(--accent); color: #111; }
.section-accent .lead { color: rgba(17, 17, 17, .72); }
.section-accent .label { color: rgba(17, 17, 17, .72); }
.section-accent .label::before { background: #111; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 72px; flex-wrap: wrap;
}
.section-head .side-note {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--muted); max-width: 320px; text-align: right;
}
.section-dark .section-head .side-note { color: var(--dark-muted); }

/* ---------- Hero ---------- */
.hero { padding: 130px 0 110px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: end;
  margin-top: 24px;
}
.hero .lead { margin: 32px 0 44px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Мини-статистика в hero + спарклайн */
.stat-card {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
}
.stat-card .num { font-size: 56px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat-card .num em { font-style: normal; color: var(--muted); font-size: 32px; }
.stat-card .cap {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px;
}

/* ---------- Спарклайн ---------- */
.spark { width: 100%; height: auto; margin: 20px 0 10px; }
.spark .line { fill: none; stroke: currentColor; stroke-width: 2; }
.spark .dot { fill: var(--accent); }
.spark-axis {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: .06em;
}

/* ---------- Большие цифры (Results) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat { border-top: 1px solid var(--text); padding-top: 24px; }
.num-xl {
  font-size: clamp(48px, 4.8vw, 80px);
  font-weight: 700; line-height: 1; letter-spacing: -.03em;
  display: block;
}
.stat .cap {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-top: 14px; display: block;
}
.section-dark .stat { border-top-color: var(--dark-text); }
.section-dark .stat .cap { color: var(--dark-muted); }
.section-dark .num-xl .acc { color: var(--accent); }

/* ---------- Editorial-кейс ---------- */
.case-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.case-row:last-of-type { border-bottom: 1px solid var(--border); }
.case-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.case-name { font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.case-name small {
  display: block;
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px;
}
.case-metric { font-size: clamp(44px, 4.6vw, 76px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.case-metric .cap {
  display: block;
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-top: 12px;
}
.section-dark .case-row { border-top-color: rgba(244, 244, 241, .18); }
.section-dark .case-row:last-of-type { border-bottom-color: rgba(244, 244, 241, .18); }
.section-dark .case-num, .section-dark .case-metric .cap { color: var(--dark-muted); }
.section-dark .case-metric { color: var(--accent); }

.link-arrow {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.link-arrow .arr { display: inline-block; transition: transform var(--speed); }
.link-arrow:hover .arr { transform: translateX(6px); }
.link-arrow:hover { color: var(--muted); }

/* Список услуг (editorial rows) */
.service-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 28px; align-items: center;
  padding: 30px 16px;
  border-top: 1px solid var(--border);
  transition: background var(--speed), padding var(--speed);
}
.service-row:last-of-type { border-bottom: 1px solid var(--border); }
.service-idx { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.service-name { font-size: clamp(20px, 2vw, 30px); font-weight: 600; letter-spacing: -.015em; }
.service-row .arr { font-family: var(--font-mono); font-size: 20px; opacity: 0; transform: translateX(-8px); transition: opacity var(--speed), transform var(--speed); }
.service-row:hover { background: var(--white); padding-left: 28px; }
.service-row:hover .arr { opacity: 1; transform: none; }

/* Этапы / процесс */
.step-row {
  display: grid;
  grid-template-columns: 120px minmax(0, .9fr) minmax(0, 1.4fr);
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
}
.step-row:last-of-type { border-bottom: 1px solid var(--border); }
.step-num { font-family: var(--font-mono); font-size: 15px; color: var(--muted); }

/* ---------- Карточки: острые углы, тонкая рамка ---------- */
.card {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; }
.section-dark .card { background: transparent; border-color: rgba(244, 244, 241, .2); }
.section-dark .card p { color: var(--dark-muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Медиа-заглушки */
.media {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .1em;
}
.section-dark .media { background: transparent; border-color: rgba(244, 244, 241, .2); color: var(--dark-muted); }
.media--photo { overflow: hidden; }
.media--photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; filter: grayscale(1); }

/* ---------- Тарифы ---------- */
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  background: var(--border);
  gap: 1px;
}
.price-col { background: var(--white); padding: 40px; display: flex; flex-direction: column; gap: 0; }
.price-col .tariff { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price-col .price-value { font-size: clamp(36px, 3.2vw, 52px); font-weight: 700; letter-spacing: -.02em; margin: 18px 0 4px; }
.price-col .for { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.feature-list { list-style: none; margin-bottom: 32px; flex: 1; }
.feature-list li {
  padding: 12px 0 12px 24px;
  border-top: 1px solid var(--border);
  position: relative; font-size: 15px; color: var(--muted);
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 8px; height: 8px; background: var(--accent);
}
.price-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
  gap: 32px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--border);
}
.price-row:last-of-type { border-bottom: 1px solid var(--border); }
.price-row .p-name { font-size: 20px; font-weight: 600; }
.price-row .p-desc { color: var(--muted); font-size: 15px; }
.price-row .p-value { font-family: var(--font-mono); font-size: 15px; white-space: nowrap; }

/* ---------- Отзывы (editorial rows) ---------- */
.review-row {
  display: grid; grid-template-columns: 64px minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px; padding: 40px 0;
  border-top: 1px solid var(--border);
}
.review-row:last-of-type { border-bottom: 1px solid var(--border); }
.review-row .r-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.review-row blockquote { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; }
.review-row .r-author {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); align-self: end;
}
.review-row .r-author b { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--border); }
details summary {
  cursor: pointer; list-style: none;
  padding: 26px 0;
  font-size: clamp(18px, 1.6vw, 23px); font-weight: 600; letter-spacing: -.01em;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  font-family: var(--font-mono); font-size: 26px; font-weight: 400;
  color: var(--muted); transition: color var(--speed);
}
details[open] summary::after { content: "–"; color: var(--text); }
details p { padding: 0 0 26px; color: var(--muted); max-width: 760px; }
details summary:hover::after { color: var(--text); }

/* ---------- CTA (кислотный блок) ---------- */
.cta-accent { padding: 130px 0; }
.cta-accent .h2 { max-width: 900px; }
.cta-accent .lead { margin: 28px 0 44px; }
.cta-accent .actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.cta-accent .note { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

/* ---------- Формы ---------- */
form .field { margin-bottom: 20px; }
form label {
  display: block;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
form input, form textarea, form select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); font: inherit; color: var(--text);
}
form input:focus, form textarea:focus, form select:focus { border-color: var(--text); outline: none; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  padding: 24px 0 0;
}
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { margin: 0 8px; color: var(--border); }

/* ---------- Футер ---------- */
.site-footer { background: var(--dark); color: var(--dark-text); padding: 90px 0 32px; }
.footer-cta-big {
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.05;
  margin-bottom: 72px;
}
.footer-cta-big a { color: var(--accent); }
.footer-cta-big a .arr { display: inline-block; transition: transform var(--speed); }
.footer-cta-big a:hover .arr { transform: translateX(8px); }
.site-footer .brand-name { color: var(--dark-text); }
.site-footer .brand-role { color: var(--dark-muted); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 64px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dark-muted); margin-bottom: 18px;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { padding: 5px 0; }
.footer-grid a { color: var(--dark-text); font-size: 15px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(244, 244, 241, .15);
  padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .04em; color: var(--dark-muted);
}
.footer-bottom a { color: var(--dark-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Статьи / юридический текст ---------- */
.article { max-width: 800px; margin: 0 auto; }
.article h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.015em; margin: 48px 0 16px; }
.article h3 { font-size: 22px; margin: 32px 0 12px; }
.article p, .article li { color: var(--muted); margin-bottom: 14px; }
.article .toc { border: 1px solid var(--border); background: var(--white); padding: 28px 32px; margin: 40px 0; border-radius: var(--radius); }
.article .toc strong { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.article .toc ul { margin: 14px 0 0 20px; }
.legal-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal-body { padding-top: 56px; padding-bottom: 96px; }
.article-cta { padding: 48px 40px; margin: 56px 0 0; border-radius: var(--radius); }
@media (max-width: 640px) {
  .article-cta { padding: 32px 24px; }
}

/* ---------- Анимация: сдержанная ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.spark .line { stroke-dasharray: 1200; stroke-dashoffset: 0; }
.reveal.is-visible .spark .line { animation: draw 1.4s ease forwards; }
@keyframes draw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .spark .line { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .stat-card { max-width: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .case-row { grid-template-columns: 1fr; gap: 20px; padding: 44px 0; }
  .step-row { grid-template-columns: 80px 1fr; }
  .step-row > :nth-child(n+3) { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .section { padding: 88px 0; }
  .hero { padding: 90px 0 80px; }
}
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 40;
    background: var(--bg);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 28px; padding: 96px 24px 48px;
    font-size: 24px;
    overflow-y: auto;
    transform: translateY(-102%);
    transition: transform .35s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav a:not(.btn) { font-size: 24px; }
  .nav-toggle { display: flex; position: relative; z-index: 60; }
  .container { padding: 0 20px; }
}
@media (max-width: 900px) {
  .price-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; }
  .price-row .p-desc { grid-column: 1 / -1; }
  .review-row { grid-template-columns: 56px minmax(0, 1fr); gap: 16px 24px; }
  .review-row .r-author { grid-column: 2; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .h1 br { display: none; }
  .h1 { font-size: clamp(36px, 11vw, 48px); }
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 1fr; gap: 16px; }
  .price-row { grid-template-columns: 1fr; gap: 8px; }
  .service-row { grid-template-columns: 40px 1fr; padding: 24px 8px; }
  .service-row .arr { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head { margin-bottom: 48px; }
  .section-head .side-note { text-align: left; }
}
