/* NORMA. Black, one yellow, cars first. */

@font-face { font-family: Geometria; src: url('../fonts/geometria/Geometria.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Geometria; src: url('../fonts/geometria/Geometria-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: Micra; src: url('../fonts/micra/Micra.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Micra; src: url('../fonts/micra/Micra-Bold.woff') format('woff'); font-weight: 600; font-display: swap; }

:root {
  --ink: #111214;
  --ink-raised: #1d1e21;
  --text-muted: #5a5d63;
  --canvas: #ffffff;
  --surface: #f4f4f2;
  --line: rgba(17, 18, 20, 0.12);
  --line-strong: rgba(17, 18, 20, 0.36);
  --on-dark-muted: #b9bbc0;
  --line-dark: rgba(255, 255, 255, 0.18);
  --yellow: #fae013;
  --yellow-hover: #ffe93f;
  --select-current: #fff5b0;
  --danger: #b3261e;
  --success: #1b6e3c;

  --text-meta: 0.75rem;
  --text-secondary: 0.875rem;
  --text-body: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.44rem;
  --step-3: 1.728rem;
  --step-4: 2.074rem;
  --step-5: 2.488rem;
  --step-6: 2.986rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --radius: 4px;
  --gutter: 24px;
  --vp-wide: 1280px;
  --header: 88px;
  --motion-enter: 200ms;
  --motion-exit: 150ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-padding-top: calc(var(--header) + var(--space-4)); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.has-dialog { overflow: hidden; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Geometria, Arial, sans-serif; font-size: var(--text-body); font-weight: 400; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > #main { flex: 1 0 auto; min-width: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-dark :focus-visible, .lightbox :focus-visible { outline-color: var(--yellow); }
html[data-pointer-focus] :focus, html[data-pointer-focus] .car-name a:focus::after { outline: none; }
main:focus { outline: none; }

.skip-link { position: fixed; left: var(--space-4); top: -100px; z-index: 400; padding: var(--space-3) var(--space-4); background: var(--yellow); color: var(--ink); font-weight: 500; }
.skip-link:focus { top: var(--space-2); }
.wrap { width: 100%; max-width: var(--vp-wide); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--text-muted); }
.hint { font-size: var(--text-secondary); color: var(--text-muted); }
.honey { display: none; }
.icon { width: 24px; height: 24px; flex-shrink: 0; }

/* Type */

.hero-title, .h1, .h2 { font-family: Micra, Geometria, Arial, sans-serif; font-weight: 400; text-transform: uppercase; line-height: 1.2; overflow-wrap: break-word; }
.hero-title { font-size: var(--step-6); line-height: 1.15; }
.h1 { font-size: var(--step-4); }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); font-weight: 500; line-height: 1.25; }
.lead { margin-top: var(--space-4); max-width: 64ch; font-size: var(--step-1); line-height: 1.5; }

/* Controls */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: var(--space-3) var(--space-6); border: 1px solid transparent; border-radius: var(--radius); background: none; font-weight: 500; line-height: 1.25; text-align: center; text-decoration: none; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c2d31; }
.btn-secondary { background: #e9e9e6; }
.btn-secondary:hover, .btn-secondary:active { background: #ddddda; }
.btn[aria-busy="true"] { cursor: progress; }

.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius); background: none; color: inherit; }
.icon-btn:hover, .icon-btn:active { background: var(--surface); }
.on-dark .icon-btn, .lightbox .icon-btn { color: #fff; }
.on-dark .icon-btn:hover, .lightbox .icon-btn:hover, .on-dark .icon-btn:active, .lightbox .icon-btn:active { background: var(--ink-raised); }

html:not([data-pointer-focus]) .icon-btn[data-tip]:focus-visible::after { content: attr(data-tip); }
@media (hover: hover) { .icon-btn[data-tip]:hover::after { content: attr(data-tip); } }
.icon-btn[data-tip]::after { position: absolute; top: calc(100% + var(--space-2)); right: 0; z-index: 100; padding: var(--space-1) var(--space-2); border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--ink); color: #fff; font-size: var(--text-meta); line-height: 1.4; white-space: nowrap; pointer-events: none; }

.text-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }
.link-btn { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-secondary); text-decoration: underline; text-underline-offset: 4px; }

