/* Рус-Индустрия — стили сайта */

:root {
  /* молочная палитра */
  --bg-cream: #f9f3e6;
  --bg-milk: #f9f3e6;
  --bg-light: #f5edd8;
  --bg-dark: #1e2543;
  --brand-navy: #1e2543;
  --btn-matte: #1e2543;
  --btn-matte-light: #283152;
  --btn-matte-dark: #1a213c;
  --btn-matte-deep: #151b33;
  --btn-matte-shadow: rgba(30, 37, 67, 0.35);
  --bg-card: #d9d9d9;
  --bg-card-light: #f0e8d6;
  --text-dark: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #9a9a9a;
  --blue: #1e40af;
  --blue-hover: #1d4ed8;
  --blue-glow: rgba(30, 64, 175, 0.35);
  --blue-deep: #152a6e;
  --blue-light: #3b6de8;
  --btn-3d-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 6px 18px rgba(30, 64, 175, 0.42), 0 3px 0 var(--blue-deep);
  --btn-3d-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.32) inset, 0 10px 24px rgba(30, 64, 175, 0.5), 0 3px 0 var(--blue-deep);
  --white: #ffffff;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  /* TAU KUBER — кнопка «Получить демо» (черновик) */
  --tau-kuber-gradient: linear-gradient(
    0.25turn,
    rgba(14, 51, 77, 1) 0%,
    rgba(0, 169, 132, 1) 49%,
    rgba(149, 193, 31, 1) 100%
  );
  --tau-kuber-gradient-hover: linear-gradient(
    0.75turn,
    rgba(14, 51, 77, 1) 0%,
    rgba(0, 169, 132, 1) 49%,
    rgba(149, 193, 31, 1) 100%
  );
  /* плавный сдвиг вместо резкой смены угла 0.25turn ↔ 0.75turn */
  --tau-kuber-gradient-smooth: linear-gradient(
    135deg,
    rgba(14, 51, 77, 1) 0%,
    rgba(0, 169, 132, 1) 30%,
    rgba(149, 193, 31, 1) 55%,
    rgba(0, 169, 132, 1) 78%,
    rgba(14, 51, 77, 1) 100%
  );
  --blue-nav-gradient: linear-gradient(
    135deg,
    #152a6e 0%,
    #1e40af 28%,
    #3b6de8 52%,
    #1d4ed8 76%,
    #152a6e 100%
  );
  --gradient-shift-duration: 0.55s;
  --tau-kuber-gradient-text: #f5f7fa;
  --site-gutter: 2cm;
  --container: calc(100vw - 2 * var(--site-gutter));
  /* Имя должно совпадать с font-family в css/fonts.css */
  --font-custom: 'RusIndustria';
  --font-bebas: 'Bebas Neue Cyrillic', 'Inter', sans-serif;
  /* По умолчанию — Inter. Свой шрифт: раскомментируйте следующую строку */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* --font: var(--font-custom), 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; */
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: clamp(72px, 8vw, 96px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

section[id],
.cta[id] {
  scroll-margin-top: clamp(72px, 8vw, 96px);
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Логотип РУС-Индустрия на фоне всего сайта */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: url('../assets/hero/rus-logo3.png') center 42% / min(75vw, 640px) no-repeat;
  opacity: 0.07;
  mix-blend-mode: screen;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 9999;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  padding: 10px clamp(18px, 2.5vw, 28px);
  background: rgba(249, 243, 230, 0.92);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius-pill);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 20px rgba(26, 26, 26, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.logo__img {
  display: block;
  height: clamp(28px, 3.2vw, 42px);
  width: auto;
  max-width: min(200px, 38vw);
  object-fit: contain;
  object-position: center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 36px);
}

.nav a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  transition: opacity 0.2s;
}

.header__inner .nav a {
  font-weight: 500;
  color: var(--text-dark);
  transition: opacity 0.2s ease;
}

.header__inner .nav a:hover {
  opacity: 0.65;
}

.nav a:hover {
  opacity: 0.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  color: var(--white);
  text-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, var(--btn-matte-light) 0%, var(--btn-matte) 55%, var(--btn-matte-dark) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 5px 0 var(--btn-matte-deep),
    0 5px 2px var(--btn-matte-deep),
    0 10px 20px var(--btn-matte-shadow);
  transform: translateY(0);
  transition:
    transform 0.14s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.14s cubic-bezier(0.34, 1.2, 0.64, 1),
    filter 0.14s ease;
}

.btn--primary:hover {
  transform: translateY(5px);
  filter: brightness(1.04);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 var(--btn-matte-deep),
    0 3px 14px var(--btn-matte-shadow);
}

.btn--primary:active {
  transform: translateY(6px);
  filter: brightness(0.97);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.25) inset,
    0 0 0 var(--btn-matte-deep),
    0 2px 8px rgba(30, 37, 67, 0.22);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 16px;
}

.btn--rounded {
  border-radius: 14px;
}

/* Hero CTA — 3D press, матовый #1e2543 */
.btn--press {
  position: relative;
  isolation: isolate;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,
    0 6px 0 var(--btn-matte-deep),
    0 6px 2px var(--btn-matte-deep),
    0 12px 22px var(--btn-matte-shadow);
  will-change: transform, box-shadow;
}

.btn--press::before {
  content: '';
  position: absolute;
  inset: 2px 4px auto;
  height: 42%;
  border-radius: 10px 10px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.35;
  pointer-events: none;
}

.btn--press:hover::before {
  opacity: 0.25;
}

.btn--press:active::before {
  opacity: 0.15;
}

/* Hero — «Узнать больше»: вдавливание при наведении */
.btn--press-in {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #ffffff 0%, #f3ece0 55%, #ebe3d4 100%);
  color: var(--text-dark);
  border: 1px solid rgba(26, 26, 26, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(0, 0, 0, 0.05) inset,
    0 5px 0 #b8ad9a,
    0 5px 1px rgba(26, 26, 26, 0.14),
    0 10px 18px rgba(26, 26, 26, 0.08);
  transform: translateY(0);
  transition:
    transform 0.14s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.14s cubic-bezier(0.34, 1.2, 0.64, 1),
    filter 0.14s ease,
    border-color 0.14s ease;
  will-change: transform, box-shadow;
}

.btn--press-in::before {
  content: '';
  position: absolute;
  inset: 2px 6px auto;
  height: 40%;
  border-radius: 10px 10px 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.btn--press-in:hover {
  transform: translateY(5px);
  filter: brightness(0.98);
  border-color: rgba(26, 26, 26, 0.16);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12) inset,
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 0 0 #b8ad9a,
    0 3px 10px rgba(26, 26, 26, 0.1);
}

.btn--press-in:hover::before {
  opacity: 0.4;
}

.btn--press-in:active {
  transform: translateY(6px);
  filter: brightness(0.96);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.16) inset,
    0 0 0 #b8ad9a,
    0 2px 6px rgba(26, 26, 26, 0.08);
}

.btn--press-in:active::before {
  opacity: 0.25;
}

