/* Manrope variable (400–800) — самохостинг вместо Google Fonts CDN.
   Сабсеты и unicode-range взяты из css2-выдачи Google Fonts v20. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-var-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #121a24;
  --muted: #536170;
  --blue: #14181d;
  --line: rgba(18, 26, 36, 0.12);
  --page-x: clamp(18px, 2.2vw, 34px);
  --header-h: 66px;
  --benefits-h: 92px;
  --roulette-h: clamp(88px, 9.4vw, 112px);
  --stage-y: clamp(118px, 14.3vh, 138px);
  --cta-top: clamp(404px, 49vh, 448px);
  --reveal-radius: clamp(75px, 11vmin, 115px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #fff;
}

body {
  min-height: 100dvh;
  /* Страница скроллится: hero — первый «лист», ниже идут секции лендинга. */
  overflow-x: clip;
  color: var(--ink);
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--header-h);
  display: grid;
  align-items: center;
  padding: 0 var(--page-x);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58) 74%, rgba(255, 255, 255, 0));
  backdrop-filter: blur(8px);
}

.site-nav {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
}

.brand-logo {
  width: 64px;
  height: 58px;
  display: grid;
  place-items: center;
  justify-self: center;
  text-decoration: none;
}

.brand-logo img {
  width: 58px;
  height: 58px;
  display: block;
  object-fit: contain;
}

.nav-links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 38px);
}

.nav-links-left {
  justify-content: flex-end;
}

.nav-links-right {
  justify-content: flex-start;
}

.nav-links a {
  color: #1d2937;
  text-decoration: none;
  font-size: clamp(12px, 0.9vw, 13.5px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
}

.nav-links a:active {
  transform: translateY(1px);
}

.nav-links a[aria-current="page"] {
  color: #000;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(18, 26, 36, 0.55);
  text-underline-offset: 7px;
}

.solution-roulette {
  /* absolute (а не fixed): рулетка принадлежит hero-листу и уезжает вместе с ним при скролле */
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--header-h) - 28px);
  z-index: 1;
  height: var(--roulette-h);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.solution-roulette::before {
  display: none;
}

.layer-roulette {
  position: relative;
  z-index: 1;
  width: min(70vw, 760px);
  height: 100%;
  overflow: hidden;
  background: transparent;
  cursor: grab;
  outline: none;
  touch-action: none;
  user-select: none;
  pointer-events: auto;
}

.layer-roulette.is-dragging {
  cursor: grabbing;
}

.layer-roulette__track {
  position: absolute;
  inset: 0;
  perspective: 980px;
  transform-style: preserve-3d;
}

.layer-roulette__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  min-width: 78px;
  max-width: min(46vw, 250px);
  height: clamp(42px, 5.8vw, 62px);
  display: inline-grid;
  place-items: center;
  padding: 0 clamp(14px, 2.2vw, 24px);
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
}

.layer-roulette__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 26, 36, 0.24), rgba(18, 26, 36, 0)) top left / 42% 1px no-repeat,
    linear-gradient(270deg, rgba(18, 26, 36, 0.24), rgba(18, 26, 36, 0)) top right / 42% 1px no-repeat,
    linear-gradient(90deg, rgba(18, 26, 36, 0.24), rgba(18, 26, 36, 0)) bottom left / 42% 1px no-repeat,
    linear-gradient(270deg, rgba(18, 26, 36, 0.24), rgba(18, 26, 36, 0)) bottom right / 42% 1px no-repeat,
    linear-gradient(180deg, rgba(18, 26, 36, 0.24), rgba(18, 26, 36, 0)) top left / 1px 42% no-repeat,
    linear-gradient(0deg, rgba(18, 26, 36, 0.24), rgba(18, 26, 36, 0)) bottom left / 1px 42% no-repeat,
    linear-gradient(180deg, rgba(18, 26, 36, 0.24), rgba(18, 26, 36, 0)) top right / 1px 42% no-repeat,
    linear-gradient(0deg, rgba(18, 26, 36, 0.24), rgba(18, 26, 36, 0)) bottom right / 1px 42% no-repeat;
}

