/* ==================================================================
   AUTO PROFI — styles.css
   Tokens first, then components. Raw colour literals live only in the
   :root block — everywhere else references a custom property, so the
   palette can be retuned in one place.
   ================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:        #0E0F12;
  --surface:   #16181D;
  --surface-2: #1D2027;
  --border:    #26292F;
  --accent:    #F5A524;
  --accent-hi: #FFC15E;
  --text:      #F2F3F5;
  --muted:     #9AA0A8;
  --success:   #3FBF6A;
  --danger:    #E5484D;

  /* Brand marks for the social icons row only — every other icon in the
     UI stays neutral/muted per the design system. */
  --brand-facebook:  #1877F2;
  --brand-instagram: #E1306C;
  --brand-tiktok:    #25F4EE;
  --brand-telegram:  #29B6F6;

  /* Derived tints. rgba() needs literal channels, so the accent/success/
     danger RGB triples are mirrored here — update them with the hex above. */
  --accent-rgb:  245, 165, 36;
  --success-rgb: 63, 191, 106;
  --danger-rgb:  229, 72, 77;
  --black-rgb:   0, 0, 0;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --wrap: 1240px;
  --gap:  24px;

  --pad-section: 88px;

  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;

  --t: 160ms ease;

  --shadow: 0 10px 30px rgba(var(--black-rgb), .35);
  --header-h: 64px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
  text-transform: uppercase;
}

p  { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t);
}
a:hover { color: var(--accent-hi); }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Components below set display:grid/flex, which would otherwise win over the
   UA rule for [hidden]. Everything toggled from JS relies on this. */
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Sticky header must not cover the target of an in-page jump. */
section[id], main [id] { scroll-margin-top: 96px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: 0 0 var(--r-md) var(--r-md);
  transition: top var(--t);
}
.skip-link:focus { top: 0; color: var(--bg); }

/* The <noscript> fallback. Lives here rather than in a style="" attribute so
   the page can ship a Content-Security-Policy without 'unsafe-inline'. */
.noscript-note {
  padding: 24px;
  color: var(--text);
  background: var(--surface);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  vertical-align: middle;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--accent);
  color: var(--bg);
}
.btn--accent:hover { background: var(--accent-hi); color: var(--bg); }

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-2); }

.header__cta--callback { border-color: var(--muted); }

.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 17px; }

.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- 3b. Inputs ----------
   Shared primitive, so it has to be declared BEFORE the components that
   override it (.search__input). Same specificity means the later rule
   wins — with this block further down, the search field lost its icon
   padding and the placeholder slid under the magnifier. */
.input {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--t), background var(--t);
}
.input::placeholder { color: var(--muted); opacity: .75; }
.input:hover { border-color: var(--surface-2); }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16);
}
.input--mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
  text-transform: uppercase;
}
textarea.input { resize: vertical; min-height: 96px; }
select.input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
select.input option { background: var(--surface); color: var(--text); }

/* File picker. The real <input type="file"> is visually hidden inside this
   label — it stays focusable and keyboard-operable, but its browser-supplied
   English button text is replaced by our own. */
.filepick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t);
}
.filepick:hover { border-color: var(--accent); }
.filepick:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16);
}
.filepick__btn {
  flex: none;
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
}
.filepick__name {
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field--invalid .filepick { border-color: var(--danger); }

/* ---------- 4. Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header__top {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.header__top-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 38px;
  flex-wrap: wrap;
}

.header__addr {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.header__addr:hover { color: var(--text); }
.header__addr .icon { width: 15px; height: 15px; color: var(--accent); }

.header__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.header__hours { color: var(--muted); opacity: .8; }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.dot--open   { background: var(--success); box-shadow: 0 0 0 3px rgba(var(--success-rgb), .2); }
.dot--closed { background: var(--danger);  box-shadow: 0 0 0 3px rgba(var(--danger-rgb), .18); }
.is-open   .header__status { color: var(--text); }
.is-closed .header__status { color: var(--muted); }

.header__main-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex: none;
}
.brand:hover { color: var(--text); }
.brand__logo {
  display: block;
  height: 48px;
  width: auto;
}

.nav__list { display: flex; gap: 22px; }
.nav__link {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.nav__link:hover { color: var(--text); }

.header__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-inline-start: auto;
}

.header__socials { display: flex; flex-direction: column; gap: 4px; }
.header__socials-title { font-size: 11px; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }

/* Shown only below 992px, in the new bar under the header — see breakpoint. */
.header__socials-mobile { display: none; }
.header__socials-mobile-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 0;
}
.header__socials-mobile-title { font-size: 11px; color: var(--muted); letter-spacing: .02em; white-space: nowrap; }