/* Первый экран: герой; фото/видео бэкдропа — только высота вьюпорта, без заезда на плашки и partner */
.home-intro {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg-cream);
  /* Один кегль и градиент для «Связь» (слой в 3D) и «с нами» в h2 */
  --home-partner-title-size: clamp(52px, 5.8vw, 106px);
  --home-partner-title-gradient: linear-gradient(180deg, #ffffff 0%, #f3ece0 55%, #ebe3d4 100%);
  /* .partner__layout: grid-template-columns 1fr 1.15fr; gap: 40px */
  --partner-layout-gap: 40px;
  --partner-title-grid-fr-sum: 2.15;
  /* 3D-начертание (text-shadow — не ломает .reveal с filter) */
  --home-hero-title-3d-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 0 #4a5678,
    0 3px 0 var(--btn-matte-light),
    0 4px 0 var(--btn-matte),
    0 5px 0 var(--btn-matte-dark),
    0 6px 0 var(--btn-matte-deep),
    0 8px 2px rgba(21, 27, 51, 0.4),
    0 14px 26px rgba(30, 37, 67, 0.45);
  --home-svyaz-3d-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 0 #e8dfd0,
    0 4px 0 #d4c9b4,
    0 5px 0 #b8ad9a,
    0 6px 0 #7a7260,
    0 7px 1px rgba(0, 0, 0, 0.5),
    0 12px 28px rgba(0, 0, 0, 0.42);
  /* clip обрезал полноширинный .partner (100vw + отриц. margin) — пропадали контакты/заголовок */
  overflow-x: visible;
  overflow-y: visible;
}

.home-intro__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(100vh, 100svh);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-cream);
}

/* Слева 50vw — ролик/тёмная колонка под 3D; справа 50vw — фото здания */
.home-intro__video-clip {
  position: absolute;
  top: 0;
  left: 0;
  width: 50vw;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background: #090505;
}

.home-intro__video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.home-intro__backdrop::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50vw;
  z-index: 0;
  background:
    linear-gradient(rgba(9, 5, 5, 0.65), rgba(9, 5, 5, 0.65)),
    url('../assets/hero/Photo_File_List_Akvc08Mu.png') center / cover no-repeat;
}

.home-intro__backdrop::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50vw;
  background: url('../assets/hero/Photo_File_List_Akvc08Mu.png') center 42% / cover no-repeat;
  z-index: 0;
}

.home-intro__scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(100vh, 100svh);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.18) 38%,
    rgba(0, 0, 0, 0.06) 48%,
    rgba(249, 243, 230, 0) 49.8%,
    rgba(249, 243, 230, 0.12) 50%,
    rgba(249, 243, 230, 0.24) 100%
  );
}

.home-intro__panel {
  position: relative;
  z-index: 1;
  flex: 1 1 0%;
  min-height: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 50vw minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
}

/* Левая колонка: фон → «Связь» → canvas (subgrid совпадает со строками панели: hero | partner) */
.home-intro__panel > .hero__visual {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: stretch;
  width: 100%;
  min-height: min(100vh, 100svh);
  position: relative;
  z-index: 10040;
  overflow: hidden;
  background: none;
  display: grid;
  grid-template-rows: subgrid;
}

.home-intro__panel > .hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #090505;
  background-image: url('../assets/draft/tilda/Frame_2147238590-b6b7185b.svg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-intro__panel > .hero {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 10100;
}

/* Полная ширина вьюпорта и прежнее выравнивание .container (как до вложения в колонку сетки) */
.home-intro__panel > .partner {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: -50vw;
}

/* Hero: только текстовая колонка справа от 3D */
.home-intro .hero {
  padding: 0 0 16px;
}

.home-intro .hero > .container.home-intro__hero-copy {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.home-intro .hero__content {
  padding-top: 140px;
  padding-left: clamp(18px, 2.5vw, 40px);
  padding-right: clamp(18px, 2.5vw, 40px);
}

.home-intro .partner__title-lead-under-cubes {
  grid-row: 2;
  grid-column: 1;
  align-self: start;
  justify-self: start;
  z-index: 1;
  position: relative;
  /* те же вертикальные отступы, что у .partner + .partner__head — вровень с «С НАМИ» */
  margin-top: calc(clamp(24px, 3.5vw, 48px) + clamp(8px, 1.2vw, 20px));
  padding-left: var(--site-gutter);
  padding-right: 12px;
  font-family: var(--font-bebas);
  /* 1в1 с «с нами» в h2 — общий clamp/градиент */
  font-size: var(--home-partner-title-size);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  background: var(--home-partner-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--home-svyaz-3d-shadow);
  pointer-events: none;
}

/* ───────────────────────────────────────────────────────────────
 * On-scroll reveals (2026): CSS view-timeline where available,
 * with JS IntersectionObserver fallback adding .is-inview
 * ─────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    filter: saturate(0.96);
    will-change: transform, opacity, filter;
  }

  .reveal.is-inview {
    opacity: 1;
    transform: none;
    filter: none;
    transition:
      opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms),
      transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms),
      filter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
  }

  .reveal[data-reveal="up"] { transform: translate3d(0, 18px, 0); }
  .reveal[data-reveal="down"] { transform: translate3d(0, -18px, 0); }
  .reveal[data-reveal="left"] { transform: translate3d(18px, 0, 0); }
  .reveal[data-reveal="right"] { transform: translate3d(-18px, 0, 0); }
  .reveal[data-reveal="scale"] { transform: scale(0.96); }

  .reveal.is-inview,
  .reveal.is-inview[data-reveal="up"],
  .reveal.is-inview[data-reveal="down"],
  .reveal.is-inview[data-reveal="left"],
  .reveal.is-inview[data-reveal="right"],
  .reveal.is-inview[data-reveal="scale"] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  @supports (animation-timeline: view()) {
    .reveal {
      opacity: 1;
      filter: none;
      transform: none;
      transition: none;
      animation: reveal-up 1ms linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 65%;
      animation-delay: var(--reveal-delay, 0ms);
    }

    .reveal[data-reveal="up"] { animation-name: reveal-up; }
    .reveal[data-reveal="down"] { animation-name: reveal-down; }
    .reveal[data-reveal="left"] { animation-name: reveal-left; }
    .reveal[data-reveal="right"] { animation-name: reveal-right; }
    .reveal[data-reveal="scale"] { animation-name: reveal-scale; }

    @keyframes reveal-up {
      from { opacity: 0; transform: translate3d(0, 18px, 0); filter: saturate(0.96); }
      to   { opacity: 1; transform: none; filter: none; }
    }
    @keyframes reveal-down {
      from { opacity: 0; transform: translate3d(0, -18px, 0); filter: saturate(0.96); }
      to   { opacity: 1; transform: none; filter: none; }
    }
    @keyframes reveal-left {
      from { opacity: 0; transform: translate3d(18px, 0, 0); filter: saturate(0.96); }
      to   { opacity: 1; transform: none; filter: none; }
    }
    @keyframes reveal-right {
      from { opacity: 0; transform: translate3d(-18px, 0, 0); filter: saturate(0.96); }
      to   { opacity: 1; transform: none; filter: none; }
    }
    @keyframes reveal-scale {
      from { opacity: 0; transform: scale(0.96); filter: saturate(0.96); }
      to   { opacity: 1; transform: none; filter: none; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
}

.home-intro #pastel-cubes-canvas-wrap {
  grid-row: 1 / -1;
  grid-column: 1;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.home-intro #screen-pastel-cubes {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: min(100vh, 100svh);
  height: auto;
  align-self: stretch;
}

/* Первое окно: hero + partner — один общий фон (чёткое здание + бежевая пелена) */
.home-screen {
  position: relative;
  isolation: isolate;
  min-height: min(100vh, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--bg-cream);
  overflow-x: clip;
}

.home-screen__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-screen__backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/hero/Photo_File_List_Akvc08Mu.png') center 42% / cover no-repeat;
}

.home-screen__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(249, 243, 230, 0.72) 0%,
    rgba(249, 243, 230, 0.84) 48%,
    rgba(249, 243, 230, 0.92) 100%
  );
}

