/* pricerApp, лендинг. Сетка 12 колонок, шаг отступов 8 px, одно скругление 2 px, линейки вместо карточек. */
:root {
  --ink: #20241d;
  --muted: #575c52;
  --faint: #6b7064;
  --bg: #f8f9f5;
  --paper: #ffffff;
  --line: #dde1d6;
  --line-strong: #20241d;
  --lime: #d3f66a;
  --ok: #3d6b1f;
  --warn: #80600a;
  --bad: #b23a26;
  --dark: #20241d;
  --dark-muted: #b9beb0;
  --radius: 2px;
  --gutter: 32px;
  --side: 48px;
  --section: 128px;
  --fs-small: 14px;
  --fs-body: 17px;
  --fs-lead: 20px;
  --fs-h3: 20px;
  --fs-h2: clamp(32px, 3.4vw, 48px);
  --fs-h1: clamp(48px, 6vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 "Golos Text", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(1280px, calc(100% - 2 * var(--side))); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* Кнопки и ссылки: зона клика не меньше 44 px */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius);
  font: 600 16px/1 "Golos Text", Arial, sans-serif; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: #c6ed51; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #363c31; }
.button-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--ink); color: var(--paper); }
.button:disabled { opacity: .6; cursor: progress; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* Шапка */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 40px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.site-header .brand img { width: 168px; height: auto; }
.nav { display: flex; gap: 8px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 16px; text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-cta { min-height: 44px; padding: 0 20px; font-size: 16px; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }
.mobile-nav { display: flex; flex-direction: column; padding: 8px 0 16px; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; border-top: 1px solid var(--line); text-decoration: none; }

/* Первый экран */
.hero { padding-block: 96px 112px; align-items: start; row-gap: 56px; }
.hero-copy { grid-column: 1 / span 5; padding-top: 8px; }
.hero h1 { font-size: var(--fs-h1); line-height: .98; letter-spacing: -0.045em; font-weight: 700; }
.highlight { background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); }
.lead { margin-top: 32px; font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
.hero-meta { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); }
.hero-meta .sep { margin-inline: 8px; color: var(--faint); }

.hero-table { grid-column: 6 / span 7; margin: 0; background: var(--paper); border-top: 3px solid var(--line-strong); }
.hero-table figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 16px 24px; font-size: var(--fs-small); font-weight: 600; border-bottom: 1px solid var(--line); }
.hero-table figcaption .muted { font-weight: 400; }
.hero-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.hero-table th, .hero-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hero-table th:first-child { padding-left: 24px; }
.hero-table tr > :last-child { padding-right: 24px; }
.hero-table thead th { font-size: 13px; font-weight: 500; color: var(--muted); padding-block: 12px; }
.hero-table tbody th { font-weight: 400; }
.hero-table tbody th b { display: block; font-weight: 600; white-space: nowrap; }
.hero-table tbody th span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.hero-table .num { text-align: right; white-space: nowrap; }
.hero-table td.num { font-size: 16px; font-weight: 500; }
.hero-table small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--muted); }
.hero-table small.ok { color: var(--ok); }
.hero-table small.warn { color: var(--warn); }
.hero-table small.bad { color: var(--bad); }
.table-note { padding: 16px 24px 20px; font-size: var(--fs-small); line-height: 1.55; color: var(--muted); }