.field { display: grid; align-content: start; gap: var(--space-1); min-width: 0; }
.field label:not(.consent) { font-size: var(--text-secondary); font-weight: 500; }
input:not([type="checkbox"]), select, textarea { width: 100%; min-height: 48px; padding: var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius); background-color: #fff; color: var(--ink); font-size: var(--text-body); line-height: 1.25; }
textarea { display: block; min-height: 72px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23111214' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; text-overflow: ellipsis; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
@supports (appearance: base-select) and selector(select::picker(select)) {
  select:not([multiple]):is(:not([size]), [size="0"], [size="1"]), select::picker(select) { appearance: base-select; }
  select::picker-icon { display: none; }
  select::picker(select) {
    box-sizing: border-box;
    margin-block: 4px;
    padding: 4px;
    max-block-size: min(21rem, 54dvh);
    max-inline-size: calc(100vw - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--canvas);
    color: var(--ink);
    box-shadow: 0 6px 18px rgb(17 18 20 / 14%);
  }
  select option::checkmark { order: 1; margin-inline-start: auto; }
}
.select-menu {
  position: fixed;
  z-index: 390;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink);
  box-shadow: 0 6px 18px rgb(17 18 20 / 14%);
}
.select-menu:focus { outline: none; }
.select-group-label { padding: 8px 10px; color: var(--text-muted); font-size: .9em; }
:where(select:not([multiple]):is(:not([size]), [size="0"], [size="1"])) option, .select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-block-size: 38px;
  padding: 8px 10px;
  border-radius: 3px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
select:not([multiple]) option:checked, .select-option[aria-selected="true"] { background: var(--select-current); font-weight: 500; }
.select-option[aria-selected="true"]::after { content: '✓'; margin-inline-start: auto; }
select option:disabled, .select-option[aria-disabled] { color: var(--text-muted); }
@media (hover: hover) {
  select option:enabled:hover { background: var(--yellow); color: var(--ink); }
}
html:not([data-pointer-focus]) select option:enabled:focus, select option:enabled:active, .select-menu .select-option[data-active] { background: var(--yellow); color: var(--ink); outline: none; }
@media (pointer: coarse) {
  select:not([multiple]) option, .select-option { min-block-size: 44px; }
}
@media (forced-colors: active) {
  html select option:checked, html select option:enabled:is(:hover, :focus, :active),
  html:not([data-pointer-focus]) select option:enabled:focus, .select-menu .select-option:is([aria-selected="true"], [data-active]) { background: Highlight; color: HighlightText; forced-color-adjust: none; }
}
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { font-size: var(--text-secondary); color: var(--danger); }

.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.consent { display: flex; align-items: flex-start; gap: var(--space-3); min-height: 44px; font-size: var(--text-secondary); line-height: 1.5; cursor: pointer; }
.consent input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.form-status { font-size: var(--text-body); color: var(--success); }
.form-status.is-error { font-size: var(--text-secondary); color: var(--danger); }
.form-status:focus { outline: none; }
.form.is-done > :not(.form-status) { display: none; }
.form.is-done .form-status { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }

.panel { padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel-text { margin: var(--space-2) 0 var(--space-4); color: var(--text-muted); }
.panel-call { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--text-secondary); color: var(--text-muted); }
.panel-call a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; white-space: nowrap; }

/* Header */