.phones { display: flex; flex-direction: column; gap: 2px; }
.phones__link {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.phones__link:hover { color: var(--accent); }
.phones__note { font-size: 11px; color: var(--muted); letter-spacing: .02em; }

.messengers { display: flex; gap: 8px; }
.messengers__link {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--muted);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.messengers__link:hover { color: var(--accent); border-color: var(--accent); }
.messengers--lg .messengers__link { width: 44px; height: 44px; }
.messengers--lg .icon { width: 22px; height: 22px; }

.socials { display: flex; gap: 12px; }
.socials__link { color: var(--muted); display: inline-flex; }
.socials__link:hover { color: var(--accent); }
.socials--header { gap: 8px; }
.socials--header .socials__link {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  transition: color var(--t), border-color var(--t), background var(--t);
}
.socials--header .socials__link:hover { color: var(--accent); border-color: var(--accent); }
.socials__link--facebook  { color: var(--brand-facebook); }
.socials__link--instagram { color: var(--brand-instagram); }
.socials__link--tiktok    { color: var(--brand-tiktok); }
.socials__link--telegram  { color: var(--brand-telegram); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
}

/* ---------- 5. Sections ---------- */
.section { padding: var(--pad-section) 0; }
.section + .section { border-top: 1px solid var(--border); }
.section--catalog, .section--contacts { background: var(--bg); }
.section--request, .section--seo { background: var(--surface); }
.section--delivery { background: var(--bg); }

.section__title {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-bottom: 12px;
}
.section__title::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin-top: 14px;
  background: var(--accent);
  border-radius: var(--r-sm);
}
.subsection__title {
  font-size: 17px;
  letter-spacing: .05em;
  color: var(--muted);
  margin: 38px 0 14px;
}

.grid { display: grid; gap: var(--gap); }
.grid--delivery   { grid-template-columns: repeat(3, 1fr); margin-top: 38px; }
.grid--products   { grid-template-columns: repeat(4, 1fr); margin-top: 26px; }

/* ---------- 6. Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.section--request .card { background: var(--surface-2); }
.card:hover { border-color: var(--accent); }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 16px;
  border-radius: var(--r-md);
  background: rgba(var(--accent-rgb), .12);
  color: var(--accent);
}
.card__icon .icon { width: 24px; height: 24px; }
.card__title { font-size: 18px; margin-bottom: 8px; }
.card__text  { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 7. Models row ---------- */
.models {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.model {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 104px;
  padding: 14px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.model:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-2); }
.model[aria-pressed="true"] { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.model__img {
  width: 100%;
  height: 44px;
  object-fit: contain;
}
.model__icon { color: var(--muted); }
.model__icon .icon { width: 30px; height: 30px; }
.model:hover .model__icon { color: var(--accent); }

/* ---------- 8. Search ---------- */
.search { margin-top: 34px; }
.search__field { position: relative; }
.search__icon {
  position: absolute;
  top: 50%; left: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  width: 20px; height: 20px;
}
.search__input {
  width: 100%;
  height: 56px;
  padding: 0 52px;
  font-size: 17px;
}
.search__input::-webkit-search-cancel-button { display: none; }
.search__clear {
  position: absolute;
  top: 50%; right: 10px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--muted);
  cursor: pointer;
}
.search__clear:hover { color: var(--text); background: var(--surface-2); }
.search__count {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
  min-height: 21px;
}

/* ---------- 9. Product cards ---------- */
.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.product:hover { border-color: var(--accent); }

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.product__img { width: 100%; height: 100%; object-fit: cover; }
.product__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  background:
    repeating-linear-gradient(135deg,
      var(--surface-2) 0 10px,
      var(--surface) 10px 20px);
}
.product__placeholder .icon { width: 26px; height: 26px; opacity: .7; }
.product__placeholder-text {
  font-size: 12px;
  line-height: 1.35;
  max-width: 90%;
}