.layer-roulette__card span {
  display: block;
  max-width: 100%;
  font-size: clamp(12px, 1.28vw, 17px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  opacity: 0.58;
}

.layer-roulette__card.is-active::before {
  opacity: 1;
}

.layer-roulette__card.is-active span {
  font-size: clamp(15px, 1.58vw, 21px);
  opacity: 1;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}

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

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.image-stage {
  --cursor-x: 50%;
  --cursor-y: 50%;
  --reveal-opacity: 0;
  position: absolute;
  inset: 0 0 auto 0;
  width: 100vw;
  /* 16:9 от ширины окна: арт всегда на всю ширину, лишний низ уходит под док */
  height: 56.25vw;
  overflow: hidden;
  transform: translate3d(0, calc(var(--stage-y) - 3px), 0);
  will-change: transform;
  pointer-events: none;
}

.room-image,
.wall-reveal-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.room-image {
  object-fit: contain;
  object-position: center top;
  background: transparent;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.wall-reveal-layer {
  pointer-events: none;
}

.room-image-system-color {
  opacity: 0;
  transition: opacity 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.image-stage.is-system-revealed .room-image-system-color,
.image-stage.is-static-color .room-image-system-color {
  opacity: 1;
}

.wall-color {
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.image-stage.is-wall-revealed .wall-color,
.image-stage.is-static-color .wall-color {
  opacity: 1;
}

.wall-hit {
  fill: transparent;
  fill-opacity: 0;
  stroke: none;
  stroke-width: 0;
  outline: none;
  cursor: pointer;
  pointer-events: all;
}

.wall-hit:focus,
.wall-hit:focus-visible {
  outline: none;
}

.room-image-color {
  opacity: var(--reveal-opacity);
  transition: opacity 120ms ease;
  -webkit-mask-image: radial-gradient(
    circle var(--reveal-radius) at var(--cursor-x) var(--cursor-y),
    #000 0 58%,
    rgba(0, 0, 0, 0.82) 68%,
    rgba(0, 0, 0, 0.28) 82%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--reveal-radius) at var(--cursor-x) var(--cursor-y),
    #000 0 58%,
    rgba(0, 0, 0, 0.82) 68%,
    rgba(0, 0, 0, 0.28) 82%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.image-stage.is-static-color .room-image-color {
  display: none;
}

.hero-copy {
  position: absolute;
  top: clamp(86px, 9.8vh, 104px);
  left: 0;
  right: 0;
  z-index: 4;
  width: min(1020px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  pointer-events: none;
  isolation: isolate;
}

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

.hero-copy h1,
.hero-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-copy h1 {
  color: var(--ink);
  font-size: clamp(40px, 3.9vw, 60px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 1px 0 #fff, 0 0 28px rgba(255, 255, 255, 0.92);
}

.hero-text {
  color: var(--blue);
  font-size: clamp(20px, 1.62vw, 27px);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
  text-shadow: 0 1px 0 #fff, 0 0 20px rgba(255, 255, 255, 0.94);
}

.hero-benefits {
  /* absolute внутри .hero-shell (100dvh): док прижат к низу первого экрана, скроллится с hero */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
  padding: 0 clamp(14px, 2vw, 30px) calc(14px + env(safe-area-inset-bottom, 0px));
}

.dock {
  --d-ink: #14181d;
  --d-muted: #6f757d;
  pointer-events: auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 140px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 30px);
  padding: 12px clamp(14px, 1.6vw, 22px);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(30px) saturate(175%);
  backdrop-filter: blur(30px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), inset 0 -1px 3px rgba(255, 255, 255, 0.35), 0 24px 54px -24px rgba(18, 26, 36, 0.42), 0 8px 20px -14px rgba(18, 26, 36, 0.3);
  transition: background 0.7s ease, border-color 0.7s ease;
}

/* Цветной кадр включён: тёмный пол за стеклом — густим стекло до молочного, чтобы иконки читались. */
.is-color-on .dock {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.55));
  border-color: rgba(255, 255, 255, 0.75);
}

.dock-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #232b35, var(--d-ink));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 22px -12px rgba(18, 26, 36, 0.55);
  text-decoration: none;
  white-space: nowrap;
  font-size: clamp(13px, 0.92vw, 14.5px);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.18s ease;
}

.dock-cta:hover,
.dock-cta:focus-visible {
  background: #2b323b;
  outline: none;
}

.dock-cta:active {
  transform: translateY(1px);
}

.dock-flow {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: clamp(66px, 6.8vw, 96px);
  flex: 0 0 auto;
  opacity: 0.18;
  transition: opacity 0.6s ease;
}

.frame-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  box-sizing: border-box;
  padding: 3px;
  display: grid;
  place-items: center;
}

.frame-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.frame-label {
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #565d65;
  white-space: nowrap;
  transition: color 0.35s ease;
}

.frame.is-on {
  opacity: 1;
}

.frame.is-on .frame-label {
  color: var(--d-ink);
}

.frame.is-rest {
  opacity: 0.82;
}

.frame.is-rest .frame-label {
  color: #4a5158;
}

.frame:hover {
  opacity: 1;
}

.frame:hover .frame-label {
  color: var(--d-ink);
}

.site-header,
.solution-roulette,
.hero-benefits {
  will-change: transform;
}

.is-loading .site-header {
  opacity: 0;
  transform: translate3d(0, -150px, 0);
}

.is-loading .solution-roulette {
  opacity: 0;
  transform: translate3d(0, -110px, 0);
}

.is-loading .hero-benefits {
  opacity: 0;
  transform: translate3d(0, 190px, 0);
}

@keyframes intro-from-top {
  from {
    opacity: 0;
    transform: translate3d(0, -150px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes intro-from-bottom {
  from {
    opacity: 0;
    transform: translate3d(0, 190px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.is-css-intro .site-header {
  animation: intro-from-top 960ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.is-css-intro .solution-roulette {
  animation: intro-from-top 1080ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 520ms;
}

.is-css-intro .hero-benefits {
  animation: intro-from-bottom 1160ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1780ms;
}


@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hero-text {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .dock {
    gap: clamp(12px, 1.6vw, 22px);
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 96px;
    --roulette-h: 104px;
    --stage-y: clamp(286px, 38vh, 330px);
    --cta-top: calc(var(--stage-y) + 92px);
    --reveal-radius: clamp(55px, 15vmin, 80px);
  }

  .site-header {
    height: var(--header-h);
    padding: 8px 12px;
  }

  .site-nav {
    max-width: 390px;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .brand-logo {
    grid-row: 1;
    width: 58px;
    height: 44px;
  }

  /* Явные строки: без них левый блок ссылок авторазмещается в строку 1 и перекрывает лого */
  .nav-links-left {
    grid-row: 2;
  }

  .nav-links-right {
    grid-row: 3;
  }

  .brand-logo img {
    width: 52px;
    height: 52px;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .solution-roulette {
    top: calc(var(--header-h) - 36px);
  }

  .layer-roulette {
    width: min(96vw, 430px);
  }

  .layer-roulette__card {
    min-width: 72px;
    max-width: 70vw;
    height: 50px;
  }

  .layer-roulette__card span {
    font-size: 13px;
  }

  .layer-roulette__card.is-active span {
    font-size: 17px;
  }

  .hero-copy {
    top: 110px;
    width: calc(100vw - 24px);
    gap: 8px;
  }

  .hero-copy h1 {
    font-size: clamp(27px, 6.8vw, 32px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .hero-text {
    width: min(100%, 340px);
    font-size: clamp(18px, 4.8vw, 23px);
    overflow-wrap: break-word;
  }

  /* Кнопки в доке больше нет, лента этапов скрыта — прячем пустую панель целиком. */
  .hero-benefits {
    display: none;
  }

  .dock {
    min-height: 0;
    height: 60px;
    justify-content: center;
  }

  .dock-flow {
    display: none;
  }

  .dock-cta {
    font-size: 13px;
    padding: 11px 22px;
  }
}


/* ============ Меню «Обсудить» — лента иконок слева ============ */
.dock-cta {
  font-family: inherit;
  border: 0;
  cursor: pointer;
}

.cx {
  --ink: #14181d;
  --muted: #6f757d;
  --line: rgba(18, 26, 36, 0.12);
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.cx-rail,
.cx-card {
  pointer-events: auto;
}

.cx.is-card .cx-scrim {
  pointer-events: auto;
}

.cx-scrim {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: default;
}

.cx-dock {
  position: absolute;
  bottom: clamp(150px, 18vh, 192px);
  left: 0;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.cx-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.34));
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  backdrop-filter: blur(34px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  box-shadow: 12px 20px 44px -24px rgba(18, 26, 36, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transform: translate(-100%, 0);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.32, 1), opacity 0.4s ease;
}

.cx.is-open .cx-rail {
  transform: none;
  opacity: 1;
}

.cx-item {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 26, 36, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cx-item:hover,
.cx-item.is-active {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(18, 26, 36, 0.16);
}

/* Каналы, скрытые до подключения бэкенда (prod v1) */
.cx-item[hidden] {
  display: none;
}

.cx-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cx-tip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  padding: 6px 11px;
  border-radius: 9px;
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.2s ease;
  box-shadow: 0 10px 24px -12px rgba(18, 26, 36, 0.6);
}

.cx-tip::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--ink);
}

.cx-item:hover .cx-tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.cx-cap {
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid rgba(18, 26, 36, 0.12);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.cx-card {
  position: relative;
  width: min(320px, calc(100vw - 96px));
  max-height: min(66vh, 520px);
  overflow-y: auto;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.54));
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  box-shadow: 0 30px 70px -26px rgba(18, 26, 36, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  opacity: 0;
  transform: translateX(-10px) scale(0.98);
  transform-origin: bottom left;
  transition: opacity 0.28s ease, transform 0.3s cubic-bezier(0.34, 1.2, 0.4, 1);
}

.cx-card[hidden] {
  display: none;
}

.cx-card.is-shown {
  opacity: 1;
  transform: none;
}

.cx-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 26, 36, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease;
}

.cx-x:hover {
  background: rgba(255, 255, 255, 0.95);
}

.cx-x svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.cx-view {
  display: none;
}

.cx-view.is-active {
  display: flex;
  flex-direction: column;
  animation: cx-in 0.32s ease both;
}

@keyframes cx-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.cx-vtitle {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 26px 6px 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cx-ic {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(18, 26, 36, 0.05);
  border: 1px solid rgba(18, 26, 36, 0.06);
}

.cx-ic svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cx-vlead {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.cx-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cx-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-form input,
.cx-form textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cx-form input::placeholder,
.cx-form textarea::placeholder {
  color: #a6acb3;
}

.cx-form input:focus,
.cx-form textarea:focus {
  border-color: rgba(18, 26, 36, 0.4);
  box-shadow: 0 0 0 4px rgba(18, 26, 36, 0.06);
}

.cx-send,
.cx-ghost,
.cx-msgr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease;
}

.cx-send {
  border: 0;
  margin-top: 2px;
  background: linear-gradient(180deg, #232b35, var(--ink));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 24px -12px rgba(18, 26, 36, 0.55);
}

.cx-send:hover {
  transform: translateY(-1px);
}

.cx-ghost,
.cx-msgr {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}

.cx-ghost:hover,
.cx-msgr:hover {
  border-color: rgba(18, 26, 36, 0.28);
  background: rgba(255, 255, 255, 0.95);
}

.cx-msgr svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cx-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cx-rec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 0 4px;
}

.cx-mic {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #232b35, var(--ink));
  color: #fff;
  box-shadow: 0 16px 34px -16px rgba(18, 26, 36, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease;
}

.cx-mic:hover {
  transform: translateY(-2px);
}

.cx-mic svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cx-mic.is-rec::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(18, 26, 36, 0.28);
  animation: cx-pulse 1.5s ease-out infinite;
}

@keyframes cx-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.32); opacity: 0; }
}

.cx-timer {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.cx-hint {
  margin: 0;
  max-width: 250px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.cx-audio {
  width: 100%;
  margin-top: 2px;
}

.cx-rec-actions {
  display: flex;
  gap: 9px;
  width: 100%;
}

.cx-rec-actions .cx-send {
  flex: 1 1 auto;
  margin-top: 0;
}

.cx-done {
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px 4px 2px;
}

.cx-done .cx-vtitle {
  margin: 0;
}

.cx-done .cx-vlead {
  margin: 2px 0 14px;
}

.cx-done .cx-send {
  width: 100%;
}

.cx-check {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
}

.cx-check svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  .cx-dock {
    bottom: clamp(120px, 15vh, 160px);
  }
  .cx-card {
    width: calc(100vw - 92px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cx-rail,
  .cx-card {
    transition: none;
  }
  .cx-view.is-active {
    animation: none;
  }
}

/* ================================================================
   Листы лендинга (Л.02–Л.07): продолжение чертёжной темы hero.
   Язык: белый «ватман», тонкие линейки с засечками, размерные
   выноски, спецификация с точечными отбивками, футер-штамп.
   ================================================================ */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.ld-flow {
  position: relative;
  z-index: 2;
  background: #fff;
}

.ld-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(66px, 8.5vw, 118px) var(--page-x) 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* --- Титульная линейка листа: прочерчивается при появлении --- */
.ld-rule {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-top: 15px;
}

.ld-rule::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(18, 26, 36, 0.24);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.ld-rule::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  height: 9px;
  background:
    linear-gradient(rgba(18, 26, 36, 0.42) 0 0) left / 1px 100% no-repeat,
    linear-gradient(rgba(18, 26, 36, 0.42) 0 0) right / 1px 100% no-repeat;
  opacity: 0;
  transition: opacity 0.45s ease 0.75s;
}

.is-in .ld-rule::before {
  transform: none;
}

.is-in .ld-rule::after {
  opacity: 1;
}

.ld-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ld-sheet {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(18, 26, 36, 0.38);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ld-h2 {
  margin: 20px 0 12px;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}

.ld-lead {
  margin: 0;
  max-width: 660px;
  font-size: clamp(15px, 1.16vw, 17px);
  line-height: 1.55;
  color: var(--muted);
}

.ld-lead a,
.ld-q-a a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(18, 26, 36, 0.3);
  text-underline-offset: 3px;
}

.ld-lead a:hover,
.ld-q-a a:hover {
  text-decoration-color: var(--ink);
}

/* --- Появление контента листа --- */
.ld-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}

.is-in.ld-reveal,
.is-in .ld-reveal {
  opacity: 1;
  transform: none;
}

/* --- Кнопки (язык дока/карточки связи) --- */
.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: linear-gradient(180deg, #232b35, #14181d);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 24px -12px rgba(18, 26, 36, 0.55);
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease;
}

.ld-btn:hover,
.ld-btn:focus-visible {
  background: #2b323b;
  transform: translateY(-1px);
  outline: none;
}

.ld-btn--ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  border: 1px solid rgba(18, 26, 36, 0.16);
  box-shadow: none;
}

.ld-btn--ghost:hover,
.ld-btn--ghost:focus-visible {
  background: #fff;
  border-color: rgba(18, 26, 36, 0.34);
}

.ld-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

/* --- Л.02: типы залов --- */
.ld-halls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.ld-hall {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 158px;
  padding: 17px 17px 15px;
  border: 1px solid rgba(18, 26, 36, 0.1);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Углы-засечки — тот же мотив, что у карточек рулетки */
.ld-hall::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  background:
    linear-gradient(90deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) top left / 26% 1.5px no-repeat,
    linear-gradient(270deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) top right / 26% 1.5px no-repeat,
    linear-gradient(90deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) bottom left / 26% 1.5px no-repeat,
    linear-gradient(270deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) bottom right / 26% 1.5px no-repeat,
    linear-gradient(180deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) top left / 1.5px 26% no-repeat,
    linear-gradient(0deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) bottom left / 1.5px 26% no-repeat,
    linear-gradient(180deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) top right / 1.5px 26% no-repeat,
    linear-gradient(0deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) bottom right / 1.5px 26% no-repeat;
}

.ld-hall:hover,
.ld-hall:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(18, 26, 36, 0.2);
  box-shadow: 0 20px 44px -30px rgba(18, 26, 36, 0.4);
  outline: none;
}

.ld-hall:hover::before,
.ld-hall:focus-visible::before {
  opacity: 1;
}

.ld-hall-pic {
  width: 64px;
  height: 43px;
  color: var(--ink);
  opacity: 0.85;
}

.ld-hall-pic svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ld-hall-name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.ld-hall-desc {
  flex: 1;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.ld-hall-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1d2937;
}

.ld-hall-cta::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.25s ease;
}

.ld-hall:hover .ld-hall-cta::after {
  transform: translateX(4px);
}

/* --- Л.03: производство --- */
.ld-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 70px);
  align-items: center;
  margin-top: 36px;
}

.ld-spec {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.ld-spec li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
}

.ld-spec-label {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.ld-spec-dots {
  flex: 1 1 24px;
  min-width: 24px;
  border-bottom: 1px dotted rgba(18, 26, 36, 0.32);
  transform: translateY(-4px);
}

.ld-spec-value {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.ld-spec-value a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(18, 26, 36, 0.3);
  text-underline-offset: 3px;
}

.ld-spec-value a:hover {
  text-decoration-color: var(--ink);
}

.ld-panel-fig {
  margin: 0;
  color: var(--ink);
}

.ld-panel-fig svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ld-panel-fig figcaption {
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(18, 26, 36, 0.42);
  text-align: center;
}

/* --- Л.04: проекты / 44-ФЗ --- */
.ld-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.6vw, 34px);
  margin-top: 40px;
}

.ld-stat {
  position: relative;
  padding-top: 16px;
}

/* Размерная линия |——| над каждой цифрой */
.ld-stat::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 9px;
  background:
    linear-gradient(rgba(18, 26, 36, 0.4) 0 0) left / 1px 100% no-repeat,
    linear-gradient(rgba(18, 26, 36, 0.4) 0 0) right / 1px 100% no-repeat,
    linear-gradient(rgba(18, 26, 36, 0.26) 0 0) center / 100% 1px no-repeat;
}

.ld-stat-value {
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ld-stat-label {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.ld-cases {
  margin-top: 34px;
}

.ld-case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 28px;
  padding: 17px 0;
  border-top: 1px dashed rgba(18, 26, 36, 0.2);
}

.ld-case:last-child {
  border-bottom: 1px dashed rgba(18, 26, 36, 0.2);
}

.ld-case-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}

.ld-case-desc {
  grid-column: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.ld-case-sum {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ld-fineprint {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: rgba(18, 26, 36, 0.42);
}

/* --- Л.05: спецификация направлений --- */
.ld-bom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(30px, 4.5vw, 70px);
  margin-top: 32px;
}

.ld-bom a,
.ld-bom-row {
  display: flex;
  align-items: baseline;
  gap: 11px;
  padding: 11.5px 2px;
  color: var(--ink);
  text-decoration: none;
}

.ld-bom-num {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: rgba(18, 26, 36, 0.36);
  font-variant-numeric: tabular-nums;
}

.ld-bom-name {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.ld-bom-dots {
  flex: 1 1 auto;
  min-width: 24px;
  border-bottom: 1px dotted rgba(18, 26, 36, 0.3);
  transform: translateY(-4px);
  transition: border-color 0.2s ease;
}

.ld-bom-hint {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.ld-bom a:hover .ld-bom-name,
.ld-bom a:focus-visible .ld-bom-name {
  color: #000;
  text-decoration: underline;
  text-decoration-color: rgba(18, 26, 36, 0.4);
  text-underline-offset: 3px;
}

.ld-bom a:hover .ld-bom-dots {
  border-color: rgba(18, 26, 36, 0.55);
}

/* --- Л.06: слот калькулятора («узел в проработке») --- */
.ld-calc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px clamp(24px, 3.5vw, 48px);
  margin-top: 40px;
  padding: clamp(26px, 3.6vw, 44px);
  border: 1.5px dashed rgba(18, 26, 36, 0.3);
  border-radius: 6px;
}

.ld-calc::before {
  content: attr(data-label);
  position: absolute;
  top: -8px;
  left: 22px;
  padding: 0 9px;
  background: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(18, 26, 36, 0.45);
}

.ld-calc h3 {
  margin: 0 0 8px;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 800;
  color: var(--ink);
}

.ld-calc p {
  margin: 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.ld-calc .ld-actions {
  margin-top: 0;
}

/* --- Хлебные крошки --- */
.ld-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(18, 26, 36, 0.45);
}

.ld-crumbs a {
  color: inherit;
  text-decoration: none;
}

.ld-crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ld-crumbs [aria-current] {
  color: var(--ink);
}

/* --- Товарная сетка --- */
.ld-series {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 44px 0 0;
}

.ld-series h3 {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 800;
  color: var(--ink);
}

.ld-series span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ld-prods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.ld-prod {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(18, 26, 36, 0.1);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ld-prod::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  background:
    linear-gradient(90deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) top left / 26% 1.5px no-repeat,
    linear-gradient(270deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) top right / 26% 1.5px no-repeat,
    linear-gradient(90deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) bottom left / 26% 1.5px no-repeat,
    linear-gradient(270deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) bottom right / 26% 1.5px no-repeat,
    linear-gradient(180deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) top left / 1.5px 26% no-repeat,
    linear-gradient(0deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) bottom left / 1.5px 26% no-repeat,
    linear-gradient(180deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) top right / 1.5px 26% no-repeat,
    linear-gradient(0deg, rgba(18, 26, 36, 0.5), rgba(18, 26, 36, 0)) bottom right / 1.5px 26% no-repeat;
}

.ld-prod:hover,
.ld-prod:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(18, 26, 36, 0.2);
  box-shadow: 0 20px 44px -30px rgba(18, 26, 36, 0.4);
  outline: none;
}

.ld-prod:hover::before,
.ld-prod:focus-visible::before {
  opacity: 1;
}

.ld-prod-img {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 13px 13px 2px;
}

.ld-prod-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ld-prod-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 14px 13px;
}

.ld-prod-seam {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ld-prod-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.ld-prod-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.ld-prod-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dotted rgba(18, 26, 36, 0.25);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ld-prod-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

/* Утилита старой темы: жила в отключённом main.css, используется микроданными (span.hide) */
.hide {
  display: none !important;
}

/* --- Карточка товара --- */
.ld-pd {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: 30px;
}

/* Явное размещение: служебные meta/span-дети микроданных не должны двигать сетку */
.ld-pd-info {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.ld-pd-media {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.ld-pd-gallery {
  border: 1px solid rgba(18, 26, 36, 0.1);
  border-radius: 4px;
  padding: clamp(18px, 2.5vw, 34px);
  display: grid;
  place-items: center;
}

.ld-pd-gallery img {
  max-width: 100%;
  height: auto;
}

.ld-pd-series {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 0;
}

.ld-pd-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  margin: 20px 0 16px;
  border-top: 1px solid rgba(18, 26, 36, 0.16);
  border-bottom: 1px solid rgba(18, 26, 36, 0.16);
}

.ld-pd-price {
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 800;
  color: var(--ink);
}

.ld-pd-price small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .ld-prods {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .ld-prods {
    grid-template-columns: repeat(2, 1fr);
  }

  .ld-pd {
    grid-template-columns: 1fr;
  }

  .ld-pd-info,
  .ld-pd-media {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .ld-prods {
    grid-template-columns: 1fr;
  }
}

/* --- Живой WP-контент, перенесённый 1:1 (SEO-тексты категорий) --- */
.ld-legacy {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--muted);
}

.ld-legacy h2 {
  margin: 42px 0 12px;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.ld-legacy h3 {
  margin: 26px 0 8px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
}

.ld-legacy p {
  margin: 10px 0;
}

.ld-legacy ul,
.ld-legacy ol {
  margin: 10px 0;
  padding-left: 22px;
}

.ld-legacy li {
  margin: 5px 0;
}

.ld-legacy a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(18, 26, 36, 0.3);
  text-underline-offset: 3px;
}

.ld-legacy a:hover {
  text-decoration-color: var(--ink);
}

.ld-legacy table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.ld-legacy th,
.ld-legacy td {
  padding: 8px 11px;
  border: 1px solid rgba(18, 26, 36, 0.14);
  text-align: left;
  vertical-align: top;
}

.ld-legacy th {
  font-weight: 700;
  color: var(--ink);
  background: rgba(18, 26, 36, 0.03);
}

.ld-legacy img {
  max-width: 100%;
  height: auto;
}

.ld-legacy > *:first-child,
.ld-legacy h2:first-child {
  margin-top: 0;
}

/* Компоненты старой «дизайн-системы» в контент-полях (ivihd-commercial-focus и т.п.):
   их стили жили в отключённом ivihd-system.css — версия в языке новой темы. */
.ld-legacy .ivihd-commercial-focus {
  margin: 28px 0;
}

.ld-legacy .ivihd-commercial-focus__kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(18, 26, 36, 0.4);
}

.ld-legacy .ivihd-commercial-focus__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.ld-legacy .ivihd-commercial-focus__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(18, 26, 36, 0.12);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ld-legacy .ivihd-commercial-focus__card:hover {
  border-color: rgba(18, 26, 36, 0.3);
  transform: translateY(-2px);
}

.ld-legacy .ivihd-commercial-focus__card strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.ld-legacy .ivihd-commercial-focus__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 6px;
}

.ld-legacy .ivihd-commercial-focus__button {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #232b35, #14181d);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.16s ease;
}

.ld-legacy .ivihd-commercial-focus__button:hover {
  background: #2b323b;
  transform: translateY(-1px);
}

.ld-legacy .ivihd-commercial-focus__button--light {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  border: 1px solid rgba(18, 26, 36, 0.16);
}

.ld-legacy .ivihd-commercial-focus__button--light:hover {
  background: #fff;
  border-color: rgba(18, 26, 36, 0.34);
}

@media (max-width: 760px) {
  .ld-legacy .ivihd-commercial-focus__grid {
    grid-template-columns: 1fr;
  }
}

/* Карты перелинковки старой дизайн-системы (категории и товары): grid → group → links */
.ld-legacy .ivihd-category-map__lead,
.ld-legacy .ivihd-product-related-map__lead {
  max-width: 680px;
}

.ld-legacy .ivihd-category-map__grid,
.ld-legacy .ivihd-product-related-map__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 28px;
  margin: 16px 0;
}

.ld-legacy .ivihd-category-map__group h3,
.ld-legacy .ivihd-product-related-map__group h3 {
  margin: 12px 0 8px;
}

.ld-legacy .ivihd-category-map__links,
.ld-legacy .ivihd-product-related-map__links {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.ld-legacy .ivihd-category-map__links a,
.ld-legacy .ivihd-product-related-map__links a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 14px;
  border: 1px solid rgba(18, 26, 36, 0.12);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.ld-legacy .ivihd-category-map__links a:hover,
.ld-legacy .ivihd-product-related-map__links a:hover {
  border-color: rgba(18, 26, 36, 0.32);
}

.ld-legacy .ivihd-category-map__links a strong,
.ld-legacy .ivihd-product-related-map__links a strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .ld-legacy .ivihd-category-map__grid,
  .ld-legacy .ivihd-product-related-map__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Страничная форма-лид (Контакты) --- */
.ld-form {
  max-width: 560px;
  margin-top: 28px;
}

.ld-form .cx-form input,
.ld-form .cx-form textarea {
  background: #fff;
}

.ld-form-done {
  max-width: 560px;
  margin-top: 28px;
  padding: 26px;
  border: 1px solid rgba(18, 26, 36, 0.14);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.ld-form-agree {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.ld-form-agree a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Ведомость контрактов (страница «Проекты») --- */
.ld-ledger {
  margin-top: 34px;
}

.ld-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 24px;
  padding: 15px 2px;
  border-top: 1px dashed rgba(18, 26, 36, 0.18);
}

.ld-row:last-child {
  border-bottom: 1px dashed rgba(18, 26, 36, 0.18);
}

.ld-row-year {
  font-size: 12px;
  font-weight: 700;
  color: rgba(18, 26, 36, 0.38);
  font-variant-numeric: tabular-nums;
}

.ld-row-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.ld-row-subject {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.ld-row-sum {
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ld-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .ld-row-sum {
    grid-column: 2;
  }

  /* Длинные значения (динамика по годам и т. п.) — переносим под лейбл */
  .ld-spec li {
    flex-wrap: wrap;
    gap: 3px 12px;
  }

  .ld-spec-label {
    flex-basis: 100%;
  }

  .ld-spec-dots {
    display: none;
  }

  .ld-spec-value {
    text-align: left;
    white-space: normal;
  }
}

/* --- Л.07: FAQ --- */
.ld-faq {
  margin-top: 26px;
}

.ld-q {
  border-top: 1px solid rgba(18, 26, 36, 0.14);
}

.ld-q:last-child {
  border-bottom: 1px solid rgba(18, 26, 36, 0.14);
}

.ld-q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 19px 2px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(15.5px, 1.25vw, 17.5px);
  font-weight: 700;
  color: var(--ink);
}

.ld-q summary::-webkit-details-marker {
  display: none;
}

.ld-q-plus {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(18, 26, 36, 0.32);
  border-radius: 50%;
  transition: transform 0.3s ease, border-color 0.2s ease;
}

.ld-q-plus::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--ink) 0 0) center / 10px 1.4px no-repeat,
    linear-gradient(var(--ink) 0 0) center / 1.4px 10px no-repeat;
}