.brand-logo { display: block; flex-shrink: 0; width: 72px; height: 72px; object-fit: contain; border-radius: 50%; }
.footer-brand .brand-logo { width: 112px; height: 112px; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: #fff; }
.site-header-inner { display: flex; align-items: center; gap: var(--space-6); width: 100%; min-height: var(--header); padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; text-decoration: none; }
.nav { display: flex; align-items: center; gap: var(--space-1); margin-right: auto; }
.nav a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding-inline: var(--space-2); border-bottom: 2px solid transparent; font-size: var(--text-secondary); font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a:hover { border-bottom-color: var(--line-dark); }
.nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
.nav-count { color: var(--on-dark-muted); font-weight: 400; }
.header-actions { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }
.header-telegram { flex-shrink: 0; border: 0; }
.header-phone { position: relative; display: grid; min-height: 44px; align-content: center; text-align: right; line-height: 1.25; white-space: nowrap; }
.header-phone a { font-weight: 500; text-decoration: none; }
.header-phone a::after { content: ''; position: absolute; inset: 0; }
.header-phone a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-phone span { font-size: var(--text-meta); color: var(--on-dark-muted); }
.header-cta { min-height: 44px; padding-inline: var(--space-4); font-size: var(--text-secondary); white-space: nowrap; }
.header-call, .header-menu { display: none; }

/* Sheets */

.sheet { position: fixed; inset: 0 0 0 auto; width: min(440px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--ink); overflow-y: auto; }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in var(--motion-enter) cubic-bezier(0.16, 1, 0.3, 1); }
.sheet.is-closing { animation: sheet-out var(--motion-exit) cubic-bezier(0.7, 0, 0.84, 0) forwards; }
.sheet::backdrop { background: rgba(0, 0, 0, 0.6); animation: fade-in var(--motion-enter) ease-out; }
.sheet.is-closing::backdrop { animation: fade-out var(--motion-exit) ease-in forwards; }
@keyframes sheet-in { from { transform: translateX(24px); opacity: 0; } }
@keyframes sheet-out { to { transform: translateX(24px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.sheet-body { padding: var(--space-6); }
.sheet-text { margin-bottom: var(--space-6); }
.sheet .form-row { grid-template-columns: minmax(0, 1fr); }
.sheet-nav { display: grid; padding: var(--space-2) var(--space-6); }
.sheet-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; border-bottom: 1px solid var(--line); font-weight: 500; text-decoration: none; }
.sheet-foot { display: grid; gap: var(--space-2); margin-top: auto; padding: var(--space-6); text-align: center; }

/* Hero */

.hero { position: relative; overflow: hidden; background: #0b0b0c; color: #fff; }
.hero-image { position: absolute; top: 0; right: 0; width: min(1230px, 72%); height: 100%; object-fit: cover; object-position: 50% 40%; -webkit-mask-image: linear-gradient(to right, transparent, #000 40%); mask-image: linear-gradient(to right, transparent, #000 40%); }
.hero-inner { position: relative; padding-block: var(--space-16); }
.hero-title { max-width: 720px; }
.hero-lead h1 { display: inline; font: inherit; }
.hero-lead { margin-top: var(--space-4); max-width: 44ch; font-size: var(--step-1); line-height: 1.5; color: #e4e5e7; }
.quick-search { display: grid; grid-template-columns: repeat(3, 176px) auto; align-items: end; gap: var(--space-3); width: fit-content; max-width: 100%; margin-top: var(--space-8); padding: var(--space-4); border-radius: var(--radius); background: #fff; color: var(--ink); }
.quick-search :focus-visible { outline-color: var(--ink); }
.quick-search .btn { white-space: nowrap; }
.hero-sell { margin-top: var(--space-4); font-size: var(--text-secondary); color: #e4e5e7; }
.hero-sell a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hero-sell a:hover { color: var(--yellow); }

/* Sections */

.section { padding-block: var(--space-16); }
.section-tight { padding-block: 0 var(--space-16); }
.section-alt { background: var(--surface); }
.section-inner { padding-top: var(--space-16); }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); margin-bottom: var(--space-6); }

/* Car cards */

.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--space-6); }
.car { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.car-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.car-photo img { width: 100%; height: 100%; object-fit: cover; }
.car-body { display: flex; flex: 1; flex-direction: column; gap: var(--space-1); padding: var(--space-4); }
.car-name { font-size: var(--step-1); font-weight: 500; line-height: 1.25; }
.car-name a { text-decoration: none; }
@media (hover: hover) { .car:hover .car-name a { text-decoration: underline; text-underline-offset: 3px; } }
.car-name a::after { content: ''; position: absolute; inset: 0; }
.car-name a:focus-visible { outline: none; }
.car-name a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: -2px; }
.car-facts { font-size: var(--text-secondary); }
.car-line { font-size: var(--text-secondary); color: var(--text-muted); }
.car-price { margin-top: auto; padding-top: var(--space-3); font-size: var(--step-2); font-weight: 500; line-height: 1.25; white-space: nowrap; }
.car-note { font-size: var(--text-meta); line-height: 1.4; color: var(--text-muted); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .car-photo img { transition: transform var(--motion-enter) ease-out; }
  .car:hover .car-photo img { transform: scale(1.02); }
}

.brand-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.brand-list a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--text-secondary); font-weight: 500; text-decoration: none; }
.brand-list a:hover { background: var(--surface); }
.brand-list span { color: var(--text-muted); font-weight: 400; }

/* Services block */

.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-6); }
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-8); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.offer p { flex: 1; max-width: 56ch; color: var(--text-muted); }
.offer .btn { margin-top: var(--space-3); }

