/* J-Торг: синий и серый на белом, Montserrat в заголовках, плоские формы. */
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/montserrat-cyrillic-wght-normal.woff2) format("woff2-variations"), url(/fonts/montserrat-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/montserrat-latin-wght-normal.woff2) format("woff2-variations"), url(/fonts/montserrat-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Палитра */
  --blue: #244c79;
  --blue-dark: #173b65;
  --blue-light: #a9c6e8;
  --blue-tint: #eaf0f7;
  --gray: #434242;
  --white: #fff;
  --silver: #c7c7c7;
  --gray-panel: #383737;
  /* Роли на белом фоне; светло-синий — только на сером, где синий почти не виден */
  --surface: var(--white);
  --panel: var(--blue-tint);
  --ink: var(--gray);
  --heading: var(--blue);
  --accent-text: var(--blue);
  --rule: var(--blue);
  --line: rgb(67 66 66 / 14%);
  --control: rgb(67 66 66 / 65%);
  /* Без system-ui: в Linux он может указывать на моноширинный шрифт интерфейса. */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: Montserrat, var(--font-sans);
  --font-heading: Montserrat, var(--font-sans);
  --font-text: var(--font-sans);
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--surface); }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden], button[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--blue-light); color: var(--gray); }

.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 14px; background: var(--white); border: 2px solid var(--blue); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Метка прописными (caps-title) и заголовок с чертой (heading-1) */
.eyebrow { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
h2 { font-family: var(--font-heading); font-size: 36px; line-height: 44px; font-weight: 400; color: var(--heading); }
.section-heading h2::after, .page-head h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 16px; background: var(--rule); }

