/* A/B-лендинг Starlink Mini Kit в визуальной системе корпсайта smarttechnics.pl.
   Токены и ритм секций — из design-canvas экспорта корпа; форма и её состояния —
   контракт app.js лендинга (data-*-атрибуты и классы is-*, .field-error и т.д.). */

@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;
  --ok: #16845b;
  --ok-soft: #eafaf3;
  --warn: #9a6700;
  --warn-soft: #fdf6e7;
  --warn-line: #f0d9a8;
  --error: #b42318;
  --dark: #090f16;
  --dark-2: #101821;
  --dark-line: #222c36;
  --dark-text: #e5e9ed;
  --dark-muted: #a5afb9;
  --dark-muted-2: #7b8996;
  --shadow: 0 1px 2px rgb(11 23 40 / 5%);
  --shadow-lg: 0 1px 2px rgb(11 23 40 / 5%), 0 12px 32px rgb(11 23 40 / 10%);
  --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;
}

body.dialog-open { overflow: hidden; }

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);
}
.label { font-size: 11px; letter-spacing: 0.12em; color: var(--muted-2); }
.label.ok { color: var(--ok); }
.label.warn { color: var(--warn); }

/* ---------- 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: var(--ink); border-color: var(--line); }
.button-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }

.text-link,
.text-button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  border: 0; background: transparent; padding: 0; color: var(--accent); font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.text-link:hover, .text-button:hover { color: var(--accent-dark); 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);
  transition: box-shadow 160ms ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgb(11 23 40 / 6%); }
.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 ---------- */

.hero { background: var(--paper); border-bottom: 1px solid var(--line-soft); 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: 16px; }

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

.hero 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: 16.5px; line-height: 1.6; color: var(--muted); max-width: 46rem; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.hero-contacts { display: none; }

.hero-figure {
  margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow);
}
.hero-figure img { width: 100%; aspect-ratio: 1672 / 941; object-fit: cover; }
.hero-figure figcaption { padding: 12px 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted-2); border-top: 1px solid var(--line-soft); background: var(--paper); }

.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(--line-soft);
}
.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(--muted-2); }
.facts strong { font-size: 15px; font-weight: 700; }

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

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-white { background: var(--paper); border-block: 1px solid var(--line-soft); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.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); }

.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)); }

.card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: border-color 220ms cubic-bezier(0.2, 0, 0, 1), transform 220ms cubic-bezier(0.2, 0, 0, 1), box-shadow 220ms;
}
.card-button { cursor: pointer; width: 100%; }
.card-button:hover { border-color: #628cff; transform: translateY(-2px); }
.card-button.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.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 { 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); }
.basis-row { display: flex; gap: 8px; margin-top: 12px; }
.basis-row button { min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-family: var(--mono); font-size: 12px; font-weight: 500; cursor: pointer; color: var(--ink); }
.basis-row button:hover { border-color: var(--accent); color: var(--accent); }
.basis-row button.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }

.point-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.point-list li { display: flex; flex-direction: column; gap: 3px; padding-left: 18px; position: relative; font-size: 14.5px; line-height: 1.55; }
.point-list li::before { content: '—'; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.point-list strong { color: var(--ink); }
.point-list span { color: var(--muted); }
.section-head .point-list { margin-top: 8px; }

.party-card, .check-card, .process-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-card { background: var(--surface); }
.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; }

.check-card { margin-top: 24px; gap: 14px; }
.check-card .point-list li { padding-left: 0; }
.check-card .point-list li::before { content: none; }

.process-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.process-list li:last-child { padding-bottom: 0; }
.process-list li:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line-soft); }
.process-list .step { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 11px; }
.process-list div { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; }
.process-list strong { font-size: 14.5px; }
.process-list span:not(.step) { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.notice { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--warn-line); border-radius: var(--radius); background: var(--warn-soft); padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem); }
.notice-mark { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; display: grid; place-items: center; border: 1px solid var(--warn); border-radius: 4px; color: var(--warn); font-size: 12px; font-weight: 700; }
.notice > div { display: flex; flex-direction: column; gap: 10px; }
.notice h2 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }
.notice p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); max-width: 70rem; text-wrap: pretty; }
.notice-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.notice-links a { font-size: 13.5px; font-weight: 700; }