.row-links { margin-top: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.row-links li + li { border-top: 1px solid var(--line); }
.row-links a { display: grid; grid-template-columns: 200px minmax(0, 1fr) 24px; align-items: center; gap: var(--space-4); min-height: 64px; padding: var(--space-3) var(--space-6); text-decoration: none; }
.row-links a:hover { background: var(--surface); }
.row-links strong { font-weight: 500; }
.row-links span { font-size: var(--text-secondary); color: var(--text-muted); }
.row-links-plain { margin-top: var(--space-3); }
.row-links-plain a { grid-template-columns: minmax(0, 1fr) 24px; min-height: 56px; }

/* About block */

.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--space-12); }
.about-photo { overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { margin-top: var(--space-4); max-width: 60ch; }
.about-text .text-link { margin-top: var(--space-2); }
.site-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.site-list h3 { font-size: var(--text-body); font-weight: 500; }
.site-list p { margin-top: 0; font-size: var(--text-secondary); color: var(--text-muted); }
.site-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; white-space: nowrap; }

/* Request band */

.band { padding-block: var(--space-16); background: var(--surface); }
.band-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--space-12); }
.band-text { margin-top: var(--space-4); max-width: 48ch; }
.band-phone { margin-top: var(--space-6); font-size: var(--step-2); font-weight: 500; line-height: 1.25; }
.band-phone a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.band-hours { font-size: var(--text-secondary); color: var(--text-muted); }

/* Footer */

.site-footer { padding-block: var(--space-12) var(--space-6); background: var(--ink); color: #fff; font-size: var(--text-secondary); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1fr; gap: var(--space-6); }
.footer-brand p { margin-top: var(--space-4); color: var(--on-dark-muted); }
.site-footer h2 { margin-bottom: var(--space-2); font-size: var(--text-secondary); font-weight: 500; color: var(--on-dark-muted); }
.site-footer nav a, .footer-site a { display: flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.site-footer .telegram-link { gap: var(--space-2); }
.site-footer nav a:hover, .footer-site a:hover, .footer-bottom a:hover { color: var(--yellow); }
.footer-site p { min-height: 44px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--line-dark); font-size: var(--text-meta); line-height: 1.4; color: var(--on-dark-muted); }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }

/* Inner pages */