.home-screen > .hero,
.home-screen > .partner,
.home-screen > .hero-plaques {
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  padding: 140px 0 16px;
}

.home-screen > .hero {
  flex: 0 0 auto;
  background: transparent;
  overflow: visible;
  padding-bottom: clamp(8px, 1.5vw, 20px);
}

.home-screen > .partner {
  flex-shrink: 0;
  background: transparent;
  padding-top: clamp(12px, 2vw, 28px);
  padding-bottom: clamp(8px, 1.5vw, 16px);
}

.home-screen > .hero-plaques {
  flex-shrink: 0;
  background: transparent;
  padding-top: clamp(12px, 2vw, 24px);
  padding-bottom: clamp(20px, 2.5vw, 36px);
}

.hero > .container {
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding-left: 0;
  padding-right: 0;
}

.hero__visual {
  position: relative;
  width: 100%;
  grid-column: 1;
  grid-row: 1;
  min-height: clamp(340px, min(38vw, 46vh), 640px);
  max-height: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

/* Заголовок: тёмная палитра + 3D как у .btn--press */
.home-intro .hero__title {
  background: linear-gradient(180deg, var(--btn-matte-light) 0%, var(--btn-matte) 55%, var(--btn-matte-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--home-hero-title-3d-shadow);
}

.home-intro .hero__desc {
  color: var(--btn-matte);
  text-shadow: none;
}

.home-intro .hero__rating > span:last-child {
  color: var(--text-muted);
}

#screen-pastel-cubes {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

#pastel-cubes-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#pastel-cubes-canvas-wrap:active {
  cursor: grabbing;
}

#pastel-cubes-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__tag-icon {
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero__desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn--outline {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid rgba(26, 26, 26, 0.14);
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.06);
}

.btn--outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.1);
  border-color: rgba(26, 26, 26, 0.22);
}

.btn--outline:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(26, 26, 26, 0.08);
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.stars {
  display: flex;
  gap: 4px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(30, 64, 175, 0.25));
}

.stars span {
  display: inline-block;
}

.hero__rating > span:last-child {
  font-size: 13px;
  color: var(--text-muted);
}

.hero__images {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.hero__img {
  width: 220px;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Hero plaques — в первом окне под блоком «Связь» */
.hero-plaques {
  position: relative;
  flex-shrink: 0;
  padding: clamp(16px, 2.5vw, 28px) 0 clamp(20px, 2.5vw, 32px);
  overflow: hidden;
  background: var(--bg-cream);
}

.hero-plaques.hero-plaques--stripe {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero-plaques.hero-plaques--stripe > .container.hero-plaques__grid {
  width: 100%;
  max-width: none;
}

.hero-plaques::before {
  display: none;
}

.hero-plaques__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.hero-plaque {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 16px;
  min-height: 92px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 32px rgba(30, 37, 67, 0.28);
}

.hero-plaque__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #b8f55a;
}

.hero-plaque__icon svg {
  display: block;
  width: 40px;
  height: 40px;
}

.hero-plaque__body {
  min-width: 0;
}

.hero-plaque__title {
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-plaque__text {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.35;
}

/* Partner */
.partner {
  position: relative;
  padding: clamp(24px, 3.5vw, 48px) 0 clamp(28px, 3vw, 40px);
  background: var(--bg-cream);
  overflow: visible;
}

.partner > .container {
  position: relative;
  z-index: 1;
}

.partner__inner {
  display: block;
}

.partner__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.partner__copy {
  text-align: left;
  overflow: visible;
}

.partner__head {
  max-width: none;
  text-align: left;
  overflow: visible;
  padding-top: clamp(8px, 1.2vw, 20px);
}

.partner__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding-left: 2px;
}

.partner__meta-line {
  font-size: 16px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: -0.01em;
}

.partner__contacts {
  position: relative;
  min-width: 0;
  padding-top: 12px;
  --contact-pin-size: 44px;
  overflow: visible;
}

.partner-contacts__slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: none;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 8px 4px 12px;
}

.partner-contacts__slider::-webkit-scrollbar {
  display: none;
}

.contact-card {
  position: relative;
  flex: 0 0 148px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
  /* pin целиком внутри карточки — не вылезает в зону обрезки слайдера */
  padding: calc(var(--contact-pin-size) + 18px) 14px 18px;
  background: var(--bg-milk);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(26, 26, 26, 0.08);
  border: 1px solid rgba(26, 26, 26, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  box-shadow: 0 8px 22px rgba(26, 26, 26, 0.12);
  border-color: rgba(26, 26, 26, 0.1);
}

.contact-card__pin {
  position: absolute;
  top: calc(var(--contact-pin-size) / 2);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: var(--contact-pin-size);
  height: var(--contact-pin-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  pointer-events: none;
  background-image: var(--tau-kuber-gradient-smooth);
  background-size: 280% 280%;
  background-position: 0% 40%;
  color: var(--tau-kuber-gradient-text);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 12px rgba(14, 51, 77, 0.28),
    0 8px 18px rgba(0, 169, 132, 0.22);
  transition:
    background-position var(--gradient-shift-duration) ease,
    box-shadow 0.3s ease;
}

.contact-card:hover .contact-card__pin {
  background-position: 100% 60%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 16px rgba(14, 51, 77, 0.32),
    0 10px 22px rgba(0, 169, 132, 0.28);
}

.contact-card__pin svg {
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.15));
}

.contact-card__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.2;
}

.contact-card__value {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
  word-break: break-word;
}

.partner-contacts__nav {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 8px;
}

.partner-contacts__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--tau-kuber-gradient-smooth);
  background-size: 280% 280%;
  background-position: 0% 40%;
  color: var(--tau-kuber-gradient-text);
  border: none;
  box-shadow: 0 4px 14px rgba(14, 51, 77, 0.28);
  transition:
    background-position var(--gradient-shift-duration) ease,
    box-shadow 0.3s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.partner-contacts__nav .partner-contacts__arrow {
  border: none;
  box-shadow: 0 4px 14px rgba(14, 51, 77, 0.28);
}

.partner-contacts__arrow svg {
  display: block;
}

.partner-contacts__arrow:hover:not(:disabled) {
  background-position: 100% 60%;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 51, 77, 0.34);
}

.partner-contacts__nav .partner-contacts__arrow:hover:not(:disabled) {
  background-position: 100% 60%;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 51, 77, 0.34);
}

.partner-contacts__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.partner__title {
  margin: 0;
  font-family: var(--font-bebas);
  font-size: 106px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  overflow: visible;
  text-transform: uppercase;
  color: var(--text-dark);
}

