/* A/B-лендинг DJI O4 Air Unit Pro в визуальной системе корпсайта smarttechnics.pl
   (тёмный hero как у раздела Unmanned). Форма — контракт app.js лендинга cameras:
   data-landing-form / fieldset[data-form-step] / aria-invalid / data-form-status. */

@font-face {
  font-family: Manrope;
  src: url('./fonts/manrope-cyrillic.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('./fonts/ibm-plex-mono-500-cyrillic.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0b1728;
  --ink-soft: #39434d;
  --muted: #4b5661;
  --muted-2: #5f6d79;
  --paper: #ffffff;
  --surface: #f7f9fc;
  --surface-2: #f1f5fa;
  --line: #cbd2d9;
  --line-soft: #e1e9f3;
  --accent: #244bd8;
  --accent-dark: #203cb0;
  --accent-soft: #dce7ff;
  --cyan: #0891b2;
  --cyan-bright: #22d3ee;
  --cyan-hover: #67e8f9;
  --ok: #16845b;
  --error: #b42318;
  --dark: #090f16;
  --dark-2: #101821;
  --dark-line: #222c36;
  --dark-line-2: #39434d;
  --dark-text: #e5e9ed;
  --dark-muted: #a5afb9;
  --dark-muted-2: #7b8996;
  --shadow: 0 1px 2px rgb(11 23 40 / 5%);
  --radius: 8px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  font-family: Manrope, Arial, sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; font-weight: 800; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }

.shell { width: min(100% - 2 * clamp(1rem, 4vw, 4rem), 80rem); margin-inline: auto; }

.kicker, .label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.kicker-bright { color: var(--cyan-bright); }
.label { font-size: 11px; letter-spacing: 0.12em; color: var(--muted-2); }

/* ---------- buttons ---------- */

.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff;
  padding: 0 26px; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1), border-color 150ms, transform 150ms, color 150ms;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: 0.62; transform: none; }
.button-small { min-height: 44px; padding: 0 20px; font-size: 14.5px; }
.button-ghost { background: transparent; color: #fff; border-color: var(--dark-line-2); }
.button-ghost:hover { background: transparent; color: var(--cyan-hover); border-color: var(--cyan-hover); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button-secondary:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-size: 14.5px; font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-button { border: 0; background: none; padding: 0; color: inherit; font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 200; background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: 0 0 32px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.brand-sub { margin-top: 3px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--muted-2); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.site-nav a { display: flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 6px; color: var(--ink); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }

.header-contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; line-height: 1.25; white-space: nowrap; }
.header-phone { color: var(--ink); font-size: 15px; font-weight: 750; }
.header-email { color: var(--muted-2); font-size: 14px; font-weight: 600; }
.header-phone:hover, .header-email:hover { color: var(--accent); text-decoration: underline; }

/* ---------- hero (dark) ---------- */

.hero-dark { background: var(--dark); color: #fff; border-bottom: 1px solid var(--dark-line); padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--dark-muted-2); }
.breadcrumb a { color: var(--dark-muted-2); }
.breadcrumb a:hover { color: var(--cyan-hover); }
.breadcrumb .current { color: var(--dark-text); }

.hero-dark .kicker { color: var(--cyan-bright); }
.hero-dark h1 { font-size: clamp(2.25rem, 1.2rem + 4vw, 3.052rem); letter-spacing: -0.025em; line-height: 1.06; max-width: 22ch; }
.hero-lead { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.2rem); line-height: 1.6; color: var(--dark-muted); max-width: 46rem; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.assumption { font-size: 13px; line-height: 1.6; color: var(--dark-muted-2); max-width: 60rem; padding-left: 14px; border-left: 2px solid var(--cyan-bright); }

.hero-contacts { display: none; }

.hero-figure { margin: 0; border: 1px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; background: var(--dark-2); }
.hero-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.hero-figure figcaption { padding: 12px 16px; font-size: 12.5px; line-height: 1.5; color: var(--dark-muted-2); border-top: 1px solid var(--dark-line); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(1.75rem, 4vw, 2.5rem); padding-top: 24px; border-top: 1px solid var(--dark-line); }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dark-muted-2); }
.facts strong { font-size: 15px; font-weight: 700; color: var(--dark-text); }

/* ---------- sections ---------- */

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-white { background: var(--paper); border-block: 1px solid var(--line-soft); }
.section-dark { background: var(--dark-2); color: #fff; }

.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 42rem; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.875rem, 1.2rem + 3vw, 2.441rem); }
.section-head p:not(.kicker) { font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.section-dark .section-head h2 { color: #fff; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.two-col .section-head { margin-bottom: 0; }

.card-grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: border-color 220ms, transform 220ms; }
.card:hover { border-color: #628cff; transform: translateY(-2px); }
.card-code { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--cyan); }
.card strong { font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.card > span:not(.card-code) { font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.term { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px 24px; }
.term .num, .safety-list .num { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-family: var(--mono); font-size: 11px; color: var(--cyan); }
.term strong { display: block; font-size: 15.5px; line-height: 1.3; margin-bottom: 6px; }
.term p { font-size: 14px; line-height: 1.6; color: var(--muted); }

.flow-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.flow { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--dark); padding: 20px; }
.flow .step { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--dark-line-2); border-radius: 6px; font-family: var(--mono); font-size: 11px; color: var(--cyan-hover); }
.flow strong { font-size: 15px; font-weight: 700; color: var(--dark-text); line-height: 1.3; }
.flow > span:not(.step) { font-size: 13px; line-height: 1.55; color: var(--dark-muted-2); }
.flow-note { display: flex; gap: 14px; align-items: flex-start; max-width: 56rem; margin-top: 24px; border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--dark); padding: 20px 22px; }
.flow-note .i { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; display: grid; place-items: center; border: 1px solid var(--cyan-bright); border-radius: 4px; color: var(--cyan-bright); font-size: 12px; font-family: var(--mono); }
.flow-note p { font-size: 13.5px; line-height: 1.6; color: var(--dark-muted); }