.product__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
  padding: 16px 16px 18px;
}
.product__category {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.product__title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}
.product__article {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.product__models { display: flex; flex-wrap: wrap; gap: 6px; }
.product__model {
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.product__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.product__price {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.product__price--request {
  font-size: 15px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.product__cta {
  padding: 9px 14px;
  font-size: 13px;
  flex-shrink: 0;
}

mark.hl {
  background: rgba(var(--accent-rgb), .28);
  color: var(--accent-hi);
  border-radius: 2px;
  padding: 0 1px;
}

.empty {
  margin-top: 30px;
  padding: 44px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}
.empty__title { font-size: 20px; margin-bottom: 10px; }
.empty__text { max-width: 62ch; margin: 0 auto 22px; color: var(--muted); }

.catalog__more { margin-top: 28px; text-align: center; }

/* ---------- 10. Request form ---------- */
.request__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px;
}
.request__intro { margin-bottom: 28px; }
.request__subtitle { color: var(--muted); max-width: 46ch; }
.request__contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.request__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}
.request__contact .icon { color: var(--accent); }
.request__contact a { color: var(--text); font-weight: 600; }
.request__contact a:hover { color: var(--accent); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.section--request .form { background: var(--bg); }
.field--full { grid-column: 1 / -1; }

.field__label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.field__label--req::after { content: " *"; color: var(--accent); }

.field--invalid .input { border-color: var(--danger); }
.field__error {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--danger);
  min-height: 0;
}
.field__error:empty { margin: 0; }
.field__hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox__box {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  flex: none;
  margin-top: 1px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: background var(--t), border-color var(--t);
}
.checkbox__box .icon { width: 14px; height: 14px; color: var(--bg); opacity: 0; }
.checkbox input:checked + .checkbox__box { background: var(--accent); border-color: var(--accent); }
.checkbox input:checked + .checkbox__box .icon { opacity: 1; }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.field--invalid .checkbox__box { border-color: var(--danger); }

.form__submit { display: flex; flex-direction: column; gap: 10px; }
.form__status { margin: 0; font-size: 14px; color: var(--muted); }
.form__status--error { color: var(--danger); }

.success {
  padding: 40px 28px;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid rgba(var(--success-rgb), .4);
  border-radius: var(--r-lg);
}
.success__icon { width: 44px; height: 44px; color: var(--success); margin-bottom: 14px; }
.success__title { font-size: 22px; margin-bottom: 10px; }
.success__text { color: var(--muted); max-width: 46ch; margin: 0 auto 22px; }

/* ---------- 11. Contacts ---------- */
.contacts__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}
.contacts__address { font-style: normal; }
.contacts__list { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.contacts__item { display: flex; gap: 12px; align-items: flex-start; }
.contacts__item .icon { color: var(--accent); margin-top: 3px; }
.contacts__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contacts__value { display: block; font-size: 16px; font-weight: 600; color: var(--text); }
a.contacts__value:hover { color: var(--accent); }

.schedule {
  width: 100%;
  margin-top: 26px;
  border-collapse: collapse;
  font-size: 15px;
}
.schedule td { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.schedule td:last-child { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.schedule tr.is-today td { color: var(--accent); }
.schedule tr.is-today td:last-child { color: var(--accent); }

.contacts__map {
  min-height: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.contacts__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- 12. SEO block ---------- */
.seo__text {
  max-width: 88ch;
  position: relative;
  margin-top: 26px;
  overflow: hidden;
  max-height: 132px;
}
.seo__text::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}
.seo__text.is-open { max-height: none; }
.seo__text.is-open::after { display: none; }
.seo__text p { color: var(--muted); }
.seo__text p:last-child { margin-bottom: 0; }

.seo__more {
  margin-top: 14px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.seo__more:hover { color: var(--accent-hi); }

/* ---------- 13. Footer ---------- */
.footer {
  padding: 34px 0 44px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.footer__note { max-width: 78ch; }
.footer__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.footer__meta p { margin: 0; }
.footer__updated { opacity: .7; }

/* ---------- 14. Mobile action bar ---------- */
.actionbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.actionbar__btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 12px 4px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.actionbar__btn--call { background: var(--surface); color: var(--text); }
.actionbar__btn--callback { background: var(--surface-2); color: var(--text); }
.actionbar__btn--request { background: var(--accent); color: var(--bg); }

/* ---------- 15. Breakpoints ---------- */
@media (max-width: 1200px) {
  :root { --pad-section: 72px; }
  .grid--products { grid-template-columns: repeat(3, 1fr); }
  .models { grid-template-columns: repeat(3, 1fr); }
  .nav__list { gap: 16px; }
  .header__contacts { gap: 12px; }
}

@media (max-width: 992px) {
  .request__inner, .contacts__inner { grid-template-columns: 1fr; gap: 32px; }
  .grid--delivery { grid-template-columns: 1fr; }

  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    padding: 8px 24px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .header__main { position: relative; }
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .header__socials { display: none; }
  .header__socials-mobile:not([hidden]) {
    display: block;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  :root { --pad-section: 56px; --gap: 16px; }
  .wrap { padding: 0 16px; }
  .header__top-inner { justify-content: space-between; row-gap: 6px; min-height: 0; padding: 8px 0; }
  .header__status { margin-inline-start: 0; }
  .header__addr { order: 1; }
  .grid--products { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .field { grid-column: 1 / -1; }
  .actionbar { display: flex; }
  body { padding-bottom: 58px; }
  .search__input { height: 50px; font-size: 16px; }

  /* The number itself stays in the sticky header at every width — the site's
     whole job is to produce a call. Only the second number and its note fold
     away, because there is no room for them next to the burger. */
  .phones__link { font-size: 15px; }
  .phones li:nth-child(n+2), .phones__note { display: none; }
  .header__main-inner { gap: 12px; }

  /* Narrow columns wrap the phone number itself onto two lines; keeping the
     note inline then strands it mid-wrap. Push it to its own row instead,
     indented to align under the number (icon width 20px + 10px gap). */
  .request__contact { flex-wrap: wrap; }
  .request__contact-note { flex: 0 0 100%; margin-left: 30px; }
}

@media (max-width: 480px) {
  .grid--products { grid-template-columns: 1fr; }
  .models { grid-template-columns: repeat(2, 1fr); }
  .header__hours { display: none; }
  .brand__logo { height: 38px; }
  .section__title { font-size: 22px; }
}

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