/* Дубликат «Связь» в h2: визуально даём только слой в колонке 3D (доступность заголовка сохраняется) */
.home-intro .partner__title .partner__title-lead {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: none;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

/* «Связь» — в полосе 3D (слева); разворот на 100vw из узкой колонки: не left:50% + translate(-50%), иначе уезжает влево за экран */
.home-intro .partner__head {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  left: auto;
  transform: none;
  box-sizing: border-box;
}

.home-intro .partner__title {
  display: grid;
  grid-template-columns: 50vw minmax(0, 1fr);
  column-gap: clamp(12px, 2vw, 28px);
  align-items: end;
  width: 100%;
  box-sizing: border-box;
  font-size: var(--home-partner-title-size);
}

/* «с нами» — тот же градиент, кегль и слой, что у «Связь» в левой колонке */
.home-intro .partner__title .partner__title-rest {
  min-width: 0;
  justify-self: start;
  position: relative;
  /* выше 3D-канваса */
  z-index: 10070;
  background: var(--home-partner-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.home-intro .partner__title .partner__title-end {
  background: var(--home-partner-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.home-intro .partner__title .partner__badge-rope,
.home-intro .partner__title .partner__badge {
  -webkit-text-fill-color: initial;
  color: initial;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.home-intro .partner__title .partner__title-lead {
  justify-self: start;
  padding-left: var(--site-gutter);
  padding-right: 8px;
  position: relative;
}

.home-intro .partner__contacts {
  position: relative;
  /* выше 3D-канваса */
  z-index: 10070;
}

/*
 * Контакты не заезжают на левую (тёмную) половину: левый край колонки
 * в .partner__layout часто левее 50vw из‑за пропорций 1fr / 1.15fr.
 */
@media (min-width: 1025px) {
  .home-intro .partner__contacts {
    margin-left: max(
      0px,
      calc(
        50vw
          - var(--site-gutter)
          - (100vw - 2 * var(--site-gutter) - var(--partner-layout-gap)) /
            var(--partner-title-grid-fr-sum)
          - var(--partner-layout-gap)
      )
    );
    overflow-x: clip;
  }
}

.partner__title-end {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  overflow: visible;
}

.partner__title-end--keychain {
  z-index: 2;
}

.partner__title-end--keychain .partner__badge::after {
  display: none;
}

.partner__badge-rope {
  position: absolute;
  left: -120px;
  top: -160px;
  width: calc(100% + 280px);
  height: 280px;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.partner__badge-rope__shadow {
  fill: none;
  stroke: rgba(20, 30, 70, 0.22);
  stroke-width: 4;
  stroke-linecap: round;
}

.partner__badge-rope__twist {
  fill: none;
  stroke: rgba(36, 61, 143, 0.55);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 2 2.8;
}

.partner__badge-rope__body {
  fill: none;
  stroke: url(#partnerRopeGradient);
  stroke-width: 2.75;
  stroke-linecap: round;
}

.partner__badge-rope__sheen {
  fill: none;
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 1.2 3.4;
}

.partner__badge-rope__eyelet {
  fill: var(--bg-cream);
  stroke: #3b5bdb;
  stroke-width: 1.5;
}

.partner__badge {
  --drag-x: 0;
  --drag-y: 0;
  --drag-rot: 16deg;
  position: absolute;
  left: 100%;
  top: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 3px solid #3b5bdb;
  border-radius: 14px;
  background: var(--bg-milk);
  box-shadow: 0 3px 10px rgba(59, 91, 219, 0.22);
  transform: translate(calc(-10px + var(--drag-x)), calc(-6px + var(--drag-y))) rotate(var(--drag-rot));
  transform-origin: 12px 0;
  overflow: visible;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.partner__badge.is-dragging {
  cursor: grabbing;
}

.partner__badge::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 9px;
  width: 8px;
  height: 8px;
  border: 2px solid #3b5bdb;
  border-radius: 50%;
  background: var(--bg-cream);
  box-shadow: 0 0 0 2px var(--bg-cream);
}

.partner__badge::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 12px;
  width: 2px;
  height: 6px;
  background: #3b5bdb;
  border-radius: 1px;
}

.partner__badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .partner__badge {
    cursor: default;
  }
}

/* Stats */
.stats {
  background: var(--bg-dark);
  padding: 80px 0 100px;
  margin-top: 0;
}

.stats__header {
  margin-bottom: 48px;
}

.stats__title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.stats__subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.stats__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--btn-matte-light) 0%, var(--btn-matte) 55%, var(--btn-matte-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 5px 14px var(--btn-matte-shadow),
    0 2px 0 var(--btn-matte-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card__icon svg {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.stat-card__label {
  font-size: 14px;
  color: var(--text-muted);
}

.stat-card__value {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  line-height: 1;
}

/* Section titles */
.section-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 48px;
}

/* Capabilities */
.capabilities {
  padding: 100px 0;
  background: var(--bg-light);
}

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cap-card {
  background: var(--bg-milk);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cap-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.cap-card__top h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.cap-card__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--btn-matte-light) 0%, var(--btn-matte) 55%, var(--btn-matte-dark) 100%);
  color: var(--white);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset,
    0 3px 0 var(--btn-matte-deep),
    0 3px 1px var(--btn-matte-deep),
    0 6px 12px var(--btn-matte-shadow);
  transform: translateY(0);
  transition:
    transform 0.14s cubic-bezier(0.34, 1.2, 0.64, 1),
    background 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s cubic-bezier(0.34, 1.2, 0.64, 1),
    filter 0.14s ease;
}

.cap-card__btn:hover {
  --coin-green: #3f9f63;
  --coin-green-light: #5fc986;
  --coin-green-dark: #2f7d4f;
  background: radial-gradient(circle at 35% 28%, var(--coin-green-light) 0%, var(--coin-green) 52%, var(--coin-green-dark) 100%);
  border: 1.5px solid var(--coin-green-dark);
  transform: translateY(3px);
  filter: saturate(1.12) contrast(1.06);
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.18) inset,
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 0 0 var(--coin-green-dark),
    0 2px 8px rgba(47, 125, 79, 0.28);
}

.cap-card__btn:active {
  --coin-green: #3f9f63;
  --coin-green-light: #5fc986;
  --coin-green-dark: #2f7d4f;
  background: radial-gradient(circle at 35% 28%, var(--coin-green-light) 0%, var(--coin-green) 52%, var(--coin-green-dark) 100%);
  border: 1.5px solid var(--coin-green-dark);
  transform: translateY(4px);
  filter: saturate(1.05) contrast(1.04);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.22) inset,
    0 0 0 var(--coin-green-dark),
    0 1px 6px rgba(47, 125, 79, 0.22);
}

/* только картинки без обёртки .cap-card__media */
.cap-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.cap-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-light);
  position: relative;
}

.cap-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* Catalog */
.catalog {
  --catalog-gap-y: 3mm;
  --catalog-ui-scale: 1.5;
  background: var(--bg-dark);
  padding: var(--catalog-gap-y) 0;
}

.catalog__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: var(--catalog-gap-y);
}

.catalog__title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.catalog__title a:hover {
  opacity: 0.85;
}

.catalog__block {
  margin-bottom: var(--catalog-gap-y);
}

.catalog__block--last {
  margin-bottom: 0;
}

.catalog__heading {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: var(--catalog-gap-y);
  line-height: 1.2;
}

.catalog__heading-accent {
  font-weight: 700;
}

.catalog__grid,
.catalog__grid--soft {
  display: grid;
  grid-template-columns: repeat(auto-fill, calc(232px * var(--catalog-ui-scale)));
  column-gap: calc(12px * var(--catalog-ui-scale));
  row-gap: var(--catalog-gap-y);
  justify-content: start;
}

.catalog__grid .product-card--ref,
.catalog__grid--soft .product-card--ref {
  flex: none;
  width: calc(232px * var(--catalog-ui-scale));
  max-width: 100%;
  scroll-snap-align: unset;
}