.safety-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.safety-list li { display: flex; gap: 14px; align-items: flex-start; }
.safety-list .num { width: 28px; height: 28px; flex-basis: 28px; }
.safety-list div { display: flex; flex-direction: column; gap: 3px; }
.safety-list strong { font-size: 15px; }
.safety-list span:not(.num) { font-size: 14px; line-height: 1.55; color: var(--muted); }

.party-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 16px; }
.party-name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.party-address { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.party-ids { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.party-ids div { display: flex; flex-direction: column; gap: 2px; }
.party-ids dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted-2); }
.party-ids dd { margin: 0; font-family: var(--mono); font-size: 13.5px; }
.party-contacts { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.party-contacts a { font-size: 14.5px; font-weight: 700; }
.party-contacts .hours { font-size: 12.5px; color: var(--muted-2); }

.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 28px 18px 0; position: relative; font-size: 15px; font-weight: 700; line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; top: 16px; font-size: 20px; font-weight: 500; color: var(--accent); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- request / form ---------- */

.request-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.request-intro { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.request-intro h2 { font-size: clamp(1.875rem, 1.2rem + 3vw, 2.441rem); }
.request-intro > p { font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.request-contacts { display: flex; flex-direction: column; gap: 4px; }
.request-contacts strong { font-size: 11px; color: var(--muted-2); font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; margin-bottom: 4px; }
.request-contacts a { font-size: 15px; font-weight: 700; }
.request-summary { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 16px 18px; }
.request-summary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.request-summary li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.request-summary li span { color: var(--muted); text-align: right; }

.form-column { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }

.form-progress { display: flex; gap: 8px; margin-bottom: 22px; }
.form-progress span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.form-progress b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.form-progress [aria-current="step"] { border-color: var(--accent); color: var(--ink); }
.form-progress [aria-current="step"] b { background: var(--accent); color: #fff; }

.request-form fieldset[data-form-step] { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.request-form fieldset[hidden] { display: none; }
.request-form legend { padding: 0; margin-bottom: 4px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field > span, .channel-group legend { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field > span small { font-weight: 500; color: var(--muted-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: 10px 14px; font-size: 15px; transition: border-color 150ms, box-shadow 150ms; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.request-form [aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 3px #fde3e1; }

.channel-group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.channel-group legend { padding: 0; margin: 0 0 4px; font-size: 13.5px; font-weight: 700; }
.radio-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.radio-row label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 12px 14px; cursor: pointer; font-size: 14px; font-weight: 700; }
.radio-row label:has(input:checked) { border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 3px var(--accent-soft); }
.radio-row input { margin: 0; accent-color: var(--accent); }

.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-next { align-self: flex-start; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.form-status:empty { display: none; }
.request-form[data-submission-status="invalid"] .form-status, .request-form[data-submission-status="failed"] .form-status, .request-form[data-submission-status="error"] .form-status { color: var(--error); }
.request-form[data-submission-status="accepted"] .form-status { color: var(--ok); }

.success-panel { display: flex; flex-direction: column; gap: 12px; }
.success-panel[hidden] { display: none; }
.success-panel:focus { outline: none; }
.success-panel:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 6px; border-radius: 6px; }
.success-panel h3 { font-size: 24px; }
.success-panel p { font-size: 15px; color: var(--muted); }
.success-reference { font-family: var(--mono); font-size: 13px; color: var(--ok); }
.success-contacts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.success-contacts a { font-weight: 700; }
.success-panel .button { align-self: flex-start; }

.short-form-copy { font-size: 14px; line-height: 1.55; color: var(--muted); margin: -6px 0 2px; }
.form-actions-short { justify-content: flex-start; }

/* ---------- footer ---------- */

.site-footer { background: var(--dark); color: var(--dark-text); padding-block: 64px 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.brand-dark .brand-name { color: #fff; font-size: 17px; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; color: var(--dark-muted); max-width: 32ch; }
.footer-mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--dark-muted-2); line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--dark-muted-2); }
.footer-col a { color: var(--line); font-size: 14px; }
.footer-col a:hover { color: var(--cyan-hover); }
.footer-entities p { display: flex; flex-direction: column; gap: 4px; }
.footer-entities strong { font-size: 14px; color: var(--line); font-weight: 600; }
.footer-accent { color: var(--cyan-hover) !important; font-weight: 600; margin-top: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 24px; font-size: 12.5px; color: var(--dark-muted-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; margin-inline-start: auto; }
.footer-legal a, .footer-legal button { color: var(--dark-muted-2); font-size: 12.5px; text-decoration: none; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--line); }
.footer-tm { width: 100%; font-size: 12px; line-height: 1.6; color: var(--dark-muted-2); }

/* ---------- cookie banner & dialog ---------- */

.cookie-banner { position: fixed; z-index: 240; right: 18px; bottom: 18px; width: min(720px, calc(100% - 36px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--paper); box-shadow: 0 12px 32px rgb(11 23 40 / 16%); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { font-size: 14px; }
.cookie-banner p { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.cookie-actions { display: flex; align-items: center; gap: 14px; }
.cookie-actions .link-button { color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.cookie-actions .button-small { padding: 0 24px; }

dialog { width: min(560px, calc(100% - 32px)); max-height: min(720px, calc(100svh - 32px)); margin: auto; padding: 0; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--paper); color: var(--ink); overflow: auto; }
dialog::backdrop { background: rgb(11 23 40 / 45%); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.dialog-head h2 { font-size: 17px; font-weight: 700; }
.dialog-body { display: grid; gap: 14px; padding: 18px; }
.icon-button { width: 32px; height: 32px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.icon-button:hover { border-color: var(--accent); color: var(--ink); }
.toggle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); }
.toggle-row span { display: grid; gap: 2px; }
.toggle-row strong { font-size: 13.5px; }
.toggle-row small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.toggle-row input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 20px; accent-color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .header-inner { gap: 16px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 0 10px; }
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .site-nav, .header-contacts { display: none; }
  .header-inner > .button { margin-inline-start: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 520px; }
  .hero-contacts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 2px; font-size: 14px; color: var(--dark-muted); }
  .hero-contacts strong { width: 100%; font-size: 13px; color: var(--dark-text); }
  .hero-contacts a { font-size: 16px; font-weight: 700; color: var(--cyan-hover); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3, .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col, .faq-list, .request-layout { grid-template-columns: 1fr; }
  .request-intro { position: static; }
}

@media (max-width: 720px) {
  .header-inner { height: 62px; gap: 10px; }
  .brand-sub { display: none; }
  .header-inner .button-small { min-height: 40px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .hero-dark { padding-block: 2rem 1.75rem; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .card, .term { padding: 20px; }
  .flow-grid { grid-template-columns: 1fr; }
  .field-grid, .radio-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-legal { margin-inline-start: 0; }
  .cookie-banner { right: 12px; bottom: 12px; width: calc(100% - 24px); grid-template-columns: 1fr; }
  .cookie-actions { flex-wrap: wrap; justify-content: space-between; }
}

@media (max-width: 560px) {
  .hero-contacts { justify-content: space-between; }
  .facts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .button { width: 100%; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 15px; }
  /* на самых узких экранах остаётся только знак — иначе CTA не помещается */
  .brand-text { display: none; }
  .header-inner .button-small { font-size: 12px; padding: 0 10px; }
  .facts { grid-template-columns: 1fr; }
}

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

/* соцсети в футере */
.footer-social { display: flex; gap: 14px; }
.footer-social a { display: inline-flex; color: var(--dark-muted); min-width: 36px; min-height: 36px; align-items: center; }
.footer-social a:hover { color: #67e8f9; }