.ld-q summary:hover .ld-q-plus {
  border-color: rgba(18, 26, 36, 0.6);
}

.ld-q[open] .ld-q-plus {
  transform: rotate(45deg);
}

.ld-q-a {
  margin: 0;
  max-width: 780px;
  padding: 0 46px 21px 2px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Финальный CTA --- */
.ld-cta {
  text-align: center;
  padding-bottom: 0;
}

.ld-cta .ld-h2 {
  margin-top: 0;
}

.ld-cta .ld-lead {
  margin: 0 auto;
}

.ld-cta .ld-actions {
  justify-content: center;
}

.ld-cta-mail {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.ld-cta-mail a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(18, 26, 36, 0.3);
  text-underline-offset: 3px;
}

/* --- Футер-штамп (мотив ГОСТ-рамки чертежа) --- */
.ld-footer {
  max-width: 1200px;
  margin: clamp(70px, 9vw, 120px) auto 0;
  padding: 0 var(--page-x) 28px;
}

.ld-stamp {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  gap: 1px;
  border: 1.5px solid rgba(18, 26, 36, 0.55);
  background: rgba(18, 26, 36, 0.28);
}

.ld-stamp-cell {
  background: #fff;
  padding: 20px 22px 22px;
}

.ld-stamp-h {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(18, 26, 36, 0.12);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(18, 26, 36, 0.45);
}

.ld-stamp-cell a {
  display: block;
  padding: 4.5px 0;
  font-size: 13px;
  font-weight: 600;
  color: #1d2937;
  text-decoration: none;
}

.ld-stamp-cell a:hover,
.ld-stamp-cell a:focus-visible {
  color: #000;
  text-decoration: underline;
  text-decoration-color: rgba(18, 26, 36, 0.4);
  text-underline-offset: 3px;
}

.ld-stamp-brand img {
  width: 46px;
  height: 46px;
  display: block;
  margin-bottom: 10px;
}

.ld-stamp-brand strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.ld-stamp-brand p {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.ld-stamp-brand a {
  display: inline;
  padding: 0;
  font-size: 11.5px;
}

.ld-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 14px;
  font-size: 11.5px;
  color: rgba(18, 26, 36, 0.45);
}

.ld-legal a {
  color: inherit;
  text-decoration: none;
}

.ld-legal a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* --- Адаптив листов --- */
@media (max-width: 1024px) {
  .ld-halls-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ld-stamp {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .ld-split {
    grid-template-columns: 1fr;
  }

  .ld-panel-fig {
    order: -1;
    max-width: 420px;
  }

  .ld-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 18px;
  }

  .ld-bom {
    grid-template-columns: 1fr;
  }

  .ld-calc {
    grid-template-columns: 1fr;
  }

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

  .ld-case-sum {
    grid-row: auto;
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .ld-halls-grid {
    grid-template-columns: 1fr;
  }

  .ld-stamp {
    grid-template-columns: 1fr;
  }

  .ld-bom-hint {
    display: none;
  }
}

/* Dev-режим QA-скриншотов (?qa-flat=1): плоский hero, чтобы снять секции одним
   кадром без скролла. Убрать вместе с qa-хуком при интеграции в тему. */
.qa-flat .hero-shell {
  min-height: 320px !important;
  height: 320px;
}

.qa-flat .solution-roulette,
.qa-flat .hero-benefits {
  display: none;
}

/* Метка-пин «кликни меня» над стойкой */
.rack-hint-pin {
  fill: rgba(255, 255, 255, 0.94);
  stroke: #14181d;
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.rack-hint-text {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-anchor: middle;
  fill: #14181d;
}

.rack-hint-bob {
  animation: rack-hint-bob 1.6s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.image-stage.is-system-revealed .rack-hint,
.image-stage.is-static-color .rack-hint,
.image-stage.is-hint-done .rack-hint {
  opacity: 0 !important;
  transition: opacity 0.4s ease;
  animation: none;
}

@keyframes rack-hint-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}