.product-card--ref .product-card__note {
  display: block;
  margin-top: 1mm;
  font-size: calc(11px * var(--catalog-ui-scale, 1));
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

.catalog .product-card--ref .product-card__controls {
  gap: calc(3mm * var(--catalog-ui-scale));
}

.catalog__grid .product-card--ref .product-card__controls,
.catalog__grid--soft .product-card--ref .product-card__controls {
  justify-content: stretch;
}

.catalog__grid .product-card--ref .product-card__price--ref,
.catalog__grid--soft .product-card--ref .product-card__price--ref {
  flex: 1;
  justify-content: center;
  text-align: center;
}

.catalog__slider .product-card--ref .product-card__controls {
  justify-content: stretch;
}

.catalog__slider .product-card--ref .product-card__price--ref {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.catalog__stripe.product-card--stripe {
  display: block;
  flex: none;
  width: 100%;
  max-width: none;
  margin: var(--catalog-gap-y) 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.catalog__stripe-line {
  position: relative;
  display: grid;
  grid-template-areas: 'stripe';
  align-items: center;
  width: 100%;
  height: calc(180px * var(--catalog-ui-scale));
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.catalog__stripe-line::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(30, 37, 67, 0.72) 0%, rgba(30, 37, 67, 0.28) 45%, transparent 72%);
  pointer-events: none;
}

.catalog__stripe-line img {
  grid-area: stripe;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.catalog__stripe-body {
  grid-area: stripe;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
}

.catalog__stripe-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: calc(16px * var(--catalog-ui-scale));
  flex: 1;
  min-width: 0;
  width: 100%;
}

.catalog__stripe.product-card--stripe .catalog__stripe-body h3,
.catalog__stripe.product-card--stripe .catalog__stripe-arrow {
  transition: opacity 0.2s ease;
}

.catalog__stripe.product-card--stripe .catalog__stripe-body h3 {
  min-width: 0;
  min-height: 0;
  margin: 0;
  font-family: var(--font-bebas);
  font-size: calc(64px * var(--catalog-ui-scale));
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.catalog__stripe.product-card--stripe .catalog__stripe-arrow {
  display: block;
  align-self: stretch;
  height: 100%;
  width: auto;
  color: var(--white);
}

.catalog__stripe.product-card--stripe .catalog__stripe-arrow svg {
  display: block;
  height: 100%;
  width: auto;
}

.catalog__stripe-line:hover .catalog__stripe-body h3,
.catalog__stripe-line:hover .catalog__stripe-arrow,
.catalog__stripe-line:focus-visible .catalog__stripe-body h3,
.catalog__stripe-line:focus-visible .catalog__stripe-arrow {
  opacity: 0.75;
}

.catalog__slider-wrap {
  position: relative;
}

.catalog__slider {
  display: flex;
  gap: calc(12px * var(--catalog-ui-scale));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 0;
}

.catalog__slider .product-card--ref {
  flex: 0 0 calc(232px * var(--catalog-ui-scale));
}

.catalog__slider::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.product-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
  min-height: 40px;
}

.product-card__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qty {
  display: flex;
  align-items: center;
  background: var(--bg-milk);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  gap: 4px;
}

.qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  border-radius: 50%;
}

.qty button:hover {
  background: var(--bg-light);
}

.qty span {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.product-card__price {
  background: linear-gradient(180deg, var(--btn-matte-light) 0%, var(--btn-matte) 55%, var(--btn-matte-dark) 100%);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-shadow: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.12) inset,
    0 4px 0 var(--btn-matte-deep),
    0 4px 1px var(--btn-matte-deep),
    0 8px 16px var(--btn-matte-shadow);
  transform: translateY(0);
  transition:
    transform 0.14s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.14s cubic-bezier(0.34, 1.2, 0.64, 1),
    filter 0.14s ease;
}

.product-card__price:hover {
  transform: translateY(4px);
  filter: brightness(1.04);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.2) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 var(--btn-matte-deep),
    0 3px 12px var(--btn-matte-shadow);
}

.product-card__price:active {
  transform: translateY(5px);
  filter: brightness(0.97);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.22) inset,
    0 0 0 var(--btn-matte-deep),
    0 2px 8px rgba(30, 37, 67, 0.2);
}

a.product-card__price {
  display: inline-flex;
  text-decoration: none;
}

/* Каталог — референс (первые 3 карточки для сравнения) */
.product-card--ref {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 3mm;
  display: flex;
  flex-direction: column;
}

.catalog .product-card--ref {
  padding: var(--catalog-gap-y, 3mm);
  border-radius: calc(18px * var(--catalog-ui-scale));
}

.product-card--ref .product-card__media {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  border-radius: calc(12px * var(--catalog-ui-scale, 1));
  overflow: hidden;
  margin-bottom: 3mm;
  background: #e5e5e5;
}

.catalog .product-card--ref .product-card__media {
  margin-bottom: var(--catalog-gap-y, 3mm);
}

.product-card--ref .product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-bottom: 0;
  border-radius: 0;
}

.product-card--ref h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3mm;
  min-height: 0;
  line-height: 1.28;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.catalog .product-card--ref h3 {
  margin-bottom: var(--catalog-gap-y, 3mm);
  font-size: calc(16px * var(--catalog-ui-scale));
  line-height: 1.28;
}

.product-card--ref .product-card__controls {
  margin-top: auto;
  gap: 3mm;
}

.product-card--ref .qty--ref {
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  gap: 6px;
  flex-shrink: 0;
}

.product-card--ref .qty--ref button {
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  color: #5c5c5c;
  background: transparent;
  border-radius: 50%;
}

.product-card--ref .qty--ref button:hover {
  background: #f0f0f0;
}

.product-card--ref .qty--ref span {
  min-width: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
}

.catalog .product-card--ref .product-card__price--ref {
  display: inline-flex;
  background-image: var(--blue-nav-gradient);
  background-size: 280% 280%;
  background-position: 0% 40%;
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.32);
  text-shadow: none;
  transform: none;
  filter: none;
  font-family: var(--font-bebas);
  font-size: calc(20px * 1.33 * var(--catalog-ui-scale));
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  height: calc(29px * 1.33 * var(--catalog-ui-scale));
  min-height: calc(29px * 1.33 * var(--catalog-ui-scale));
  padding: 0 calc(11px * var(--catalog-ui-scale));
  transition:
    background-position var(--gradient-shift-duration) ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

.catalog .product-card--ref .product-card__price--ref:hover {
  background-position: 100% 60%;
  transform: translateY(-1px);
  filter: none;
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.42);
}

.catalog .product-card--ref .product-card__price--ref:active {
  transform: translateY(0);
  filter: brightness(0.96);
  box-shadow: 0 3px 12px rgba(30, 64, 175, 0.3);
}

.catalog__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--catalog-gap-y);
  gap: 12px;
}

.catalog__progress {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px;
  overflow: hidden;
}

.catalog__progress-fill {
  height: 100%;
  background: var(--bg-milk);
  width: 20%;
  transition: width 0.3s;
  border-radius: 1px;
}

.catalog__arrows {
  display: flex;
  gap: 8px;
}

.catalog__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.catalog__arrow--next {
  background: var(--bg-milk);
  color: var(--text-dark);
}

.catalog__arrow:hover {
  opacity: 0.85;
}

.catalog__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Tariffs */
.tariffs {
  padding: 100px 0;
  background: var(--bg-cream);
}

.tariffs__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 28px);
}

.tariff-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
  height: 100%;
  background: var(--bg-milk);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2vw, 28px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.tariff-card__img {
  width: 100%;
  height: clamp(160px, 18vw, 220px);
  object-fit: cover;
  border-radius: var(--radius-md);
}

.tariff-card__content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.tariff-card__content .btn {
  margin-top: auto;
  align-self: flex-start;
}