.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq-list details { background: var(--paper); 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-summary { margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; }
.request-summary div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.request-summary dt { color: var(--muted-2); }
.request-summary dd { margin: 0; font-weight: 700; text-align: right; }
.request-contacts { display: flex; flex-direction: column; gap: 4px; }
.request-contacts strong { font-size: 13px; color: var(--muted-2); font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-bottom: 4px; }
.request-contacts a { font-size: 15px; font-weight: 700; }

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

.stepper { display: flex; gap: 8px; margin-bottom: 22px; }
.stepper 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); }
.stepper 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; }
.stepper .is-active { border-color: var(--accent); color: var(--ink); }
.stepper .is-active b { background: var(--accent); color: #fff; }
.stepper .is-complete b { background: var(--ok-soft); color: var(--ok); }

.form-error-summary { margin-bottom: 16px; padding: 12px 14px; border: 1px solid #f2b8b5; border-radius: 6px; background: #fff5f4; color: var(--error); font-size: 14px; font-weight: 600; }
.form-error-summary[hidden] { display: none; }
.form-step { display: flex; flex-direction: column; gap: 18px; }
.form-step[hidden] { display: none; }

.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, .choice-group legend { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.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); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field-help { font-size: 12.5px; color: var(--muted-2); }
.field-error { font-size: 12.5px; color: var(--error); font-weight: 600; }
.field-error:empty { display: none; }

.choice-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice-row label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 12px 14px; cursor: pointer; }
.choice-row label:has(input:checked) { border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice-row input { margin: 3px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.choice-row span { display: flex; flex-direction: column; gap: 2px; }
.choice-row b { font-size: 14px; font-weight: 700; }
.choice-row small { font-size: 12px; color: var(--muted-2); line-height: 1.4; }
.choice-group.compact .choice-row label { padding: 10px 12px; }

.check-field { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.check-field input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check-field button { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.check-field .field-error { grid-column: 2; }

.honeypot { 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; }
.back-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; background: none; padding: 0; color: var(--muted); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.back-button:hover { color: var(--ink); }

.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-panel [data-lead-reference] { font-family: var(--mono); font-size: 13px; color: var(--ok); }
.success-panel [data-lead-reference]:empty { display: none; }

.short-form-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.short-form-head h3 { font-size: 22px; letter-spacing: -0.015em; }
.short-form-head p:not(.kicker) { font-size: 14px; line-height: 1.55; color: var(--muted); }

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

.site-footer { background: var(--dark); color: var(--dark-text); padding-block: 64px 40px; margin-top: 0; }
.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: #67e8f9; }
.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: #67e8f9 !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 button { border: 0; background: none; padding: 0; color: var(--dark-muted-2); font-size: 12.5px; cursor: pointer; }
.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 & dialogs ---------- */

.cookie-banner {
  position: fixed; z-index: 240; right: 18px; bottom: 18px; width: min(680px, 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 .text-button { color: var(--muted); font-weight: 500; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.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; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.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; }
}

@media (max-width: 980px) {
  .site-nav, .header-contacts { display: none; }
  .header-inner > .button { margin-inline-start: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-contacts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; color: var(--muted); font-size: 14px; }
  .hero-contacts strong { width: 100%; font-size: 13px; color: var(--ink); }
  .hero-contacts a { font-size: 16px; font-weight: 700; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { 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 { padding-block: 2rem 1.75rem; }
  .cols-3 { grid-template-columns: 1fr; }
  .card, .term { padding: 20px; }
  .field-grid, .choice-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 { 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; }