.page { padding-bottom: var(--space-16); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); padding-block: var(--space-2); font-size: var(--text-secondary); color: var(--text-muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-head { padding-block: var(--space-2) var(--space-8); }

.empty { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-12) var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.empty p { max-width: 56ch; }
.empty-left { justify-items: start; text-align: left; }
.empty-page { margin-top: var(--space-8); padding-block: var(--space-16); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-3); }
.empty-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.empty-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* Catalog */

.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.filters-panel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.filters-toggle { display: none; }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: var(--space-3); top: 12px; color: var(--text-muted); pointer-events: none; }
.search-box input { padding-left: 44px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-4); padding-block: var(--space-3); }
.results-count { font-weight: 500; }
.sort { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.sort label { font-size: var(--text-secondary); color: var(--text-muted); white-space: nowrap; }
.sort select { width: 12.25rem; min-height: 44px; padding-block: var(--space-2); font-size: var(--text-secondary); }
.more { display: grid; justify-items: center; gap: var(--space-2); padding-top: var(--space-8); }

/* Car page */

.product-head { padding-bottom: var(--space-6); }
.product-title { font-size: var(--step-5); font-weight: 500; line-height: 1.15; }
.product-sub { margin-top: var(--space-2); color: var(--text-muted); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) 376px; grid-template-areas: "main buy" "details buy"; align-items: start; gap: var(--space-8); }
.product-main { grid-area: main; min-width: 0; }
.product-details { grid-area: details; display: grid; gap: var(--space-8); min-width: 0; }
.gallery-main { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-2); }
.gallery-thumbs a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery-thumbs a:nth-child(n+13) { display: none; }
.gallery-thumbs a[data-rest]::after { content: attr(data-rest); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.6); color: #fff; font-weight: 500; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box { grid-area: buy; position: sticky; top: calc(var(--header) + var(--space-4)); display: grid; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.buy-price { font-size: var(--step-5); font-weight: 500; line-height: 1.15; white-space: nowrap; }
.buy-status { display: flex; gap: var(--space-2); font-size: var(--text-secondary); }
.buy-status .icon { width: 20px; height: 20px; }
.buy-actions { display: grid; gap: var(--space-2); }
.buy-links { border-top: 1px solid var(--line); }
.buy-links li { border-bottom: 1px solid var(--line); }
.buy-links li:last-child { border-bottom: 0; margin-bottom: calc(var(--space-2) * -1); }
.buy-links a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 48px; font-size: var(--text-secondary); font-weight: 500; text-decoration: none; }
.buy-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.buy-links .icon { width: 20px; height: 20px; }
.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-8); margin-top: var(--space-3); padding-inline: var(--space-6); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.spec-table > div { display: flex; justify-content: space-between; gap: var(--space-4); margin-bottom: -1px; padding-block: var(--space-3); border-bottom: 1px solid var(--line); font-size: var(--text-secondary); }
.spec-table dt { color: var(--text-muted); }
.spec-table dd { font-weight: 500; text-align: right; }
.product-notes .prose { margin-top: var(--space-3); }
.action-bar { display: none; }

/* Service pages */

.service-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: start; gap: var(--space-12); }
.service-main { min-width: 0; }
.service-form { position: sticky; top: calc(var(--header) + var(--space-4)); margin-top: var(--space-2); }
.service-form .form-row { grid-template-columns: minmax(0, 1fr); }
.jump { display: none; }

.prose { max-width: 70ch; overflow-wrap: break-word; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: var(--step-2); font-weight: 500; line-height: 1.25; }
.prose h3 { font-size: var(--step-1); font-weight: 500; line-height: 1.25; }
.prose * + h2 { margin-top: var(--space-8); }
.prose * + h3 { margin-top: var(--space-6); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: var(--space-6); }
.prose ul:not([class]) { list-style: disc; }
.prose ol:not([class]) { list-style: decimal; }
.prose li + li { margin-top: var(--space-1); }
.prose blockquote { margin: 0; padding-left: var(--space-4); border-left: 4px solid var(--yellow); font-size: var(--step-1); line-height: 1.5; }
.prose img { border-radius: var(--radius); }