.tariff-card__price-label {
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.tariff-card__name {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.tariff-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.tariff-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--btn-matte-light) 0%, var(--btn-matte) 55%, var(--btn-matte-dark) 100%);
  flex-shrink: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 3px 8px var(--btn-matte-shadow),
    0 2px 0 var(--btn-matte-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.check::after {
  content: '';
  display: block;
  width: 11px;
  height: 9px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9' fill='none'%3E%3Cpath d='M1 4.5 4 7.5 10 1.5' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Testimonials */
.testimonials {
  background: var(--bg-dark);
  padding: 0 0 80px;
}

.testimonials .container {
  transform: translateY(-40px);
}

.testimonials__card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px 40px 40px;
  text-align: center;
}

.testimonials__badge {
  display: inline-block;
  background: var(--bg-milk);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.testimonials__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.testimonials__gallery {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.testimonials__gallery img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 3px solid var(--bg-milk);
}

.testimonials__more {
  width: 120px;
  height: 160px;
  background: var(--bg-milk);
  border-radius: var(--radius-sm);
  border: 3px solid var(--bg-milk);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-muted);
}

/* CTA */
.cta {
  padding: 40px 0 80px;
  background: var(--bg-cream);
}

.cta__card {
  background: var(--bg-milk);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 700;
  color: rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.03em;
}

.cta__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  position: relative;
}

.cta .btn {
  position: relative;
}

.cta__lead {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  position: relative;
}

/* Плавающие соцсети (справа внизу) */
.social-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.social-float__btn {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-float__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

.social-float__btn:active {
  transform: scale(1.02);
}

.social-float__btn--youtube {
  background: #ff0000;
}

.social-float__item {
  position: relative;
  pointer-events: none;
}

.social-float__item .social-float__btn {
  pointer-events: auto;
}

.social-float__legal {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  z-index: 2;
  width: min(340px, calc(100vw - 100px));
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-dark);
  text-align: left;
  background: rgba(249, 243, 230, 0.98);
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(26, 26, 26, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(10px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.social-float__item--instagram:hover .social-float__legal,
.social-float__item--instagram:focus-within .social-float__legal {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.social-float__btn--instagram {
  background: linear-gradient(
    135deg,
    #f9ce34 0%,
    #ee2a7b 50%,
    #6228d7 100%
  );
}

.social-float__btn--rutube {
  background: #100943;
}

.social-float__btn--telegram {
  background: #27a7e7;
}

.social-float__btn--vk-video {
  background: #0077ff;
}

.social-float__btn svg {
  display: block;
}

/* Footer */
.footer {
  padding: 0 0 60px;
  background: var(--bg-cream);
}

.footer__card {
  background: var(--bg-milk);
  border-radius: var(--radius-lg);
  padding: 48px 40px 32px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e8dfd0;
  margin-bottom: 24px;
}

.footer__draft {
  flex-shrink: 0;
  align-self: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

.footer__draft:hover {
  opacity: 1;
  color: var(--text-dark);
}

.footer__cols {
  display: flex;
  gap: 64px;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 8px;
  transition: opacity 0.2s;
}

.footer__col a:hover {
  opacity: 0.6;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-light);
}

.footer__bottom a:hover {
  opacity: 0.6;
}

/* Weblium badge */
.weblium-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10001;
  background: var(--bg-milk);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

.weblium-badge:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
  .home-intro__backdrop::before {
    width: 100%;
  }

  .home-intro__video-clip {
    width: 100%;
    left: 0;
    right: 0;
  }

  .home-intro__backdrop::after {
    display: none;
  }

  .home-intro__panel {
    display: flex;
    flex-direction: column;
  }

  .home-intro__panel > .hero__visual {
    grid-column: unset;
    grid-row: unset;
    align-self: stretch;
    order: 1;
    min-height: clamp(220px, 52vw, 380px);
    max-height: min(380px, 45vh);
    width: 100%;
    z-index: 2;
    display: block;
    grid-template-rows: none;
  }

  .home-intro .partner__title-lead-under-cubes {
    display: none;
  }

  .home-intro__panel > .hero {
    order: 0;
    grid-column: unset;
    grid-row: unset;
    z-index: 2;
    padding: 140px 0 16px;
  }

  .home-intro__panel > .partner {
    order: 3;
    grid-column: unset;
    grid-row: unset;
    z-index: 2;
    width: 100%;
    margin-left: 0;
    max-width: none;
    background: var(--bg-cream);
  }

  .home-intro .hero > .container.home-intro__hero-copy {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
  }

  .home-intro .hero__content {
    padding-top: 0;
    padding-left: clamp(18px, 4vw, 40px);
    padding-right: clamp(18px, 4vw, 40px);
  }

  .home-intro .partner__head {
    width: 100%;
    max-width: none;
    left: auto;
    transform: none;
  }

  .home-intro .partner__title {
    display: block;
  }

  .home-intro .partner__title .partner__title-lead {
    justify-self: unset;
    padding-left: 0;
    padding-right: 0;
    pointer-events: auto;
    opacity: 1;
    user-select: auto;
    background: var(--home-partner-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--home-svyaz-3d-shadow);
  }

  .home-intro .partner__title .partner__title-rest {
    display: inline;
    justify-self: unset;
    min-width: unset;
  }

  .hero {
    justify-content: center;
  }

  .hero .container.hero__grid {
    flex: 0 1 auto;
    height: auto;
  }

  .hero__grid {
    height: auto;
    grid-template-columns: 1fr;
  }

  .hero__content {
    grid-column: 1;
    padding-left: 0;
    padding-right: 0;
  }

  .hero__visual {
    grid-column: 1;
    min-height: clamp(220px, 52vw, 380px);
    max-height: min(380px, 45vh);
  }

  .hero__images {
    justify-content: center;
  }

  .hero-plaques__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats__cards,
  .capabilities__grid {
    grid-template-columns: 1fr;
  }

  .catalog__grid,
  .catalog__grid--soft {
    grid-template-columns: repeat(auto-fill, calc(232px * var(--catalog-ui-scale)));
    column-gap: calc(12px * var(--catalog-ui-scale));
    row-gap: var(--catalog-gap-y, 3mm);
  }

  .catalog__stripe-line {
    height: calc(140px * var(--catalog-ui-scale));
  }

  .tariffs__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__top {
    flex-direction: column;
  }

  .footer__cols {
    flex-wrap: wrap;
    gap: 32px;
  }
}

/* Subpages */
.nav a.is-active {
  font-weight: 600;
  opacity: 1;
}

.sub-hero {
  padding: 140px 0 72px;
  background: var(--bg-cream);
}

.sub-hero--dark {
  background: var(--bg-dark);
  color: var(--white);
}

.sub-hero--dark .hero__desc,
.sub-hero--dark .hero__tag {
  color: rgba(255, 255, 255, 0.65);
}

.sub-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.sub-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sub-stat {
  background: var(--bg-milk);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.sub-hero--dark .sub-stat {
  background: var(--bg-card);
}

.sub-stat__value {
  display: block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--blue);
}

.sub-stat__label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.content-block {
  padding: 80px 0;
}

.content-block--light {
  background: var(--bg-light);
}

.content-block--dark {
  background: var(--bg-dark);
  color: var(--white);
}

.content-block--dark .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--bg-milk);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.content-block--dark .info-card {
  background: var(--bg-card);
  color: var(--text-dark);
}

.info-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.info-card p,
.info-card li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card ul li::before {
  content: '•';
  color: var(--blue);
  margin-right: 8px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-milk);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.case-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin-bottom: 12px;
}

.case-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.case-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.case-columns h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.case-columns ul {
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e8dfd0;
}

.case-metrics span {
  background: var(--bg-light);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 32px;
}

.compare-card--solo {
  background: var(--bg-light);
}

.compare-card--pro {
  background: var(--blue);
  color: var(--white);
}

.compare-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.compare-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.compare-card--solo ul {
  color: var(--text-muted);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.risk-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
}

.risk-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.risk-item p {
  font-size: 12px;
  color: var(--text-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-item {
  background: var(--bg-milk);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
}

.service-item:hover {
  transform: translateY(-2px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.chip {
  background: var(--bg-milk);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.equip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.equip-nav a {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 14px;
  transition: background 0.2s;
}

.equip-nav a:hover {
  background: var(--blue);
}

.equip-section {
  scroll-margin-top: 100px;
  padding: 80px 0;
}

.equip-section:nth-child(even) {
  background: var(--bg-light);
}

.equip-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.equip-detail__content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.equip-detail__content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.spec-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 7px;
  flex-shrink: 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.spec-box {
  background: var(--bg-milk);
  border-radius: var(--radius-md);
  padding: 20px;
}

.spec-box h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--blue);
}

.spec-box ul {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.process-step {
  background: var(--bg-milk);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.process-step__num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}

.process-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.value-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.value-card ul {
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.text-note {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .sub-hero__grid,
  .equip-detail,
  .case-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .risk-grid,
  .service-grid,
  .process-steps,
  .value-grid,
  .sub-hero__stats {
    grid-template-columns: 1fr;
  }

  .case-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0;
  }

  .nav {
    display: none;
  }

  .hero__images {
    flex-direction: column;
    align-items: center;
  }

  .hero__img {
    width: 100%;
    max-width: 320px;
    height: 240px;
  }

  .partner__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .partner__copy {
    text-align: center;
  }

  .partner__head {
    text-align: center;
  }

  .partner__title {
    display: inline-block;
    text-align: left;
  }

  .partner__meta {
    align-items: center;
    padding-left: 0;
  }

  .partner__contacts {
    padding-top: 8px;
  }

  .tariffs__list {
    grid-template-columns: 1fr;
  }

  .catalog__grid,
  .catalog__grid--soft {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(232px * var(--catalog-ui-scale))), 1fr));
    justify-content: center;
  }

  .catalog__grid .product-card--ref,
  .catalog__grid--soft .product-card--ref {
    width: 100%;
  }

  .catalog__stripe.product-card--stripe .catalog__stripe-body h3 {
    font-size: clamp(calc(28px * var(--catalog-ui-scale)), 8vw, calc(64px * var(--catalog-ui-scale)));
  }

  .about-tabs {
    flex-direction: column;
    max-width: 100%;
  }

  .about-tabs__item {
    width: 100%;
    justify-content: flex-start;
  }

  .about-info-grid,
  .about-cards,
  .about-awards,
  .about-team-grid {
    grid-template-columns: 1fr;
  }

  .about-request__fields {
    grid-template-columns: 1fr;
  }

  .about-request__field--full {
    grid-column: auto;
  }
}

/* About page */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.about-page {
  background: var(--bg-cream);
}

.about-page *,
.about-page *::before,
.about-page *::after {
  border-radius: 0 !important;
}

.about-home-flag {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0;
  padding: 8px;
  border: none;
  border-radius: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-bebas);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  box-shadow: -4px 0 16px rgba(30, 64, 175, 0.28);
  transform: translateY(-50%);
  transform-origin: right center;
  transition:
    background-color 0.2s ease,
    box-shadow 0.28s ease,
    width 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.about-home-flag:hover {
  width: 96px;
  background: var(--blue-deep);
  color: var(--white);
  box-shadow: -10px 0 28px rgba(30, 64, 175, 0.42);
}

.about-home-flag:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -4px;
}

.about-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 0;
  color: var(--white);
  overflow: visible;
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 37, 67, 0.55) 0%, rgba(30, 37, 67, 0.82) 72%, rgba(30, 37, 67, 0.95) 100%),
    url('../assets/hero/image-8.png') center / cover no-repeat;
  z-index: 0;
}