/* Разделы: заголовок слева (1-4), содержимое справа (5-12) */
.section { padding-block: var(--section) 0; }
.section-head { grid-column: 1 / span 4; padding-top: 24px; border-top: 3px solid var(--line-strong); }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.05; }
.section-head p { margin-top: 24px; color: var(--muted); max-width: 26em; }
.section-head p a { text-decoration: underline; text-underline-offset: 3px; }
.section-head + * { grid-column: 5 / span 8; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; border-top: 1px solid var(--line); }
/* Строки трёх шагов делят общую сетку (subgrid): заголовки, тексты и цены стоят на одной линии при любой длине текста */
.steps li { padding: 24px 24px 0 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps h3 { font-size: var(--fs-h3); line-height: 1.3; }
.steps p { margin-top: 12px; color: var(--muted); }
.steps dl { margin: 0; padding-top: 24px; }
.steps dt { font-size: var(--fs-small); color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.steps dd { margin: 4px 0 0; font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.steps dd.bad { color: var(--bad); }
.footnote { grid-column: 5 / span 8; margin-top: 24px; font-size: var(--fs-small); color: var(--muted); }

/* Демо */
.demo { margin-top: var(--section); padding-block: 96px; background: var(--dark); color: var(--paper); }
.demo .section-head { border-top-color: var(--lime); }
.demo .section-head p { color: var(--dark-muted); }
.demo-controls { display: grid; gap: 8px; margin-top: 40px; }
.demo-controls label { margin-top: 16px; font-size: var(--fs-small); color: var(--dark-muted); display: flex; justify-content: space-between; }
.demo-controls label:first-child { margin-top: 0; }
.demo-controls output { color: var(--lime); font-weight: 600; }
.demo-controls select { min-height: 48px; padding: 0 12px; border: 1px solid #4a5143; border-radius: var(--radius); background: #2b3027; color: var(--paper); font: 16px "Golos Text", Arial, sans-serif; cursor: pointer; }
.demo-controls input[type=range] { width: 100%; min-height: 44px; accent-color: var(--lime); cursor: pointer; }
.demo-controls .button { margin-top: 16px; }
.dashboard { background: var(--paper); color: var(--ink); border-top: 3px solid var(--lime); align-self: start; }
.dash-head { display: flex; justify-content: space-between; padding: 16px 32px; font-size: var(--fs-small); font-weight: 600; border-bottom: 1px solid var(--line); }
.dash-head .muted { font-weight: 400; }
.dash-product { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 32px; border-bottom: 1px solid var(--line); }
.dash-product strong { display: block; font-size: var(--fs-h3); font-weight: 600; }
.dash-product span#product-sku { display: block; margin-top: 4px; font-size: var(--fs-small); color: var(--muted); }
.tag { padding: 4px 10px; border: 1px solid var(--ok); border-radius: var(--radius); color: var(--ok); font-size: 13px; font-weight: 500; white-space: nowrap; }
.dash-prices { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-bottom: 1px solid var(--line); }
.dash-prices div { padding: 24px 32px; }
.dash-prices div + div { border-left: 1px solid var(--line); }
.dash-prices dt { font-size: var(--fs-small); color: var(--muted); }
.dash-prices dd { margin: 4px 0 0; font-size: 40px; font-weight: 600; letter-spacing: -0.02em; transition: color .2s ease; }
.dash-prices dd.dropped { color: var(--bad); }
.chart { padding: 24px 32px; border-bottom: 1px solid var(--line); }
.chart-label { display: flex; justify-content: space-between; gap: 16px; font-size: var(--fs-small); }
.chart svg { display: block; width: 100%; height: 140px; margin-top: 16px; }
.chart-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.target-line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 4; fill: none; }
.price-path { stroke: var(--ok); stroke-width: 3; fill: none; transition: d .3s ease; }
#chart-dot { display: none; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--muted); }
.activity { padding: 20px 32px; font-size: 16px; color: var(--ok); }
.activity.warning { color: var(--bad); }

/* Возможности */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
.features article { padding: 24px 0 32px; border-top: 1px solid var(--line); }
.features h3 { font-size: var(--fs-h3); line-height: 1.3; }
.features p { margin-top: 12px; color: var(--muted); max-width: 34em; }
.support-line { grid-column: 5 / span 8; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.support-line .text-link { color: var(--ink); margin-left: 8px; }

/* Тарифы */
.pricing { overflow-x: auto; }
.pricing table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pricing th, .pricing td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pricing thead th { font-size: var(--fs-h3); font-weight: 600; border-top: 1px solid var(--line); }
.pricing thead th.featured { border-top: 4px solid var(--lime); }
.pricing tbody th { font-size: var(--fs-small); font-weight: 500; color: var(--muted); width: 22%; }
.pricing td.featured, .pricing th.featured { background: var(--paper); }
.pricing .plan-price { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.pricing .cta-row td { border-bottom: 0; padding-top: 24px; }
.pricing .cta-row .button { width: 100%; padding: 0 12px; font-size: 16px; }

/* Вопросы */
.faq-items { border-top: 1px solid var(--line); }
.faq-items details { border-bottom: 1px solid var(--line); }
.faq-items summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0; font-size: 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary span { flex: none; width: 24px; text-align: center; font-weight: 400; font-size: 24px; line-height: 1; transition: transform .2s ease; }
.faq-items details[open] summary span { transform: rotate(45deg); }
.faq-items details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 42em; }
.faq-items details p a { text-decoration: underline; text-underline-offset: 3px; }

/* Финал */
.final { margin-top: var(--section); padding-block: 64px; border-top: 3px solid var(--line-strong); align-items: end; }
.final-copy { grid-column: 1 / span 7; }
.final h2 { font-size: var(--fs-h2); line-height: 1.05; }
.final-copy p { margin-top: 24px; color: var(--muted); max-width: 34em; font-size: var(--fs-lead); line-height: 1.55; }
.final-actions { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.final { align-items: start; }
.final-copy { grid-column: 1 / span 5; }
.final .final-mail { margin-top: 16px; font-size: var(--fs-body); }
.lead-form { grid-column: 7 / span 6; }
.lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gutter); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.field-wide, .field-hint, .lead-submit { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--fs-small); font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
fieldset.field { border: 0; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
fieldset.field legend { width: 100%; margin-bottom: 6px; }
.field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid #8a8f82; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid=true] { border-color: var(--bad); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400 !important; font-size: var(--fs-body) !important; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.field-hint { margin: -8px 0 0; font-size: var(--fs-small); color: var(--muted); }
.field-error { font-size: var(--fs-small); color: var(--bad); }
.field-error:empty { display: none; }
.lead-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.lead-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal { max-width: 46em; padding-block: 64px 96px; }
.legal h1 { font-size: var(--fs-h2); line-height: 1.1; }
.legal h2 { margin-top: 40px; font-size: var(--fs-h3); }
.legal p { margin-top: 12px; }
.legal-back { margin-top: 48px !important; }
.lead-done { padding: 24px; background: var(--paper); border-top: 3px solid var(--ok); font-size: var(--fs-lead); }

/* Подвал */
.footer { margin-top: 64px; padding-block: 32px 40px; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .brand img { width: 120px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-note { margin-top: 16px; font-size: 13px; color: var(--faint); max-width: 72em; }

/* Широкие экраны: растёт текст, а не пустота */
@media (min-width: 1600px) {
  :root { --fs-body: 18px; --fs-lead: 22px; --fs-h3: 22px; --side: 64px; }
  .wrap { width: min(1400px, calc(100% - 2 * var(--side))); }
}

/* Планшет: заголовок раздела над содержимым */
@media (max-width: 1100px) {
  :root { --section: 96px; --side: 32px; --gutter: 24px; }
  .hero-copy, .hero-table, .section-head, .section-head + *, .footnote, .support-line, .final-copy, .final-actions, .lead-form { grid-column: 1 / -1; }
  .lead-form { margin-top: 40px; }
  .hero { padding-block: 64px 80px; }
  .hero-copy { max-width: 720px; }
  .section-head { margin-bottom: 40px; }
  .section-head p { max-width: 40em; }
  .final-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .header-row { min-height: 72px; }
  .steps { grid-template-columns: 1fr; grid-template-rows: none; }
  .steps li { display: block; grid-row: auto; }
  .steps li, .steps li + li { padding: 24px 0 32px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .features { grid-template-columns: 1fr; }
  .pricing th, .pricing td { padding: 12px; }
}

@media (max-width: 600px) {
  :root { --side: 20px; --section: 72px; --fs-body: 16px; --fs-lead: 18px; --fs-h3: 18px; }
  .lead-fields { grid-template-columns: 1fr; }
  .site-header .brand img { width: 140px; }
  .hero { padding-block: 40px 56px; row-gap: 40px; }
  .hero-table th:first-child { padding-left: 16px; }
  .hero-table tr > :last-child { padding-right: 16px; }
  .hero-table figcaption, .table-note { padding-inline: 16px; }
  .hero-table th, .hero-table td { padding: 12px 8px; }
  .hero-table .col-rrc { display: none; }
  .hero-table thead th, .hero-table thead th.num { white-space: normal; font-size: 12px; line-height: 1.3; }
  .hero-table td.num { font-size: 15px; }
  .hero-table small, .hero-table td.num small { font-size: 12px; white-space: normal; }
  .hero-table tbody th span { display: none; }
  .demo { padding-block: 64px; }
  .dash-head, .dash-product, .chart, .activity, .dash-prices div { padding-inline: 16px; }
  .dash-prices dd { font-size: 28px; }
  .chart svg { height: 110px; }
  .pricing table, .pricing thead, .pricing tbody, .pricing tr { display: block; }
  .pricing thead { display: none; }
  .pricing tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .pricing tbody th { grid-column: 1 / -1; width: auto; padding: 16px 0 4px; border: 0; }
  .pricing td { padding: 4px 8px 16px 0; border: 0; font-size: 16px; }
  .pricing td.featured { background: transparent; }
  .pricing .plan-price { font-size: 20px; }
  .pricing .price-row td::before { display: block; font-size: 13px; font-weight: 500; color: var(--muted); content: attr(data-plan); }
  .pricing .cta-row { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; border: 0; }
  .pricing .cta-row td:first-child { display: none; }
  .pricing .cta-row td { padding: 0; }
  .faq-items summary { font-size: 17px; }
  .faq-items details p { padding-right: 0; }
}

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