/* PROMINE SOLUTIONS — основная таблица стилей.
   Цвета: графит #575757 (из логотипа), акцент для кнопок — переменная --accent (задаётся в настройках). */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-var.woff") format("woff"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
	--ink: #1f2124;
	--brand: #575757;
	--muted: #6b6f75;
	--line: #e3e4e6;
	--soft: #f4f4f5;
	--soft-2: #ececee;
	--dark: #1f2124;
	--accent: #e0601b;
	--accent-ink: #fff;
	--ok: #1e7b3a;
	--radius: 4px;
	--container: 1280px;
	--head-h: 76px;
	--f-head: "Montserrat", "Inter", Arial, sans-serif;
	--f-body: "Inter", Arial, sans-serif;
	--shadow: 0 10px 30px rgba(31, 33, 36, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.6 var(--f-body); color: var(--ink); background: #fff; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(87, 87, 87, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 3.4vw, 44px); }
h2 { font-size: clamp(24px, 2.6vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 14px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--soft { background: var(--soft); }
.section--tight { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.overline { display: inline-block; font: 700 12px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius); font: 700 15px/1.2 var(--f-head); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); color: var(--accent-ink); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--ink); color: #fff; }
.btn--outline { background: transparent; border-color: var(--brand); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--xs { min-height: 32px; padding: 4px 12px; font-size: 13px; border-width: 1px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--brand); cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-row { display: flex; align-items: center; gap: 20px; height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); flex: none; }
.logo svg { width: 40px; height: 45px; }
.logo__text { font: 800 15px/1.05 var(--f-head); letter-spacing: .04em; text-transform: uppercase; }
.logo__text small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; color: var(--muted); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 10px; white-space: nowrap; font: 600 15px/1 var(--f-body); text-decoration: none; border-radius: var(--radius); }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current_page_item > a { color: var(--accent); }
.header-search { position: relative; flex: 1 1 240px; min-width: 0; max-width: 340px; margin-left: auto; }
.search-field { display: flex; align-items: center; height: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); padding: 0 6px 0 12px; }
.search-field:focus-within { border-color: var(--brand); background: #fff; }
.search-field input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; height: 100%; outline: none; font-size: 15px; }
.search-field button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; display: flex; }
.search-field svg { width: 18px; height: 18px; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 70vh; overflow: auto; min-width: 300px; }
.suggest[hidden] { display: none; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; text-decoration: none; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.is-active { background: var(--soft); color: var(--ink); }
.suggest img, .suggest .ph { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; background: var(--soft); flex: none; }
.suggest b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.suggest small { color: var(--muted); font-size: 12px; }
.suggest .suggest-all { justify-content: center; font-weight: 600; font-size: 14px; color: var(--accent); }
.suggest .suggest-empty { padding: 12px; color: var(--muted); font-size: 14px; }
.header-contacts { display: flex; align-items: center; gap: 8px; flex: none; }
.header-phone { display: flex; flex-direction: column; text-decoration: none; margin-right: 6px; line-height: 1.2; }
.header-phone b { font: 700 16px/1.2 var(--f-head); white-space: nowrap; }
.header-phone small { font-size: 12px; color: var(--muted); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; flex: none; }
.lang-switch a, .lang-switch span { display: block; padding: 0 10px; line-height: 40px; font: 700 13px/40px var(--f-head); text-decoration: none; color: var(--muted); }
.lang-switch .is-current { background: var(--brand); color: #fff; }
.burger { display: none; }

/* Мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(31, 33, 36, .5); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: #fff; padding: 20px; overflow: auto; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; gap: 20px; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 700 18px/1.2 var(--f-head); text-decoration: none; }
.drawer__cats a { font: 400 15px/1.3 var(--f-body) !important; padding: 10px 0 !important; }
.drawer__contacts { display: grid; gap: 10px; }

/* Нижняя панель на телефоне */
.mobile-bar { display: none; }

/* Первый экран */
.hero { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 27, 30, .94) 0%, rgba(25, 27, 30, .82) 42%, rgba(25, 27, 30, .25) 100%); }
.hero__inner { position: relative; min-height: 560px; display: flex; flex-direction: column; justify-content: center; padding: 72px 0; max-width: 700px; }
.hero h1 { font-size: clamp(30px, 4vw, 52px); margin-bottom: 20px; }
.hero p { font-size: 18px; color: rgba(255, 255, 255, .85); max-width: 600px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note svg { width: 16px; height: 16px; color: var(--accent); }

/* Плитки категорий */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile__img { aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.cat-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-tile:hover .cat-tile__img img { transform: scale(1.04); }
.cat-tile__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cat-tile__name { font: 700 15px/1.3 var(--f-head); }
.cat-tile__count { font-size: 13px; color: var(--muted); margin-top: auto; }

/* Преимущества */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.adv__icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.adv__icon svg { width: 26px; height: 26px; }
.adv h3 { font-size: 18px; margin-bottom: 8px; }
.adv p { color: var(--muted); font-size: 15px; margin: 0; }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); color: var(--accent); font: 800 16px/44px var(--f-head); text-align: center; z-index: 1; }
.step::after { content: ""; position: absolute; top: 23px; left: 56px; right: -8px; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step b { display: block; font: 700 16px/1.35 var(--f-head); margin-bottom: 6px; }
.step span { font-size: 14px; color: var(--muted); }
.section--soft .step::before { background: var(--soft); }

/* Форма заявки */
.lead-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.lead-aside h2 { margin-bottom: 16px; }
.lead-aside .contact-list { margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--accent); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea, .field select { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #cfd1d4; border-radius: var(--radius); background: #fff; font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; }
.field.has-error input, .field.has-error textarea { border-color: #c62828; }
.file-input { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1px dashed #b9bcc0; border-radius: var(--radius); background: var(--soft); cursor: pointer; }
.file-input:hover { border-color: var(--brand); }
.file-input input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-input svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.file-input small { color: var(--muted); display: block; font-size: 12px; }
.file-input .file-name { font-size: 14px; font-weight: 600; word-break: break-all; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { font-size: 14px; }
.form-msg.is-error { color: #c62828; }
.form-success { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border: 1px solid #b9dfc4; background: #eff8f1; border-radius: var(--radius); }
.form-success svg { width: 32px; height: 32px; color: var(--ok); flex: none; }
.form-success b { display: block; font: 700 18px/1.3 var(--f-head); margin-bottom: 4px; }
.lead-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }

/* Список контактов */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.contact-list a { text-decoration: none; font-weight: 600; }

/* Хлебные крошки и шапка страницы */
.page-head { padding: 28px 0 32px; border-bottom: 1px solid var(--line); background: var(--soft); }
.page-head h1 { margin: 12px 0 0; }
.page-head .lead { margin: 12px 0 0; font-size: 16px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #b0b3b8; }
.crumbs a { text-decoration: none; }

/* Каталог */
.catalog-main { min-width: 0; }
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; padding-top: 40px; padding-bottom: 80px; }
.filters { position: sticky; top: calc(var(--head-h) + 16px); display: grid; gap: 24px; }
.filters__head { display: none; }
.filter-group h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.subcats { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.subcats a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; text-decoration: none; font-size: 15px; margin-left: -2px; border-left: 2px solid transparent; }
.subcats a.is-current { border-left-color: var(--accent); font-weight: 600; color: var(--ink); }
.subcats .cnt { color: var(--muted); font-size: 13px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.check-list label { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.check-list input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check-list .cnt { color: var(--muted); font-size: 13px; margin-left: auto; }
.filters__actions { display: flex; gap: 8px; }
.cat-intro { color: var(--muted); max-width: 820px; margin: 12px 0 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar__count { color: var(--muted); font-size: 14px; }
.toolbar__right { display: flex; gap: 8px; align-items: center; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.view-toggle a { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 40px; font-size: 14px; text-decoration: none; color: var(--muted); }
.view-toggle a.is-current { background: var(--brand); color: #fff; }
.view-toggle svg { width: 16px; height: 16px; }
.filters-open { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: var(--soft-2); font-size: 13px; text-decoration: none; }
.chip svg { width: 12px; height: 12px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.p-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.p-card:hover { border-color: #c5c7ca; box-shadow: var(--shadow); }
.p-card__img { display: block; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.p-card__img img { width: 100%; height: 100%; object-fit: cover; }
.p-card__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-card__title { font: 700 16px/1.3 var(--f-head); margin: 0; }
.p-card__title a { text-decoration: none; }
.p-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-card dl { margin: 0; display: grid; gap: 4px; font-size: 13px; }
.p-card dl div { display: flex; gap: 6px; }
.p-card dt { color: var(--muted); white-space: nowrap; }
.p-card dt::after { content: ":"; }
.p-card dd { margin: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-card__foot { margin-top: auto; padding-top: 6px; position: relative; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 3px; font: 700 11px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .06em; background: var(--soft-2); color: var(--brand); }
.badge--stock { background: #e3f3e7; color: var(--ok); }
.badge--dealer { background: var(--brand); color: #fff; }
.badge svg { width: 12px; height: 12px; }
.p-card .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table thead th { background: var(--soft); font: 700 13px/1.3 var(--f-head); color: var(--brand); white-space: nowrap; position: sticky; top: 0; }
.data-table tbody tr:hover { background: #fafafa; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .t-img { width: 64px; }
.data-table .t-img img, .data-table .t-img .ph { width: 56px; height: 42px; object-fit: cover; border-radius: 3px; background: var(--soft); }
.data-table .t-act { text-align: right; white-space: nowrap; }
.data-table .t-name a { font-weight: 600; text-decoration: none; }
.data-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--muted); }

/* Архив каталога */
.cat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cat-row { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cat-row__img { background: var(--soft); }
.cat-row__img img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; }
.cat-row__body { padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.cat-row__body h2 { font-size: 20px; margin: 0; }
.cat-row__body h2 a { text-decoration: none; }
.cat-row__body p { color: var(--muted); font-size: 14px; margin: 0; }
.cat-row__subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

/* Карточка товара */
.product { padding-top: 32px; padding-bottom: 24px; }
.product__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gallery__main { position: relative; aspect-ratio: 1 / 1; background: var(--soft); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; border: 0; padding: 0; width: 100%; display: block; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.gallery__zoom svg { width: 18px; height: 18px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.gallery__thumbs button { aspect-ratio: 1 / 1; border: 2px solid transparent; border-radius: var(--radius); padding: 0; background: var(--soft); cursor: pointer; overflow: hidden; }
.gallery__thumbs button.is-active { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info h1 { font-size: clamp(26px, 2.8vw, 36px); margin: 12px 0 16px; }
.product__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.product__badges a.badge { text-decoration: none; }
.meta-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 24px; font-size: 15px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; }
.cta-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--soft); }
.cta-box__price { font: 700 18px/1.3 var(--f-head); margin-bottom: 4px; }
.cta-box__note { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.cta-box__btns { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.product__short { margin: 0 0 24px; color: var(--muted); }
.product__section { padding: 40px 0 0; }
.product__section h2 { font-size: 24px; margin-bottom: 20px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; font-weight: 400; color: var(--muted); }
.spec-table tr:nth-child(odd) { background: #fafafa; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.prose { max-width: 820px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin-top: 1.4em; font-size: 24px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; }
.doc:hover { border-color: var(--brand); color: var(--ink); }
.doc__ext { width: 44px; height: 52px; border-radius: 3px; background: #fdecec; color: #b3261e; font: 800 11px/52px var(--f-head); text-align: center; flex: none; }
.doc__name { font-weight: 600; line-height: 1.35; }
.doc__name small { display: block; color: var(--muted); font-weight: 400; }
.doc svg { width: 20px; height: 20px; margin-left: auto; color: var(--muted); flex: none; }

/* Лайтбокс и модальное окно */
.lightbox, .modal { position: fixed; inset: 0; z-index: 100; display: none; }
.lightbox.is-open, .modal.is-open { display: flex; }
.lightbox { background: rgba(15, 16, 18, .94); align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 14px; }
.modal { background: rgba(31, 33, 36, .6); align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; }
.modal__dialog { position: relative; width: 100%; max-width: 680px; background: #fff; border-radius: var(--radius); padding: 36px 36px 32px; box-shadow: var(--shadow); }
.modal__close { position: absolute; top: 12px; right: 12px; }
.modal h2 { font-size: 26px; margin-bottom: 6px; padding-right: 40px; }
.modal .muted { font-size: 15px; margin-bottom: 24px; }
body.has-modal { overflow: hidden; }

/* О компании / как работаем / контакты */
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; }
.about-photos { display: grid; gap: 16px; }
.about-photos img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; }
.req-box { background: var(--soft); border-radius: var(--radius); padding: 24px 28px; font-size: 15px; white-space: pre-line; }
.req-box h3 { white-space: normal; }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.clients div { border: 1px solid var(--line); border-radius: var(--radius); height: 96px; display: flex; align-items: center; justify-content: center; padding: 16px; background: #fff; }
.clients img { max-height: 60px; width: auto; filter: grayscale(1); opacity: .8; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.info-card svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 16px; }
.info-card h3 { font-size: 18px; }
.info-card p { color: var(--muted); margin: 0; font-size: 15px; white-space: pre-line; }
.contacts-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.map { position: relative; aspect-ratio: 16 / 10; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 0; background: var(--soft) center / cover; cursor: pointer; color: var(--ink); font-weight: 600; }
.map__load svg { width: 32px; height: 32px; color: var(--accent); }
.phones { list-style: none; margin: 0; padding: 0; }
.phones li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.phones a { font-weight: 700; text-decoration: none; white-space: nowrap; }
.thanks { text-align: center; padding-top: 96px; padding-bottom: 96px; max-width: 640px; margin: 0 auto; }
.thanks svg.big { width: 72px; height: 72px; color: var(--ok); margin: 0 auto 24px; }
.thanks__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.err404 { text-align: center; padding-top: 96px; padding-bottom: 96px; }
.err404 .code { font: 800 120px/1 var(--f-head); color: var(--soft-2); margin-bottom: 8px; }
.err404 form { max-width: 480px; margin: 24px auto 0; }

/* Подвал */
.site-footer { background: var(--dark); color: #c3c6cb; font-size: 15px; padding: 64px 0 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr 1.2fr; gap: 40px; }
.footer-grid h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid ul a { color: #c3c6cb; }
.footer-logo { color: #fff !important; margin-bottom: 16px; }
.footer-logo svg { color: #fff; }
.footer-req { white-space: pre-line; font-size: 13px; line-height: 1.6; color: #9a9ea5; }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; padding-bottom: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #9a9ea5; }
.footer-bottom a { color: #c3c6cb; }
.footer-contacts li { display: flex; gap: 10px; }
.footer-contacts svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social .icon-btn { background: transparent; border-color: rgba(255, 255, 255, .2); color: #fff; }

/* Адаптив */
@media (max-width: 1280px) {
	.header-phone small { display: none; }
}
@media (max-width: 1180px) {
	.main-nav { display: none; }
	.burger { display: inline-flex; }
	.header-search { max-width: none; }
	.steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
	.step:nth-child(3)::after { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
	.cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
	.adv-grid { grid-template-columns: repeat(2, 1fr); }
	.lead-wrap, .contacts-grid, .about-grid { grid-template-columns: 1fr; gap: 32px; }
	.catalog-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
	.catalog-main { min-width: 0; }
	.filters { position: fixed; inset: 0; z-index: 95; background: #fff; padding: 20px; overflow: auto; transform: translateX(-100%); transition: transform .25s; align-content: start; top: 0; }
	.filters.is-open { transform: none; }
	.filters__head { display: flex; justify-content: space-between; align-items: center; }
	.filters__head b { font: 700 20px/1 var(--f-head); }
	.filters-open { display: inline-flex; }
	.product__top { grid-template-columns: 1fr; gap: 28px; }
	.two-col { grid-template-columns: 1fr; gap: 0; }
	.cat-list { grid-template-columns: 1fr; }
	.info-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	:root { --head-h: 64px; }
	.container { padding: 0 16px; }
	.section { padding: 56px 0; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.header-row { gap: 8px; }
	.logo__text { display: none; }
	.logo svg { width: 36px; height: 40px; }
	.header-search { order: 0; }
	.header-contacts .header-phone, .header-contacts .hide-sm { display: none; }
	.cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.cat-tile__body { padding: 10px 12px 12px; }
	.cat-tile__name { font-size: 14px; }
	.adv-grid { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; gap: 20px; }
	.step { padding: 0 0 0 64px; min-height: 48px; }
	.step::after { top: 52px; left: 23px; right: auto; width: 2px; height: calc(100% - 36px); display: block !important; }
	.step:last-child::after { display: none !important; }
	.form-grid { grid-template-columns: 1fr; }
	.lead-box { padding: 20px; }
	.hero__inner { min-height: 0; padding: 56px 0 48px; }
	.hero__media::after { background: rgba(25, 27, 30, .8); }
	.hero p { font-size: 16px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.p-card__body { padding: 12px; gap: 8px; }
	.p-card__title { font-size: 14px; }
	.p-card dl { display: none; }
	.p-card .badges { top: 8px; left: 8px; }
	.p-card .btn { width: 100%; padding: 8px 10px; font-size: 13px; }
	.cat-row { grid-template-columns: 1fr; }
	.cat-row__img img { aspect-ratio: 16 / 9; min-height: 0; }
	.cta-box__btns { grid-template-columns: 1fr; }
	.meta-list { grid-template-columns: 1fr; gap: 2px; }
	.meta-list dd { margin-bottom: 8px; }
	.modal { padding: 0; }
	.modal__dialog { min-height: 100%; border-radius: 0; padding: 28px 16px 24px; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); padding-bottom: env(safe-area-inset-bottom); }
	.mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; border: 0; background: none; font: 600 12px/1 var(--f-body); text-decoration: none; color: var(--ink); cursor: pointer; }
	.mobile-bar svg { width: 22px; height: 22px; color: var(--brand); }
	.mobile-bar .is-accent { background: var(--accent); color: #fff; }
	.mobile-bar .is-accent svg { color: #fff; }
	body { padding-bottom: 60px; }
	.data-table { font-size: 14px; min-width: 620px; }
	.data-table .t-name { min-width: 190px; }
	.data-table .t-img { display: none; }
	.data-table th, .data-table td { padding: 10px 12px; }
	.spec-table th { width: 45%; }
	.gallery__thumbs { grid-template-columns: repeat(6, 1fr); gap: 6px; }
}
@media (max-width: 480px) {
	.lang-switch a, .lang-switch span { padding: 0 8px; }
	.header-contacts .icon-btn.hide-xs { display: none; }
}
@media (min-width: 1920px) {
	:root { --container: 1440px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .mobile-bar, .site-footer, .cta-box__btns, .p-card__foot { display: none !important; }
}