.about-hero__inner {
  position: relative;
  z-index: 1;
  padding-bottom: 88px;
}

.about-hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.about-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-bebas);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.about-hero__lead {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.about-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  width: var(--container);
  margin: 0 auto -1px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.about-tabs__item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 16px;
  border: none;
  background: rgba(30, 37, 67, 0.82);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.about-tabs__item + .about-tabs__item {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.about-tabs__item:not(.is-active):hover {
  background: rgba(40, 48, 82, 0.92);
}

.about-tabs__item.is-active {
  background: var(--white);
  color: var(--text-dark);
}

.about-tabs__icon {
  flex-shrink: 0;
  display: flex;
  color: rgba(255, 255, 255, 0.92);
}

.about-tabs__item.is-active .about-tabs__icon {
  color: #e67e22;
}

.about-panels {
  position: relative;
  z-index: 1;
}

.about-panel[hidden] {
  display: none !important;
}

.about-video {
  background: var(--bg-cream);
}

.about-video__frame {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 40px 0;
}

.about-video__placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(56vw, 420px);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(26, 26, 26, 0.35), rgba(26, 26, 26, 0.65)),
    url('../assets/hero/image-9.png') center / cover no-repeat;
  color: var(--white);
  text-align: center;
}

.about-video__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.about-video__play:hover {
  transform: scale(1.06);
}

.about-video__caption {
  font-size: 18px;
  font-weight: 600;
}

.about-video__hint {
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.75;
}

.about-filmstrip {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 24px 0 8px;
  overflow: hidden;
}

.about-filmstrip__track {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 0 var(--site-gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.about-filmstrip__track img {
  flex: 0 0 clamp(280px, 42vw, 560px);
  width: clamp(280px, 42vw, 560px);
  height: clamp(180px, 28vw, 320px);
  object-fit: cover;
  border-radius: 0;
  scroll-snap-align: start;
}

.about-section__title {
  margin: 0 0 24px;
  font-family: var(--font-bebas);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.about-section__intro {
  max-width: 720px;
  margin: -8px 0 32px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* prose на .container сужал блок и сдвигал заголовки — колонка как у остальных секций */
.about-section .container.about-section__prose {
  max-width: var(--container);
  width: 100%;
}

.about-section__prose > :not(.about-section__title) {
  max-width: 800px;
}

.about-section__prose p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
}

.about-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-info-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-milk);
  border: 1px solid rgba(26, 26, 26, 0.06);
}

.about-info-card__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.about-info-card__value {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-dark);
}

.about-timeline {
  list-style: none;
  display: grid;
  gap: 20px;
}

.about-timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.about-timeline__year {
  font-family: var(--font-bebas);
  font-size: 28px;
  color: var(--blue);
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-cards__item {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 4px 18px rgba(26, 26, 26, 0.06);
}

.about-cards__item h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.about-cards__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.about-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.about-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--text-muted);
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.about-awards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-awards__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-milk);
}

.about-awards__icon {
  font-size: 22px;
  color: #e67e22;
  line-height: 1;
}

.about-awards__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dark);
}

.about-trust {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.about-trust__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-milk);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.about-trust__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
}

.about-request__card {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-request__title {
  margin: 0 0 12px;
  font-family: var(--font-bebas);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  text-transform: uppercase;
}

.about-request__lead {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.about-request__types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  border: none;
}

.about-request__type {
  cursor: pointer;
}

.about-request__type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.about-request__type span {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.about-request__type input:checked + span {
  background: var(--white);
  border-color: var(--white);
  color: var(--text-dark);
}

.about-request__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.about-request__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-request__field--full {
  grid-column: 1 / -1;
}

.about-request__field span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.about-request__field input,
.about-request__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
}

.about-request__field input:focus,
.about-request__field textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 1px;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.about-team-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-milk);
}