.steps { counter-reset: step; border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-4); padding: var(--space-4) var(--space-6); }
.steps > li + li { border-top: 1px solid var(--line); margin-top: 0; }
.steps > li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 2px; background: var(--yellow); color: var(--ink); font-family: Micra, Arial, sans-serif; font-weight: 600; }
.steps h3, .prose .steps h3 { margin: 0; font-size: var(--text-body); font-weight: 500; line-height: 1.5; }
.steps p { margin: 0; color: var(--text-muted); }

.tick-list > li { position: relative; padding-left: var(--space-8); }
.tick-list > li + li { margin-top: var(--space-2); }
.tick-list > li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 14px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

.contact-card { padding: var(--space-4) var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-card h3, .prose .contact-card h3 { margin: 0; font-size: var(--text-body); font-weight: 500; }
.contact-card p { margin: 0; }
.contact-card a { display: inline-flex; align-items: center; min-height: 44px; margin-right: var(--space-6); font-weight: 500; white-space: nowrap; }

.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.photo-grid img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.partner-list { border: 1px solid var(--line); border-radius: var(--radius); }
.partner-list > li { padding: var(--space-4) var(--space-6); }
.partner-list > li + li { border-top: 1px solid var(--line); margin-top: 0; }
.partner-list h2, .prose .partner-list h2 { margin: 0; font-size: var(--step-1); }
.partner-list p { margin: 0; color: var(--text-muted); }
.partner-list a { display: inline-flex; align-items: center; min-height: 44px; }

.wide-photo { background: var(--surface); }
.wide-photo img { width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.about-page { display: grid; grid-template-columns: minmax(0, 1fr) 376px; align-items: start; gap: var(--space-12); padding-top: var(--space-8); }
.about-contacts { display: grid; gap: var(--space-4); }
.about-contacts p { margin: 0; }
.about-contacts > div a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.contact-site { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-map { aspect-ratio: 16 / 9; background: var(--surface); }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-info { display: grid; justify-items: start; gap: var(--space-2); padding: var(--space-6); }
.contact-people { width: 100%; margin-block: var(--space-2); border-top: 1px solid var(--line); }
.contact-people li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); border-bottom: 1px solid var(--line); }
.contact-people span { color: var(--text-muted); }
.contact-people a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.contact-mail { margin-top: var(--space-6); }
.contact-mail a { font-weight: 500; }
p a.map-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 400; color: inherit; white-space: normal; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
p a.map-link:hover { text-decoration-thickness: 2px; }

.sitemap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }

/* Lightbox */

.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0b0c; color: #fff; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: #0b0b0c; }
.lightbox-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .icon-btn { position: absolute; background: rgba(11, 11, 12, 0.72); }
.lightbox-close { top: var(--space-4); right: var(--space-4); }
.lightbox-prev { left: var(--space-4); top: calc(50% - 22px); }
.lightbox-next { right: var(--space-4); top: calc(50% - 22px); }
.lightbox-count { position: absolute; bottom: var(--space-4); left: 50%; padding: var(--space-1) var(--space-3); transform: translateX(-50%); border-radius: var(--radius); background: rgba(11, 11, 12, 0.72); font-size: var(--text-secondary); }
.lightbox-prev[data-tip]::after { right: auto; left: 0; }

#norma-staging-badge { pointer-events: none; opacity: 0.92; }

/* Medium: below wide the navigation moves into the menu. */

@media (max-width: 1279.98px) {
  .nav, .header-cta { display: none; }
  .header-menu { display: inline-flex; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .band .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-6); }
  .service-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-8); }
  .about-page { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-8); }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .quick-search { grid-template-columns: repeat(3, minmax(0, 176px)); }
  .quick-search .btn { grid-column: 1 / -1; }
  .spec-table { grid-template-columns: minmax(0, 1fr); }
}

