/* ============================================================
   TechLube v2 — главная
   Onest · #0400FF · много воздуха, крупные заголовки
   ============================================================ */

:root {
  --blue: #0400ff;
  --blue-2: #2b27ff;
  --black: #000;
  --ink: #0b0b12;
  --paper: #fff;
  --fog: #f3f3f6;
  --tile: #ecedf2;
  --muted: #8b8b97;
  --muted-2: rgba(11, 11, 18, 0.58);
  --line: rgba(11, 11, 18, 0.12);

  --d1: clamp(2.6rem, 6.4vw, 6.4rem);
  --d2: clamp(2.2rem, 4.6vw, 4.6rem);
  --d3: clamp(1.35rem, 2vw, 1.9rem);

  --pad: clamp(16px, 4.2vw, 72px);
  --sect: clamp(100px, 12vw, 190px);
  --fgap: clamp(32px, 4.2vw, 72px);
  --r-hero: clamp(28px, 3.4vw, 56px);   /* = боковым полям страницы на десктопе */
  --r-xl: 36px;
  --r-l: 28px;
  --r-m: 22px;
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Onest", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
::selection { background: var(--blue); color: #fff; }

.container { max-width: 1680px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 12px; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: var(--d2); text-wrap: balance; }

/* иконки на <use> наследуют обводку отсюда */
.tile__ico, .hcard__ico svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 28px; border-radius: 999px;
  background: var(--blue); color: #fff;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover { background: #1a16ff; transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: #eceaff; }
.btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.btn--line:hover { background: rgba(255, 255, 255, 0.12); }
.btn--ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.hero :focus-visible, .promo :focus-visible, .footer :focus-visible, .cta :focus-visible, .menu :focus-visible, .space :focus-visible { outline-color: #fff; }

/* ---------- шапка ----------
   Всегда во всю ширину и без подложки. Наверху — просто поверх хиро;
   при скролле (.is-scrolled) — компактнее и с чистым блюром.
   Цвета внутри переключаются по секции под шапкой: .is-dark — светлые на тёмном. */
/* --hh — общая высота строки шапки: логотип, пункты, переключатель языка, кнопка, бургер */
@property --hh { syntax: '<length>'; inherits: true; initial-value: 38px; }
.header { position: fixed; inset: 0 0 auto; z-index: 60; pointer-events: none; --hh: 38px; transition: --hh 0.5s var(--ease); }
.header.is-scrolled { --hh: 34px; }
.header .header__bar { transition: padding 0.5s var(--ease), color 0.3s var(--ease), backdrop-filter 0.4s var(--ease), -webkit-backdrop-filter 0.4s var(--ease), transform 0.55s var(--ease), opacity 0.4s var(--ease); }
.header.is-hidden .header__bar { transform: translateY(-110%); opacity: 0; pointer-events: none; }   /* в подвале шапка скрыта целиком */
.header__bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px var(--pad);
  color: var(--ink);
  backdrop-filter: blur(0px) saturate(1); -webkit-backdrop-filter: blur(0px) saturate(1);
  transition: padding 0.5s var(--ease), color 0.3s var(--ease),
              backdrop-filter 0.4s var(--ease), -webkit-backdrop-filter 0.4s var(--ease);
}
.header.is-scrolled .header__bar {
  padding-block: 22px;   /* полоса блюра остаётся высокой, как в начальном состоянии */
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
}
.header.is-dark .header__bar { color: #fff; }
.header__logo { display: block; flex: none; }
.header__logo { position: relative; }
.header__logo img { display: block; height: var(--hh); width: auto; transition: opacity 0.35s var(--ease); }
.header__logo .header__logo-inv { position: absolute; inset: 0; opacity: 0; }   /* белая плашка, синее начертание — для синего фона */
.header.is-blue .header__logo .header__logo-inv { opacity: 1; }
.header.is-blue .header__logo img:first-child { opacity: 0; }
.header__nav { display: flex; gap: 4px; }
.header__nav a { display: inline-flex; align-items: center; height: var(--hh); padding: 0 16px; border-radius: 999px; font-size: 15.5px; font-weight: 500; transition: background 0.2s; }
.header__nav a:hover { background: rgba(11, 11, 18, 0.07); }
.header.is-dark .header__nav a:hover { background: rgba(255, 255, 255, 0.14); }
.header__right { display: flex; align-items: center; gap: 14px; }
.header__search { flex: none; width: var(--hh); height: var(--hh); border-radius: 50%; display: grid; place-items: center; background: rgba(11, 11, 18, 0.07); transition: background 0.3s; }   /* поиск вместо телефона */
.header__search:hover { background: rgba(11, 11, 18, 0.13); }
.header__search svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.header.is-dark .header__search { background: rgba(255, 255, 255, 0.16); }
.header.is-dark .header__search:hover { background: rgba(255, 255, 255, 0.26); }
/* на синей секции синяя кнопка инвертируется */
.header__right .btn--sm { height: var(--hh); padding: 0 20px; }
.header.is-blue .header__right .btn--sm { background: #fff; color: var(--blue); }

.lang { display: flex; align-items: stretch; height: var(--hh); padding: 3px; border-radius: 999px; background: rgba(11, 11, 18, 0.07); transition: background 0.3s; }
.lang__btn { display: flex; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 11.5px; letter-spacing: 0.02em; font-weight: 600; color: var(--muted-2); transition: color 0.3s, background 0.3s; }
.lang__btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.header.is-dark .lang { background: rgba(255, 255, 255, 0.16); }
.header.is-dark .lang__btn { color: rgba(255, 255, 255, 0.72); }
.header.is-dark .lang__btn.is-active { color: var(--ink); }

.burger { display: none; flex: none; width: var(--hh); height: var(--hh); border-radius: 50%; background: var(--ink); position: relative; transition: background 0.3s; }
.burger span { position: absolute; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.3s var(--ease), background 0.3s; }
.header.is-dark .burger { background: #fff; }
.header.is-dark .burger span { background: var(--ink); }
.burger span:first-child { top: calc(50% - 4px); }
.burger span:last-child { top: calc(50% + 2px); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* мобильное меню: белый лист с бенто-карточками */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--paper, #f6f6f8); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 88px 16px 24px;
  animation: menu-in 0.35s var(--ease) both;
}
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }   /* без transform — иначе fixed-подложка под шапкой уезжает */
.menu[hidden] { display: none; }
.menu::before { content: ''; position: fixed; inset: 0 0 auto; height: 84px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, #fff 72%, rgba(255, 255, 255, 0)); }   /* карточки уходят под шапку мягко */
.menu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mcard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  min-height: 116px; padding: 18px; border-radius: 22px; background: var(--tile); color: var(--ink);
  transition: transform 0.25s var(--ease);
}
.mcard:active { transform: scale(0.98); }
.mcard b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.mcard > span:not(.mcard__go):not(.mcard__label) { font-size: 13px; line-height: 1.35; color: var(--muted-2); }
.mcard__go { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 11, 18, 0.07); }
.mcard__go svg { width: 12px; height: 12px; }
.mcard--blue { background: linear-gradient(155deg, #3532ff 0%, var(--blue) 60%); color: #fff; }
.mcard--black { background: #000; color: #fff; }
.mcard--blue > span:not(.mcard__go), .mcard--black > span:not(.mcard__go) { color: rgba(255, 255, 255, 0.68) !important; }
.mcard--blue .mcard__go, .mcard--black .mcard__go { background: rgba(255, 255, 255, 0.18); }
.mcard--wide, .mcard--prod { grid-column: 1 / -1; }
.mcard--prod { min-height: 0; padding: 0; justify-content: flex-start; }
.mcard__toggle { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 16px 16px 16px; text-align: left; color: inherit; }
.mcard__ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.mcard__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mcard__title { flex: 1; display: flex; flex-direction: column; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.mcard__title small { margin-top: 4px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted-2); }
.mcard__chev { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; transition: transform 0.35s var(--ease), background 0.25s, color 0.25s; }
.mcard__chev svg { width: 15px; height: 15px; }
.mcard__toggle[aria-expanded="true"] .mcard__chev { transform: rotate(180deg); background: var(--blue); color: #fff; }
.mcard__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.mcard__body > div { overflow: hidden; min-height: 0; }
.mcard--prod.is-open .mcard__body { grid-template-rows: 1fr; }
.mcats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 10px; list-style: none; margin: 0; }
.mcats li { min-width: 0; }
.mcat { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 52px; padding: 8px 10px 8px 9px; border-radius: 14px; background: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.2; hyphens: manual; transition: background 0.2s, color 0.2s; }
.mcat:active { background: var(--blue); color: #fff; }
.mcat:active svg { stroke: #fff; }
.mcat svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mcard__all { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; margin: 10px 10px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.mcard__all svg { width: 12px; height: 12px; }
.mcard--phones { min-height: 0; gap: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.mcard__label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.mcard--phones a { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }

@media (max-width: 1180px) {
  .header__nav, .header__phone { display: none; }
  .burger { display: block; }
}
@media (max-width: 520px) {
  .header__bar { padding: 16px; gap: 10px; }
  .header.is-scrolled .header__bar { padding-block: 16px; }
  .header { --hh: 32px; }
  .header.is-scrolled { --hh: 30px; }
  .lang__btn { padding: 0 8px; }
  .header__right { gap: 8px; }
  .header__right .btn--sm { display: none; }
}

/* ---------- хиро ---------- */
.hero { --hero-gap: clamp(48px, 9vh, 104px); position: relative; height: calc(100svh + var(--r-hero)); min-height: calc(700px + var(--r-hero));   /* белый лист с закруглением начинается ниже первого экрана */ overflow: hidden; background: #03040d; color: #fff; isolation: isolate; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: var(--pos, 50% 50%);
  transform-origin: var(--pos, 50% 50%);
}
.hero__slide.is-active .hero__bg { animation: drift 10s linear forwards; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 4, 13, 0.55) 0%, rgba(3, 4, 13, 0) 20%),
              linear-gradient(0deg, rgba(3, 4, 13, 0.5) 0%, rgba(3, 4, 13, 0) 30%);
}
.hero__inner { position: relative; z-index: 3; height: 100%; display: flex; align-items: flex-end; justify-content: flex-end; padding-bottom: calc(var(--hero-gap) + var(--r-hero)); }

/* плашка — по мотивам карточки Insight */
.hcard {
  position: relative; overflow: hidden; isolation: isolate;
  width: min(430px, 100%); min-width: 0;
  padding: 24px 24px 22px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.04);   /* без затемнения: только размытие и тонкая рамка */
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: none;   /* без обводки — только прозрачный размытый фон */
}
.hcard__glow { display: none; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }
.hcard[data-glow="0"] .hcard__glow--0, .hcard[data-glow="1"] .hcard__glow--1, .hcard[data-glow="2"] .hcard__glow--2 { opacity: 1; }
.hcard__glow--0 { background: radial-gradient(70% 55% at 0% 0%, rgba(255, 138, 30, 0.62), transparent 70%), radial-gradient(60% 45% at 45% 0%, rgba(255, 45, 85, 0.32), transparent 70%); }
.hcard__glow--1 { background: radial-gradient(70% 55% at 0% 0%, rgba(38, 104, 255, 0.7), transparent 70%), radial-gradient(60% 50% at 100% 0%, rgba(255, 36, 72, 0.5), transparent 70%); }
.hcard__glow--2 { background: radial-gradient(75% 60% at 0% 0%, rgba(20, 16, 255, 0.85), transparent 72%), radial-gradient(50% 40% at 80% 0%, rgba(0, 190, 255, 0.28), transparent 70%); }

.hcard__stack { display: grid; }
.hcard__info { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 0.5s var(--ease), visibility 0s 0.5s; }
.hcard__info.is-active { visibility: visible; opacity: 1; transition: opacity 0.6s var(--ease) 0.15s; }
.hcard__info.is-active > * { animation: card-in 0.7s var(--ease) both; }
.hcard__info.is-active > :nth-child(2) { animation-delay: 0.08s; }
.hcard__info.is-active > :nth-child(3) { animation-delay: 0.14s; }
.hcard__info.is-active > :nth-child(4) { animation-delay: 0.2s; }
.hcard__info.is-active > :nth-child(5) { animation-delay: 0.26s; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hcard__cat { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 500; min-width: 0; line-height: 1.2; }
.hcard__ico { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--ink); display: grid; place-items: center; flex: none; }
.hcard__ico svg { width: 20px; height: 20px; }
.hcard__pill { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.hcard__big {
  display: flex; align-items: flex-start; gap: 6px;
  margin: clamp(26px, 5vh, 46px) 0 clamp(20px, 3.5vh, 34px);
  font-size: clamp(4rem, 6vw, 6rem); font-weight: 300; letter-spacing: -0.045em; line-height: 0.9;
}
.hcard__tick { width: 26px; height: 26px; color: rgba(255, 255, 255, 0.7); margin-top: 4px; }
.hcard__lead { font-size: 20px; line-height: 1.36; letter-spacing: -0.01em; }
.hcard__lead span { color: rgba(255, 255, 255, 0.52); }
.hcard__note { margin: 12px 0 20px; font-size: 14px; color: rgba(255, 255, 255, 0.46); }

.hcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
/* подсветка прогресса и стрелки — вне плашки, в левом нижнем углу слайда */
.hero__ctrl { position: absolute; left: var(--pad); bottom: calc(var(--hero-gap) + var(--r-hero)); width: min(340px, 40vw); color: #fff; }
.hero__ctrl .hcard__dots { flex: 1; }
.hcard__dots { display: flex; gap: 6px; flex: 1; }
.hcard__dot { flex: 1; height: 20px; display: flex; align-items: center; position: relative; }
.hcard__dot::before { content: ""; width: 100%; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); }
.hcard__dot i { position: absolute; left: 0; top: 50%; translate: 0 -50%; height: 4px; width: 0; border-radius: 3px; background: #fff; }
.hcard__dot.is-done i { width: 100%; }
.hcard__dot.is-current i { animation: fill var(--dur, 7000ms) linear forwards; }
.hero.is-paused .hcard__dot.is-current i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.hcard__nav { display: flex; gap: 6px; }
.hcard__arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); transition: background 0.2s; }
.hcard__arrow:hover { background: rgba(255, 255, 255, 0.14); }
.hcard__arrow svg { width: 15px; height: 15px; }
.hcard__pause .p-play { display: none; }
.hero.is-paused .hcard__pause .p-play { display: block; }
.hero.is-paused .hcard__pause .p-pause { display: none; }

@media (max-width: 760px) {
  .hero { min-height: calc(640px + var(--r-hero)); }
  .hero__bg { background-position: var(--pos-m, 50% 40%); bottom: 36%; }
  .hero__shade { background: linear-gradient(180deg, rgba(3, 4, 13, 0.6) 0%, rgba(3, 4, 13, 0) 18%), linear-gradient(0deg, #03040d 34%, rgba(3, 4, 13, 0) 66%); }
  .hero__inner { padding-bottom: calc(16px + var(--r-hero)); }
  .hcard { width: 100%; padding: 20px; border-radius: 28px; }
  .hero__inner { flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 12px; }
  .hero__ctrl { position: static; order: -1; width: 100%; }
  .hcard__big { font-size: 3.6rem; margin: 22px 0 16px; }
  .hcard__lead { font-size: 18px; }
}

/* ---------- о компании ---------- */
/* белый «лист» заходит на слайдер скруглёнными верхними углами */
.about { position: relative; z-index: 2; margin-top: calc(-1 * var(--r-hero)); padding-block: clamp(64px, 7.5vw, 124px) 0; background: var(--paper); border-radius: var(--r-hero) var(--r-hero) 0 0; }
.about__intro {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 34vw, 540px); gap: clamp(32px, 5vw, 96px); align-items: start;
}
.about__text { font-size: clamp(1.9rem, 3.6vw, 3.9rem); font-weight: 500; letter-spacing: -0.032em; line-height: 1.16; max-width: 26ch; text-wrap: pretty;
  margin-top: -0.14em; /* верх заглавных — на одной линии с верхом иллюстрации */ }
.about__text span { color: #a3a3ae; }
.about__side { justify-self: end; font-size: 14px; color: var(--muted); }
.about__aside { display: flex; flex-direction: column; align-items: stretch; grid-column: 2; grid-row: 1; }
.about__text { grid-column: 1; grid-row: 1; }

/* факты-капсулы под абзацем */
/* полоса фактов сразу под слайдером */
/* одинаковый воздух: слайдер → карточки и карточки → «О компании» */
/* обратное скругление: белый «лист» заходит на слайдер скруглёнными верхними углами */
.factgrid { margin-top: 12px; }
/* узкие плашки-преимущества над крупными карточками */
.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.badge {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px;
  min-height: 176px; padding: 22px 24px 24px;   /* иконка — у верхнего края, текст — в левом нижнем углу */
  border-radius: var(--r-l); background: var(--fog);
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
}
.badge__txt { display: flex; flex-direction: column; gap: 6px; }
.badge__txt b { font-size: clamp(1.35rem, 1.7vw, 1.7rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.badge__txt span { font-size: 14px; font-weight: 400; color: var(--muted-2); line-height: 1.35; letter-spacing: 0; min-height: 2.7em; max-width: 30ch; }   /* всегда две строки — заголовки на одной линии */
.badge__ico { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .badges { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; } .badge { min-height: 128px; padding: 18px 20px 20px; } }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; }
.fact {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: clamp(200px, 17vw, 250px);
  padding: clamp(20px, 2vw, 28px); border-radius: var(--r-l);
  background: var(--fog);
}
.fact__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.fact__label { font-size: 14px; font-weight: 500; color: var(--muted-2); }
.fact__mark { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; order: 2; }
.fact__pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); position: relative; }
.fact__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--blue); animation: fact-pulse 2.4s var(--ease) infinite; }
@keyframes fact-pulse { from { transform: scale(1); opacity: 0.55; } to { transform: scale(3.6); opacity: 0; } }
.fact__mark--uz { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: var(--blue); }
.fact__txt { display: flex; flex-direction: column; gap: 8px; }
.fact__txt b { font-size: clamp(2rem, 2.9vw, 3.4rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; }   /* один размер во всех трёх карточках */
/* монохромная иконка-заливка справа от заголовка карточки */
.fact__txt b { display: flex; align-items: center; justify-content: flex-start; gap: 0.2em; }   /* иконка слева от заголовка, на высоту заглавных */
.fact__ico { order: -1; flex: none; width: 1.06em; height: 1.06em; fill: currentColor; stroke: none; margin: -0.08em -0.04em 0 -0.12em; }   /* глиф ≈ высоте цифр */
.fact__txt em { font-style: normal; font-size: 15px; color: var(--muted-2); line-height: 1.4; max-width: 30ch; }
.fact--blue { background: radial-gradient(80% 90% at 100% 0%, #5b58ff 0%, rgba(91, 88, 255, 0) 60%), linear-gradient(150deg, #2c28ff, var(--blue) 65%); color: #fff; }
.fact--blue .fact__label, .fact--blue .fact__txt em { color: rgba(255, 255, 255, 0.74); }
.fact__bars { display: flex; align-items: flex-end; gap: 7px; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.14); }
.fact__bars small { margin-left: 8px; align-self: center; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.fact__bar { width: 22px; height: 30px; fill: none; stroke: #fff; stroke-width: 1; overflow: visible; }
.fact__bar .fact__fill { fill: #fff; stroke: none; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: fact-fill 4.2s cubic-bezier(0.65, 0, 0.35, 1) infinite; animation-delay: calc(var(--i) * 0.42s); }
@keyframes fact-fill { 0% { transform: scaleY(0); } 14% { transform: scaleY(1); } 80% { transform: scaleY(1); } 92%, 100% { transform: scaleY(0); } }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr; }
  .fact { min-height: 170px; }
  .fact__bar { width: 18px; height: 25px; }
  .fact--blue .fact__top { flex-wrap: wrap; row-gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fact__bar .fact__fill { animation: none; transform: none; }
  .fact__pulse::after { animation: none; }
}

/* витрина категорий: контурные иконки рисуются линией и сменяют друг друга */
.cats { display: block; width: 100%; color: var(--ink); }
.cats__stage { position: relative; display: block; aspect-ratio: 1; }
.cats__guide, .cats__svg { position: absolute; width: 100%; height: 100%; inset: 0; fill: none; overflow: visible; }
.cats__guide * { stroke: rgba(11, 11, 18, 0.1); stroke-width: 0.2; }
.cats__guide .cats__ring {
  stroke: var(--blue); stroke-width: 0.4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transform: rotate(-90deg); transform-box: view-box; transform-origin: 50% 50%;
}
.cats.is-run .cats__ring { animation: cats-ring var(--hold, 3400ms) linear forwards; }
@keyframes cats-ring { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.cats__svg { inset: 17%; width: 66%; height: 66%; }
.cats__svg * {
  stroke: currentColor; stroke-width: 0.6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.cats__ico { display: none; transform-box: view-box; transform-origin: 50% 50%; }
.cats__ico.is-in, .cats__ico.is-out { display: inline; }
.cats__ico.is-in { animation: cats-turn 1.9s var(--ease) both; }
.cats__ico.is-in > * { animation: cats-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards; animation-delay: calc(var(--i) * 110ms); }
.cats__ico.is-out > * { stroke-dashoffset: 0; animation: cats-erase 0.75s cubic-bezier(0.65, 0, 0.35, 1) forwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes cats-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cats-erase { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
@keyframes cats-turn { from { transform: rotate(-10deg) scale(0.9); } to { transform: none; } }
.cats:hover .cats__svg { color: var(--blue); }
.cats__svg { transition: color 0.3s; }
.cats__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.cats__name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.cats__name.is-swap { opacity: 0; transform: translateY(6px); }
.cats__count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cats__count b { font-weight: 600; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .cats__svg * { stroke-dashoffset: 0 !important; animation: none !important; }
  .cats__ico.is-in { animation: none; }
  .cats__ring { display: none; }
}

.space {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(72px, 9vw, 150px);
  min-height: calc(clamp(560px, 52vw, 820px) + 2 * var(--gy, 0px));   /* выше — чтобы бочка была крупнее */
  border-radius: var(--r-xl);
  background: #03040d; color: #fff;
  padding: clamp(28px, 4vw, 60px);
  display: flex; flex-direction: column; justify-content: space-between;
  /* сначала карточка шире — почти на весь экран, — и по прокрутке сужается до ширины контента; текст внутри стоит на месте */
  /* в начале карточка пропорционально увеличена до краёв окна (те же скругления) и прозрачна; по прокрутке садится на место и проявляется.
     --gx/--gy считает js; поля компенсируют рост, поэтому текст внутри и страница вокруг не сдвигаются */
  margin: calc(-1 * var(--gy, 0px)) calc(-1 * var(--gx, 0px));
  padding: calc(clamp(28px, 4vw, 60px) + var(--gy, 0px)) calc(clamp(28px, 4vw, 60px) + var(--gx, 0px));
}
/* фон: студия с ореолом из Weave; js подгоняет масштаб и сдвиг, чтобы источник света был за бочкой, а горизонт — у её основания */
.space__bg {
  position: absolute; inset: 0; z-index: -4; transform: scale(calc(1 + var(--k, 1) * 0.22)); transform-origin: 72% 60%;   /* фон сначала крупнее и «отъезжает» к своему размеру по скроллу */
  background: url("../assets/space-bg.webp") 72% 50% / cover no-repeat, linear-gradient(180deg, #02030b 0%, #04061c 60%, #070a2c 100%);
}
/* бочка: при появлении карточки сильно наклонена вправо и выпрямляется по скроллу */
.space__stage { position: absolute; z-index: -3; right: 10%; top: 8%; bottom: 12%; aspect-ratio: 700 / 1140; pointer-events: none;
  --ph: clamp(0, calc(1 - var(--k, 1) / 0.07), 1);
  --solid: clamp(0, calc((0.32 - var(--k, 1)) / 0.22), 1); }
/* --ph: насколько проявлено цельное фото (бочка выпрямилась); --solid: 0 — белый контур (k ≥ 0.32), 1 — объёмная бочка (k ≤ 0.10) */
/* цельное фото из Weave: бочка на мокром полу с натуральной тенью и отражением; проявляется, когда бочка встаёт */
.space__photo { position: absolute; inset: 0; z-index: -3; background: url("../assets/space-scene.webp") 0 0 / cover no-repeat; transform: scale(calc(1 + var(--k, 1) * 0.22)); transform-origin: 72% 60%;
  opacity: clamp(0, calc(1 - var(--k, 1) / 0.07), 1); pointer-events: none; }
.space__barrel, .space__refl, .space__line {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transform-origin: 50% 97%;
  --tilt: translate3d(calc(var(--k, 1) * 10%), calc(var(--k, 1) * 3%), 0) rotate(calc(var(--k, 1) * 36deg));
  will-change: transform;
}
/* объёмная бочка — вырезка из того же фото: стоя совпадает с ним пиксель в пиксель */
.space__barrel { transform: var(--tilt); opacity: var(--solid); }
/* под углом бочка — тонкий белый контур; по мере выпрямления контур «заливается» и превращается в объёмную бочку */
.space__line { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 97%; transform: var(--tilt);
  opacity: calc(1 - var(--solid)); filter: drop-shadow(0 0 6px rgba(140, 170, 255, 0.55)); will-change: transform, opacity; }
/* отражение в мокром полу: зеркало относительно основания, размытое и тёмное */
.space__refl {
  transform: translate3d(calc(var(--k, 1) * 10%), calc(var(--k, 1) * 3%), 0) scaleY(-1) rotate(calc(var(--k, 1) * 36deg));
  filter: blur(3px) brightness(0.55) saturate(1.15);
  -webkit-mask-image: linear-gradient(to bottom, transparent 62%, rgba(0, 0, 0, 0.75) 97%);
          mask-image: linear-gradient(to bottom, transparent 62%, rgba(0, 0, 0, 0.75) 97%);
  opacity: calc((1 - var(--k, 1) * 0.7) * (1 - var(--ph)) * var(--solid));
}
.space__halo {
  position: absolute; left: -120%; right: -120%; top: -30%; bottom: -10%; border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(160, 185, 255, 0.62), rgba(60, 80, 255, 0.46) 24%, rgba(20, 20, 255, 0.24) 52%, rgba(4, 0, 255, 0) 100%);
  filter: blur(6px);
  opacity: calc((0.12 + (1 - var(--k, 1)) * 0.12) * (1 - var(--ph)));
  mix-blend-mode: screen;
}
/* лучи за бочкой: два слоя широких мягких лучей медленно вращаются навстречу и мерцают — свет «играет» */
.space__rays { position: absolute; left: -95%; right: -95%; top: -38%; aspect-ratio: 1; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 18%, rgba(0, 0, 0, 0.7) 50%, transparent 96%);
          mask-image: radial-gradient(closest-side, #000 18%, rgba(0, 0, 0, 0.7) 50%, transparent 96%);
  opacity: calc(0.55 + (1 - var(--k, 1)) * 0.45); }
.space__rays::before, .space__rays > i { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.space__rays::before {
  background: repeating-conic-gradient(from 0deg, rgba(190, 226, 255, 0) 0deg, rgba(190, 226, 255, 0.3) 3deg, rgba(215, 238, 255, 0.78) 7deg, rgba(190, 226, 255, 0.3) 11deg, rgba(190, 226, 255, 0) 14deg, rgba(190, 226, 255, 0) 30deg);
  filter: blur(7px); will-change: transform, opacity; animation: tl-rays 120s linear infinite, tl-ray-pulse 11s ease-in-out infinite; }
.space__rays > i {
  background: repeating-conic-gradient(from 15deg, rgba(84, 162, 252, 0) 0deg, rgba(100, 170, 252, 0.2) 4deg, rgba(130, 192, 255, 0.62) 9deg, rgba(190, 228, 255, 0.3) 14deg, rgba(84, 162, 252, 0) 19deg, rgba(84, 162, 252, 0) 45deg);
  filter: blur(14px); will-change: transform, opacity; animation: tl-rays 170s linear infinite reverse, tl-ray-pulse 15s ease-in-out -6s infinite; }
@keyframes tl-rays { to { transform: rotate(360deg); } }
@keyframes tl-ray-pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .space__rays::before, .space__rays > i { animation: none; } }
/* контактная тень там, где бочка касается пола */
.space__floor { position: absolute; left: -40%; right: -40%; bottom: -3.5%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 2, 20, 0.9), rgba(0, 2, 20, 0.45) 55%, rgba(0, 2, 20, 0)); opacity: calc((1 - var(--k, 1) * 0.8) * (1 - var(--ph))); }
/* дымка у пола: низ бочки уходит в синий туман, как на цельном снимке */
.space__mist { position: absolute; left: -70%; right: -70%; bottom: -6%; height: 26%; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 72%, rgba(70, 110, 255, 0.34), rgba(40, 70, 255, 0.14) 55%, rgba(4, 0, 255, 0) 100%);
  filter: blur(8px); mix-blend-mode: screen; opacity: calc((1 - var(--k, 1) * 0.5) * (1 - var(--ph))); }
.space::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 4, 13, 0.85) 0%, rgba(3, 4, 13, 0.35) 42%, rgba(3, 4, 13, 0) 62%); }
.space__title { font-size: clamp(2rem, 4.2vw, 4.4rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; max-width: 18ch; }
.space__title span { display: block; color: rgba(255, 255, 255, 0.5); }
.space__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-self: flex-start; width: min(720px, 100%); margin-top: 48px; }
.space__stat { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 22px 0 20px; border-left: 1px solid rgba(255, 255, 255, 0.28); }
.space__stat b { font-size: clamp(1.9rem, 3vw, 3rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1; }
.space__stat span { font-size: 13.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.35; max-width: 18ch; }
.space__stat i { margin-top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); transition: background 0.25s, transform 0.25s var(--ease); }
.space__stat i svg { width: 14px; height: 14px; }
.space__stat:hover i { background: #fff; color: var(--ink); transform: translateX(4px); }
/* полоска слева наполняется фирменным синим сверху вниз при наведении */
.space__stat::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #4744ff, var(--blue)); box-shadow: 0 0 14px rgba(40, 60, 255, 0.85);
  transform: scaleY(0); transform-origin: 50% 0; transition: transform 0.55s var(--ease); }
.space__stat:hover::before, .space__stat:focus-visible::before { transform: scaleY(1); }
.space__foot { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin-top: 32px; }

.process { padding-top: clamp(100px, 11vw, 170px); }
.process__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); gap: 40px; align-items: end; margin-bottom: clamp(44px, 5vw, 72px); }
.process__head p { color: var(--muted-2); max-width: 34ch; justify-self: end; }
.process__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.process__grid li { padding: 38px clamp(20px, 3vw, 44px) 44px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: clamp(48px, 4.4vw, 64px) minmax(0, 1fr); column-gap: clamp(16px, 1.8vw, 26px); }
.process__grid li:nth-child(even) { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.process__n { grid-row: span 2; width: clamp(48px, 4.4vw, 64px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(17px, 1.5vw, 22px); font-weight: 600; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
/* финальный этап: кружок как остальные, затем «наливается» синим, как масло в бочке — с покачивающейся волной */
.process__grid li:last-child .process__n { position: relative; overflow: hidden; isolation: isolate; transition: color 0.6s ease 2.1s; }
.process__grid li:last-child .process__n::before {
  content: ""; position: absolute; z-index: -1; left: -60%; width: 220%; aspect-ratio: 1; top: 105%;
  border-radius: 43%; background: var(--blue);
  animation: tl-wave 5s linear infinite; transition: top 3.2s cubic-bezier(.35,.1,.25,1) 0.4s;
}
.process__grid li:last-child.in .process__n { color: #fff; }
.process__grid li:last-child.in .process__n::before { top: -38%; }
@keyframes tl-wave { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .process__grid li:last-child .process__n::before { animation: none; transition: none; } }
.process__grid h3 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 12px; padding-top: clamp(4px, 0.5vw, 8px); }
.process__grid p { color: var(--muted-2); font-size: 15.5px; max-width: 44ch; }

@media (max-width: 860px) {
  .about__intro { grid-template-columns: 1fr; gap: 14px; }
  .about__aside { display: contents; }
  .about__text { grid-column: auto; grid-row: auto; }
  .about__side { justify-self: start; order: -1; }
  .cats { width: min(340px, 84vw); margin-top: 36px; }
  .space { min-height: calc(600px + 2 * var(--gy, 0px)); }
  .space__stage { right: -6%; top: 26%; bottom: 20%; }
  /* мобильный: бочка почти без затемнения — мягкая подложка только под заголовком, цифрами (слева) и подписью внизу */
  .space::before { background:
      linear-gradient(180deg, rgba(3, 4, 13, 0.78) 0%, rgba(3, 4, 13, 0.42) 22%, rgba(3, 4, 13, 0) 40%, rgba(3, 4, 13, 0) 82%, rgba(3, 4, 13, 0.6) 100%),
      linear-gradient(90deg, rgba(3, 4, 13, 0.5) 0%, rgba(3, 4, 13, 0.22) 55%, rgba(3, 4, 13, 0) 85%); }
  .space__stats { grid-template-columns: 1fr; gap: 22px; }
  .space__stat { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 14px; }
  .space__stat i { display: none; }
  .space__stat, .space__head { text-shadow: 0 1px 10px rgba(3, 4, 13, 0.55); }   /* читаемость поверх светлой бочки */
  .process__head { grid-template-columns: 1fr; }
  .process__head p { justify-self: start; }
  .process__grid { grid-template-columns: 1fr; }
  .process__grid li, .process__grid li:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}

/* регалии: карточки в один ряд, едут вбок вместе с прокруткой страницы */
.regalia { position: relative; margin-top: clamp(60px, 7vw, 110px); }
.regalia__pin {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 70px;
}
.regalia .process__head { margin-bottom: clamp(40px, 6.5vh, 76px); }
/* заголовок над блоком «Каждая партия» + факты — тот же стиль, что «Как устроено производство» */
.about__head { grid-template-columns: 1fr; gap: clamp(18px, 2vw, 28px); margin-bottom: clamp(28px, 2.6vw, 40px); }   /* текст о компании чуть ближе к подводке */
.about__head h2 { max-width: none; font-size: clamp(2.4rem, 7.6vw, 8.4rem); font-weight: 600; letter-spacing: -0.048em; line-height: 1.04; text-wrap: pretty; }
.about__head p { justify-self: end; margin-top: clamp(28px, 4vw, 68px); }   /* подводка чуть ниже заголовка */
.about__head h2 .accent { color: var(--blue); }
/* синяя часть заголовка по кругу меняет смысл: слово уходит вверх и растворяется, новое поднимается снизу */
.rot__ico { display: inline-block; width: 0.84em; height: 0.84em; margin-left: 0.18em; vertical-align: -0.06em; fill: currentColor; stroke: none; }   /* смысловая иконка рядом с фразой, на высоту букв */
/* фраза в контурной плашке формы логотипа (скругление ≈ 30% высоты); внутри меняются надписи, плашка плавно меняет ширину */
.rot { display: inline-flex; align-items: center; vertical-align: 0.02em; white-space: nowrap; overflow: hidden;
  height: 1.24em; padding: 0 0.26em; margin: 0.1em 0 0; border-radius: 0.34em; box-shadow: inset 0 0 0 clamp(2.6px, 0.039em, 4.7px) currentColor;   /* обводка чуть толще линий иконки */
  transition: width 0.55s cubic-bezier(.6,0,.4,1); }
.rot__in { display: inline-flex; align-items: center; line-height: 1; padding-bottom: 0.1em; transition: transform 0.45s cubic-bezier(.6,0,.4,1), opacity 0.45s, filter 0.45s; }
.rot.is-out .rot__in { transform: translateY(-0.6em); opacity: 0; filter: blur(6px); }
.rot.is-pre .rot__in { transform: translateY(0.6em); opacity: 0; filter: blur(6px); transition: none; }
.nums__head { margin-top: clamp(100px, 11vw, 170px); }
.nums__head + .space { margin-top: 0; }
.rtrack-wrap { margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); overflow: visible; }
.rtrack { display: flex; gap: 14px; width: max-content; will-change: transform; }
.rtrack > * { flex: none; height: clamp(340px, 50vh, 460px); width: clamp(280px, 23vw, 360px); }
.rtrack > .rtile--hero { width: clamp(420px, 40vw, 640px); }
.rprog { position: relative; height: 2px; margin-top: clamp(24px, 4vh, 40px); width: min(240px, 40vw); background: var(--line); border-radius: 2px; overflow: hidden; }
.rprog i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--blue); }
.rtile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  padding: 28px; border-radius: var(--r-l);
  background: var(--tile); color: var(--ink);
}
.rtile__tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(11, 11, 18, 0.18); }
.rtile__ico { position: absolute; top: 20px; right: 20px; width: 56px; height: 56px; fill: none; stroke: var(--blue); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.rtile--blue .rtile__ico, .rtile--black .rtile__ico { stroke: #fff; }
.rtile__code { display: block; margin-top: auto; white-space: nowrap; font-size: clamp(2.1rem, 3vw, 3.2rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.rtile p { font-size: 15.5px; line-height: 1.45; color: var(--muted-2); max-width: 24ch; }
.rtile--blue { background: linear-gradient(155deg, #3532ff 0%, var(--blue) 60%); color: #fff; }
.rtile--black { background: #000; color: #fff; }
.rtile--blue p, .rtile--black p { color: rgba(255, 255, 255, 0.68); }
.rtile--blue .rtile__tag, .rtile--black .rtile__tag { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.rtile--outline { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.rtile--hero {
  margin: 0; overflow: hidden; isolation: isolate; color: #fff; justify-content: flex-end;
  background: radial-gradient(90% 70% at 20% 0%, #3d3aff 0%, rgba(61, 58, 255, 0) 60%), #05061a;
}
.rtile__label {
  position: absolute; left: 50%; top: 44%; width: 84%; translate: -50% -50%; rotate: -4deg;
  border-radius: 14px; overflow: hidden; z-index: -1;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: rotate 0.6s var(--ease), scale 0.6s var(--ease);
}
.rtile--hero:hover .rtile__label { rotate: -1.5deg; scale: 1.03; }
.rtile__label img { width: 100%; height: auto; }
.rtile--hero figcaption { display: flex; flex-direction: column; gap: 6px; padding-top: 70px; margin: 0 -28px -28px; padding-inline: 28px; padding-bottom: 28px; background: linear-gradient(0deg, rgba(5, 6, 26, 0.95) 30%, rgba(5, 6, 26, 0)); }
.rtile--hero b { font-size: clamp(1.25rem, 1.8vw, 1.7rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.rtile--hero span { font-size: 14.5px; color: rgba(255, 255, 255, 0.66); max-width: 44ch; }

@media (max-width: 640px) {
  .regalia__pin { padding-top: 64px; }
  .rtrack > * { width: 76vw; height: min(400px, 52svh); }
  .rtrack > .rtile--hero { width: 86vw; }
  .rtile { padding: 22px; border-radius: 24px; }
  .rtile__code { font-size: 1.9rem; }
  .rtile__ico { top: 16px; right: 16px; width: 46px; height: 46px; }
  .rtile--hero figcaption { margin: 0 -22px -22px; padding-inline: 22px; padding-bottom: 22px; }
}


/* ---------- масло: свет → тьма ---------- */
.oil { position: relative; height: 340vh; margin-top: var(--sect); }
.oil__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #fff; }
.oil__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.oil__fallback { display: none; }
.oil.no-gl .oil__fallback {
  display: block; position: absolute; left: 50%; top: 50%; width: min(52vw, 520px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 56% 44% 52% 48% / 48% 58% 42% 52%;
  background: radial-gradient(40% 36% at 36% 30%, #fff2cf, transparent 60%), radial-gradient(100% 100% at 50% 40%, #f0a830 20%, #b5731a 70%, #6e4406);
}
.oil__layer { position: absolute; inset: 0; pointer-events: none; }
.oil__layer--light { color: var(--ink); }
.oil__layer--dark { color: #fff; opacity: 0; }
.oil__word {
  position: absolute;
  font-size: clamp(5rem, 15.5vw, 17rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8;
  white-space: nowrap; will-change: transform;
}
.oil__word--a { left: 4vw; top: 15vh; }
.oil__word--b { right: 4vw; bottom: 13vh; }
/* «защита» на тёмной фазе: по слову пробегает фирменный синий, затем слово застывает в градиенте белый → #0400FF */
@property --sweep { syntax: '<percentage>'; inherits: false; initial-value: -40%; }
.oil__layer--dark .oil__word--b {
  --sweep: -40%;
  background: linear-gradient(90deg, #fff calc(var(--sweep) - 26%), #0400ff var(--sweep), #fff calc(var(--sweep) + 26%));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;   /* чтобы клип не срезал хвосты букв */
}
.oil__layer--dark .oil__word--b::after {
  content: attr(data-t); position: absolute; inset: 0; padding-bottom: 0.08em;
  background: linear-gradient(90deg, #fff 0%, #fff 12%, #6f6dff 52%, #0400ff 88%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0;
}
.oil[data-tone="dark"] .oil__layer--dark .oil__word--b { animation: tl-sweep 1.7s cubic-bezier(.45,.05,.3,1) 0.15s both; }
.oil[data-tone="dark"] .oil__layer--dark .oil__word--b::after { animation: tl-settle 0.9s ease 1.25s both; }
@keyframes tl-sweep { from { --sweep: -40%; } to { --sweep: 140%; } }
@keyframes tl-settle { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .oil__layer--dark .oil__word--b::after { opacity: 1; animation: none !important; } }
.oil__call { position: absolute; display: flex; flex-direction: column; gap: 4px; max-width: 240px; }
.oil__call::before { content: ""; position: absolute; height: 1px; width: 90px; background: currentColor; opacity: 0.45; }
.oil__call b { font-size: clamp(1.7rem, 2.6vw, 2.6rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.oil__call span { font-size: 13.5px; opacity: 0.62; line-height: 1.35; }
.oil__call--1 { right: 10vw; top: 22vh; text-align: left; }
.oil__call--1::before { right: calc(100% + 16px); top: 26px; transform: rotate(-24deg); transform-origin: right center; }
.oil__call--2 { left: 9vw; bottom: 30vh; }
.oil__call--2::before { left: calc(100% + 16px); top: 18px; transform: rotate(-20deg); transform-origin: left center; }
.oil__note { position: absolute; left: 4vw; bottom: 6vh; max-width: 36ch; font-size: 14px; opacity: 0.6; }

@media (max-width: 760px) {
  .oil { height: 300vh; }
  .oil__word { font-size: 20vw; }
  .oil__word--a { top: 13vh; left: 7vw; }
  .oil__word--b { bottom: 20vh; right: 8vw; }   /* с запасом на сдвиг при прокрутке (±4vw) — слово не обрезается краем экрана */
  .oil__call--1 { right: 6vw; top: 26vh; }
  .oil__call--2 { left: 6vw; bottom: 33vh; }
  .oil__call::before { display: none; }
  .oil__note { right: 6vw; bottom: 5vh; }
}

/* ---------- каталог: бенто ---------- */
.catalog { padding-block: var(--sect) clamp(70px, 8vw, 130px); position: relative; z-index: 2; background: var(--paper); margin-top: calc(-1 * var(--r-hero)); border-radius: var(--r-hero) var(--r-hero) 0 0; }   /* белый фон наезжает на тёмную сцену масла скруглёнными углами */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head p { color: var(--muted-2); max-width: 38ch; }

.bento {
  display: grid; gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 14vw, 220px);
  grid-template-areas:
    "a b c d e"
    "f g c i h"
    "j k l l h";
}
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; border-radius: var(--r-l);
  background: var(--tile); color: var(--ink);
  transition: transform 0.35s var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile__ico { position: absolute; top: 22px; left: 22px; width: 32px; height: 32px; stroke-width: 1.6; }
.tile h3 { font-size: clamp(1.05rem, 1.35vw, 1.3rem); letter-spacing: -0.02em; line-height: 1.12; hyphens: manual; }
.tile p { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted-2); max-width: 24ch; }
.tile__go {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(11, 11, 18, 0.07);
  opacity: 0; transform: scale(0.8); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.tile__go svg { width: 14px; height: 14px; }
.tile:hover .tile__go, .tile:focus-visible .tile__go { opacity: 1; transform: none; }
.tile--blue { background: linear-gradient(155deg, #3532ff 0%, var(--blue) 60%); color: #fff; }
.tile--black { background: #000; color: #fff; }
.tile--blue p, .tile--black p { color: rgba(255, 255, 255, 0.68); }
.tile--blue .tile__go, .tile--black .tile__go { background: rgba(255, 255, 255, 0.18); }
.tile--outline { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.tile--outline h3 { font-size: clamp(1.25rem, 1.8vw, 1.7rem); }
.tile--photo { padding: 0; color: #fff; background: #0a0b18; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 0.7s var(--ease); }
.tile--photo:hover img { transform: scale(1.05); }
.tile--photo .tile__meta { padding: 60px 22px 22px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); }
.tile--photo p { color: rgba(255, 255, 255, 0.75); }
.tile--photo .tile__go { background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); }

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "a b c" "d e c" "f g h" "i j h" "k l l"; }
}
@media (max-width: 640px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 168px; gap: 10px;
    grid-template-areas: "c c" "c c" "a b" "d e" "h h" "h h" "f g" "i j" "k l"; }
  .tile { padding: 18px; border-radius: 22px; }
  .tile__ico { top: 18px; left: 18px; }
  .tile p { font-size: 13px; }
  .tile h3 { font-size: 15.5px; }
  .hcard__top { flex-wrap: wrap; row-gap: 10px; }
  .tile--outline h3 { font-size: 1.1rem; }
  .tile__go { opacity: 1; transform: none; width: 32px; height: 32px; }
}

/* ---------- акции ---------- */
.promo { padding-block: clamp(70px, 8vw, 130px); background: #000; color: #fff; overflow: hidden; }   /* компактнее между каталогом, акциями и бочкой */
/* плавный переход белый → чёрный при подъезде к «Акциям сезона»: --dk 0…1 задаёт js */
.js-dusk .catalog, .js-dusk .promo, .js-dusk .barrel__pin { background: color-mix(in srgb, #000 calc(var(--dk, 0) * 100%), var(--paper)); }
.js-dusk .catalog { color: color-mix(in srgb, #fff calc(var(--dk, 0) * 100%), var(--ink)); }
.js-dusk .promo, .js-dusk .barrel__pin { color: color-mix(in srgb, #fff calc(var(--dk, 0) * 100%), var(--ink)); }
.js-dusk .promo__nav button { box-shadow: inset 0 0 0 1px color-mix(in srgb, rgba(255, 255, 255, 0.3) calc(var(--dk, 0) * 100%), rgba(11, 11, 18, 0.2)); }
.promo__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.promo__nav { display: flex; gap: 10px; }
.promo__nav button { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); transition: background 0.2s; }
.promo__nav button:hover { background: rgba(255, 255, 255, 0.12); }
.promo__nav svg { width: 17px; height: 17px; }

.promo__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(var(--pad), (100vw - 1680px) / 2 + var(--pad));
  scroll-padding-inline: max(var(--pad), (100vw - 1680px) / 2 + var(--pad));
  padding-bottom: 6px; scrollbar-width: none; cursor: grab;
}
.promo__track::-webkit-scrollbar { display: none; }
.promo__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.pcard { position: relative; flex: none; height: min(72vh, 620px); border-radius: var(--r-xl); overflow: hidden; scroll-snap-align: start; background: #0b0b14; }
.pcard--wide { aspect-ratio: 16 / 10.4; }
.pcard--tall { aspect-ratio: 4 / 5; }
.pcard > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); pointer-events: none; }
.pcard:hover > img { transform: scale(1.035); }
.pcard__tag { position: absolute; top: 20px; left: 20px; padding: 8px 15px; border-radius: 999px; background: var(--blue); font-size: 13.5px; font-weight: 600; }
.pcard__plate {
  position: absolute; left: 16px; bottom: 16px; width: min(400px, calc(100% - 32px));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 18px 18px 18px 20px; border-radius: 22px;
  background: rgba(10, 10, 16, 0.58); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.pcard__plate span { display: flex; flex-direction: column; gap: 6px; }
.pcard__plate b { font-size: 18.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.pcard__plate em { font-style: normal; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.66); }
.pcard__plate i { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transition: background 0.25s, color 0.25s, transform 0.3s var(--ease); }
.pcard__plate i svg { width: 15px; height: 15px; }
.pcard__plate:hover i { background: var(--blue); color: #fff; transform: rotate(45deg); }
/* широкие превью: высокая плашка, крупный заголовок сверху, описание и стрелка — внизу */
.pcard--wide .pcard__plate { width: min(460px, 42%); min-height: 56%; padding: 26px 22px 22px 28px; border-radius: 26px; }
.pcard--wide .pcard__plate span { align-self: stretch; justify-content: space-between; gap: 24px; }
.pcard--wide .pcard__plate b { font-size: clamp(1.7rem, 2.4vw, 2.5rem); font-weight: 500; letter-spacing: -0.032em; line-height: 1.06; }
.pcard--wide .pcard__plate em { font-size: 15px; max-width: 30ch; }
.pcard--wide .pcard__plate i { width: 52px; height: 52px; }

@media (max-width: 760px) {
  .promo__nav { display: none; }
  .pcard { height: 500px; }
  .pcard--wide { aspect-ratio: auto; width: 86vw; }
  .pcard--wide .pcard__plate { width: calc(100% - 32px); min-height: 44%; padding: 20px 18px 18px 20px; }
  .pcard--wide .pcard__plate b { font-size: 1.6rem; }
  .pcard--tall { aspect-ratio: auto; width: 76vw; }
}

/* ---------- бочка 3D ---------- */
.barrel { position: relative; height: 360vh; }
.barrel__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #fff; }
.barrel__word { position: absolute; left: 50%; top: 53%; width: 150vw; translate: -50% -50%; color: var(--blue); will-change: transform; }
.barrel__word svg { width: 100%; height: auto; fill: currentColor; }
.barrel__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.barrel__fallback { display: none; }
.barrel.no-gl .barrel__fallback { display: block; position: absolute; left: 50%; top: 53%; translate: -50% -50%; height: 76vh; width: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.18)); }
/* заголовок крупно в левом верхнем углу, текст — в правом нижнем, под фоновой надписью */
.barrel__caption { position: absolute; left: 0; right: 0; top: clamp(96px, 13vh, 150px); bottom: clamp(32px, 7vh, 72px); padding-inline: var(--pad); display: grid; pointer-events: none; }
.barrel__cap {
  grid-area: 1 / 1; height: 100%;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.barrel__cap.is-active { opacity: 1; transform: none; }
.barrel__cap b {
  align-self: flex-start; max-width: none; white-space: nowrap;   /* ровно две строки, и вторая не заходит на бочку */
  font-size: clamp(2.2rem, min(4.4vw, calc((33vw - var(--pad) - 28px) / 8.2)), 5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 0.94; text-wrap: balance;
}
.barrel__cap span { margin-top: auto; align-self: flex-start; width: min(330px, 100%); color: var(--muted-2); font-size: 17px; line-height: 1.5; }   /* описание — внизу слева, под фоновой надписью */
.barrel__cta { position: absolute; right: var(--pad); bottom: clamp(32px, 7vh, 72px); z-index: 3; }   /* кнопка — на месте прежнего текста */
.barrel__chips { align-self: flex-start; width: min(320px, 100%); display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.barrel__chips li { padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
/* лента категорий: по центру — текущая, соседние по бокам наполовину растворяются в фоне; листается прокруткой */
.bicons { --iw: clamp(104px, 8.6vw, 128px); position: absolute; right: calc(var(--pad) + 18px); top: calc(53% - 5.5vw - 18px); transform: translateY(-100%);   /* справа от бочки, над фоновой надписью */ width: calc(var(--iw) * 3); padding-block: 12px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 74%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 74%, transparent 100%); }
.bicons__track { display: flex; width: max-content; will-change: transform; }
.bicons__item { flex: none; width: var(--iw); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; transition: opacity 0.3s; }
.bicons__item svg { width: calc(var(--iw) * 0.66); height: auto; fill: none; stroke: var(--blue); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.bicons__item span { font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--muted-2); max-width: 12ch; }
.barrel__progress { position: absolute; right: var(--pad); top: 50%; translate: 0 -50%; width: 3px; height: 120px; border-radius: 2px; background: var(--line); overflow: hidden; }
.barrel__progress i { position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--blue); }

@media (max-width: 760px) {
  .barrel { height: 300vh; }
  .barrel__word { width: 190vw; top: 50%; }
  .barrel__progress { display: none; }
  .bicons { display: none; }
}

@media (max-width: 1099px) {
  .barrel__caption { top: clamp(84px, 11vh, 120px); bottom: clamp(20px, 4vh, 40px); }
  .barrel__cap b { font-size: clamp(1.9rem, 8.2vw, 3.6rem); max-width: none; }
  .barrel__cap span { font-size: 15.5px; width: min(40ch, 100%); margin-top: auto; }
  .barrel__caption { bottom: calc(clamp(20px, 4vh, 40px) + 72px); }
  .barrel__cta { left: var(--pad); right: var(--pad); bottom: clamp(20px, 4vh, 40px); }
  .barrel__chips { margin-top: 10px; }
  .barrel.no-gl .barrel__fallback { height: 46vh; }
}

/* ---------- новости ---------- */
.news { padding-block: clamp(36px, 4vw, 64px) clamp(72px, 7vw, 110px);   /* компактнее сверху (после бочки) и снизу */ position: relative; z-index: 2; background: var(--paper); border-radius: 0 0 var(--r-hero) var(--r-hero); margin-bottom: calc(-1 * var(--r-hero)); }   /* белый лист заходит на синий блок скруглёнными нижними углами — как у слайдера */
.filter { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--fog); flex: none; }
.filter__btn { padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted-2); transition: background 0.2s, color 0.2s; }
.filter__btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08); }

.news__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; }
.ncard { display: flex; flex-direction: column; padding: 12px; border-radius: var(--r-xl); background: var(--fog); transition: transform 0.35s var(--ease); }
.ncard:hover { transform: translateY(-4px); }
.ncard[hidden] { display: none; }
.ncard--big { grid-row: span 2; }
.ncard__img { border-radius: 26px; overflow: hidden; background: #0b0b14; }
.ncard__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.7s var(--ease); }
.ncard--big .ncard__img img { aspect-ratio: 5 / 4; }
.ncard:hover .ncard__img img { transform: scale(1.03); }
.ncard__body { padding: 22px 16px 14px; }
.ncard__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 600; }
.chip--ghost { background: #fff; color: var(--ink); }
.ncard h3 { font-size: clamp(1.3rem, 1.9vw, 1.75rem); letter-spacing: -0.025em; line-height: 1.12; }
.ncard--big h3 { font-size: clamp(1.6rem, 2.7vw, 2.6rem); }
.ncard__body > p:last-child { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 52ch; }
.news__grid .ncard:not(.ncard--big) { flex-direction: column; justify-content: space-between; gap: 18px; }
/* небольшое горизонтальное превью в углу: у верхней карточки — слева, у нижней — справа; текст под ним на всю ширину */
.news__grid .ncard:not(.ncard--big) .ncard__img { width: min(46%, 260px); border-radius: 22px; align-self: flex-start; }
.news__grid .ncard:not(.ncard--big) ~ .ncard:not(.ncard--big) .ncard__img { align-self: flex-end; }
.news__grid .ncard:not(.ncard--big) .ncard__img img { aspect-ratio: 3 / 2; height: auto; }
.news__grid .ncard:not(.ncard--big) .ncard__body { padding: 0 14px 14px; }
.news__grid .ncard:not(.ncard--big) h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.06; letter-spacing: -0.03em; }

.nlist { margin-top: clamp(40px, 5vw, 64px); }
.nlist li { border-top: 1px solid var(--line); }
.nlist li:last-child { border-bottom: 1px solid var(--line); }
.nlist li[hidden] { display: none; }
.nlist a { display: grid; grid-template-columns: 170px 130px minmax(0, 1fr) 46px; gap: 20px; align-items: center; padding: 26px 0; transition: padding 0.3s var(--ease); }
.nlist a:hover { padding-left: 10px; }
.nlist time { color: var(--muted); font-size: 15px; }
.nlist__type { font-size: 13.5px; color: var(--muted); }
.nlist b { font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.nlist i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--fog); transition: background 0.25s, color 0.25s; }
.nlist i svg { width: 14px; height: 14px; }
.nlist a:hover i { background: var(--blue); color: #fff; }
.news__all { margin-top: clamp(32px, 4vw, 48px); }

@media (max-width: 900px) {
  .news__grid { grid-template-columns: 1fr; }
  .ncard--big { grid-row: auto; }
  .news__grid .ncard:not(.ncard--big) .ncard__body { padding: 0 10px 10px; }
  .news__grid .ncard:not(.ncard--big) h3 { font-size: 1.5rem; }
  .nlist a { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "t i" "b i"; row-gap: 6px; }
  .nlist time { grid-area: t; }
  .nlist__type { display: none; }
  .nlist b { grid-area: b; }
  .nlist i { grid-area: i; }
  .filter { overflow-x: auto; max-width: 100%; }
}

/* ---------- CTA ---------- */
.cta {
  padding-block: calc(clamp(40px, 5vw, 80px) + var(--r-hero)) calc(clamp(90px, 10vw, 150px) + var(--r-hero)); color: #fff;
  background: radial-gradient(80% 120% at 85% 0%, #6b78ff 0%, rgba(107, 120, 255, 0) 55%), radial-gradient(70% 100% at 0% 100%, #2621ff 0%, rgba(38, 33, 255, 0) 60%), var(--blue);
}
/* текст сверху по центру, под ним иллюстрация с тарой, ниже — телефоны по центру */
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; overflow: visible; }
.cta { overflow: hidden; }
.cta h2 { font-weight: 400; letter-spacing: -0.035em; max-width: 22ch; font-size: clamp(2.2rem, 4.4vw, 4.4rem); text-wrap: balance; }
.cta h2 span { color: rgba(255, 255, 255, 0.6); }
.cta__art { width: min(1320px, 118%); margin: clamp(-40px, -3vw, -10px) 0 clamp(4px, 1vw, 16px); }   /* иллюстрация над заголовком */
/* фото растворяется в синем фоне секции: края кадра уходят в прозрачность по всем сторонам */
.cta__art img { display: block; width: 100%; height: auto; filter: brightness(1.06) saturate(1.05);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 78%, transparent 100%), linear-gradient(to right, transparent 0, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 78%, transparent 100%), linear-gradient(to right, transparent 0, #000 20%, #000 80%, transparent 100%);
  mask-composite: intersect; }
@media (max-width: 700px) { .cta__art { width: 168%; margin-block: 4px 0; } }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(36px, 4.5vw, 64px); }   /* воздух между текстом и кнопкой */
.cta__btn { height: clamp(64px, 6vw, 84px); padding: 0 clamp(36px, 4vw, 56px); gap: 14px; font-size: clamp(1.1rem, 1.5vw, 1.45rem); font-weight: 600; letter-spacing: -0.01em; }
.cta__btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.cta__btn:hover svg { transform: translateX(4px); }
@media (max-width: 700px) { .cta__actions { width: 100%; } .cta__btn { width: 100%; } }

/* ---------- футер: бенто ---------- */
.footer { position: relative; z-index: 2; background: #000; color: #fff; padding-top: clamp(56px, 6vw, 96px); margin-top: calc(-1 * var(--r-hero)); border-radius: var(--r-hero) var(--r-hero) 0 0; }   /* чёрный футер заходит на синий блок скруглёнными углами, по бокам виден синий */
.fbento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: 12px; }
.fcard { position: relative; border-radius: var(--r-xl); background: #101018; padding: clamp(22px, 2.4vw, 34px); }   /* без обводки — карточки отделяются только тоном */
.fcard h4 { font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }
.fcard--brand { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; gap: 20px; background: none; padding: 6px clamp(16px, 2vw, 32px) 6px 0; }   /* логотип и контакты — прямо на чёрном фоне, без плашки */
.fcard--brand .fcard__mark { display: block; width: clamp(200px, 16vw, 260px); height: auto; fill: #fff; align-self: flex-start; }   /* только начертание, без плашки */
.fcard--brand p { color: rgba(255, 255, 255, 0.6); font-size: 16px; line-height: 1.5; max-width: 32ch; }
.fcard__info { display: flex; flex-direction: column; gap: 10px; }
.fcard__info li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.78); line-height: 1.4; }
.fcard__info a { color: #fff; transition: color 0.2s; } .fcard__info a:hover { color: #8c8aff; }
.fcard__info svg, .fcard__map svg { flex: none; width: 19px; height: 19px; fill: #fff; stroke: none; margin-top: 1px; }   /* белые иконки заливкой */
.fcard__map { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px 11px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); font-size: 14.5px; font-weight: 500; transition: background 0.2s; }
.fcard__map:hover { background: var(--blue); }
.fcard__map:hover svg { fill: #fff; }
.fcard__phones { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.fcard__phones a { font-size: clamp(1.4rem, 1.9vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; transition: color 0.2s; }
.fcard__phones a:hover { color: #8c8aff; }
.fcard--catalog { grid-column: span 8; }
.fcard__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.fcard__more { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, 0.8); }
.fcard__more svg { width: 12px; height: 12px; }
.fcard__more:hover { color: #fff; }
.fcats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fcats li { min-width: 0; }
.fcats a { display: flex; min-width: 0; overflow-wrap: anywhere; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; font-size: 15.5px; color: rgba(255, 255, 255, 0.86); transition: background 0.2s, color 0.2s; }
.fcats a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.fcats svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fcard--nav { grid-column: span 4; }
.fcard--nav ul { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.fcard--nav a { font-size: 15.5px; color: rgba(255, 255, 255, 0.86); transition: color 0.2s; }
.fcard--nav a:hover { color: #fff; }
.fcard--cta, .fcard--buy { grid-column: span 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 180px; transition: transform 0.3s var(--ease); }
.fcard--cta { background: linear-gradient(155deg, #3532ff 0%, var(--blue) 60%); box-shadow: none; }
.fcard--cta:hover, .fcard--buy:hover { transform: translateY(-3px); }
.fcard--cta b, .fcard--buy b { font-size: clamp(1.25rem, 1.6vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.fcard--cta span:last-child, .fcard--buy span:last-child { font-size: 13.5px; color: rgba(255, 255, 255, 0.66); line-height: 1.35; }
.fcard__go { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); transition: background 0.2s, transform 0.3s var(--ease); }
.fcard__go svg { width: 13px; height: 13px; }
.fcard--cta:hover .fcard__go, .fcard--buy:hover .fcard__go { background: #fff; color: var(--ink); transform: rotate(45deg); }
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px 32px; padding-block: 26px; margin-top: 12px; color: rgba(255, 255, 255, 0.45); font-size: 14px; }
.footer__legal { display: flex; flex-direction: column; gap: 6px; }
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; max-width: 720px; }
.footer__docs a { color: rgba(255, 255, 255, 0.62); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.22); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.footer__docs a:hover { color: #fff; text-decoration-color: #fff; }
@media (max-width: 700px) { .footer__docs { justify-content: flex-start; flex-direction: column; } }
@media (max-width: 1100px) {
  .fcard--brand { grid-column: span 12; grid-row: auto; padding: 0 0 12px; }
  .fcard__phones { margin-top: 8px; }
  .fcard--catalog { grid-column: span 12; }
  .fcard--nav { grid-column: span 12; }
  .fcard--cta, .fcard--buy { grid-column: span 6; }
}
@media (max-width: 640px) {
  .fcats { grid-template-columns: 1fr 1fr; }
  .fcats a { font-size: 13.5px; padding: 9px 6px; gap: 8px; overflow-wrap: normal; hyphens: auto; }
  .fcard--cta, .fcard--buy { grid-column: span 12; min-height: 140px; }
}

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .regalia { height: auto !important; }
  .regalia__pin { position: static; height: auto; }
  .rtrack-wrap { overflow-x: auto; }
  .rtrack { transform: none !important; }
  .header__bar { transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .oil, .barrel { height: auto; }
  .oil__pin, .barrel__pin { position: relative; height: 100svh; }
}

/* защита от распирания ячеек */
.process__grid li > *, .nlist a > *, .sec-head > *, .cta__inner > *, .about__intro > * { min-width: 0; }
.promo__head h2 { max-width: 22ch; text-wrap: balance; }   /* длинный заголовок — в две строки */
/* гидравлика: канистра Ultra выглядывает из плашки снизу, заголовок наверху */
.tile--can { container-type: size; justify-content: flex-start; background: linear-gradient(180deg, #05061a 0%, #0400ff 42%, #0400ff 100%); }   /* фирменный #0400FF начинается уже с ~40% высоты */
.tile--can img { inset: auto; left: 50%; bottom: calc(min(80cqh, 122cqw) * -0.28); height: min(80cqh, 122cqw); width: auto; max-width: none; object-fit: contain; z-index: -1;
  transform: translateX(-50%); transform-origin: 50% 100%; filter: none; }   /* без затемнения вокруг канистры */
.tile--can:hover img { transform: translateX(-50%) translateY(-3%); }   /* канистры стоят ровно */
.tile--af img { --h: calc(min(80cqh, 122cqw) * 0.887); height: var(--h); bottom: calc(var(--h) * -0.28); }   /* антифриз шире гидравлики — та же ширина, те же поля до краёв плашки */
/* смена продуктов в плашке: Ultra → Premium → Standard, Blue ↔ Red — плавный кроссфейд */
.tile--can img { opacity: 0; z-index: -2; }
.tile--can img.is-on { opacity: 1; }
.tile--can img.is-in { z-index: -1; transition: opacity 1.4s cubic-bezier(.45,0,.3,1), transform 0.7s var(--ease); }   /* новая проявляется поверх старой — без провала */
.tile--can .tile__meta { padding: 24px 56px 0 22px; background: none; }
.tile--can .tile__meta h3 { font-size: clamp(1.2rem, 1.6vw, 1.55rem); }
@media (max-width: 640px) { .tile--can .tile__meta { padding: 18px 18px 0; } }

/* «Станьте партнёром»: продукты одного размера, три в ряд, сменяют друг друга при прокрутке */
.cprods { --iw: min(440px, calc((100vw - 2 * var(--pad)) / 3)); --ih: clamp(260px, 35vw, 510px);
  width: calc(var(--iw) * 3); max-width: 100%; margin: 0 auto clamp(28px, 4vw, 56px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.cprods__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; will-change: transform; }
.cprods__item { flex: none; width: var(--iw); height: var(--ih); display: flex; align-items: flex-end; justify-content: center; }
.cprods__item img { display: block; height: 100%; width: auto; max-width: 88%; object-fit: contain; object-position: 50% 100%; transform-origin: 50% 100%; will-change: transform; filter: none; }   /* только сами продукты, без тени */
@media (max-width: 700px) { .cprods { --iw: 50vw; --ih: 300px; width: 100vw; max-width: none; margin-inline: calc(-1 * var(--pad)); } }
/* стеклянная плашка с предложением и кнопкой — слева; карусель продуктов на всю ширину проходит под ней */
.cta__stage { position: relative; display: flex; flex-direction: column; width: 100%; }
.cta__title { align-self: stretch; text-align: left; margin-bottom: clamp(32px, 4vw, 64px); font-size: clamp(3rem, 8.6vw, 9.4rem) !important; font-weight: 600 !important; letter-spacing: -0.05em !important; line-height: 0.94; max-width: none !important; }
.cta__logo { display: inline-flex; align-items: flex-start; gap: 0.08em; vertical-align: baseline; white-space: nowrap; }
.cta__logo img { display: block; height: 0.86em; width: auto; position: relative; top: 0.14em; }   /* плашка логотипа ≈ высоте строчных + выносных, на базовой линии строки */
.cta__reg--text { vertical-align: top; position: relative; top: 0.3em; margin: 0 0 0 0.06em !important; }
.cta__reg { font-size: 0.28em; font-weight: 500; letter-spacing: 0; line-height: 1; margin-top: 0.62em; margin-left: 0.15em; }
.cta__lead { font-size: clamp(1.5rem, 2.4vw, 2.5rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; max-width: 20ch; color: #fff; }
.cta .cprods { --ih: clamp(220px, 24vw, 360px); --iw: clamp(240px, 22vw, 380px); margin: 0 0 clamp(20px, 3vw, 36px); -webkit-mask-image: none; mask-image: none; }
.cta__card { position: relative; z-index: 1; width: min(820px, 100%); padding: clamp(30px, 3.8vw, 56px) clamp(22px, 4vw, 60px);
  border-radius: clamp(28px, 3vw, 44px); background: rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(26px) saturate(1.25); backdrop-filter: blur(26px) saturate(1.25);
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.cta__card .cta__actions { justify-content: flex-start; margin-top: clamp(28px, 3.2vw, 44px); }
@media (min-width: 1000px) {
  .cta__stage { align-items: flex-start; }
  .cta__card { width: min(620px, 44%); }
  .cta .cprods { position: absolute; z-index: 0; top: 50%; left: 50%; width: 100vw; max-width: none; margin: 0; transform: translate(-50%, -50%); }
}
@media (max-width: 999px) { .cta__card { margin-top: -80px; } }
@media (max-width: 700px) { .cta .cprods { --ih: 240px; --iw: 46vw; width: 100vw; margin-inline: calc(-1 * var(--pad)); } .cta__card .cta__actions { width: 100%; } }

/* мобильное меню: «Продукция» — простой раскрывающийся список на белом фоне, вне бенто-карточек */
.mcard--prod { background: none; border-radius: 0; padding: 0 2px; margin-bottom: 6px; box-shadow: inset 0 -1px 0 var(--line); }
.mcard--prod .mcard__toggle { padding: 10px 0 18px; }
.mcard--prod .mcard__ico { display: none; }
.mcard--prod .mcard__title { font-size: 30px; }
.mcard--prod .mcard__chev { background: var(--tile); }
.mcard--prod .mcats { grid-template-columns: 1fr; gap: 0; padding: 0 0 6px; }
.mcard--prod .mcat { min-height: 50px; padding: 12px 2px; border-radius: 0; background: none; font-size: 16px; box-shadow: inset 0 1px 0 var(--line); }
.mcard--prod .mcat:active { background: none; color: var(--blue); }
.mcard--prod .mcat:active svg { stroke: var(--blue); }
.mcard--prod .mcat svg { width: 22px; height: 22px; }
.mcard--prod .mcard__all { margin: 6px 0 18px; }

/* «Отгрузка»: при прокрутке кружок растягивается в капсулу к заголовку, отодвигая текст, а внутри едет фургон доставки */
.process__grid li.process__ship { --w: clamp(48px, 4.4vw, 64px); --x: 0; grid-template-columns: calc(var(--w) * (1 + 1.9 * var(--x))) minmax(0, 1fr); }
.process__ship .process__n { width: 100%; aspect-ratio: auto; height: var(--w); border-radius: 999px; }
.process__ship .process__n b { position: absolute; left: 0; top: 0; width: var(--w); height: var(--w); display: grid; place-items: center; font: inherit; z-index: 1; }
.process__van { position: absolute; z-index: 1; top: 50%; height: calc(var(--w) * 0.42); width: auto; aspect-ratio: 48 / 28; overflow: visible;
  left: calc(var(--w) * 0.78 + (100% - var(--w) * 0.78 - var(--w) * 0.42 * 48 / 28 - var(--w) * 0.3) * var(--x));
  transform: translateY(-58%); opacity: clamp(0, calc((var(--x) - 0.12) * 5), 1); fill: #fff; }
.process__van .win { fill: var(--blue); }
.process__van .hub { fill: var(--blue); }
.process__van .ln { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: calc(var(--x) * 0.9); }
.process__van .wh { transform-box: fill-box; transform-origin: center; animation: tl-wheel 0.6s linear infinite; }
@keyframes tl-wheel { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .process__van .wh { animation: none; } }

/* карточка «в цифрах»: в начале изображение крупнее — во всю ширину окна и выше, до промежутка под текстом «…каждой партии»,
   с мягким прозрачным верхним краем; по прокрутке садится на своё место со скруглёнными углами. Заголовок лежит поверх и светлеет на тёмном */
.nums__head { position: relative; z-index: 2; }
.nums__head.on-dark h2 { color: color-mix(in srgb, #fff calc(var(--on, 0) * 100%), var(--ink)); }
.nums__head.on-dark p { color: color-mix(in srgb, rgba(255, 255, 255, 0.62) calc(var(--on, 0) * 100%), var(--muted-2)); }
.space { z-index: 1; }

/* поиск: раскрывается широкой формой под шапкой, в поле по кругу меняются подсказки */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button.header__search { color: inherit; cursor: pointer; }
.header__search .s-x { opacity: 0; }
.header__search .s-lens, .header__search .s-x { transition: opacity 0.25s; }
.header.is-search .header__search .s-lens { opacity: 0; }
.header.is-search .header__search .s-x { opacity: 1; }
.hsearch { pointer-events: auto; margin: 0 var(--pad); padding: 14px; border-radius: 30px;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 24px 60px rgba(4, 0, 60, 0.18), inset 0 0 0 1px rgba(11, 11, 18, 0.06); color: var(--ink);
  animation: hs-in 0.4s var(--ease) both; }
.hsearch[hidden] { display: none; }
@keyframes hs-in { from { opacity: 0; transform: translateY(-10px) scale(0.985); } to { opacity: 1; transform: none; } }
.hsearch__form { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 10px 0 24px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 0.2s; }
.hsearch__form:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.hsearch__ico { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.hsearch__field { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; }
.hsearch__input { width: 100%; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.hsearch__input::-webkit-search-cancel-button { display: none; }
.hsearch__ph { position: absolute; left: 0; top: 50%; translate: 0 -50%; pointer-events: none; white-space: nowrap; overflow: hidden; max-width: 100%;
  font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; color: var(--muted-2); transition: opacity 0.2s; }
.hsearch__field.has-text .hsearch__ph { opacity: 0; }
.hsearch__word { display: inline-block; color: var(--blue); transition: transform 0.4s cubic-bezier(.6,0,.4,1), opacity 0.4s, filter 0.4s; }
.hsearch__word.is-out { transform: translateY(-0.5em); opacity: 0; filter: blur(4px); }
.hsearch__word.is-pre { transform: translateY(0.5em); opacity: 0; filter: blur(4px); transition: none; }
.hsearch__go { flex: none; height: 52px; padding: 0 26px; }
.hsearch__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 6px 4px; }
.hsearch__chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--tile); font-size: 14.5px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.hsearch__chip svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.hsearch__chip:hover, .hsearch__chip.is-hit { background: var(--blue); color: #fff; }
.hsearch__chip:hover svg, .hsearch__chip.is-hit svg { stroke: #fff; }
.hsearch__chip[hidden] { display: none; }
.hsearch__empty { padding: 8px 10px; color: var(--muted-2); font-size: 15px; }
.hsearch__empty a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .hsearch { margin: 0 12px; padding: 10px; border-radius: 24px; }
  .hsearch__form { height: 58px; padding: 0 6px 0 16px; border-radius: 18px; }
  .hsearch__go { height: 46px; padding: 0 16px; font-size: 0; gap: 0; }
  .hsearch__go svg { width: 18px; height: 18px; }
  .hsearch__chips { max-height: 46vh; overflow-y: auto; }
  .hsearch__input, .hsearch__ph { font-size: 15.5px; }
  .hsearch__ico { width: 22px; height: 22px; }
}


/* поиск — лаконично: одна строка-капсула под шапкой, результаты появляются только при вводе */
.hsearch { margin: 2px var(--pad) 0; padding: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; max-width: 760px; margin-left: auto; margin-right: var(--pad); }
.hsearch__form { height: 54px; padding: 0 6px 0 20px; gap: 10px; border-radius: 999px; background: #fff; box-shadow: 0 16px 40px rgba(4, 0, 60, 0.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hsearch__form:focus-within { box-shadow: 0 16px 40px rgba(4, 0, 60, 0.16), inset 0 0 0 1.5px var(--blue); }
.hsearch__ico { width: 20px; height: 20px; }
.hsearch__input, .hsearch__ph { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.hsearch__go { height: 42px; width: 42px; padding: 0; border-radius: 50%; font-size: 0; gap: 0; }
.hsearch__go svg { width: 16px; height: 16px; }
.hsearch__chips { margin-top: 8px; padding: 6px; gap: 0; flex-direction: column; flex-wrap: nowrap; border-radius: 22px; background: #fff; box-shadow: 0 16px 40px rgba(4, 0, 60, 0.16); max-height: 50vh; overflow-y: auto; }
.hsearch__chips:not(.is-open) { display: none; }
.hsearch__chip { height: 44px; padding: 0 14px; border-radius: 16px; background: none; font-size: 15px; }
.hsearch__chip:hover { background: var(--tile); color: var(--ink); }
.hsearch__chip:hover svg, .hsearch__chip.is-hit svg { stroke: var(--blue); }
.hsearch__chip.is-hit { background: none; color: var(--ink); }
@media (max-width: 700px) { .hsearch { margin: 2px 12px 0; } .hsearch__form { height: 50px; } .hsearch__go { height: 40px; width: 40px; } }

/* слайдер на десктопе: тексты прямо на затемнённом низу слайда, описание и кнопка — бенто-карточками */
@media (min-width: 1180px) {
  .hero__shade { background: linear-gradient(180deg, rgba(3, 4, 13, 0.55) 0%, rgba(3, 4, 13, 0) 20%),
                             linear-gradient(0deg, rgba(3, 4, 13, 0.9) 0%, rgba(3, 4, 13, 0.7) 22%, rgba(3, 4, 13, 0.3) 40%, rgba(3, 4, 13, 0) 58%); }
  /* слева над навигацией слайдов — надзаголовок с пилюлей и крупная цифра; справа внизу — описание и кнопка */
  .hcard { width: 100%; padding: 0; overflow: visible; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
  .hcard__info { display: grid; grid-template-columns: minmax(0, 1fr) min(560px, 40vw) clamp(190px, 15vw, 230px); column-gap: 12px;
    grid-template-areas: "top . ." "big desc btn"; align-items: end; }
  .hcard__top { grid-area: top; margin-bottom: 18px; justify-content: flex-start; gap: 14px; }
  .hcard__big { grid-area: big; margin: 0 0 76px; align-self: end; font-size: clamp(3.8rem, 5.6vw, 6rem); line-height: 0.82; }   /* над полосками и стрелками слайдера */
  .hcard__desc { grid-area: desc; align-self: end; min-height: 136px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
    padding: 20px 22px; border-radius: 24px; background: rgba(16, 16, 32, 0.42); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
  .hcard__lead { font-size: 17.5px; line-height: 1.38; }
  .hcard__note { margin: 0; font-size: 13.5px; }
  .hcard__info > .btn { grid-area: btn; align-self: end; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
    min-height: 136px; width: auto; margin: 0; padding: 20px 22px; border-radius: 24px; white-space: normal; text-align: left;
    font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; }
  .hcard__info > .btn svg { position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; transform: rotate(-45deg); }
  .hcard__info > .btn:hover svg { transform: rotate(-45deg) translateX(3px); }
  .hcard__info > .btn:hover { background: #fff; color: var(--blue); }   /* синяя плашка при наведении становится белой, содержимое — синим */
}

/* «Продукция» в шапке: при наведении — белая плашка с категориями и иконками */
.hnav__item { position: relative; display: flex; }
.hnav__chev { width: 12px; height: 12px; margin-left: 4px; transition: transform 0.25s; }
.hnav__item:hover .hnav__chev, .hnav__item:focus-within .hnav__chev { transform: rotate(180deg); }
/* мегаменю «Продукция»: бенто-карточки, подложка на всю ширину контента */
.header__bar { position: relative; }
.hnav__item { position: static; }
.hdrop { position: absolute; top: calc(100% - 14px); left: max(var(--pad), calc((100% - 1680px) / 2 + var(--pad))); right: max(var(--pad), calc((100% - 1680px) / 2 + var(--pad))); z-index: 5;
  padding: 12px; border-radius: 32px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(4, 0, 60, 0.22), 0 0 0 1px rgba(11, 11, 18, 0.05);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.22s, transform 0.22s, visibility 0s 0.22s; }
.hdrop::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }   /* мостик для курсора */
.hnav__item:hover .hdrop, .hnav__item:focus-within .hdrop { opacity: 1; visibility: visible; transform: none; transition: opacity 0.22s, transform 0.3s var(--ease); }
.hdrop { padding: 18px 18px 12px; }
.header .header__nav .hdrop a { height: auto; padding: 0; border-radius: 0; font-size: inherit; font-weight: inherit; }
.header .header__nav .hdrop a:hover { background: none; }
.hdrop__grid { display: block; }
.hdrop__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 8px; list-style: none; margin: 0; padding: 0; }
.header .header__nav .hdrop a.hd-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; color: var(--ink); transition: background 0.15s; }
.header .header__nav .hdrop a.hd-row:hover { background: var(--tile); }
.hd-row svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hd-row span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hd-row b { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.hd-row small { font-size: 12.5px; color: rgba(11, 11, 18, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdrop__foot { margin-top: 10px; border-top: 1px solid rgba(11, 11, 18, 0.07); padding-top: 12px !important; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 6px 2px 14px; font-size: 14px; color: rgba(11, 11, 18, 0.55); }
.header .header__nav a.hdrop__all, .header .header__nav a.hdrop__all:hover { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; }
.hdrop__all svg { width: 14px; height: 14px; }
.header.is-dark .hdrop { color: var(--ink); }
@media (max-width: 1280px) { .hdrop__list { grid-template-columns: repeat(3, 1fr); } }

.hcard__info > .btn { transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease); }
.hcard__info > .btn:hover, .hcard__info > .btn:focus-visible { background: #fff; color: var(--blue); }
.hcard__info > .btn:hover svg, .hcard__info > .btn:focus-visible svg { color: var(--blue); }

/* поиск внутри мегаменю «Продукция» */
.hdrop__search { display: flex; align-items: center; gap: 12px; height: 56px; margin: 0 0 14px; padding: 0 6px 0 20px; border-radius: 999px; background: var(--tile); transition: box-shadow 0.2s, background 0.2s; }
.hdrop__search:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue); }
.hdrop__search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.hdrop__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); }
.hdrop__search input::placeholder { color: rgba(11, 11, 18, 0.42); font-weight: 400; }
.hdrop__search input::-webkit-search-cancel-button { display: none; }
.hdrop__search button { flex: none; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.hdrop__list li[hidden] { display: none; }
.hdrop__empty { margin: 4px 14px 8px; font-size: 15px; color: rgba(11, 11, 18, 0.55); }
.hdrop__empty a { color: var(--blue); text-decoration: underline; }
.hnav__item.is-searching .hdrop { opacity: 1; visibility: visible; transform: none; }   /* пока вводят запрос, меню не закрывается */

/* ---------- дилерский калькулятор ---------- */
.calc { margin-top: clamp(72px, 8vw, 128px); }
.calc__box { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.calc__form { display: flex; flex-direction: column; gap: 28px; padding: clamp(22px, 2.6vw, 40px); border-radius: var(--r-xl); background: var(--tile); }
.calc__label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.calc__prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.calc__prod input { position: absolute; opacity: 0; pointer-events: none; }
.calc__prod span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border-radius: 20px; background: #fff; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.calc__prod svg { width: 26px; height: 26px; margin-bottom: 10px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.calc__prod b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.calc__prod small { font-size: 12.5px; color: var(--muted-2); line-height: 1.35; }
.calc__prod:hover span { box-shadow: inset 0 0 0 1.5px var(--blue); }
.calc__prod input:checked + span { background: var(--blue); color: #fff; }
.calc__prod input:checked + span svg { stroke: #fff; }
.calc__prod input:checked + span small { color: rgba(255, 255, 255, 0.7); }
.calc__prod input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.calc__qrow { display: flex; align-items: center; gap: 8px; height: 72px; padding: 0 8px 0 24px; border-radius: 999px; background: #fff; }
.calc__qrow input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -0.03em; color: var(--ink); -moz-appearance: textfield; }
.calc__qrow input::-webkit-inner-spin-button, .calc__qrow input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc__unit { font-size: 18px; color: var(--muted-2); margin-right: 8px; }
.calc__step { flex: none; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--tile); color: var(--ink); font: inherit; font-size: 24px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.calc__step:hover { background: var(--blue); color: #fff; }
.calc__range { width: 100%; margin: 22px 0 0; accent-color: var(--blue); }
.calc__tiers { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.calc__tiers li { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.6); font-size: 12.5px; line-height: 1.35; color: var(--muted-2); transition: background 0.2s, color 0.2s; }
.calc__tiers li b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.calc__tiers li.is-on { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--blue); }
.calc__tiers li.is-on b { color: var(--blue); }
.calc__res { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 40px); border-radius: var(--r-xl); color: #fff; overflow: hidden;
  background: radial-gradient(90% 80% at 100% 0%, #6b78ff 0%, rgba(107, 120, 255, 0) 60%), var(--blue); }
.calc__res .calc__label { color: rgba(255, 255, 255, 0.65); }
.calc__price { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.calc__price b { font-size: clamp(2.8rem, 5vw, 4.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.calc__price span { font-size: 18px; color: rgba(255, 255, 255, 0.7); }
.calc__base { margin: 10px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.7); }
.calc__sum { display: grid; gap: 0; margin: 28px 0 0; }
.calc__sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.calc__sum dt { font-size: 15px; color: rgba(255, 255, 255, 0.72); }
.calc__sum dd { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; text-align: right; }
.calc__save { color: #fff; }
.calc__save em { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--blue); font-style: normal; font-size: 13px; vertical-align: 2px; }
.calc__bonus { margin: 6px 0 0; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.14); font-size: 14.5px; line-height: 1.4; }
.calc__btn { margin-top: auto; align-self: flex-start; }
.calc__bonus + .calc__btn, .calc__sum + .calc__bonus[hidden] + .calc__btn { margin-top: 24px; }
.calc__note { margin: 14px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 1000px) { .calc__box { grid-template-columns: minmax(0, 1fr); } .calc__form > *, .calc__res > * { min-width: 0; } }
@media (max-width: 640px) {
  .calc__prods { grid-template-columns: 1fr; }
  .calc__prod span { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .calc__prod svg { margin: 0; }
  .calc__prod small { flex-basis: 100%; }
  .calc__tiers { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .calc__btn { width: 100%; }
}
.calc__bonus span { color: rgba(255, 255, 255, 0.7); }

/* калькулятор: выбор категории и продукта списками + карточка продукта */
.calc__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 0.62fr); grid-template-areas: "pick card" "qty card"; gap: 28px 24px; align-content: start; }
.calc__pick { grid-area: pick; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc__qty { grid-area: qty; }
.calc__card { grid-area: card; margin: 0; display: flex; flex-direction: column; border-radius: 24px; background: #fff; overflow: hidden; }
.calc__img { display: flex; align-items: flex-end; justify-content: center; height: 220px; padding: 18px 18px 0; background: linear-gradient(180deg, #05061a 0%, #0400ff 70%); }
.calc__img img { display: block; max-height: 100%; max-width: 86%; object-fit: contain; object-position: 50% 100%; transform: translateY(14%); transition: opacity 0.3s; }
.calc__img img.is-loading { opacity: 0; }
.calc__card figcaption { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 20px; }
.calc__pname { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.calc__pmeta { font-size: 13px; color: var(--muted-2); }
.calc__specs { margin: 12px 0 0; display: grid; gap: 0; }
.calc__specs div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.calc__specs dt { color: var(--muted-2); }
.calc__specs dd { margin: 0; font-weight: 600; text-align: right; }
.calc__sel .calc__label { margin-bottom: 10px; }
.calc__select { position: relative; }
.calc__select::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); pointer-events: none; }
.calc__select select { width: 100%; height: 60px; padding: 0 48px 0 20px; border: 0; border-radius: 18px; background: #fff; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; transition: box-shadow 0.2s; }
.calc__select select:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.calc__select select:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
@media (max-width: 1280px) { .calc__form { grid-template-columns: 1fr; grid-template-areas: "pick" "card" "qty"; } .calc__card { flex-direction: row; } .calc__img { width: 42%; height: auto; min-height: 220px; } .calc__card figcaption { flex: 1; } }
@media (max-width: 640px) { .calc__pick { grid-template-columns: 1fr; } .calc__card { flex-direction: column; } .calc__img { width: auto; min-height: 0; height: 200px; } }
.calc__img { overflow: hidden; }
.calc__img img { transform: translateY(10%); max-height: 108%; }
.calc__pick { grid-template-columns: 1fr; }
.calc__form { grid-template-rows: auto 1fr; }
.calc__img { align-items: center; padding: 10px; background: #fff; border-bottom: 1px solid var(--line); }   /* продукт на белом фоне, как в концептах */
.calc__img img { transform: none; max-height: 100%; max-width: 100%; }
.header .header__nav .hdrop a.hd-calc, .header .header__nav .hdrop a.hd-calc:hover { position: relative; background: var(--tile); color: var(--ink); }   /* калькулятор — светлая плашка, как пункт при наведении */
.header .header__nav .hdrop a.hd-calc:hover { background: #e8e9ef; }
.hd-calc__go { display: none; }   /* без иконки со стрелкой */
/* calc card: без разделителя под фото, крупнее название, светлее строки характеристик */
.calc__img { border-bottom: 0; }
.calc__pname { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.15; letter-spacing: -0.02em; }
.calc__specs div { border-top-color: rgba(10, 12, 40, 0.06); }
/* сцена масла выше экрана на радиус листа: «Продукция» появляется ровно в момент, когда сцена отпускается,
   и уезжает вместе с ней — белый лист не наползает на закреплённый чёрный фон */
.oil__pin { height: calc(100svh + var(--r-hero)); }
.oil__layer { bottom: var(--r-hero); }
@media (prefers-reduced-motion: reduce) { .oil__pin { height: 100svh; } .oil__layer { bottom: 0; } }
/* фон карточки — та же студия с порталом, что и на итоговом фото (без бочки); контур бочки получает тёмную кромку, чтобы читаться на светлом портале */
.space__line { filter: none; }   /* контур без тени и свечения */
/* бочка стоит на месте: сначала только контур, затем снизу вверх «заливается» объёмной бочкой (--fill 0…1 от прокрутки) */
.space__stage { --fill: clamp(0, calc((0.4 - var(--k, 1)) / 0.35), 1); --ph: clamp(0, calc(1 - var(--k, 1) / 0.05), 1); }
.space__photo { opacity: clamp(0, calc(1 - var(--k, 1) / 0.05), 1); }
.space__bg, .space__photo { transform: none; }
.space__barrel, .space__refl, .space__line { --tilt: none; }
.space__barrel { opacity: 1;
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--fill) * 106% - 6%), transparent calc(var(--fill) * 106%));
          mask-image: linear-gradient(to top, #000 calc(var(--fill) * 106% - 6%), transparent calc(var(--fill) * 106%)); }
.space__line { opacity: calc(1 - var(--ph));
  -webkit-mask-image: linear-gradient(to top, transparent calc(var(--fill) * 106% - 6%), #000 calc(var(--fill) * 106%));
          mask-image: linear-gradient(to top, transparent calc(var(--fill) * 106% - 6%), #000 calc(var(--fill) * 106%)); }
.space__refl { transform: scaleY(-1); opacity: calc(var(--fill) * 0.8 * (1 - var(--ph))); }
/* кнопка заявки в калькуляторе — крупная, на всю ширину блока */
.calc__btn { align-self: stretch; width: 100%; padding: 24px 32px; font-size: 19px; gap: 14px; }
.calc__btn svg { width: 19px; height: 19px; }
@media (max-width: 640px) { .calc__btn { padding: 20px 24px; font-size: 17px; } }
/* заголовок «Продукция» ближе к скруглённому краю листа */
.catalog { padding-top: clamp(56px, 6vw, 96px); }
/* калькулятор: единый ритм отступов внутри формы */
.calc__form { gap: 32px 24px; }
.calc__label, .calc__sel .calc__label { margin-bottom: 12px; }
.calc__pick { gap: 20px; }
.calc__qrow { height: 72px; padding: 0 10px; gap: 10px; }
.calc__qrow input { padding-left: 10px; }
.calc__unit { margin-right: 6px; }
.calc__range { margin-top: 24px; }
.calc__tiers { margin-top: 20px; gap: 8px; }
.calc__tiers li { padding: 10px 12px; }
.calc__card figcaption { padding: 20px 24px 24px; }
@media (max-width: 640px) { .calc__form { gap: 24px; } .calc__card figcaption { padding: 18px 20px 20px; } }

/* выпадающие списки калькулятора: своё меню на белом фоне */
.calc__select.is-custom select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.calc__dd-btn { display: flex; align-items: center; width: 100%; height: 60px; padding: 0 48px 0 20px; border: 0; border-radius: 18px; background: #fff; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: box-shadow 0.2s; }
.calc__dd-btn:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.calc__dd-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.calc__select::after { transition: transform 0.25s var(--ease), margin 0.25s var(--ease); }
.calc__select.is-open { z-index: 30; }
.calc__select.is-open::after { transform: rotate(-135deg); margin-top: -2px; }
.calc__select.is-open .calc__dd-btn { box-shadow: inset 0 0 0 2px var(--blue); }
.calc__dd-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 20px;
  box-shadow: 0 24px 60px -18px rgba(8, 10, 60, 0.28), 0 2px 8px rgba(8, 10, 60, 0.06);
  max-height: 320px; overflow: auto; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s 0.2s; }
.calc__select.is-open .calc__dd-list { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.2s var(--ease); }
.calc__dd-list li { position: relative; padding: 14px 44px 14px 16px; border-radius: 12px; font-size: 15.5px; font-weight: 500; line-height: 1.25; color: var(--ink); cursor: pointer; transition: background 0.15s, color 0.15s; }
.calc__dd-list li.is-act { background: var(--tile); }
.calc__dd-list li[aria-selected="true"] { color: var(--blue); }
.calc__dd-list li[aria-selected="true"]::after { content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 11px; margin-top: -8px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); }
.calc__select.is-single::after { opacity: 0.35; }
/* узкие телефоны: правый блок шапки помещается целиком (бургер не обрезается) */
@media (max-width: 420px) { .header__right { gap: 6px; } .lang__btn { padding: 0 7px; } .header__logo img { width: 128px; height: auto; } }
/* баннер cookie */
.ckb { position: fixed; left: 16px; bottom: 16px; z-index: 90; width: min(440px, calc(100vw - 32px)); padding: 20px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px -20px rgba(6, 8, 40, 0.35), 0 0 0 1px var(--line); opacity: 0; transform: translateY(20px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.ckb.is-on { opacity: 1; transform: none; }
.ckb p { font-size: 14.5px; line-height: 1.45; color: var(--muted-2); }
.ckb p b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--ink); }
.ckb p a { color: var(--blue); }
.ckb__btns { display: flex; gap: 8px; margin-top: 14px; }
.ckb__btns .btn { flex: 1; padding-inline: 12px; }
@media (max-width: 420px) { .ckb__btns { flex-direction: column; } }
.fcard__info li b { color: #fff; font-weight: 600; }

/* мобильное меню (правка): «Продукция» — серая карточка, как пункты ниже; телефоны — без рамки, на общем фоне */
.mcard--prod { background: var(--tile); border-radius: 22px; padding: 0 18px; margin-bottom: 0; box-shadow: none; }
.mcard--prod .mcard__toggle { padding: 18px 0; }
.mcard--prod .mcard__title { font-size: 24px; }
.mcard--prod .mcard__title small { margin-top: 6px; }
.mcard--prod .mcard__chev { background: #fff; }
.mcard--prod .mcat { box-shadow: inset 0 1px 0 rgba(11, 11, 18, 0.08); padding: 12px 0; }
.mcard--prod .mcard__all { margin: 8px 0 18px; }
.mcard--phones { background: none; box-shadow: none; padding: 14px 2px 6px; min-height: 0; }