.about-team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #d9d9d9, #ece3d0);
}

.about-team-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.about-team-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.about-docs-list {
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.about-docs-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-milk);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.about-docs-list__link:hover {
  background: var(--white);
  transform: translateX(4px);
}

.about-docs-list__name {
  font-size: 15px;
  font-weight: 600;
}

.about-docs-list__meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Широкие экраны: та же сетка и блоки, контент шире (без глобального scale)
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .hero__grid {
    gap: clamp(48px, 3.5vw, 72px);
  }

  .hero__title {
    font-size: clamp(56px, 4.2vw, 88px);
  }

  .hero__desc {
    font-size: clamp(16px, 1.05vw, 22px);
    max-width: 520px;
  }

  .hero__img {
    width: clamp(220px, 13.5vw, 400px);
    height: clamp(320px, 19.5vw, 560px);
  }

  .hero-plaques__grid {
    gap: clamp(16px, 1.2vw, 24px);
  }

  .hero-plaque {
    min-height: clamp(92px, 5.5vw, 132px);
    padding: clamp(18px, 1.25vw, 28px) clamp(20px, 1.4vw, 30px);
    border-radius: clamp(14px, 1vw, 20px);
  }

  .hero-plaque__icon {
    width: clamp(48px, 3.2vw, 72px);
    height: clamp(48px, 3.2vw, 72px);
  }

  .hero-plaque__icon svg {
    width: clamp(40px, 2.6vw, 60px);
    height: clamp(40px, 2.6vw, 60px);
  }

  .hero-plaque__title {
    font-size: clamp(18px, 1.25vw, 28px);
  }

  .hero-plaque__text {
    font-size: clamp(13px, 0.9vw, 18px);
  }

  .partner__layout {
    gap: clamp(40px, 3vw, 64px);
  }

  .partner__title {
    font-size: clamp(106px, 7.2vw, 168px);
  }

  .partner__contacts {
    --contact-pin-size: clamp(44px, 2.8vw, 64px);
  }

  .contact-card {
    flex: 0 0 clamp(148px, 9.5vw, 220px);
    padding: calc(var(--contact-pin-size) + clamp(16px, 1.1vw, 24px)) clamp(14px, 1vw, 20px) clamp(18px, 1.2vw, 26px);
  }

  .section-title {
    font-size: clamp(44px, 3.2vw, 64px);
  }

  .section-subtitle {
    font-size: clamp(16px, 1.05vw, 22px);
    margin-bottom: clamp(48px, 3.2vw, 72px);
  }

  .catalog__title {
    font-size: clamp(32px, 2.4vw, 48px);
  }

  .catalog__heading {
    font-size: clamp(24px, 1.8vw, 36px);
  }
}

/* ——— Страница каталога (catalog.html) ——— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-catalog .header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.catalog-page {
  padding: 120px 0 80px;
  background: var(--bg-cream);
  min-height: calc(100vh - 80px);
}

.catalog-page__layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 3vw, 48px);
  align-items: start;
}

.catalog-page__sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
  max-height: calc(100vh - 120px);
}

.catalog-page__search-wrap {
  position: relative;
}

.catalog-page__search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font: 500 15px/1.3 var(--font);
  color: var(--text-dark);
  background: var(--bg-milk);
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.catalog-page__search-input::placeholder {
  color: var(--text-light);
}

.catalog-page__search-input:focus {
  outline: none;
  border-color: rgba(30, 64, 175, 0.45);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.catalog-page__search-wrap::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.45;
  pointer-events: none;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' stroke='%231a1a1a' stroke-width='1.5'/%3E%3Cpath d='M13 13l4 4' stroke='%231a1a1a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.catalog-page__search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  max-height: min(360px, 50vh);
  overflow-y: auto;
  background: var(--bg-milk);
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.12);
}

.catalog-page__search-hit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  font: inherit;
  color: var(--text-dark);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  cursor: pointer;
  transition: background 0.12s ease;
}

.catalog-page__search-hit:last-child {
  border-bottom: none;
}

.catalog-page__search-hit:hover,
.catalog-page__search-hit:focus-visible {
  background: var(--bg-light);
  outline: none;
}

.catalog-page__search-hit-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.catalog-page__search-hit-cat {
  font-size: 12px;
  color: var(--text-muted);
}

.catalog-page__search-empty {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.catalog-page__nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-milk);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--radius-md);
  padding: 20px 0 12px;
  box-shadow: 0 2px 14px rgba(26, 26, 26, 0.05);
}

.catalog-page__nav-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 20px 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.catalog-page__nav-title::before {
  content: '';
  width: 3px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, #e85d04 0%, #f48c06 100%);
  flex-shrink: 0;
}

.catalog-page__categories {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 26, 26, 0.25) transparent;
}

.catalog-page__categories::-webkit-scrollbar {
  width: 6px;
}

.catalog-page__categories::-webkit-scrollbar-thumb {
  background: rgba(26, 26, 26, 0.2);
  border-radius: 3px;
}

.catalog-page__cat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font: 600 14px/1.35 var(--font);
  color: var(--text-dark);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.catalog-page__cat:hover,
.catalog-page__cat:focus-visible {
  background: var(--bg-light);
  outline: none;
}

.catalog-page__cat.is-active {
  background: var(--brand-navy);
  color: var(--white);
}

.catalog-page__cat.is-active .catalog-page__cat-count {
  color: rgba(255, 255, 255, 0.75);
}

.catalog-page__cat-name {
  flex: 1 1 auto;
  min-width: 0;
}

.catalog-page__cat-count {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.catalog-page__header {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.catalog-page__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.catalog-page__meta {
  font-size: 15px;
  color: var(--text-muted);
}

.catalog-page__grid.catalog__grid {
  --catalog-ui-scale: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  justify-content: start;
  column-gap: 20px;
  row-gap: 20px;
}

.catalog-page__grid.catalog__grid .product-card--ref {
  width: 100%;
  max-width: 280px;
}

.catalog-page__empty {
  padding: 48px 24px;
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  background: var(--bg-milk);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(26, 26, 26, 0.12);
}

.catalog-page__card--highlight {
  animation: catalog-card-highlight 1.6s ease;
}

@keyframes catalog-card-highlight {
  0%,
  100% {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  }
  25% {
    box-shadow: 0 0 0 3px var(--blue-glow), 0 8px 24px rgba(30, 64, 175, 0.2);
  }
}

@media (max-width: 1200px) {
  .catalog-page__grid.catalog__grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .catalog-page__grid.catalog__grid .product-card--ref {
    max-width: none;
  }
}

@media (max-width: 1024px) {
  .catalog-page__layout {
    grid-template-columns: 1fr;
  }

  .catalog-page__sidebar {
    position: static;
  }

  .catalog-page__grid.catalog__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .catalog-page {
    padding: 100px 0 56px;
  }

  .catalog-page__grid.catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 16px;
  }
}

@media (min-width: 2000px) {
  .page-catalog .container {
    max-width: calc(100vw - 24px);
    padding: 0 12px;
  }

  .catalog-page__layout {
    gap: clamp(32px, 3vw, 56px);
  }
}

@media (max-width: 480px) {
  .catalog-page__grid.catalog__grid {
    grid-template-columns: 1fr;
  }

  .catalog-page__grid.catalog__grid .product-card--ref {
    max-width: none;
  }
}