/* Narrow */

@media (max-width: 767.98px) {
  :root { --gutter: 16px; --header: 64px; }

  .h1 { font-size: var(--step-2); }
  .h2 { font-size: var(--step-1); }
  .h3 { font-size: var(--step-1); }
  .hero-title { font-size: var(--step-3); }
  .lead { font-size: var(--text-body); }
  .product-title { font-size: var(--step-3); }

  .brand-logo { width: 56px; height: 56px; }
  .site-header-inner { gap: var(--space-3); }
  .header-phone { display: none; }
  .header-call { display: inline-flex; }
  .header-actions { gap: var(--space-2); }

  .sheet { width: 100vw; border-left: 0; }

  .hero-image { width: 100%; height: 220px; object-position: 60% 50%; -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
  .hero-inner { padding-block: 152px var(--space-8); }
  .hero-lead { font-size: var(--text-body); }
  .quick-search { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .quick-search .field:first-child, .quick-search .btn { grid-column: 1 / -1; }

  .section, .band { padding-block: var(--space-12); }
  .section-tight { padding-block: 0 var(--space-12); }
  .section-inner { padding-top: var(--space-12); }

  .offer-grid, .about-grid, .band-grid, .contact-grid, .sitemap-grid, .site-list, .about-page, .service-grid, .product-grid { grid-template-columns: minmax(0, 1fr); }
  .offer { padding: var(--space-6); }
  .offer .btn { width: 100%; }
  .row-links a { grid-template-columns: minmax(0, 1fr) 24px; padding: var(--space-3) var(--space-4); }
  .row-links strong { grid-column: 1; }
  .row-links span { grid-column: 1; grid-row: 2; }
  .row-links .icon { grid-column: 2; grid-row: 1 / span 2; }
  .about-grid, .band-grid { gap: var(--space-6); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: var(--space-4); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-site { grid-column: span 1; }

  .filters { padding: var(--space-3); }
  .filters-toggle { display: inline-flex; }
  .filters-panel { display: none; }
  .filters-panel.is-open { display: grid; grid-template-columns: minmax(0, 1fr); }
  .sort { width: 100%; margin-left: 0; }
  .sort select { flex: 1; }

  .product-grid { grid-template-areas: "main" "buy" "details"; }
  .buy-box { position: static; padding: var(--space-4); }
  .buy-price { font-size: var(--step-4); }
  .buy-actions { display: none; }
  .gallery-thumbs { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-1); scroll-snap-type: x proximity; }
  .gallery-thumbs a, .gallery-thumbs a:nth-child(n+13) { display: block; flex: 0 0 96px; scroll-snap-align: start; }
  .gallery-thumbs a[data-rest]::after { display: none; }
  .spec-table { padding-inline: var(--space-4); }
  .action-bar { position: fixed; inset: auto 0 0; z-index: 90; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2); padding: var(--space-2) var(--gutter); border-top: 1px solid var(--line); background: #fff; }
  .action-bar .btn { padding-inline: var(--space-4); }
  #main:has(.action-bar) + .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

  .service-form { position: static; margin-top: 0; }
  .jump { display: flex; margin-top: var(--space-4); }
  .service-grid { gap: var(--space-8); }

  .steps > li { padding: var(--space-3) var(--space-4); }
  .photo-grid { gap: var(--space-1); }
  .wide-photo img { max-height: 200px; height: 200px; }
  .about-page { gap: var(--space-6); }
  .contact-info { padding: var(--space-4); }
  .empty { padding: var(--space-8) var(--space-4); }

  #norma-staging-badge { top: auto !important; right: 8px !important; bottom: 72px !important; left: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet[open], .sheet.is-closing, .sheet::backdrop, .sheet.is-closing::backdrop { animation: none; }
}