/* Кнопки: плоские, почти прямые углы */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 22px; border: 2px solid transparent; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.button-dark, .button-primary { background: var(--blue); color: var(--white); }
.button-dark:hover, .button-primary:hover { background: var(--blue-dark); }
.button-outline { background: var(--white); border-color: var(--blue); color: var(--gray); }
.button-outline:hover { background: var(--blue-tint); }
.button-accent { background: var(--blue-light); color: var(--gray); }
.button-accent:hover { background: var(--white); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; padding-block: 12px; font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.link-arrow::after { content: "→"; }
.text-button { display: inline-flex; gap: 8px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: auto; height: 48px; }
.brand small { max-width: 120px; font-size: 12px; line-height: 1.35; }
.main-nav { display: flex; gap: 32px; margin-left: auto; }
.nav-link { padding-block: 10px; border-bottom: 2px solid transparent; font-size: 15px; }
.nav-link:hover, .nav-link[aria-current=page] { border-bottom-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-phone { font-family: var(--font-display); font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--accent-text); }
.header-actions .button { min-height: 40px; padding: 8px 16px; font-size: 13px; }

.flash { margin-top: 20px; padding: 16px 20px; border-radius: var(--radius-md); background: var(--panel); }

/* Первый экран — серый фон системы */
.hero-band { background: var(--gray); color: var(--white); }
.hero-band :focus-visible { outline-color: var(--blue-light); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 72px 80px; }
.hero .eyebrow { color: var(--blue-light); }
.hero h1 { margin-top: 20px; font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 48px); line-height: 1.12; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--blue-light); }
.hero h1 span { color: var(--white); }
.hero-description { max-width: 460px; margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--silver); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 32px; }
.hero-actions .button-dark { background: var(--blue-light); color: var(--gray); }
.hero-actions .button-dark:hover { background: var(--white); }
.hero-actions .link-arrow:hover { color: var(--blue-light); }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--blue-light); }
.hero-facts dt { font-size: 14px; color: var(--silver); }
.hero-facts dd { margin-top: 4px; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--white); }
/* Карусель логотипов: лента повторена дважды, сдвиг на -50% даёт бесшовный цикл */
.logos { display: grid; gap: 12px; min-width: 0; padding: 24px 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--white); color: var(--ink); }
.logos :focus-visible { outline-color: var(--blue); }
.logos-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 24px 8px; }
.logos-head h2 { font-family: var(--font-display); font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.logo-row { overflow: hidden; }
.logo-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: logo-scroll 40s linear infinite; }
.logo-row--reverse .logo-track { animation-direction: reverse; }
.logos:hover .logo-track { animation-play-state: paused; }
.logo-track li { flex: none; width: 240px; margin-right: 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.logo-track img { width: 100%; height: auto; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }

/* Каталог */
.catalog-section { padding-block: 72px 24px; scroll-margin-top: 76px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-heading h2 { margin-top: 12px; }
.section-description { font-size: 14px; }
.catalog-total { padding-bottom: 22px; font-size: 14px; font-variant-numeric: tabular-nums; }
.catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; }
.category-panel > h3 { margin-bottom: 12px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.category-list { display: flex; flex-direction: column; gap: 4px; }
.category-button { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--radius-md); background: transparent; text-align: left; font-size: 15px; line-height: 1.4; }
.category-button span:last-child { min-width: 28px; padding: 2px 8px; border-radius: var(--radius-sm); background: var(--blue-tint); text-align: center; font-family: var(--font-display); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.category-button:hover { background: var(--blue-tint); }
.category-button[aria-pressed=true] { background: var(--blue-tint); font-weight: 600; }
.category-button[aria-pressed=true] span:last-child { background: var(--blue); color: var(--white); }
.help-note { margin-top: 32px; padding: 20px; border: 2px solid var(--rule); border-radius: var(--radius-md); }
.help-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: var(--radius-sm); background: var(--blue); color: var(--white); font-family: var(--font-display); font-weight: 700; }
.help-note h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 400; line-height: 1.35; color: var(--heading); }
.help-note p { margin: 8px 0 14px; font-size: 14px; line-height: 1.6; }
.search-row { display: flex; align-items: center; gap: 14px; }
.search-box { flex: 1; min-width: 0; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--control); border-radius: var(--radius-sm); background: var(--white); }
.search-box:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.search-box input { width: 100%; min-width: 0; height: 40px; border: 0; background: transparent; font-size: 16px; }
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: rgb(67 66 66 / 75%); }
kbd { padding: 2px 7px; border: 1px solid var(--control); border-radius: var(--radius-sm); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.reset-button { min-height: 44px; border: 0; background: none; font-size: 14px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.results-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 28px 0 16px; }
.results-heading h3 { font-family: var(--font-heading); font-size: 24px; line-height: 32px; font-weight: 400; }
.results-heading p { font-size: 14px; font-variant-numeric: tabular-nums; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 2px solid var(--panel); border-radius: var(--radius-md); background: var(--panel); transition: border-color .15s; }
.product-card:hover { border-color: var(--blue); }
.product-image-button { display: block; width: 100%; height: 210px; padding: 20px; border: 0; border-radius: 0; background: var(--white); }
.product-image-button img { width: 100%; height: 100%; object-fit: contain; }
.product-info { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 14px; }
.product-category { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; color: var(--accent-text); }
.product-info h4 { margin: 10px 0 20px; }
.product-title { display: block; font-family: var(--font-heading); font-size: 18px; font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.product-title:hover { color: var(--accent-text); }
.product-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; }
.product-price { font-family: var(--font-display); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.product-open { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 36px; padding: 12px 0 0; border: 0; border-top: 2px solid var(--white); border-radius: 0; background: none; text-align: left; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.product-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty-state { padding: 64px 24px; border: 2px solid var(--rule); border-radius: var(--radius-md); text-align: center; }
.empty-state h3 { margin-bottom: 10px; font-family: var(--font-heading); font-size: 24px; font-weight: 400; color: var(--heading); }
.empty-state p { margin-bottom: 22px; font-size: 16px; line-height: 1.6; }

/* Плашка заявки — крупная панель на сером фоне */
.request-strip { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-block: 72px; padding: 48px 56px; border-radius: var(--radius-lg); background: var(--gray); color: var(--white); }
.request-strip h2 { font-size: 30px; line-height: 38px; color: var(--blue-light); }
.request-strip p { max-width: 640px; margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--silver); }
.request-strip p a { color: var(--white); font-weight: 600; white-space: nowrap; }
.request-strip p a:hover { color: var(--blue-light); }
.request-strip :focus-visible { outline-color: var(--blue-light); }
.clients { padding-bottom: 72px; }
.clients h2 { margin-bottom: 24px; }
.clients figure { display: inline-grid; gap: 8px; margin: 0 24px 16px 0; font-size: 14px; }

/* Подвал — серый фон */
.site-footer { padding-top: 56px; background: var(--gray); color: var(--white); font-size: 15px; }
.site-footer :focus-visible { outline-color: var(--blue-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.footer-about p { max-width: 340px; margin-top: 12px; line-height: 1.6; color: var(--silver); }
.footer-title { margin-bottom: 14px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-light); }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--blue-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px 28px; border-top: 2px solid var(--blue-light); font-size: 14px; color: var(--silver); }

/* Страница контактов */
.page-head { padding-block: 64px 40px; }
.page-head h1 { margin-top: 12px; font-family: var(--font-heading); font-size: clamp(32px, 3.6vw, 44px); line-height: 1.2; font-weight: 400; color: var(--heading); }
.page-lead { max-width: 580px; margin-top: 20px; font-size: 18px; line-height: 1.6; }
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: stretch; }
.contacts-info { display: flex; flex-direction: column; gap: 16px; }
.contact-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 16px; border-radius: var(--radius-md); background: var(--panel); }
.contact-list svg { grid-row: span 2; width: 48px; height: 48px; padding: 13px; border-radius: var(--radius-md); background: var(--blue); color: var(--white); }
.contact-label { font-size: 14px; }
.contact-value { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
a.contact-value:hover { color: var(--accent-text); }
.requisites { overflow: hidden; border-radius: var(--radius-md); background: var(--panel); }
.requisites-title { padding: 8px 16px; background: var(--blue); font-family: var(--font-display); font-size: 19px; line-height: 24px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.requisites-body { display: grid; gap: 12px; padding: 16px; }
.requisites dt { font-size: 14px; }
.requisites dd { font-weight: 600; }
.contacts-map { position: relative; min-height: 440px; overflow: hidden; border-radius: var(--radius-lg); background: var(--panel); }
.contacts-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Диалоги и формы */
body:has(dialog[open]) { overflow: hidden; }
dialog { width: min(1000px, calc(100% - 40px)); max-height: 90vh; max-height: 90dvh; padding: 0; border: 0; border-radius: var(--radius-lg); color: var(--ink); background: var(--white); }
dialog::backdrop { background: rgb(67 66 66 / 70%); }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--blue); border-radius: var(--radius-sm); background: var(--white); font-size: 22px; line-height: 1; }
.dialog-close:hover { background: var(--blue-tint); }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; }
.detail-gallery { min-width: 0; padding: 60px 28px 28px; background: var(--panel); }
.detail-gallery > img { width: 100%; height: 340px; object-fit: contain; border-radius: var(--radius-md); background: var(--white); }
.thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 16px 3px 6px; }
.thumbnail { flex-shrink: 0; width: 62px; height: 62px; padding: 5px; border: 2px solid var(--white); border-radius: var(--radius-sm); background: var(--white); }
.thumbnail[aria-pressed=true] { border-color: var(--blue); }
.thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.detail-copy { min-width: 0; padding: 60px 36px 36px; }
.detail-copy h2 { margin-top: 12px; font-size: 28px; line-height: 36px; overflow-wrap: anywhere; }
.detail-price { margin-top: 20px; font-family: var(--font-display); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delivery-line { margin: 10px 0 24px; font-size: 15px; line-height: 1.6; }
.detail-contacts { margin-top: 16px; font-size: 15px; line-height: 1.7; }
.detail-contacts a { color: var(--accent-text); font-weight: 600; white-space: nowrap; }
.detail-copy h3 { margin: 28px 0 10px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.detail-description { font-size: 16px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
#request-dialog { width: min(500px, calc(100% - 32px)); }
.request-content { padding: 40px 32px 30px; }
.request-content h2 { margin-top: 12px; font-size: 30px; line-height: 38px; }
#request-product { max-width: 95%; margin-top: 12px; font-size: 15px; line-height: 1.6; }
form { display: grid; gap: 16px; }
.request-content form { margin-top: 22px; }
.request-content form > div { display: flex; flex-direction: column; gap: 6px; }
form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
form input, form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--control); border-radius: var(--radius-sm); background: var(--white); line-height: 1.5; }
form input:focus-visible, form textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
form textarea { resize: vertical; }
.request-content form > .button { margin-top: 4px; }
.request-content ul { margin: 0; padding-left: 20px; font-weight: 600; }

/* Вход и первичная настройка */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: var(--gray); }
.auth-card { width: min(100%, 460px); padding: 36px; border-radius: var(--radius-lg); background: var(--white); }
.auth-card > a { display: inline-block; }
.auth-card > a img { width: auto; height: 48px; }
.auth-card h1 { margin: 14px 0 20px; font-family: var(--font-heading); font-size: 30px; line-height: 38px; font-weight: 400; color: var(--heading); }
.auth-card h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 14px; background: var(--rule); }
.auth-card form, .auth-card form > div { display: grid; gap: 16px; }
.auth-card input { width: 100%; padding: 12px; border: 1px solid var(--control); border-radius: var(--radius-sm); font: inherit; }
.auth-card ul, .auth-error { font-weight: 600; }

