/* ==========================================================================
   ИмпортЛайн — стили сайта. Mobile-first, без внешних зависимостей.
   ========================================================================== */

:root {
  --navy: #0d1b2a;
  --navy-2: #16283d;
  --navy-3: #1d3550;
  --accent: #ff7a1a;
  --accent-2: #ffb066;
  --teal: #1fb6a6;
  --text: #16202b;
  --muted: #5b6b7c;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, 0.14);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: #0f62c4; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .6em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 5vw, 46px); }
h2 { font-size: clamp(23px, 3.4vw, 33px); }
h3 { font-size: clamp(19px, 2.4vw, 22px); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .4em; }
code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
/* на широких экранах даём больше воздуха по краям */
@media (min-width: 1200px) { .container { padding: 0 32px; } }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── кнопки ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; cursor: pointer; transition: .18s ease;
  text-decoration: none !important; font-family: inherit;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(255, 122, 26, .32); }
.btn--primary:hover { background: #ef6c0c; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--outline:hover { background: rgba(255, 122, 26, .08); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ── шапка ────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 27, 42, .96); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.logo__mark {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff9d4d);
  color: #fff; font-weight: 800; font-size: 17px;
  display: grid; place-items: center;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { color: #fff; font-size: 17px; }
.logo__text small { color: rgba(255, 255, 255, .62); font-size: 11.5px; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, .82); font-size: 15px; text-decoration: none; }
.nav a:hover, .nav a.is-active { color: #fff; }
.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header__phone { color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none; }
.header__phone:hover { color: var(--accent-2); }
.header__actions .btn--ghost { display: none; }
.burger {
  width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .25); background: transparent;
  border-radius: 10px; display: grid; gap: 5px; place-content: center; cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; background: #fff; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__actions { margin-left: 0; }
  .header__actions .btn--ghost { display: inline-flex; }
  .burger { display: none; }
}
@media (max-width: 1023px) {
  .nav {
    position: fixed; inset: 74px 0 auto; background: var(--navy);
    flex-direction: column; gap: 0; padding: 10px 20px 20px; margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    transform: translateY(-130%); transition: transform .25s ease; display: flex;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 16px; }
  .header__phone { display: none; }
}

/* ── хлебные крошки ──────────────────────────────────── */
.breadcrumbs { padding: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.breadcrumbs .sep { margin: 0 8px; color: #b9c4cf; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-current] { color: var(--text); }

/* ── hero ────────────────────────────────────────────── */
.hero {
  background: radial-gradient(1200px 500px at 15% -10%, #24405f 0%, transparent 60%), var(--navy);
  color: #fff; padding: 62px 0 70px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -140px; top: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255, 122, 26, .28), transparent 65%); pointer-events: none;
}
.hero__grid { display: grid; gap: 42px; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero__lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .84); max-width: 60ch; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255, 122, 26, .16); border: 1px solid rgba(255, 122, 26, .4);
  color: var(--accent-2); font-size: 13.5px; font-weight: 600; margin-bottom: 18px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 26px 0 22px; }
.hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.hero__fact { border-left: 3px solid var(--accent); padding-left: 14px; }
.hero__fact strong { display: block; font-size: 25px; color: #fff; }
.hero__fact span { color: rgba(255, 255, 255, .72); font-size: 14px; }
.hero__card {
  background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-lg); align-self: start;
}
.hero__card h2 { font-size: 21px; margin-bottom: 6px; }
.hero__card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── секции ──────────────────────────────────────────── */
.section { padding: 62px 0; }
.section--soft { background: var(--bg-soft); }
.section__lead { color: var(--muted); max-width: 70ch; margin-bottom: 34px; font-size: 17px; }
.page-head { background: var(--bg-soft); padding: 44px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 12px; }
.page-head__lead { color: var(--muted); max-width: 78ch; font-size: 18px; margin: 0; }

/* ── сетки и карточки ────────────────────────────────── */
.grid { display: grid; gap: 22px; }
@media (min-width: 700px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: .2s ease; height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d2dbe4; }
.card h3 { margin-bottom: 10px; }
.card h3 a { color: var(--navy); }
.card p { color: var(--muted); font-size: 15.5px; }
.card__meta { display: flex; gap: 14px; color: #8794a2; font-size: 13px; margin-top: auto; padding-top: 14px; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 122, 26, .12);
  color: var(--accent); display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
}
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(31, 182, 166, .12);
  color: #128376; font-size: 12.5px; font-weight: 600; margin-bottom: 12px; width: fit-content;
}

/* ── шаги ────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; padding: 26px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.step h3 { margin: 14px 0 8px; font-size: 19px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ── таблицы ─────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; color: var(--navy); }
tr:last-child td { border-bottom: 0; }

/* ── статья ──────────────────────────────────────────── */
.article { padding: 34px 0 10px; }
.article__layout { display: block; }
.article__meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: #8794a2; font-size: 13.5px; margin-bottom: 22px; }
.article__meta .tag { margin: 0; }
@media (min-width: 1050px) {
  .article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; align-items: start; }
}
.prose { max-width: 74ch; font-size: 17.5px; }
.prose p, .prose li { text-wrap: pretty; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose .table-wrap { max-width: 100%; }

/* Текстовые блоки контентных страниц: боковые отступы и комфортная длина строки */
.page-text { padding: 40px 0; }
.page-text:first-child { padding-top: 8px; }
.page-text:last-child { padding-bottom: 8px; }
.page-text .prose { max-width: 74ch; }
@media (min-width: 1200px) { .page-text { padding: 48px 0; } }
.prose .anchor { opacity: 0; margin-left: 8px; color: #c3ccd6; font-weight: 400; text-decoration: none; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose blockquote {
  margin: 0 0 1.6em; padding: 18px 22px; background: var(--bg-soft);
  border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; color: #33414f;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.toc__title { font-weight: 700; color: var(--navy); margin-bottom: 10px; font-size: 15px; }
.toc ol { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.toc li { margin-bottom: 8px; }
.toc__l3 { padding-left: 14px; font-size: 13.8px; }
.toc a { color: var(--muted); }
.toc a.is-active { color: var(--accent); font-weight: 600; }
@media (min-width: 1050px) { .toc { position: sticky; top: 96px; } }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { max-width: 86ch; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; }
.faq__item summary {
  cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; color: var(--navy);
  list-style: none; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 22px; font-weight: 400;
}
.faq__item[open] summary::after { content: '–'; }
.faq__body { padding: 0 20px 20px; color: #3c4a58; }

/* ── форма ───────────────────────────────────────────── */
.lead-form { max-width: 720px; }
.lead-form__row { display: grid; gap: 16px; }
@media (min-width: 700px) { .lead-form__row { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 7px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #cfd8e2; border-radius: 11px;
  font: inherit; font-size: 16px; background: #fff; color: var(--text); transition: .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 122, 26, .16); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d64545; }
.field__error { display: none; color: #d64545; font-size: 13px; font-style: normal; margin-top: 5px; }
.field__error.is-visible { display: block; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.checkbox input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.checkbox .field__error { width: 100%; }
.lead-form__note { font-size: 13px; color: #8794a2; margin: 12px 0 0; }
.lead-form__status { margin-top: 14px; font-size: 15px; }
.lead-form__status.is-ok { color: #128376; font-weight: 600; }
.lead-form__status.is-error { color: #d64545; font-weight: 600; }
.lead-form--compact .field { margin-bottom: 12px; }
.lead-form--compact .field > span { font-size: 13.5px; }
.lead-form--compact .field input, .lead-form--compact .field textarea { padding: 11px 13px; font-size: 15px; }
.section--form, .section--inline-form { background: var(--bg-soft); }
.section--inline-form { border-radius: var(--radius-lg); padding: 30px; margin: 40px 0; }

/* ── калькулятор ─────────────────────────────────────── */
.calc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.calc__grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .calc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc__out { margin-top: 22px; display: grid; gap: 10px; border-top: 1px dashed var(--line); padding-top: 20px; }
.calc__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15.5px; }
.calc__row span:last-child { font-weight: 600; white-space: nowrap; }
.calc__row--total { font-size: 19px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--navy); }
.calc__row--total span:last-child { color: var(--accent); font-weight: 800; }
.calc select {
  width: 100%; padding: 13px 15px; border: 1px solid #cfd8e2; border-radius: 11px;
  font: inherit; font-size: 16px; background: #fff;
}
.calc__note { font-size: 13px; color: #8794a2; margin: 16px 0 0; }

/* ── CTA ─────────────────────────────────────────────── */
.section--cta { background: linear-gradient(135deg, #0d1b2a, #1d3550); color: #fff; }
.cta { display: grid; gap: 34px; align-items: start; }
@media (min-width: 950px) { .cta { grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; } }
.cta h2 { color: #fff; }
.cta__text p { color: rgba(255, 255, 255, .82); }
.cta__list { list-style: none; padding: 0; margin: 20px 0 0; }
.cta__list li { padding-left: 28px; position: relative; color: rgba(255, 255, 255, .88); margin-bottom: 10px; }
.cta__list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.cta__form { background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.cta__form h3 { margin-bottom: 16px; }

/* ── фильтры блога ───────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
  padding: 9px 17px; border-radius: 999px; border: 1px solid #cfd8e2; background: #fff;
  font: inherit; font-size: 14.5px; cursor: pointer; color: var(--muted); transition: .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-cluster].is-hidden { display: none; }

/* ── каталог товаров ─────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.catalog-toolbar { margin-bottom: 26px; }
.catalog-toolbar__row { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 700px) { .catalog-toolbar__row { grid-template-columns: 1.6fr 1fr; } }
.catalog-search input, .catalog-brand select {
  width: 100%; padding: 13px 15px; border: 1px solid #cfd8e2; border-radius: 11px;
  font: inherit; font-size: 16px; background: #fff; color: var(--text);
}
.catalog-search input:focus, .catalog-brand select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 122, 26, .16);
}
.catalog-toolbar__count { color: var(--muted); font-size: 14px; margin: 0; }
.catalog-note { color: #8794a2; font-size: 13.5px; margin: 26px 0 0; max-width: 80ch; }
.catalog-empty {
  padding: 26px; border: 1px dashed #cfd8e2; border-radius: var(--radius);
  background: var(--bg-soft); color: var(--muted); text-align: center;
}
.products-grid { align-items: stretch; }
.product-card.is-hidden, [data-item].is-hidden, [hidden] { display: none !important; }

.product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .2s ease; height: 100%;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d2dbe4; }
.product-card__media { position: relative; display: block; background: var(--bg-soft); }
.product-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-card__badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: #fff; box-shadow: 0 2px 8px rgba(13, 27, 42, .14);
}
.product-card__badge.is-stock { color: #128376; }
.product-card__badge.is-order { color: #b26a00; }
.product-card__body { display: flex; flex-direction: column; padding: 18px 20px 20px; flex: 1; }
.product-card__meta { display: flex; flex-wrap: wrap; gap: 10px; color: #8794a2; font-size: 12.5px; margin: 0 0 8px; }
.product-card h3 { font-size: 17.5px; margin-bottom: 12px; }
.product-card h3 a { color: var(--navy); }
.product-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
}
.price { font-weight: 800; color: var(--navy); font-size: 18px; white-space: nowrap; }
.price small { font-weight: 500; color: var(--muted); font-size: 13px; }
.price--big { font-size: 28px; }
.price--request { font-size: 15px; font-weight: 600; color: var(--muted); }
.stock { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.stock.is-stock { background: rgba(31, 182, 166, .14); color: #128376; }
.stock.is-order { background: rgba(255, 122, 26, .14); color: #b26a00; }
.card--category .card__count { color: var(--accent); font-weight: 600; font-size: 14px; margin: 0; }
.section__more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* карточка товара */
.product { display: grid; gap: 34px; }
@media (min-width: 950px) { .product { grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; } }
.product__media { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.product__media img { width: 100%; }
.product__crumbs-line { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.product__title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }
.product__price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 20px; }
.product__props { margin: 0 0 24px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.product__props > div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.product__props dt { color: var(--muted); margin: 0; font-size: 14.5px; }
.product__props dd { margin: 0; font-weight: 600; text-align: right; font-size: 14.5px; }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.product__note { font-size: 13px; color: #8794a2; margin: 0; }

/* ── подвал ──────────────────────────────────────────── */
.footer { background: var(--navy); color: rgba(255, 255, 255, .74); padding: 52px 0 26px; font-size: 14.5px; }
.footer__grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr; gap: 26px; } }
.logo--footer { margin-bottom: 16px; }
.footer__about { color: rgba(255, 255, 255, .6); font-size: 13.5px; }
.footer__req { color: rgba(255, 255, 255, .45); font-size: 12.5px; }
.footer__title { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 15px; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 9px; }
.footer__list a { color: rgba(255, 255, 255, .74); }
.footer__list a:hover { color: var(--accent-2); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 38px; padding-top: 20px;
  font-size: 13px; color: rgba(255, 255, 255, .5);
}
.footer__bottom a { color: rgba(255, 255, 255, .6); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ── калькулятор авто из Китая ───────────────────────── */
.autocalc {
  display: grid; gap: 26px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow);
}
@media (min-width: 1000px) {
  .autocalc { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 34px; align-items: start; }
}
.autocalc__panel { min-width: 0; }
.autocalc__group { border: 0; border-top: 1px solid var(--line); padding: 20px 0 0; margin: 0 0 22px; }
.autocalc__group:first-of-type { border-top: 0; padding-top: 0; }
.autocalc__group legend {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); padding: 0 0 12px; margin: 0;
}
.autocalc__grid { display: grid; gap: 14px; }
@media (min-width: 620px) { .autocalc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.autocalc__group .field { margin-bottom: 0; }
.autocalc__group .field[hidden] { display: none; }
.autocalc select {
  width: 100%; padding: 13px 15px; border: 1px solid #cfd8e2; border-radius: 11px;
  font: inherit; font-size: 16px; background: #fff; color: var(--text);
}
.autocalc select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 122, 26, .16); }
.autocalc__hint { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.autocalc__radios { display: grid; gap: 10px; }
.autocalc__radio {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px;
  border: 1px solid #cfd8e2; border-radius: 12px; cursor: pointer; font-size: 15px; line-height: 1.45;
}
.autocalc__radio:has(input:checked) { border-color: var(--accent); background: #fff8f2; }
.autocalc__radio input { margin-top: 3px; accent-color: var(--accent); flex: 0 0 auto; }
.autocalc__result {
  background: var(--bg-soft); border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: 90px;
}
@media (max-width: 999px) { .autocalc__result { position: static; } }
.autocalc__result-head { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.autocalc__result-sub { font-size: 15px; color: var(--navy); font-weight: 600; margin: 0 0 18px; }
.autocalc__row {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  font-size: 15px; padding: 9px 0; border-bottom: 1px dashed rgba(13, 27, 42, .1);
}
.autocalc__row[hidden] { display: none; }
.autocalc__row > span:first-child { color: var(--muted); }
.autocalc__row > span:last-child { font-weight: 700; white-space: nowrap; color: var(--navy); }
.autocalc__row em { font-style: normal; font-size: 12.5px; color: #8794a2; display: block; }
.autocalc__row--key { background: #fff; margin: 6px -12px; padding: 12px; border-radius: 11px; border-bottom: 0; }
.autocalc__row--key > span:first-child { color: var(--navy); font-weight: 700; }
.autocalc__row--key.is-benefit > span:last-child { color: #128376; }
.autocalc__row--sub { font-size: 14px; }
.autocalc__row--sub > span:last-child { color: var(--muted); font-weight: 600; }
.autocalc__row--total {
  font-size: 19px; margin-top: 12px; padding-top: 14px; border-top: 2px solid var(--navy); border-bottom: 0;
}
.autocalc__row--total > span:first-child { color: var(--navy); font-weight: 700; }
.autocalc__row--total > span:last-child { color: var(--accent); font-weight: 800; }
.autocalc__detail { font-size: 12.5px; color: #8794a2; margin: -4px 0 6px; line-height: 1.5; }
.autocalc__detail:empty { display: none; }
.autocalc__warnings { margin: 16px 0 0; padding-left: 20px; font-size: 13px; color: #8a5a12; }
.autocalc__warnings[hidden] { display: none; }
.autocalc__warnings li { margin-bottom: 7px; }
.autocalc__note { font-size: 12.5px; color: #8794a2; margin: 18px 0 0; }

/* ── таблицы ставок в статьях ────────────────────────── */
.rate-tables { margin: 26px 0; }
.rate-tables__lead { font-size: 16px; }
.rate-tables h3 { margin-top: 28px; }
.rate-tables__note { font-size: 13.5px; color: var(--muted); }
.rate-tables table td:first-child { font-weight: 500; }
.rate-tables table td:nth-child(2), .rate-tables table td:nth-child(4) { color: var(--muted); }
.rate-tables table td:nth-child(3), .rate-tables table td:nth-child(5) { font-weight: 600; white-space: nowrap; }
.rate-tables table thead th:nth-child(2), .rate-tables table thead th:nth-child(4) { font-weight: 600; }

.autocalc__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line);
}
.autocalc__actions .btn { cursor: pointer; }
.autocalc__actions-note { font-size: 12.5px; color: var(--muted); flex: 1 1 200px; line-height: 1.45; }
.autocalc__result.is-updated { animation: ac-flash .9s ease-out; }
@keyframes ac-flash {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .55); }
  100% { box-shadow: 0 0 0 14px rgba(255, 122, 26, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .autocalc__result.is-updated { animation: none; }
}
.autocalc__fallback {
  background: #fff4e5; border: 1px solid #ffd8a8; color: #8a5a12;
  border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin: 0 0 16px;
}
.autocalc__fallback[hidden] { display: none; }

/* ── галерея фотографий в карточке товара ─────────────── */
.product__photo { border-radius: var(--radius); }
.product__gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (min-width: 700px) { .product__gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product__gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 9px; border: 1px solid var(--line); display: block;
  transition: transform .15s, border-color .15s;
}
.product__gallery a { display: block; border-radius: 9px; }
.product__gallery a:hover img { transform: scale(1.03); border-color: var(--accent); }

/* ── cookie-баннер ───────────────────────────────────── */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(13, 27, 42, .97); color: rgba(255, 255, 255, .9);
  border-top: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  padding: 16px 0;
  box-shadow: 0 -10px 30px rgba(13, 27, 42, .25);
}
.cookie-banner__inner {
  width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.cookie-banner__text { margin: 0; font-size: 14px; line-height: 1.5; max-width: 68ch; }
.cookie-banner__text a { color: var(--accent-2); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__actions .btn--outline { border-color: rgba(255, 255, 255, .4); color: #fff; }
.cookie-banner__actions .btn--outline:hover { background: rgba(255, 255, 255, .1); }
@media (min-width: 1200px) { .cookie-banner__inner { padding: 0 32px; } }
