/* Шрифт подключается отдельным файлом fonts.css */

:root {
  --ink: #0f1724;
  --ink-2: #4a5466;
  --ink-3: #6b7486;
  --line: #dde2e8;
  --line-strong: #c4ccd6;
  --bg: #ffffff;
  --stage: #eef1f4;
  --stage-2: #e4e8ed;
  --brand: #33b8e4;
  --brand-ink: #0a7fb0; /* голубой для текста на белом — читаемый */
  --brand-hover: #1fa3d3;
  --brand-tint: #e3f5fc;
  --ok: #13804a;
  --ok-tint: #e5f4ec;
  --night: #5a5a5a;
  --night-2: #676767;
  --night-ink: #e6e6e6;

  --font: 'Golos Text Variable', 'Golos Text', system-ui, sans-serif;
  --radius: 4px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --fs-hero: clamp(2.125rem, 1.2rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
.kp :focus-visible, .footer :focus-visible { outline-color: #a6e3f7; }
html { scrollbar-color: var(--line-strong) transparent; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ───── Кнопки ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.4em;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 1em; font-size: 0.9375rem; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.link { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.link:hover { color: var(--ink); }
.arrow-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: var(--brand-ink); text-decoration: none; }
.arrow-link .icon { transition: transform 0.25s var(--ease); }
.arrow-link:hover .icon { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.3em 0.6em; border-radius: 3px;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.2;
}
.badge--ok { background: var(--ok-tint); color: var(--ok); }
.badge--out { background: #f8e7e9; color: #a33140; }
.badge--ok::before, .badge--out::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--promo { background: var(--brand-tint); color: var(--brand-ink); }

/* ───── Шапка ───── */
.topbar { background: var(--stage); font-size: 0.875rem; color: var(--ink-2); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 24px; min-height: 36px; align-items: center; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--ink); }
.topbar__right { display: flex; gap: 24px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header .wrap { display: flex; align-items: center; gap: 32px; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo__mark { width: 80px; height: 48px; }
.logo__text { display: grid; line-height: 1.1; }
.logo__name { font-weight: 750; font-size: 1.25rem; letter-spacing: -0.01em; }
.logo__desc { font-size: 0.75rem; color: var(--ink-3); }

.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 10px 14px; border: 0; border-radius: var(--radius); background: none;
  font-weight: 500; text-decoration: none; cursor: pointer; color: var(--ink); white-space: nowrap;
}
.nav a:hover, .nav button:hover, .nav button[aria-expanded='true'] { background: var(--stage); }
.nav a[aria-current='page'] { color: var(--brand-ink); }
.nav .icon { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.nav button[aria-expanded='true'] .icon { transform: rotate(180deg); }

.header__phone { display: grid; text-align: right; text-decoration: none; line-height: 1.2; flex: none; }
.header__phone b { font-weight: 650; font-size: 1.0625rem; }
.header__phone span { font-size: 0.75rem; color: var(--ink-3); }
.header__burger { display: none; }
.header__tel { display: none; }

/* Меню каталога */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(15, 23, 36, 0.25);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.3s var(--ease); }
.mega .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: start; gap: 32px; min-height: 0; padding-block: 32px 40px; }
.mega h3 { font-size: 1rem; margin-bottom: 12px; }
.mega h3 a { text-decoration: none; }
.mega h3 a:hover { color: var(--brand-ink); }
.mega li a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.mega li a:hover { color: var(--brand-ink); }
.mega__more { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-3); }

/* ───── Секции ───── */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--stage { background: var(--stage); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.section__head h2 { font-size: var(--fs-h2); max-width: 20ch; }
.section__head p { color: var(--ink-2); max-width: 46ch; }

/* ───── Главный экран ───── */
.hero { padding-block: clamp(32px, 5vw, 64px) 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.03em; max-width: 16ch; }
.hero__lead { margin-top: 24px; font-size: var(--fs-lead); color: var(--ink-2); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__call { margin-top: 28px; font-size: 0.9375rem; color: var(--ink-3); }
.hero__call a { color: var(--ink); font-weight: 600; text-decoration: none; }

.hero__stage {
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  background: var(--stage); border-radius: var(--radius); overflow: hidden;
}
.hero__stage img {
  width: 88%; justify-self: center; align-self: center; margin-top: 16px; mix-blend-mode: multiply;
  animation: rise 1.2s var(--ease) both;
}
.hero__tag {
  display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap;
  padding: 20px 24px 22px; border-top: 1px solid var(--stage-2);
}
.hero__tag b { display: block; font-size: 1.25rem; font-weight: 650; }
.hero__tag span { font-size: 0.875rem; color: var(--ink-2); }
.hero__tag a { text-decoration: none; }
.hero__tag a:hover b { color: var(--brand-ink); }
.hero__specs { display: flex; gap: 24px; }
.hero__specs div { display: grid; }
.hero__specs dt { font-size: 0.75rem; color: var(--ink-3); }
.hero__specs dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }

@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.partner-strip { margin-top: clamp(24px, 4vw, 48px); }
.partner-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.partner-strip h2 {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 400;
}
.partner-strip__window {
  overflow: hidden;
  padding-block: 14px;
  border-block: 1px solid var(--line);
}
.partner-strip__track {
  display: flex;
  width: max-content;
}
.partner-strip__logos {
  display: flex;
  flex: none;
}
.partner-strip__logos li {
  display: grid;
  width: max(calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) / 4), calc(100vw / 6));
  min-height: 48px;
  place-items: center;
}
.partner-strip__logos img {
  width: min(80%, 170px);
  height: 44px;
  object-fit: contain;
  filter: grayscale(1);
  mix-blend-mode: multiply;
}
@media (max-width: 640px) {
  .partner-strip__logos li { width: max(160px, 48vw); }
  .partner-strip__logos img { height: 32px; }
}
@media (hover: hover) {
  .partner-strip__window:hover img { filter: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .partner-strip__track { animation: partner-scroll 44s linear infinite; }
  @keyframes partner-scroll {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .partner-strip__window { overflow-x: auto; }
  .partner-strip__logos[aria-hidden="true"] { display: none; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(24px, 3.5vw, 40px);
}
.facts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  padding: 16px 18px;
}
.facts .facts__icon {
  width: 54px;
  height: 54px;
  padding: 14px;
  border: 1px solid var(--brand-btn);
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--brand-btn);
}
@media (hover: hover) {
  .facts li:hover .facts__icon {
    background: var(--brand-btn);
    color: #fff;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .facts .facts__icon {
    transition: background-color 220ms var(--ease), color 220ms var(--ease);
  }
}
.facts b { display: block; font-size: 1.0625rem; font-weight: 650; margin-bottom: 3px; }
.facts span { display: block; font-size: 0.9375rem; color: var(--ink-2); }
.facts--experience {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.facts--experience li {
  grid-template-columns: 1fr;
  align-content: center;
}
.facts--experience .facts__icon { display: none; }
.facts--experience li:first-child {
  background: var(--brand-tint);
  border-radius: calc(var(--radius-card) - 4px);
}
.facts--experience li:first-child b {
  font-size: clamp(1.65rem, 2.7vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--brand-ink);
}
.facts--experience li + li { border-inline-start: 1px solid var(--line); }
@media (max-width: 900px) {
  .facts--experience li:nth-child(3) { border-inline-start: 0; }
}
@media (max-width: 640px) {
  .facts.facts--experience li + li {
    grid-template-columns: 1fr;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .facts.facts--experience li:first-child { grid-template-columns: 1fr; }
}

/* ───── Каталог (плитка) ───── */
.cats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cat {
  position: relative; display: flex; flex-direction: column;
  background: var(--stage); border-radius: var(--radius);
  text-decoration: none; overflow: hidden;
  transition: background-color 0.25s;
}
.cat:hover { background: var(--stage-2); }
.cat__body { padding: 24px 24px 0; position: relative; z-index: 1; }
.cat h3 { font-size: var(--fs-h3); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat h3 .icon { color: var(--brand); transition: transform 0.25s var(--ease); }
.cat:hover h3 .icon { transform: translateX(4px); }
.cat__list { margin-top: 10px; color: var(--ink-2); font-size: 0.9375rem; }
.cat__subs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 14px; }
.cat__subs li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.cat__img { margin-top: auto; mix-blend-mode: multiply; transition: transform 0.6s var(--ease); }
.cat:hover .cat__img { transform: scale(1.03); }

.cat--xl { grid-column: span 7; grid-row: span 2; min-height: 560px; }
.cat--xl .cat__img { width: 82%; align-self: center; }
.cat--l { grid-column: span 5; min-height: 272px; flex-direction: row; }
.cat--l .cat__body { padding-bottom: 24px; flex: 1; }
.cat--l .cat__img { width: 44%; align-self: end; object-fit: contain; max-height: 250px; }
.cat--m { grid-column: span 4; min-height: 200px; }
.cat--m .cat__body { padding-bottom: 24px; }
.cat--plain { background: #fff; border: 1px solid var(--line); }
.cat--plain:hover { background: #fff; border-color: var(--ink); }

.also {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 0.9375rem;
}
.also b { color: var(--ink); font-weight: 600; }

/* ───── Линейка моделей ───── */
.models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.model {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.3s;
}
.model:hover { border-color: var(--line-strong); box-shadow: 0 16px 32px -20px rgba(15, 23, 36, 0.3); }
.model__img { background: var(--stage); aspect-ratio: 4 / 3.3; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.model__img img { width: 88%; mix-blend-mode: multiply; }
.model__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.model__name { font-size: 1.125rem; font-weight: 650; }
.model__name a { text-decoration: none; }
.model__name a:hover { color: var(--brand-ink); }
.model__spec { font-size: 0.875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.model__foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ───── Как работаем ───── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { padding: 24px 28px 0 0; border-top: 1px solid var(--line); position: relative; }
.step + .step { padding-left: 28px; }
.step__n { color: var(--brand-ink); font-variant-numeric: tabular-nums; margin-right: 0.5em; }
.step h3 { font-size: 1.25rem; margin: 0 0 8px; }
.step p { color: var(--ink-2); font-size: 0.9375rem; }

/* ───── Документы и письма ───── */
.proof { display: grid; gap: clamp(40px, 5vw, 64px); }
.proof__text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.proof__text h2 { grid-column: 1; }
.proof__text > p { grid-column: 1; margin-top: 0; }
.proof__text .proof__quote { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
.proof h2 { font-size: var(--fs-h2); }
.proof__text p { margin-top: 20px; color: var(--ink-2); max-width: 44ch; }
.proof__quote { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.proof__quote blockquote { margin: 0; font-size: 1.125rem; line-height: 1.5; }
.proof__quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 0.875rem; color: var(--ink-2); }
.proof__quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; }
.proof__quote figcaption b { display: block; color: var(--ink); font-weight: 600; }

.docs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.doc { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.doc__paper {
  aspect-ratio: 1 / 1.414; background: #fff; border: 1px solid var(--line); border-radius: 2px;
  overflow: hidden; box-shadow: 0 2px 4px rgba(15, 23, 36, 0.05), 0 12px 24px -16px rgba(15, 23, 36, 0.25);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.doc__paper img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc:hover .doc__paper { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(15, 23, 36, 0.05), 0 24px 32px -16px rgba(15, 23, 36, 0.3); }
.doc b { font-weight: 600; font-size: 0.9375rem; line-height: 1.35; display: block; }
.doc span { font-size: 0.8125rem; color: var(--ink-3); }

/* ───── Форма КП ───── */
.kp { background: var(--night); color: #fff; }
.kp__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); }
.kp h2 { font-size: var(--fs-h2); }
.kp__lead { margin-top: 20px; color: var(--night-ink); max-width: 42ch; font-size: var(--fs-lead); }
.kp__contacts { margin-top: 40px; display: grid; gap: 20px; }
.kp__contacts a { text-decoration: none; font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.kp__contacts a:hover { color: #a6e3f7; }
.kp__contacts span { display: block; font-size: 0.875rem; color: var(--night-ink); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; color: var(--night-ink); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--night-2); border: 1px solid #808080; border-radius: var(--radius); color: #fff;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #d0d0d0; }
.field input:hover, .field textarea:hover { border-color: #959595; }
.field input:focus, .field textarea:focus { outline: none; border-color: #33b8e4; background: #707070; }
.field input[aria-invalid='true'] { border-color: #ff8a7a; }
.field__error { font-size: 0.8125rem; color: #ffb4a8; min-height: 1em; }

.picked { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.picked:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 12px; border-radius: 3px; background: #22304a; font-size: 0.875rem; font-weight: 500;
}
.chip button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 2px; background: none; color: var(--night-ink); cursor: pointer; }
.chip button:hover { background: #7a7a7a; color: #fff; }
.chip .icon { width: 14px; height: 14px; }

.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form__note { font-size: 0.8125rem; color: #d0d0d0; max-width: 44ch; }
.form__done { grid-column: 1 / -1; display: none; padding: 28px; border: 1px solid #2f6b4c; border-radius: var(--radius); background: #12301f; }
.form__done b { display: block; font-size: 1.25rem; margin-bottom: 6px; }
.form.is-sent > :not(.form__done) { display: none; }
.form.is-sent .form__done { display: block; animation: rise 0.6s var(--ease) both; }

/* ───── Подвал ───── */
.footer { background: var(--night); color: var(--night-ink); border-top: 1px solid #6c6c6c; font-size: 0.9375rem; }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 56px 40px; }
.footer h4 { color: #fff; font-size: 0.9375rem; font-weight: 600; margin-bottom: 14px; }
.footer li { padding: 3px 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .logo__name { color: #fff; }
.footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid #6c6c6c; font-size: 0.8125rem; color: #d0d0d0; }

/* ───── Страница категории ───── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 24px; font-size: 0.875rem; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }

.cat-head { padding-block: 24px 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; }
.cat-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; }
.cat-head p { margin-top: 16px; color: var(--ink-2); max-width: 62ch; font-size: 1.0625rem; }

.subnav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.subnav a {
  flex: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.9375rem; text-decoration: none; white-space: nowrap; transition: border-color 0.2s;
}
.subnav a:hover { border-color: var(--ink); }
.subnav a[aria-current='page'] { background: var(--ink); border-color: var(--ink); color: #fff; }

.toolbar {
  position: sticky; top: 72px; z-index: 20; background: rgba(255, 255, 255, 0.96);
  border-block: 1px solid var(--line); backdrop-filter: blur(8px);
}
.toolbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; }
.seg { display: inline-flex; padding: 3px; background: var(--stage); border-radius: 6px; }
.seg button {
  min-height: 38px; padding: 0 16px; border: 0; border-radius: var(--radius); background: none;
  font-weight: 500; font-size: 0.9375rem; color: var(--ink-2); cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 36, 0.12); }
.toolbar__count { font-size: 0.9375rem; color: var(--ink-3); }

.plist { display: grid; gap: 16px; padding-block: 32px 16px; }
.prod {
  display: grid; grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr) minmax(220px, 0.75fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color 0.2s;
}
.prod:hover { border-color: var(--line-strong); }
.prod__img { background: var(--stage); display: grid; place-items: center; padding: 16px; border-radius: var(--radius) 0 0 var(--radius); }
.prod__img img { mix-blend-mode: multiply; width: 100%; max-width: 340px; }
.prod__main { padding: 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.prod__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.prod h2 { font-size: 1.625rem; }
.prod__type { color: var(--ink-2); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.keys dt { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.3; }
.keys dd { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.prod__side { padding: 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.prod__price { font-size: 0.875rem; color: var(--ink-3); }
.prod__price b { display: block; font-size: 1.25rem; color: var(--ink); font-weight: 650; }
.prod__side .btn { width: 100%; }
.prod__side .btn.is-picked { background: var(--ok); }

.more { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.more summary {
  list-style: none; display: flex; align-items: center; gap: 8px; padding: 16px 32px;
  font-weight: 600; color: var(--brand-ink); cursor: pointer; user-select: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { background: #fafbfc; }
.more summary .icon { transition: transform 0.3s var(--ease); }
.more[open] summary .icon { transform: rotate(180deg); }
.more__body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; padding: 8px 32px 32px; }
.more__body figure { margin: 0; }
.more__body figure img { border: 1px solid var(--line); border-radius: var(--radius); }
.more__body figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-3); }

.spec { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.spec th, .spec td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { font-weight: 400; color: var(--ink-2); padding-right: 24px; width: 55%; }
.spec td { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Сравнение */
.compare-wrap { padding-block: 32px 16px; overflow-x: auto; }
.compare { border-collapse: separate; border-spacing: 0; min-width: 880px; width: 100%; font-size: 0.9375rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; }
.compare thead th { vertical-align: bottom; border-bottom: 1px solid var(--line-strong); }

.compare thead b { display: block; font-size: 1rem; font-weight: 600; }
.compare tbody th { font-weight: 400; color: var(--ink-2); position: sticky; left: 0; background: #fff; min-width: 200px; }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: #f7f9fb; }
.compare .best { color: var(--ok); font-weight: 650; }
.compare tfoot td { border: 0; padding-top: 16px; }

.integr { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.integr h2 { font-size: var(--fs-h2); }
.integr p { margin-top: 18px; color: var(--ink-2); max-width: 52ch; }
.integr ul { margin-top: 24px; display: grid; gap: 10px; }
.integr li { display: flex; gap: 10px; }
.integr li .icon { color: var(--ok); margin-top: 2px; }
.integr__fig img { background: var(--stage); mix-blend-mode: multiply; border-radius: var(--radius); }
.integr__fig figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--ink-2); }
.more__aside { display: grid; gap: 20px; align-content: start; }
.files { display: grid; gap: 8px; }
.files a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 500; transition: border-color 0.2s; }
.files a:hover { border-color: var(--brand); color: var(--brand-ink); }
.files .icon { color: var(--brand); }
.files small { display: block; font-size: 0.8125rem; color: var(--ink-3); font-weight: 400; }

.siblings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sib { display: flex; flex-direction: column; background: var(--stage); border-radius: var(--radius); text-decoration: none; overflow: hidden; transition: background-color 0.2s; }
.sib:hover { background: var(--stage-2); }
.sib img { mix-blend-mode: multiply; width: 100%; height: 180px; object-fit: contain; margin-top: 12px; }
.sib b { padding: 16px 20px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sib .icon { color: var(--brand); }

[hidden] { display: none !important; }

/* Плавное появление */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───── Адаптив ───── */
@media (max-width: 1140px) {
  .nav { display: none; }
  .header__burger { display: inline-flex; }
  .header .wrap { gap: 16px; }
  .header__cta { margin-left: auto; }
  .models { grid-template-columns: repeat(2, 1fr); }
  .prod { grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.6fr); }
  .prod__side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; align-items: center; flex-wrap: wrap; }
  .prod__side .btn { width: auto; }
  .prod__price { margin-right: auto; }
  .mega .wrap { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid, .kp__grid, .integr, .proof__text { grid-template-columns: 1fr; }
  .proof__text .proof__quote { grid-column: 1; grid-row: auto; }
  .docs { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { max-width: 16ch; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cat--xl { grid-column: 1 / -1; grid-row: auto; min-height: 460px; }
  .cat--l { grid-column: 1 / -1; }
  .cat--m { grid-column: span 6; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .step:nth-child(3) { padding-left: 0; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .siblings { grid-template-columns: 1fr 1fr; }
  .cat-head { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: start; }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .header .wrap { min-height: 64px; }
  .toolbar { position: static; }
  .toolbar .wrap { padding-block: 12px; }
  html { scroll-padding-top: 76px; }
  .logo__desc, .header__phone span { display: none; }
  .header__phone { display: none; }
  .header__cta { display: none; }
  .header__tel { display: inline-flex; margin-left: auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__tag { padding: 16px; }
  .hero__specs { gap: 16px; }
  .facts { grid-template-columns: 1fr; gap: 8px; }
  .facts li { grid-template-columns: auto minmax(0, 1fr); padding: 12px 14px; }
  .cat--m { grid-column: 1 / -1; min-height: 0; }
  .cat--xl { min-height: 400px; }
  .cat--l { flex-direction: column; }
  .cat--l .cat__img { width: 60%; align-self: center; }
  .models { grid-template-columns: 1fr 1fr; gap: 10px; }
  .model__body { padding: 14px; }
  .model__foot { flex-direction: column; align-items: stretch; }
  .model__foot .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; padding-right: 0; }
  .docs { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .prod { grid-template-columns: 1fr; }
  .prod__img { border-radius: var(--radius) var(--radius) 0 0; }
  .prod__img img { max-width: 280px; }
  .prod__main { padding: 20px; }
  .prod__side { padding: 20px; }
  .prod__side .btn { width: 100%; }
  .keys { grid-template-columns: 1fr 1fr; }
  .more summary { padding: 16px 20px; }
  .more__body { grid-template-columns: 1fr; padding: 4px 20px 24px; }
  .siblings { grid-template-columns: 1fr 1fr; gap: 10px; }
}


/* Мобильное меню */
.drawer {
  position: fixed; inset: 64px 0 0; z-index: 60; background: #fff; overflow-y: auto;
  padding: 16px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.3s var(--ease); }
.drawer h3 { font-size: 0.8125rem; color: var(--ink-3); font-weight: 500; margin: 24px 0 8px; }
.drawer a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.0625rem; font-weight: 500; }
.drawer .btn { margin-top: 24px; width: 100%; }
@media (min-width: 641px) { .drawer { inset: 73px 0 0; } }

/* ───────────── Дополнения темы WordPress ───────────── */

/* Нет фото товара */
.noimg {
  display: grid; place-items: center; gap: 8px; width: 100%; aspect-ratio: 4 / 3.3;
  color: var(--ink-3); font-size: 0.875rem; text-align: center;
}
.noimg .icon { width: 32px; height: 32px; stroke-width: 1.25; }
.prod__img .noimg, .model__img .noimg { aspect-ratio: auto; min-height: 200px; }
.prod h2 a, .pd h1 a { text-decoration: none; }
.prod h2 a:hover { color: var(--brand-ink); }
.prod__img img { height: auto; }
.model__img img { height: auto; }

/* Ошибка отправки формы */
.form__fail { grid-column: 1 / -1; padding: 20px 24px; border: 1px solid #7a3a33; border-radius: var(--radius); background: #2d1715; }
.form__fail b { display: block; margin-bottom: 4px; }
.form__fail a { color: #fff; }

/* Текст страниц */
.prose { max-width: 72ch; color: var(--ink); font-size: 1.0625rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-h3); margin-top: 1.8em; }
.prose h3 { font-size: 1.125rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--brand-ink); text-underline-offset: 0.2em; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); padding-block: 24px clamp(64px, 9vw, 120px); }
.page-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; }
.page-lead { margin-top: 16px; font-size: var(--fs-lead); color: var(--ink-2); max-width: 60ch; }
.page-body .prose { margin-top: 32px; }
.page-aside { align-self: start; position: sticky; top: 96px; }
.page-aside h2 { font-size: 0.875rem; color: var(--ink-3); font-weight: 500; margin-bottom: 8px; }
.page-aside a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.page-aside a:hover { color: var(--brand-ink); }
.page-aside .icon { color: var(--brand); width: 1em; height: 1em; }

.empty { padding-block: 48px; color: var(--ink-2); font-size: 1.0625rem; }
.notfound { padding-block: clamp(64px, 10vw, 140px); }
.notfound h1 { font-size: var(--fs-h2); }
.notfound p { margin-top: 16px; color: var(--ink-2); max-width: 52ch; }
.plain-list { display: grid; gap: 12px; padding-block: 32px 80px; }
.docs-page .docs { grid-template-columns: repeat(4, 1fr); padding-bottom: 32px; }

/* Страница товара */
.pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: 24px clamp(48px, 7vw, 88px); align-items: start; }
.pd__stage { background: var(--stage); border-radius: var(--radius); aspect-ratio: 1 / 0.9; display: grid; place-items: center; overflow: hidden; }
.pd__stage img { width: 90%; height: 90%; object-fit: contain; mix-blend-mode: multiply; }
.pd__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pd__thumbs button { flex: none; width: 80px; height: 80px; padding: 4px; border: 1px solid transparent; border-radius: var(--radius); background: var(--stage); cursor: pointer; transition: border-color 0.2s; }
.pd__thumbs button:hover { border-color: var(--line-strong); }
.pd__thumbs button[aria-pressed='true'] { border-color: var(--ink); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd__info { display: flex; flex-direction: column; gap: 12px; }
.pd h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; }
.pd__type { color: var(--ink-2); }
.pd__lead { font-size: 1.0625rem; max-width: 52ch; }
.pd__buy { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-top: 12px; padding: 20px 0; border-block: 1px solid var(--line); }
.pd__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pd__actions .btn.is-picked { background: var(--ok); }
.pd .files { margin-top: 8px; }
.pd-specs__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pd-specs h2 { font-size: var(--fs-h3); margin-bottom: 16px; }
.pd-specs .spec { background: transparent; }
.pd-specs__drawing img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pd-specs__drawing figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-3); }
.pd-specs .prose { margin-top: 24px; font-size: 1rem; }


.compare thead a { text-decoration: none; }
.compare thead a:hover { color: var(--brand-ink); }
.also a { text-decoration: none; }
.also a:hover { color: var(--brand-ink); }
.cat__img { height: auto; }

@media (max-width: 900px) {
  .page-grid, .pd, .pd-specs__grid { grid-template-columns: minmax(0, 1fr); }
  .page-aside { position: static; }
  .docs-page .docs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .docs-page .docs { grid-template-columns: 1fr 1fr; }
  .pd__actions, .pd__actions .btn { width: 100%; }
}

/* Товар без фото — компактная строка */
.prod--noimg { grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr); }
.prod--noimg .prod__main { padding-block: 22px; }
.prod__kind { font-size: 0.8125rem; color: var(--ink-3); }
@media (max-width: 1140px) {
  .prod--noimg { grid-template-columns: 1fr; }
  .prod--noimg .prod__side { grid-column: auto; }
}

/* ───── Правки 23.10 ───── */
/* Шапка раздела: воздух между заголовком, подразделами и панелью */
.cat-head { padding-block: 24px 32px; }
.subnav { margin-bottom: 40px; }
.toolbar { border-block: 0; border-bottom: 1px solid transparent; transition: box-shadow 0.2s, border-color 0.2s; }
.toolbar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 20px -16px rgba(15, 23, 36, 0.35); }
.toolbar-sentinel { height: 1px; }

/* Одна зелёная плашка «В запросе» с крестиком */
.kp-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  min-height: 48px; padding: 0 6px 0 16px; border-radius: var(--radius);
  background: var(--ok); color: #fff; font-weight: 600;
}
.kp-pill span { display: inline-flex; align-items: center; gap: 8px; }
.kp-pill button {
  display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 3px;
  background: transparent; color: #fff; cursor: pointer; transition: background-color 0.2s;
}
.kp-pill button:hover { background: rgba(255, 255, 255, 0.18); }
.kp-pill .icon { width: 18px; height: 18px; }
.pd__actions .kp-pill { width: auto; flex: 1 1 220px; }

/* Шаги заказа: иконки и линия «от заявки до поставки» */
.step__icon { display: none; }
.steps__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.steps__track::before {
  content: ''; position: absolute; left: 28px; right: 6px; top: 50%; height: 2px;
  background: var(--line); transform: translateY(-50%);
}
.steps__track::after {
  content: ''; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px;
  border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong);
  transform: translateY(-50%) rotate(45deg);
}
.steps__node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: #fff; border: 1.5px solid var(--brand); color: var(--brand);
}
.steps__track > .steps__node + .steps__node { margin-left: 28px; }
.steps__node:last-child { background: var(--brand); color: #fff; }
.steps__node .icon { width: 24px; height: 24px; }

/* Сравнение: фото на серой подложке */
.compare__img {
  display: grid; place-items: center; width: 120px; height: 100px; margin-bottom: 10px;
  background: var(--stage); border-radius: var(--radius);
}
.compare__img img { max-width: 90%; max-height: 90%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.compare thead th { font-weight: 500; }

/* Подразделы карточками с фото */
.subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding-bottom: clamp(48px, 7vw, 88px); }
.subcat {
  display: flex; flex-direction: column; border-radius: var(--radius); background: var(--stage);
  text-decoration: none; overflow: hidden; transition: background-color 0.25s;
}
.subcat:hover { background: var(--stage-2); }
.subcat__img { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 16px; color: var(--ink-3); }
.subcat__img img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  mix-blend-mode: multiply; transition: transform 0.6s var(--ease);
}
.subcat:hover .subcat__img img { transform: scale(1.04); }
.subcat__img .icon { width: 36px; height: 36px; stroke-width: 1.25; }
.subcat__body { display: grid; gap: 4px; padding: 0 20px 20px; }
.subcat__body b { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.subcat__body b .icon { color: var(--brand); flex: none; transition: transform 0.25s var(--ease); }
.subcat:hover .subcat__body b .icon { transform: translateX(3px); }
.subcat__body span { font-size: 0.875rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .steps__track { display: none; }
  .step__icon {
    display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
    border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand);
  }
  .step__icon .icon { width: 20px; height: 20px; }
}
@media (max-width: 640px) {
  .subcats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .subcat__body { padding: 0 14px 14px; }
  .subcat__body b { font-size: 0.9375rem; }
}

/* ───── Правки 23.10, вторая партия: единый масштаб фото ───── */
.prod__img { min-height: 320px; }
.prod__img img { width: auto; height: auto; max-width: 86%; max-height: 290px; object-fit: contain; }
.model__img { aspect-ratio: auto; height: 240px; }
.model__img img { width: auto; height: auto; max-width: 82%; max-height: 196px; object-fit: contain; }
.compare__img img { max-width: 104px; max-height: 86px; }
.subcat__img { aspect-ratio: auto; height: 230px; }
.subcat__img img { max-width: 86%; max-height: 196px; }
.subcat__body { align-content: start; }
.subcat__body b { align-items: flex-start; }
.subcat__body b .icon { margin-top: 3px; }
.cat__img { width: auto; height: auto; object-fit: contain; }
.cat--xl .cat__img { max-width: 82%; max-height: 400px; }
.cat--l .cat__img { max-height: 230px; }
.hero__stage img { width: auto; max-width: 84%; max-height: 440px; }
.sib img { height: 180px; }
@media (max-width: 640px) {
  .prod__img { min-height: 240px; }
  .prod__img img { max-height: 220px; }
  .model__img { height: 170px; }
  .model__img img { max-height: 140px; }
  .subcat__img { height: 160px; }
  .subcat__img img { max-height: 132px; }
}

/* ───── Правки 24.10: размеры фото после обрезки полей ───── */
/* Главная: «Модели из каталога» — прежняя пропорция карточки, товар с воздухом вокруг */
.model__img { aspect-ratio: 4 / 3.3; height: auto; }
.model__img img { max-width: 72%; max-height: 180px; }
/* Главная: плитки каталога — турникет прежнего размера */
.cat--xl .cat__img { max-width: 56%; max-height: 330px; margin-bottom: 32px; }
.cat--l .cat__img { max-width: 40%; max-height: 200px; margin: 0 20px 20px 0; }
.hero__stage img { max-width: 76%; max-height: 380px; }
/* Подразделы: одна высота рамки, фото по центру */
.subcat__img { height: 230px; aspect-ratio: auto; }
.subcat__img img { max-width: 78%; max-height: 180px; }
/* Узкие высокие предметы (ручные металлоискатели) — вдвое ниже */
.prod__img.is-slim img { max-height: 150px; }
.model__img.is-slim img { max-height: 110px; }
.subcat__img.is-slim img { max-height: 110px; }
.compare__img.is-slim img { max-height: 60px; }
@media (max-width: 640px) {
  .model__img img { max-height: 120px; }
  .subcat__img { height: 150px; }
  .subcat__img img { max-height: 115px; }
  .prod__img.is-slim img { max-height: 120px; }
  .cat--xl .cat__img { max-height: 240px; }
}
/* Главная: турникет в большой плитке — по центру, прежний масштаб */
.cat--xl .cat__img { max-width: 64%; max-height: 420px; margin: auto auto 28px; }
.model__img.is-slim img { max-height: 150px; }

/* ───── Правки 24.10 (2): масштаб высоких предметов ───── */
/* Карточки товаров: арочные металлодетекторы в 1,5 раза крупнее, все проекции одной высоты */
.prod__img { min-height: 330px; }
.prod__img.is-tall { min-height: 440px; }
.prod__img.is-tall img { max-height: 410px; max-width: 90%; }
/* Ручные металлоискатели — вдвое крупнее прежнего, одного размера */
.prod__img.is-slim { min-height: 330px; }
.prod__img.is-slim img { max-height: 300px; }
/* Подразделы: ручной металлоискатель одной высоты с арочным */
.subcat__img.is-slim img { max-height: 180px; }
/* Главная: арочный металлодетектор в плитке «Досмотр» на четверть крупнее */
.cat--l1 .cat__img { max-height: 250px; }
@media (max-width: 640px) {
  .prod__img.is-tall { min-height: 300px; }
  .prod__img.is-tall img { max-height: 280px; }
  .prod__img.is-slim img { max-height: 240px; }
  .subcat__img.is-slim img { max-height: 115px; }
}

/* Сравнение: фото в шапке таблицы по верхнему краю, название под ним */
.compare thead th { vertical-align: top; }

/* Сравнение: арочные в любой проекции одной высоты, ручные чуть ниже */
.compare__img { height: 120px; }
.compare__img img { max-height: 108px; }
.compare__img.is-tall img { max-height: 108px; max-width: 104px; }
.compare__img.is-slim img { max-height: 84px; }
/* Отступ после списка товаров до блока «Запросить КП» — как внутри секций */
.plist, .compare-wrap { padding-bottom: clamp(64px, 9vw, 120px); }

/* Фильтр типов: в одну строку, длинный — прокручивается */
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { white-space: nowrap; flex: none; }

/* ───── Поиск ───── */
.header__search { flex: none; }
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(15, 23, 36, 0.25);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.search-panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.3s var(--ease); }
.search-panel .wrap { display: block; min-height: 0; padding-block: 24px 28px; }
.search__form { position: relative; display: flex; gap: 8px; max-width: 760px; }
.search__form > .icon { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search__form input {
  flex: 1; min-width: 0; height: 48px; padding: 0 14px 0 44px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; font-size: 1.0625rem; color: var(--ink); background: #fff;
}
.search__form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.search__form .btn { height: 48px; }
.search__results { max-width: 760px; }
.search__results:empty { display: none; }
.search__list { display: grid; margin-top: 12px; }
.search__item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 8px 10px; border-radius: var(--radius); text-decoration: none; }
.search__item:hover, .search__item.is-active { background: var(--stage); }
.search__item img, .search__thumb { width: 48px; height: 48px; object-fit: contain; background: var(--stage); border-radius: var(--radius); mix-blend-mode: multiply; }
.search__item b { display: block; font-weight: 600; }
.search__item small { display: block; font-size: 0.875rem; color: var(--ink-3); }
.search__item .icon { width: 18px; height: 18px; color: var(--ink-3); }
.search__sections { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink-3); }
.search__sections a { color: var(--brand-ink); text-decoration: none; }
.search__sections a:hover { text-decoration: underline; }
.search__all { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--brand-ink); text-decoration: none; }
.search__all:hover { text-decoration: underline; }
.search__empty { margin-top: 14px; color: var(--ink-2); }

.search-page { padding-bottom: clamp(48px, 7vw, 96px); }
.search__form--page { margin-top: 24px; }
.search-page__sections { margin-top: 24px; }
.search-page__count { margin: 32px 0 16px; color: var(--ink-3); }
.search-page__empty { margin-top: 32px; max-width: 60ch; color: var(--ink-2); display: grid; gap: 8px; }
@media (max-width: 640px) {
  .search__form .btn { display: none; }
  .search__item { grid-template-columns: 40px 1fr; }
  .search__item > .icon { display: none; }
}

/* Шапка с кнопкой поиска: плотнее, меню прячется раньше */
.header .wrap { gap: 16px; }
.nav { gap: 0; }
.nav a, .nav button { padding: 10px 12px; }
@media (max-width: 1300px) {
  .nav, .mega { display: none; }
  .header__burger { display: inline-flex; }
  .header__search { margin-left: auto; }
}
@media (max-width: 640px) {
  .header .wrap { gap: 8px; }
  .logo { gap: 8px; }
  .logo__mark { width: 60px; height: 36px; }
  .logo__name { font-size: 1.0625rem; }
}

/* ───── Блок «Запросить КП»: светлые варианты (тёмный — только подвал) ───── */
.kp { background: var(--stage); color: var(--ink); }
.kp :focus-visible { outline-color: var(--brand); }
.kp__lead { color: var(--ink-2); }
.kp__contacts span { color: var(--ink-3); }
.kp__contacts a:hover { color: var(--brand-ink); }
.kp .field label { color: var(--ink-2); font-weight: 500; }
.kp .field input, .kp .field textarea { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.kp .field input::placeholder, .kp .field textarea::placeholder { color: var(--ink-3); }
.kp .field input:hover, .kp .field textarea:hover { border-color: var(--ink-3); }
.kp .field input:focus, .kp .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-tint); }
.kp .field__error { color: #c0392b; }
.kp .form__note { color: var(--ink-3); }
.kp .chip { background: var(--brand-tint); color: var(--ink); border-color: transparent; }
.kp .chip button { color: var(--ink-2); }
.kp .chip button:hover { background: rgba(15, 23, 36, 0.08); color: var(--ink); }
.kp .form__done { background: var(--ok-tint); border-color: #b7dfc8; color: var(--ink); }
.kp .form__fail { background: #fdecea; border-color: #f2c4bd; color: var(--ink); }
.kp .form__fail a { color: var(--brand-ink); }

/* A — карточка: шаги слева, форма в белой карточке */
.kp--a h2 { position: relative; padding-bottom: 20px; }
.kp--a h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: var(--brand); }
.kp__steps { list-style: none; margin-top: 36px; display: grid; gap: 0; counter-reset: st; max-width: 420px; }
.kp__steps li { position: relative; display: grid; padding: 0 0 22px 44px; counter-increment: st; }
.kp__steps li::before {
  content: counter(st); position: absolute; left: 0; top: -2px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1.5px solid var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 0.875rem;
}
.kp__steps li:not(:last-child)::after { content: ''; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1.5px; background: var(--line-strong); }
.kp__steps li:last-child::before { background: var(--brand); color: #fff; }
.kp__steps b { font-weight: 650; }
.kp__steps span { font-size: 0.9375rem; color: var(--ink-3); }
.kp--a .kp__contacts { margin-top: 20px; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; }
.kp--a .kp__contacts a { font-size: 1.0625rem; }
.kp--a .kp__panel { background: #fff; border-radius: 8px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 1px 2px rgba(15, 23, 36, 0.05), 0 24px 48px -28px rgba(15, 23, 36, 0.3); border-top: 4px solid var(--brand); align-self: start; }

@media (max-width: 900px) {
  .kp--a .kp__contacts { grid-template-columns: 1fr; gap: 16px; }
}

/* Вариант A — основной: белая подложка, форма — на тонированной карточке */
.kp--a { background: #fff; border-top: 1px solid var(--line); }
.kp--a .kp__panel { background: #eaf6fb; box-shadow: none; border-top: 4px solid var(--brand); }
.kp--a .kp__steps li::before { background: #fff; }
.kp--a .kp__steps li:last-child::before { background: var(--brand); }

/* ───── Документ в папке ───── */
.doc__folder { position: relative; aspect-ratio: 1 / 1.3; isolation: isolate; }
.doc__folder .doc__paper { position: absolute; z-index: 1; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.doc__back, .doc__front { position: absolute; pointer-events: none; }
.doc:hover .doc__folder .doc__paper { transform: translateY(-10px); }

/* A — папка с ярлычком: задняя стенка с ярлыком, документ, передний клапан */
.docs--a .doc__back { inset: 6% 0 0; z-index: 0; background: #bfe6f5; border-radius: 4px 6px 6px 6px; }
.docs--a .doc__back::before { content: ''; position: absolute; left: 0; top: -14px; width: 42%; height: 18px; background: #bfe6f5; border-radius: 6px 10px 0 0; }
.docs--a .doc__paper { left: 7%; right: 7%; top: 10%; aspect-ratio: auto; height: 80%; border-radius: 1px; }
.docs--a .doc__front {
  left: 0; right: 0; bottom: 0; height: 46%; z-index: 2; border-radius: 4px 4px 6px 6px;
  background: linear-gradient(180deg, #7fcfee 0%, #5cc2ea 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.6) inset, 0 -6px 14px -8px rgba(15, 23, 36, 0.35), 0 18px 28px -18px rgba(15, 23, 36, 0.4);
}
.docs--a .doc__front::after { content: ''; position: absolute; left: 50%; top: 14px; width: 36%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.55); transform: translateX(-50%); }

.docs--a .doc__front { height: 32%; background: linear-gradient(180deg, #a3dcf2 0%, #84d0ef 100%); }
.docs--a .doc__paper { height: 84%; }

/* ───── Правки 24.10: скругления, воздух, серая форма КП ───── */
:root { --radius-card: 24px; }
.logo__mark { width: 84px; height: 50px; }

/* Кнопки и метки — полностью круглые */
.btn, .kp-pill, .badge { border-radius: 999px; }
.badge { padding: 0.35em 0.8em; }

/* Фото и карточки — 24px */
.hero__stage, .cat, .model, .prod, .sib, .pd__stage, .subcat, .search__item { border-radius: var(--radius-card); }
.model__img { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.prod__img { border-radius: var(--radius-card) 0 0 var(--radius-card); }
@media (max-width: 640px) { .prod__img { border-radius: var(--radius-card) var(--radius-card) 0 0; } }

/* Главный экран: заголовок 48, подзаголовок 18 */
.hero h1 { font-size: clamp(2.125rem, 1.5rem + 2vw, 3rem); }
.hero__lead { font-size: 1.125rem; }

/* Отступ между блоками — 70 */
.section { padding-block: 70px; }

/* Форма КП: белый фон блока, серая карточка 24px, поля 4px, до подвала 140 */
.kp--a { border-top: 0; padding-bottom: 140px; }
.kp--a .kp__panel { background: var(--stage); border-radius: var(--radius-card); border-top: 0; }
.kp .field input, .kp .field textarea { border-radius: var(--radius); }
.kp__contacts a { white-space: nowrap; }

/* Документы: папка в серой гамме */
.docs--a .doc__back, .docs--a .doc__back::before { background: #dfe4e9; }
.docs--a .doc__front { background: linear-gradient(180deg, #cfd6dd 0%, #c3cbd3 100%); }
.docs--a .doc__front::after { background: rgba(255, 255, 255, 0.6); }
.docs--a .doc__back, .docs--a .doc__back::before { background: #d6dce2; }
.seg, .seg button { border-radius: 999px; }
/* Два белых блока подряд — между ними 70, а не 70 + 70 */
.section:not(.section--stage) + .section:not(.section--stage) { padding-top: 0; }
/* Папки документов — без теней, как всё на сайте */
.docs .doc__paper, .docs .doc__front, .doc:hover .doc__paper { box-shadow: none; }

/* ───── Правки 24.10 (2) ───── */
/* Крестик в «В запросе» — круглый */
.kp-pill { padding-right: 8px; }
.kp-pill button { border-radius: 50%; }

/* Выбранная модель в форме — белая с обводкой */
.kp .chip { background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 6px 5px 14px; }
.kp .chip button { border-radius: 50%; }

/* Строка каталога: фото скругляется только по углу карточки, ниже — строка «Все характеристики» */
.prod { overflow: hidden; }
.prod__img { border-radius: 0; }
@media (max-width: 640px) { .prod__img { border-radius: 0; } }

/* От карточек и текста страниц до формы КП: 70 + 70 */
.plist, .compare-wrap { padding-bottom: 70px; }
.page-grid { padding-bottom: 70px; }

/* «О компании»: цитата и фото директора справа */
.page-aside--director .proof__quote { margin-top: 0; }
.page-aside--director .proof__quote figcaption img { width: 64px; height: 64px; }
/* «Также поставляем» — без линии, ближе к карточкам */
.also { margin-top: 24px; padding-top: 0; border-top: 0; }

/* ───── Страница модели: характеристики сворачиваются, описание не ниже таблицы ───── */
.js .spec--fold:not(.is-open) tbody tr:nth-child(n+11) { display: none; }
.fold-btn {
  display: inline-flex; align-items: center; gap: 0.4em; margin-top: 16px; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 600; color: var(--brand-ink); cursor: pointer;
}
.fold-btn:hover { color: var(--ink); }
.fold-btn .icon { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.fold-btn[aria-expanded='true'] .icon { transform: rotate(180deg); }
.pd-specs__text.is-clamped { overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 72px), transparent); }

/* ───── Блок «ДВЛ-Гидропост» на главной ───── */
.section--gidro { margin-top: 30px; padding-bottom: 100px; } /* по 100px до документов и до формы КП */
.gidro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; overflow: hidden; border-radius: var(--radius-card); background: var(--stage); color: var(--ink); text-decoration: none; }
.gidro__label { margin: 0 0 10px; font-size: 0.875rem; font-weight: 600; color: var(--brand-ink); }
.gidro h2 { margin: 0 0 12px; }
.gidro__text > p:not(.gidro__label) { margin: 0; max-width: 56ch; color: var(--ink-2); }
.gidro__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.gidro__tags li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: 0.875rem; }
.gidro__img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
@media (width > 760px) {
  .gidro__img {
    height: auto;
    min-height: 0;
    align-self: stretch;
    object-fit: fill;
    clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%);
  }
}
.gidro__text { padding: clamp(28px, 4vw, 56px); }
.gidro__go { margin-top: 28px; white-space: nowrap; }
@media (max-width: 760px) { .gidro { grid-template-columns: 1fr; } .gidro__img { min-height: 0; aspect-ratio: 4 / 3; } }

/* ───── Мобильное меню: группы раскрываются по нажатию ───── */
.drawer { padding-top: 8px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 0; font-size: 1.125rem; font-weight: 600; cursor: pointer; list-style: none;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .icon { color: var(--ink-3); transition: transform 0.2s var(--ease); }
.drawer details[open] summary .icon { transform: rotate(180deg); }
.drawer details[open] { padding-bottom: 8px; }
.drawer details a { padding-left: 14px; font-size: 1rem; }
.drawer details a:last-child { border-bottom: 0; }
/* кнопка: у ссылок меню свои отступы и display — возвращаем кнопочные */
.drawer > .btn { display: flex; padding: 0 1.4em; border-bottom: 1px solid transparent; margin-top: 28px; }

/* ───── Телефон: плашка «В наличии» по ширине текста, сравнение без левой колонки ───── */
.compare__lab { display: none; }
@media (max-width: 640px) {
  .model__foot .badge { align-self: flex-start; }

  .compare { min-width: 0; width: auto; }
  .compare thead th:first-child, .compare tfoot td:first-child, .compare tbody tr:not(.compare__lab) > th { display: none; }
  .compare__lab { display: table-row; }
  .compare tbody .compare__lab th {
    position: static; min-width: 0; padding: 14px 0 2px; border-bottom: 0; background: none;
    font-size: 0.8125rem; font-weight: 500; color: var(--ink-3);
  }
  .compare__lab span { display: inline-block; position: sticky; left: 0; }
  .compare thead th { min-width: 44vw; max-width: 44vw; padding: 0 16px 12px 0; }
  .compare td { min-width: 44vw; max-width: 44vw; padding: 2px 16px 12px 0; }
  .compare tbody tr:hover td { background: none; }
}

/* ───── Телефон: ничего не вылезает вправо ───── */
/* карточки моделей не шире своей колонки (длинные названия переносятся) */
.models, .siblings { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.model { min-width: 0; }
.model__name, .model__spec { overflow-wrap: anywhere; }
@media (max-width: 1140px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .siblings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* широкие таблицы в текстах страниц прокручиваются внутри себя */
@media (max-width: 640px) {
  .prose table { display: block; max-width: 100%; overflow-x: auto; }
}
@media (max-width: 900px) { .page-grid { grid-template-columns: minmax(0, 1fr); } }

/* ═════ Правки по аудиту Impeccable (тема «ДВЛ-Пост — правки») ═════ */

/* Контраст: голубой логотипа остаётся акцентом, кнопки — на самом тёмном голубом логотипа, текст ссылок — на тёмном голубом */
:root {
  --brand-btn: #2a9fc6;       /* голубой овала логотипа — выбор заказчика; белый текст 3.1:1 */
  --brand-btn-hover: #2390b5;
  --brand-ink: #0a73a1;  /* ссылки: 5.3:1 на белом, 4.7:1 на сером */
  --focus: #0a73a1;
  --ink-3: #5d6678;      /* подписи: 5:1 и на сером */
  --ok: #0f7040;         /* «В наличии»: 5.4:1 на зелёной плашке */
  --field-line: #7d8696; /* рамка поля: 3.2:1 и на сером */
}
.btn--primary { background: var(--brand-btn); }
.btn--primary:hover { background: var(--brand-btn-hover); }
.steps__node:last-child { background: var(--brand-btn); border-color: var(--brand-btn); }
.kp__steps li:last-child::before, .kp--a .kp__steps li:last-child::before { background: var(--brand-btn); color: #fff; }

/* Фокус с клавиатуры виден на белом и на сером */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.kp :focus-visible { outline-color: var(--focus); }
.footer :focus-visible { outline-color: #fff; }
.search__form input:focus, .kp .field input:focus, .kp .field textarea:focus { border-color: var(--focus); }

/* Рамки полей формы различимы */
.kp .field input, .kp .field textarea, .search__form input { border-color: var(--field-line); }

/* «К содержанию» появляется при нажатии Tab */
a.sr-only:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none;
}

/* Заголовки: в подвале и поиске теперь h2, в мега-меню — не заголовки */
.footer__h { color: #fff; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.mega__h { font-size: 1rem; font-weight: 650; margin-bottom: 12px; }
.mega__h a { text-decoration: none; }
.mega__h a:hover { color: var(--brand-ink); }
h2.search-page__count { font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }

/* Нажимаемые зоны не меньше 44px */
.btn--sm { min-height: 44px; }
.header__search, .header__tel, .header__burger { min-width: 44px; min-height: 44px; }
.footer li { padding: 0; }
.footer li a { display: inline-block; padding: 8px 0; }

/* Счётчик моделей в запросе */
.kp-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 8px; padding: 0 6px;
  border-radius: 999px; background: #fff; color: var(--brand-ink); font-size: 0.8125rem; font-weight: 700;
}
.kp-count[hidden] { display: none; }

/* Нижняя панель КП — только на телефоне */
.kp-bar { display: none; }
@media (max-width: 640px) {
  .kp-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
    transition: transform 0.25s var(--ease);
  }
  .kp-bar .btn--primary { flex: 1; }
  .kp-bar__tel { width: 48px; padding: 0; flex: none; }
  .kp-bar.is-off { transform: translateY(110%); visibility: hidden; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .drawer { z-index: 70; }
}

/* Документы на главной: две подписанные группы — свои документы и письма заказчиков */
.docs__label { margin: 0; font-size: 0.875rem; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.docs-union { display: grid; align-items: center; grid-template-columns: clamp(72px, 14vw, 144px) minmax(0, 1fr); gap: 20px; padding: clamp(16px, 3vw, 28px); margin-top: 40px; background: var(--stage); border-radius: var(--radius); }
.docs-union h2 { font-size: var(--fs-h3); }
.docs-union p { margin-top: 6px; color: var(--ink-2); }
.docs--grouped .docs__label--own { grid-row: 1; grid-column: 1 / span var(--own); }
.docs--grouped .docs__label--letters { grid-row: 1; grid-column: calc(var(--own) + 1) / -1; }
@media (width > 1140px) {
  .docs--grouped {
    grid-template-columns: repeat(var(--own), minmax(0, 1fr)) 0 repeat(calc(5 - var(--own)), minmax(0, 1fr));
  }
  .docs--grouped::before {
    content: "";
    grid-row: 2;
    grid-column: calc(var(--own) + 1);
  }
  .docs--grouped .docs__label--letters { grid-column-start: calc(var(--own) + 2); }
  .docs--grouped .doc { grid-row: 2; }
}
@media (max-width: 1140px) {
  .docs--grouped .docs__label { grid-row: auto; grid-column: 1 / -1; }
  .docs--grouped .doc { order: 1; }
  .docs--grouped .docs__label--letters { order: 2; margin-top: 12px; }
  .docs--grouped .doc--letter { order: 3; }
}

/* Сравнение на телефоне: шапка с моделями компактнее — названия ближе к цифрам */
@media (max-width: 640px) {
  .compare__img { width: 96px; height: 80px; }
  .compare__img img, .compare__img.is-tall img { max-height: 70px; max-width: 84px; }
}

/* «О компании»: партнёры и поставщики по направлениям */
.partners, .bank { margin-top: 48px; }
.partners h2, .bank h2 { font-size: var(--fs-h3); margin-bottom: 8px; }
.partners__group { margin-top: 24px; }
.partners__group h3 { font-size: 0.875rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-bottom: 10px; }
.partners__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.partners__list li { padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.partners__list b { display: block; font-weight: 600; }
.partners__list a { text-decoration: none; }
.partners__list a:hover b { color: var(--brand-ink); }
.partners__list span { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--ink-2); }

/* «Контакты»: банковские реквизиты — подпись и значение, как в карточке товара */
.bank .spec td { overflow-wrap: anywhere; }
.bank .spec th { width: 55%; }
/* Подпись строки в таблицах текста (реквизиты) — как в банковских реквизитах: обычный вес, серый */
.prose .spec tbody th { font-weight: 400; color: var(--ink-2); width: 55%; }
/* Банковские реквизиты — той же ширины и кегля, что таблица «Реквизиты» в тексте */
.bank { max-width: 72ch; font-size: 1.0625rem; }
.bank .spec { font-size: 0.9375rem; }

/* ───── Выбор моделей для сравнения ───── */
.cmp-pick {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none;
}
.cmp-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cmp-pick__box {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none;
  border: 1.5px solid var(--field-line); border-radius: 6px; background: #fff; color: #fff;
  transition: background-color 0.15s, border-color 0.15s;
}
.cmp-pick__box .icon { width: 16px; height: 16px; stroke-width: 2.5; opacity: 0; transition: opacity 0.15s; }
.cmp-pick:hover { color: var(--ink); }
.cmp-pick:hover .cmp-pick__box { border-color: var(--ink-2); }
.cmp-pick input:checked + .cmp-pick__box { background: var(--brand-btn); border-color: var(--brand-btn); }
.cmp-pick input:checked + .cmp-pick__box .icon { opacity: 1; }
.cmp-pick:has(input:checked) { color: var(--ink); }
.cmp-pick input:focus-visible + .cmp-pick__box { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Счётчик на кнопке «Сравнение» */
.seg__count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px;
  border-radius: 999px; background: var(--brand-btn); color: var(--ink); font-size: 0.75rem; font-weight: 700;
}
.seg__count[hidden] { display: none; }

/* Пока выбрано меньше двух моделей */
.compare-empty {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding: 24px 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius-card); background: var(--stage);
}
.compare-empty[hidden] { display: none; }
.compare-empty p { color: var(--ink-2); max-width: 56ch; }
.compare-empty b { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 4px; }
.compare[hidden] { display: none; }

/* Телефон: логотип по высоте кнопок шапки (поиск, звонок, меню — 44px) */
@media (max-width: 640px) {
  .logo__mark { width: auto; height: 44px; aspect-ratio: 192 / 115; }
}

/* Цифра в кружках-счётчиках — ровно по центру (у Golos цифры сидят выше при обычной высоте строки) */
.seg__count, .kp-count { display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding-top: 1px; }
.seg__count[hidden], .kp-count[hidden] { display: none; }

.heading-accent { color: var(--brand-btn); }

/* Homepage checkpoint composition */
.hero--checkpoint { padding-top: 0; }
.hero__banner {
  position: relative;
  isolation: isolate;
  background: #fff;
}
.hero__banner-inner {
  min-height: clamp(400px, 37vw, 590px);
  display: flex;
  align-items: center;
}
.hero__copy { width: 43%; padding-block: 54px; }
.hero--checkpoint h1 { max-width: 13ch; font-size: clamp(2.3rem, 4vw, 4.4rem); line-height: 1.03; }
.hero--checkpoint h1::after {
  content: "";
  display: block;
  width: 52px;
  height: 5px;
  background: var(--brand);
  margin-top: 22px;
}
.hero--checkpoint .hero__lead { max-width: 29ch; margin-top: 18px; }
.hero--checkpoint .hero__actions { margin-top: 28px; }
.hero__photo {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: -1;
  container-type: size;
}
.hero__photo-crop, .hero__foreground { position: absolute; inset: 0; }
.hero__photo-crop { clip-path: polygon(48% 0, 100% 0, 100% 100%, 0 100%); }
.hero__foreground { display: none; }
.hero__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 66% 50%;
}
@media (max-width: 800px) {
  .hero__banner { display: flex; flex-direction: column; }
  .hero__banner-inner { min-height: 0; }
  .hero__copy { width: 100%; padding-block: 36px 24px; }
  .hero--checkpoint h1 { max-width: 17ch; }
  .hero__photo {
    position: relative;
    inset: auto;
    order: 1;
    z-index: auto;
    height: clamp(235px, 55vw, 400px);
    clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
  }
}


@media (min-width: 1000px) {
  .hero__banner-inner { min-height: max(clamp(400px, 37vw, 590px), 32vw); }
  .hero__photo { inset-inline-start: 36%; overflow: clip; }
  .hero__photo-crop {
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
  }
  .hero__photo img {
    position: absolute;
    bottom: -1.5%;
    left: 0;
    width: clamp(176cqh, 112%, 202cqh);
    max-width: none;
    height: auto;
  }
  .hero__foreground { display: block; }
  .hero__foreground .hero__arch {
    clip-path: polygon(16.746% 31.610%, 16.994% 30.341%, 17.850% 30.146%, 19.088% 30.829%, 20.000% 31.610%, 31.792% 31.610%, 32.117% 30.244%, 33.225% 30.146%, 34.202% 31.415%, 34.397% 32.000%, 34.332% 92.585%, 33.811% 95.024%, 33.225% 95.805%, 31.922% 95.805%, 31.857% 35.707%, 20.000% 35.707%, 20.065% 92.195%, 18.502% 94.732%, 17.590% 95.707%, 16.746% 95.707%);
  }
  .hero__foreground .hero__pedestal {
    clip-path: polygon(8.664% 73.854%, 12.964% 71.415%, 16.547% 71.512%, 16.547% 93.951%, 14.723% 96.195%, 8.664% 96.195%);
  }
}
@media (max-width: 800px) {
  .hero__photo-crop { clip-path: none; }
}


/* Homepage catalog layout previews */
#catalog :is(.cats--tiles, .cats--rows, .cats--showcase, .cats--index, .cats--featured) .cat {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  flex-direction: column;
}
#catalog :is(.cats--tiles, .cats--rows, .cats--showcase, .cats--index, .cats--featured) .cat__body {
  flex: initial;
  padding: 20px;
}
#catalog :is(.cats--tiles, .cats--rows, .cats--showcase, .cats--featured) .cat__img {
  width: 76%;
  height: 158px;
  max-width: none;
  max-height: none;
  margin: auto auto 12px;
  align-self: center;
  object-fit: contain;
}
#catalog :is(.cats--tiles, .cats--showcase, .cats--index, .cats--featured) :is(.cat__list, .cat__subs) { display: none; }
#catalog :is(.cats--tiles, .cats--showcase, .cats--index, .cats--featured) .cat { min-height: 84px; }
#catalog :is(.cats--tiles, .cats--showcase, .cats--featured) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#catalog .cats--tiles .cat { background: var(--stage); }
#catalog .cats--tiles .cat:hover { background: var(--stage-2); }

#catalog .cats--rows { grid-template-columns: 1fr; gap: 10px; }
#catalog .cats--rows .cat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
}
#catalog .cats--rows .cat:hover { border-color: var(--brand-ink); }
#catalog .cats--rows .cat__img { height: 68px; margin: 8px auto; }

#catalog .cats--showcase .cat:has(.cat__img) { position: relative; padding-top: 166px; }
#catalog .cats--showcase .cat__img { position: absolute; top: 12px; left: 12%; margin: 0; height: 145px; }
#catalog .cats--showcase .cat { background: #fff; border: 1px solid var(--line); }
#catalog .cats--showcase .cat:hover { border-color: var(--brand-ink); }

#catalog .cats--index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
#catalog .cats--index .cat {
  justify-content: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
}
#catalog .cats--index .cat:hover { background: var(--brand-tint); }
#catalog .cats--index .cat__img { display: none; }

#catalog .cats--featured .cat--xl {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  background: var(--brand-tint);
}
#catalog .cats--featured .cat--xl:hover { background: var(--stage-2); }
#catalog .cats--featured .cat--xl .cat__list { display: block; }
#catalog .cats--featured .cat--xl .cat__img { height: 185px; margin: 12px auto; }
@media (max-width: 800px) {
  #catalog :is(.cats--tiles, .cats--showcase, .cats--featured) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  #catalog :is(.cats--tiles, .cats--showcase, .cats--index, .cats--featured),
  #catalog .cats--featured .cat--xl { grid-template-columns: minmax(0, 1fr); }
  #catalog .cats--rows .cat { grid-template-columns: minmax(0, 1fr) 72px; }
}


.catalog-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.catalog-bento__card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  grid-column: span 5;
  min-height: clamp(210px, 22vw, 300px);
  overflow: hidden;
  padding: clamp(20px, 3vw, 40px);
  border-radius: var(--radius-card);
  background: var(--stage);
  color: var(--ink);
  text-decoration: none;
}
.catalog-bento__card--xl,
.catalog-bento__card--module { grid-column: span 7; }
.catalog-bento__card:hover { background: var(--stage-2); }
.catalog-bento__copy { width: 58%; }
.catalog-bento__copy h3 { font-size: clamp(1.25rem, 2vw, 1.85rem); }
.catalog-bento__copy span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--brand-ink);
  font-size: .875rem;
  font-weight: 600;
}
.catalog-bento__image {
  position: absolute;
  z-index: -1;
  inset-inline-end: -3%;
  inset-block-start: 0;
  width: 49%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  mix-blend-mode: multiply;
}
.catalog-bento__card--xl .catalog-bento__image { width: 56%; }
.catalog-bento__card--module .catalog-bento__image { width: 52%; }
@media (max-width: 850px) {
  .catalog-bento { grid-template-columns: 1fr 1fr; }
  .catalog-bento .catalog-bento__card { grid-column: auto; }
}
@media (max-width: 620px) {
  .catalog-bento { grid-template-columns: minmax(0, 1fr); }
  .catalog-bento__card { min-height: 170px; }
}

.order-steps {
  --order-gap: clamp(28px, 3.5vw, 52px);
  --order-drop: 64px;
  --order-curve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 64' preserveAspectRatio='none'%3E%3Cpath d='M0 1 C31 1 21 63 52 63' fill='none' stroke='black' stroke-width='2' stroke-dasharray='4 5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--order-gap);
  margin: 0;
  padding: 0 0 var(--order-drop);
  list-style: none;
}
.order-steps__item { position: relative; min-width: 0; }
.order-steps__item:nth-child(even) { top: var(--order-drop); }
.order-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: var(--order-gap);
  height: var(--order-drop);
  background: var(--brand-btn);
  mask: var(--order-curve) center / 100% 100% no-repeat;
}
.order-steps__item:nth-child(even)::after {
  top: calc(50% - var(--order-drop));
  transform: scaleY(-1);
}
.order-steps__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
}
.order-steps__number {
  position: absolute;
  z-index: -1;
  right: 10px;
  bottom: -17px;
  color: var(--brand-btn);
  opacity: .26;
  font-size: clamp(68px, 7vw, 108px);
  line-height: .9;
  font-weight: 600;
  letter-spacing: -.06em;
}
.order-steps__visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.order-steps__visual--quote { container-type: inline-size; }
.order-steps__scene { width: 100%; height: 100%; object-fit: contain; }
.order-steps__laptop {
  position: absolute;
  top: 0;
  left: -1%;
  width: 132%;
  aspect-ratio: 2 / 1;
  clip-path: polygon(17.1% 7.3%, 60.5% 7.3%, 60.9% 70%, 65.7% 90%, 65.7% 93%, 11.2% 93%, 11.2% 90%, 16.5% 70%);
}
.order-steps__screen {
  position: absolute;
  inset: 12% 40.55% 33.5% 17.95%;
  clip-path: polygon(1.5% 0, 99% 0, 100% 100%, 0 100%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 4%;
  padding: 2%;
  background: #fff;
  color: var(--ink);
  font-size: clamp(8px, 1vw, 14px);
  line-height: 1.15;
}
.order-steps__screen > b { color: var(--brand-ink); }
.order-steps__screen-product {
  display: grid;
  grid-template-columns: 46% 1fr;
  align-items: center;
  min-height: 0;
  gap: 5%;
}
.order-steps__screen-product img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.order-steps__screen-product span {
  position: relative;
  display: inline-block;
  margin-top: 4px;
  padding: 3px 5px;
  border-radius: 999px;
  background: var(--brand-btn);
  color: #fff;
  font-size: .8em;
  white-space: nowrap;
}
.order-steps__screen-product span::after {
  content: '';
  position: absolute;
  top: 64%;
  right: 5%;
  width: .95em;
  height: 1.25em;
  background: #ffcf32;
  clip-path: polygon(0 0, 94% 60%, 57% 66%, 75% 92%, 58% 100%, 39% 73%, 15% 97%);
  filter: drop-shadow(0 0 1px white);
  transform: rotate(-8deg);
}
.order-steps__paper {
  position: absolute;
  left: 9%;
  top: 14%;
  width: 49%;
  min-height: 70%;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 7%;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 6px 15px #20374a24;
  font-size: clamp(6px, .72vw, 11px);
  line-height: 1.2;
}
.order-steps__tablet {
  inset: 8% auto 8% 6%;
  width: 48%;
  min-height: 0;
  align-content: center;
  gap: clamp(2px, 1.3cqw, 5px);
  padding: 4%;
  border: clamp(3px, 1.8cqw, 5px) solid #263543;
  border-radius: 9px;
  font-size: clamp(6px, 3.65cqw, 11px);
  transform: rotate(-5deg);
}
.order-steps__paper b { color: var(--brand-ink); }
.order-steps__paper span { border-top: 1px solid var(--line); padding-top: 4px; }
.order-steps__tablet span { padding-top: clamp(1px, 1.2cqw, 4px); }
.order-steps__product {
  position: absolute;
  z-index: 1;
  inset: 12% 3% auto auto;
  width: 48%;
  height: auto;
  mix-blend-mode: multiply;
}
.order-steps__product--arm {
  /* Follow the horizontal bar where it crosses the tablet bezel. */
  z-index: 2;
  mix-blend-mode: normal;
  clip-path: polygon(4.1% 27.6%, 4.7% 27.1%, 29% 23.6%, 29% 26.5%, 5% 29.8%, 4.2% 29.1%, 3.9% 28.4%);
}
.order-steps__visual--contract .order-steps__paper:first-child { transform: rotate(-9deg); }
.order-steps__visual--contract .order-steps__paper:last-child { left: 44%; top: 10%; transform: rotate(8deg); }
.order-steps__stamp {
  position: absolute;
  right: 6%;
  bottom: 5%;
  display: grid;
  place-content: center;
  gap: 2px;
  width: 34%;
  aspect-ratio: 1;
  border: 3px double currentColor;
  border-radius: 50%;
  color: #1476a2;
  opacity: .78;
  transform: rotate(-22deg);
  font-size: .65em;
  font-style: normal;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.order-steps__stamp b { color: inherit; }
.order-steps__stamp small { font-size: .78em; letter-spacing: .04em; }
.order-steps__visual--delivery .order-steps__scene {
  position: absolute;
  inset: 5% 3% auto;
  width: 94%;
  height: 90%;
  object-fit: contain;
}
.order-steps__card h3 {
  position: relative;
  min-height: 76px;
  padding: 14px 16px 28px;
  font-size: 1.0625rem;
}
@media (max-width: 950px) {
  .order-steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    margin-inline: auto;
    padding-bottom: 0;
    gap: 24px;
  }
  .order-steps__item:nth-child(even) { top: auto; }
  .order-steps__item:not(:last-child)::after {
    top: 100%;
    left: 50%;
    width: 0;
    height: 24px;
    border-left: 2px dashed var(--brand-btn);
    background: none;
    mask: none;
    transform: none;
  }
}

.docs--clipboard .doc__clipboard {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / 1.36;
  margin: 4px 4px 6px 0;
  --clipboard-color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--clipboard-color), black 18%);
  border-radius: 9px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--clipboard-color), white 14%), var(--clipboard-color) 65%);
  box-shadow: inset 1px 1px 1px #ffffff38, 3px 4px 0 color-mix(in srgb, var(--clipboard-color), black 32%), 5px 10px 14px -7px #57657580;
  transition: transform .25s var(--ease);
}
.docs--clipboard .doc--letter .doc__clipboard { --clipboard-color: var(--brand-btn); }
.docs--clipboard .doc__paper {
  position: absolute;
  inset: 9% 6% 5%;
  aspect-ratio: auto;
  border-color: #dbe0e5;
  box-shadow: 1px 2px 4px #33415535;
  transform: none;
}
.docs--clipboard .doc__paper img {
  display: block;
  object-fit: contain;
  object-position: center;
}
.doc__clip {
  position: absolute;
  top: 2%;
  left: 33%;
  width: 34%;
  height: 10%;
  border: 1px solid #7d8995;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(#aeb9c4, #f2f5f8 38%, #c5ced7 52%, #8794a1);
  box-shadow: inset 0 1px #fff9, 0 3px 4px #3341554d;
  pointer-events: none;
}
.doc__clip::before {
  content: "";
  position: absolute;
  inset: 13% 29% 50%;
  border-radius: 99px;
  background: #778492;
  box-shadow: inset 0 1px 2px #33415580, 0 1px #fffa;
}
@media (prefers-reduced-motion: no-preference) {
  .doc:is(:hover, :focus-visible) .doc__clipboard { transform: translateY(-3px); }
}

/* Форма КП на главной */
.section:not(.section--stage) + .section.kp--showcase:not(.section--stage) {
  --kp-card-width: min(1020px, calc(100% - var(--gutter) * 2));
  position: relative;
  isolation: isolate;
  padding-top: clamp(64px, 7vw, 112px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.kp__backdrop {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  width: calc(min(100%, var(--wrap)) - var(--gutter) * 2);
  margin-inline: auto;
  height: clamp(320px, 39vw, 470px);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: radial-gradient(ellipse at 75% 95%, #174d61, transparent 64%),
    linear-gradient(135deg, #132538, #090f19 60%);
}
.kp__equipment {
  position: absolute;
  width: clamp(180px, 28vw, 430px);
  height: auto;
  opacity: .68;
  filter: drop-shadow(0 12px 24px #0008);
}
.kp__equipment--k12-ral {
  top: -5%;
  left: clamp(12px, 3.5vw, 56px);
  width: auto;
  height: 85%;
  transform: rotate(-12deg);
}

.kp__equipment--tmb-900 { top: -24%; right: -7%; transform: rotate(19deg); }
.kp__equipment--rd-200-matreshka {
  top: clamp(32px, 3.5vw, 56px);
  left: 50%;
  width: auto;
  height: clamp(200px, 23vw, 360px);
  transform: translate(-50%, -50%) rotate(-52deg);
  opacity: .94;
}
.kp--showcase .kp__headline {
  padding-bottom: 0;
  color: var(--ink);
  text-wrap: balance;
}
.kp--showcase .kp__headline::after { content: none; }
.kp__headline span { color: var(--brand-btn); }
.kp--showcase .kp__grid {
  width: var(--kp-card-width);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: none;
}
.kp--showcase .kp__panel { padding: 0; background: #fff; min-width: 0; }

.kp--showcase .kp__contacts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 16px; }
@media (max-width: 900px) {
  .kp--showcase .kp__grid { grid-template-columns: minmax(0, 1fr); }
  .kp__equipment { opacity: .32; }
}

.footer { border-top: 0; background: #fff; color: #d1deeb; }
.footer__h, .footer .logo__name { color: #fff; }
.footer a:hover { color: #a6e3f7; }
.footer :focus-visible { outline-color: #a6e3f7; }
.footer .wrap { display: block; padding-block: clamp(24px, 5vw, 64px); }
.footer__frame {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(20px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: radial-gradient(ellipse at 75% 95%, #174d61, transparent 64%),
    linear-gradient(135deg, #132538, #090f19 60%);
}
.footer__brand {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #526679;
}
.footer__brand p { margin: 0; max-width: 48ch; }
.footer__legal { align-items: center; border-color: #526679; color: #d1deeb; }
.footer__messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__messenger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.footer__messenger img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
.footer a.footer__messenger:hover { filter: brightness(.88); }
@media (max-width: 900px) {
  .footer__frame { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__frame > :nth-last-child(2) { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .footer__frame { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1080px) {
  .footer__frame {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-right: clamp(112px, 13vw, 172px);
  }
  .footer__frame::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 16px;
    right: -14px;
    width: clamp(140px, 16vw, 214px);
    height: clamp(300px, 31vw, 410px);
    background: url("../img/footer-k12-ral-blue-v2.webp") center / contain no-repeat;
    filter: drop-shadow(0 12px 18px #0007);
    transform: rotate(-22deg);
    pointer-events: none;
  }
}