@media (min-width: 1500px) {
  .product-image-button { height: 230px; }
}

@media (max-width: 1100px) {
  .header-phone { display: none; }
  .main-nav { gap: 24px; }
  .hero { gap: 40px; }
  .catalog-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .container { width: calc(100% - 40px); }
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 14px; }
  .brand small { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 10px 0 0; gap: 22px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex-shrink: 0; padding-block: 12px; font-size: 14px; white-space: nowrap; }
  .hero, .contacts { grid-template-columns: 1fr; }
  .hero { padding-block: 44px 48px; gap: 32px; }
  .hero-description { font-size: 16px; }
  .hero-facts { gap: 24px; margin-top: 36px; }
  .hero-facts dd { font-size: 22px; }
  .logos { padding: 18px 0; border-radius: var(--radius-md); }
  .logos-head { padding: 0 18px 6px; }
  .logo-track li { width: 180px; margin-right: 12px; }
  h2 { font-size: 30px; line-height: 38px; }
  .catalog-section { padding-block: 48px 8px; }
  .section-heading { margin-bottom: 28px; }
  .catalog-total { padding-bottom: 20px; }
  .catalog-layout { display: flex; flex-direction: column; gap: 18px; }
  .category-panel > h3, .help-note { display: none; }
  .category-list { flex-direction: row; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; }
  .category-button { flex-shrink: 0; width: auto; max-width: 260px; padding: 8px 12px; border: 2px solid var(--blue-tint); font-size: 14px; }
  .category-button span:first-child { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .category-button[aria-pressed=true] { border-color: var(--blue); }
  .search-box { height: 48px; padding: 0 12px; }
  kbd { display: none; }
  .product-grid { gap: 12px; }
  .product-image-button { height: 170px; padding: 16px; }
  .product-info { padding: 14px 14px 12px; }
  .product-title { font-size: 17px; }
  .request-strip { flex-direction: column; align-items: flex-start; gap: 22px; margin-block: 48px; padding: 32px 24px; border-radius: var(--radius-md); }
  .request-strip h2 { font-size: 26px; line-height: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .page-head { padding-block: 40px 28px; }
  .page-lead { font-size: 16px; }
  .contacts { gap: 16px; }
  .contacts-map { min-height: 340px; border-radius: var(--radius-md); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-gallery { padding: 60px 18px 14px; }
  .detail-gallery > img { height: 250px; }
  .detail-copy { padding: 24px 22px 28px; }
  .detail-copy h2 { font-size: 24px; line-height: 32px; }
  .request-content { padding: 52px 22px 24px; }
  dialog { border-radius: var(--radius-md); }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-image-button { height: 220px; }
  .section-heading .catalog-total { display: none; }
  .hero-facts { grid-template-columns: repeat(2, auto); }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-value { font-size: 16px; }
  .header-actions .button { padding: 8px 12px; font-size: 12px; }
  .brand-logo { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Лента не едет: её можно пролистать, копия не нужна. */
  .logo-row { overflow-x: auto; }
  .logo-track li[aria-hidden] { display: none; }
}
