/* ═══════════════════════════════════════════════════════════
   Контур Света — главная (2026-11, «московский фасад»)

   Идея: вывеска висит на московском фасаде. Охра штукатурки —
   стена днём; сумеречный синий — тот же фасад вечером; тёплый
   LED 3000K — свет букв. Опаловый белый — молочный акрил лица.
   Шрифты: Sofia Sans Extra Condensed (буквы вывески, заголовки),
   Onest (текст, цены с табличными цифрами).
   Подключается только на index.html поверх site.css (body.home).
   ═══════════════════════════════════════════════════════════ */

body.home {
  --h-ochre: #DDA23A;
  --h-ochre-shade: #C98E2A;
  --h-ochre-deep: #8A5A10;
  --h-ochre-pale: #F6E6C2;
  --h-opal: #F3F4F1;
  --h-white: #FFFFFF;
  --h-dusk: #1C2A4A;
  --h-dusk-2: #263962;
  --h-dusk-line: #3A4C74;
  --h-dusk-text: #E9ECF3;
  --h-dusk-soft: #A9B3C9;
  --h-led: #FFE2A6;
  --h-ink: #1A1A17;
  --h-ink-soft: #55534C;
  --h-line: #D5D7D2;

  --h-display: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --h-text: 'Onest', system-ui, sans-serif;

  /* Перекраска общих компонентов site.css (шапка, кнопки, калькулятор, подвал) */
  --ks-concrete: var(--h-opal);
  --ks-paper: var(--h-white);
  --ks-ink: var(--h-ink);
  --ks-ink-soft: var(--h-ink-soft);
  --ks-line: var(--h-line);
  --ks-night: var(--h-dusk);
  --ks-night-2: var(--h-dusk-2);
  --ks-night-line: var(--h-dusk-line);
  --ks-night-text: var(--h-dusk-text);
  --ks-night-soft: var(--h-dusk-soft);
  --ks-led: var(--h-ochre);
  --ks-led-deep: var(--h-ochre-deep);
  --ks-blue: var(--h-dusk);
  --ks-display: var(--h-display);
  --ks-text: var(--h-text);
  --ks-mono: var(--h-text);

  --font-heading: var(--h-text);
  --font-body: var(--h-text);
  --color-gold: var(--h-ochre);
  --color-gold-light: #E9B85A;
  --color-gold-pale: var(--h-ochre-pale);
  --color-gold-dark: var(--h-ochre-deep);
  --color-gold-text: var(--h-ochre-deep);
  --color-dark: var(--h-dusk);
  --color-dark-secondary: var(--h-dusk-2);
  --color-light: var(--h-opal);
  --color-light-secondary: #E6E8E3;
  --color-text-muted: var(--h-ink-soft);
  --color-text-subtle: var(--h-ink-soft);
  --color-border: var(--h-line);
  --color-border-strong: #B9BCB5;
  --color-border-accent: rgba(221, 162, 58, 0.55);
  --color-gold-dim: rgba(221, 162, 58, 0.16);
  --color-gold-dim-soft: rgba(221, 162, 58, 0.08);

  background: var(--h-opal);
  color: var(--h-ink);
  font-family: var(--h-text);
  font-variant-numeric: tabular-nums;
}

.home main {
  background: transparent;
}

.home :focus-visible {
  outline: 3px solid var(--h-dusk);
  outline-offset: 3px;
}

.home .ks-footer :focus-visible {
  outline-color: var(--h-led);
}

/* ── Кнопки: на светлом — сумеречный синий, на тёмном — охра ──
   Общее поведение: по наведению по лицу проходит блик (как по акрилу),
   нажатие «вдавливает» кнопку, иконка канала слева от текста */

.home .ks-btn {
  --btn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sheen: rgba(255, 255, 255, 0.28);
  position: relative;
  gap: 10px;
  min-height: 52px;
  border-radius: 4px;
  font-family: var(--h-text);
  font-weight: 600;
  font-size: 16px;
  background-image: linear-gradient(105deg, transparent 38%, var(--sheen) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 200ms ease,
    background-position 0s linear 200ms,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 240ms ease,
    transform 160ms var(--btn-ease);
}

.home .ks-btn:hover {
  background-position: -30% 0;
  transition:
    background-color 200ms ease,
    background-position 750ms var(--btn-ease),
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 240ms ease,
    transform 160ms var(--btn-ease);
}

.home .ks-btn:active {
  transform: translateY(1px) scale(0.985);
}

.home .ks-btn svg,
.home .ks-btn [data-lucide] {
  flex: none;
}

.home .ks-btn--sm {
  min-height: 44px;
  font-size: 15px;
}

.home .ks-btn--led {
  background-color: var(--h-dusk);
  color: var(--h-white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 0 rgba(0, 0, 0, 0.18);
}

.home .ks-btn--led:hover {
  background-color: var(--h-dusk-2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 0 4px rgba(28, 42, 74, 0.16),
    0 10px 24px -12px rgba(28, 42, 74, 0.7);
}

/* На тёмном (подвал, цоколь первого экрана) — охра, которая «загорается» */
.home .ks-footer .ks-btn--led,
.h-try__panel .ks-btn--led {
  --sheen: rgba(255, 255, 255, 0.5);
  background-color: var(--h-ochre);
  color: var(--h-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 -2px 0 rgba(138, 90, 16, 0.35) inset;
}

.home .ks-footer .ks-btn--led:hover,
.h-try__panel .ks-btn--led:hover {
  background-color: #EBB955;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -2px 0 rgba(138, 90, 16, 0.35) inset,
    0 0 0 4px rgba(255, 226, 166, 0.22),
    0 0 32px rgba(255, 200, 110, 0.45);
}

.home .ks-btn--ghost {
  --sheen: transparent;
}

.home .ks-btn--ghost:hover {
  background-color: var(--h-ink);
  border-color: var(--h-ink);
  color: var(--h-white);
}

.home .ks-footer .ks-btn--ghost:hover {
  background-color: var(--h-opal);
  border-color: var(--h-opal);
  color: var(--h-ink);
}

.home .ks-link {
  color: inherit;
  text-decoration-color: var(--h-ochre);
  text-decoration-thickness: 2px;
}

.home .ks-link:hover {
  text-decoration-color: currentColor;
}

/* ── Шапка ─────────────────────────────────────────────────── */

.home .ks-header {
  background: rgba(221, 162, 58, 0.95);
  border-bottom-color: rgba(26, 26, 23, 0.14);
}

.home .ks-logo {
  font-family: var(--h-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.home .ks-logo b {
  color: var(--h-white);
  text-shadow: 0 0 1px rgba(26, 26, 23, 0.4);
}

.home .ks-nav a:hover {
  color: var(--h-dusk);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.home .ks-header__phone {
  font-weight: 600;
}

/* ── Газетная полоса: всё ниже первого экрана ─────────────────
   Бумага, чёрная краска, линейки. Общего «шаблона секции» нет:
   у каждого раздела своя композиция по содержанию. Общие только
   рубрика (короткая плашка + подпись) и шкала заголовков. */

.h-section {
  padding: clamp(56px, 7vw, 104px) 0;
}

.h-rubric {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--h-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-ochre-deep);
}

.h-rubric::before {
  content: '';
  flex: none;
  width: 24px;
  height: 3px;
  background: var(--h-ink);
}

.h-h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--h-display);
  font-weight: 900;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.h-h2--xl {
  max-width: 9ch;
  font-size: clamp(52px, 8.4vw, 128px);
  line-height: 0.84;
}

.h-h2--sm {
  font-size: clamp(30px, 3.2vw, 44px);
}

.h-sub {
  max-width: 52ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--h-ink-soft);
}

.h-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--h-ink-soft);
}

/* ── Первый экран: один фасад ──────────────────────────────── */
/* Вся секция — стена дома. Днём охра с рустом, вечером сумерки;
   вывеска зажигается, в витринах загорается свет. */

.h-hero {
  --wall: var(--h-ochre);
  --wall-ink: var(--h-ink);
  --wall-soft: rgba(26, 26, 23, 0.74);
  --rust: rgba(26, 26, 23, 0.14);
  --rust-hi: rgba(255, 255, 255, 0.2);
  --dim: rgba(26, 26, 23, 0.55);
  --frame: #2A2A27;
  --dusk: 1200ms;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--wall);
  color: var(--wall-ink);
  transition:
    background-color var(--dusk) var(--ease-in-out, ease),
    color var(--dusk) var(--ease-in-out, ease);
}

.h-hero[data-mode="night"] {
  --wall: #17213A;
  --wall-ink: var(--h-opal);
  --wall-soft: var(--h-dusk-soft);
  --rust: rgba(0, 0, 0, 0.34);
  --rust-hi: rgba(255, 255, 255, 0.045);
  --dim: rgba(255, 226, 166, 0.62);
  --frame: #0E1220;
  transition:
    background-color var(--dusk) var(--ease-in-out, ease),
    color 400ms ease 700ms;
}

/* Текст и кнопки меняют цвет, когда стена уже потемнела — без «серой» середины */
.h-hero[data-mode="night"] .h-hero__lede {
  transition: color 400ms ease 700ms;
}

/* Руст: шов с тенью и светлой кромкой, по всей высоте стены */
.h-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(180deg,
      transparent 0 62px,
      var(--rust) 62px 64px,
      var(--rust-hi) 64px 65px,
      transparent 65px 66px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.h-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 56px;
  align-items: end;
  padding-top: clamp(64px, 6.4vw, 96px);
}

.h-hero__title {
  margin: 0;
  font-family: var(--h-display);
  font-weight: 900;
  font-size: clamp(52px, 5.6vw, 84px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.h-hero__lede {
  max-width: 24ch;
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--wall-soft);
}

/* CTA первого экрана — маленький лайтбокс.
   Днём: синяя кнопка на охре. В сумерках загорается последней, после
   букв вывески: молочное лицо, тёплый ореол, который медленно «дышит».
   Справа — торцевая крышка со стрелкой; по наведению стрелка уезжает
   и возвращается слева, по лицу проходит блик. */
.home .h-cta {
  gap: 0;
  min-height: 60px;
  padding: 0 6px 0 28px;
  font-size: 17px;
  transition:
    background-color 400ms ease,
    background-position 0s linear 200ms,
    color 400ms ease,
    box-shadow 300ms ease,
    transform 160ms var(--btn-ease);
}

.home .h-cta:hover {
  transition:
    background-color 400ms ease,
    background-position 750ms var(--btn-ease),
    color 400ms ease,
    box-shadow 300ms ease,
    transform 160ms var(--btn-ease);
}

.h-cta__label {
  padding-right: 22px;
}

.h-cta__go {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color 400ms ease;
}

.h-cta:hover .h-cta__arrow,
.h-cta:focus-visible .h-cta__arrow {
  animation: h-arrow-loop 520ms var(--btn-ease);
}

@keyframes h-arrow-loop {
  0% { transform: translateX(0); }
  45% { transform: translateX(160%); }
  46% { transform: translateX(-160%); }
  100% { transform: translateX(0); }
}

.h-hero[data-mode="night"] .h-cta {
  --sheen: rgba(255, 255, 255, 0.85);
  background-color: var(--h-led);
  color: var(--h-ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 -3px 0 rgba(201, 142, 42, 0.35) inset,
    0 0 0 1px rgba(255, 226, 166, 0.5),
    0 0 36px rgba(255, 200, 110, 0.32);
  transition-delay: 700ms, 0ms, 700ms, 0ms, 0ms;
}

.h-hero[data-mode="night"] .h-cta__go {
  background-color: rgba(201, 142, 42, 0.22);
  transition-delay: 700ms;
}

/* Ореол лайтбокса: отдельный слой за кнопкой, дышит раз в 4 секунды */
.h-cta::before {
  content: '';
  position: absolute;
  inset: -14px -18px;
  z-index: -1;
  border-radius: 24px;
  background: radial-gradient(closest-side, rgba(255, 200, 110, 0.5), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.h-hero[data-mode="night"] .h-cta::before {
  opacity: 0.55;
  animation: h-hum 4.2s ease-in-out 3s infinite;
}

.h-hero[data-mode="night"] .h-cta:hover::before {
  opacity: 1;
  animation: none;
}

@keyframes h-hum {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

.h-hero[data-mode="night"] .h-cta:hover {
  background-color: #FFF1D2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 -3px 0 rgba(201, 142, 42, 0.35) inset,
    0 0 0 4px rgba(255, 226, 166, 0.22),
    0 0 56px rgba(255, 200, 110, 0.6);
  transition-delay: 0ms;
}

.h-hero[data-mode="night"] .h-cta:hover .h-cta__go {
  background-color: rgba(201, 142, 42, 0.34);
}

.h-hero[data-mode="night"] :focus-visible {
  outline-color: var(--h-led);
}

.h-hero.is-igniting[data-mode="night"] .h-cta {
  animation: h-ignite 1000ms linear both;
  animation-delay: 1500ms;
}

.h-cta__note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--wall-soft);
  transition: color 400ms ease 700ms;
}

/* Окна квартир второго этажа: белый ПВХ, подоконный отлив,
   вечером в части окон горит свет за шторами */
.h-house {
  position: absolute;
  inset: 0 max(var(--ks-gutter), calc((100% - 1240px) / 2 + var(--ks-gutter))) auto;
  z-index: -1;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.h-house i {
  position: relative;
  width: clamp(54px, 7vw, 110px);
  height: clamp(34px, 3.4vw, 50px);
  border: 5px solid #E4E1D8;
  border-top: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - 2px), #E4E1D8 calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 30% 38%, transparent 38%),
    linear-gradient(180deg, #8FA4B6, #5D7184);
  transition: filter var(--dusk) ease;
}

.h-house i::after {
  content: '';
  position: absolute;
  left: -9px;
  right: -9px;
  bottom: -9px;
  height: 4px;
  background: #A9ADB2;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.3);
}

.h-hero[data-mode="night"] .h-house i {
  filter: brightness(0.5) saturate(0.6);
}

.h-hero[data-mode="night"] .h-house i:nth-child(2),
.h-hero[data-mode="night"] .h-house i:nth-child(5) {
  filter: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 2px), #E4E1D8 calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
    linear-gradient(90deg, rgba(150, 70, 40, 0.75) 0 16%, transparent 16% 84%, rgba(150, 70, 40, 0.75) 84%),
    radial-gradient(ellipse at 50% 0%, #FFE7B8, #E8A75A 70%, #B87436);
  transition: background 600ms ease 1600ms;
}

/* ── Примерка вывески (главный элемент страницы) ───────────── */

.h-try {
  margin: 0;
}

.h-try__wall {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(240px, 23vw, 340px);
  padding: 40px var(--ks-gutter) 64px;
}

/* Свет вывески ложится на стену */
.h-try__wall::before {
  content: '';
  position: absolute;
  inset: -20% 0 -30%;
  z-index: -1;
  background: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(255, 190, 100, 0.2), transparent 72%);
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

.h-hero[data-mode="night"] .h-try__wall::before {
  opacity: 1;
  transition-delay: 600ms;
}

.h-try__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 20px;
  max-width: 100%;
}

.h-try__sign {
  grid-column: 2;
  font-family: var(--h-display);
  font-weight: 900;
  font-size: 100px;
  line-height: 0.9;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--h-opal);
  /* днём — объём буквы: борт отбрасывает тень на стену */
  text-shadow:
    1px 1px 0 #B9BBB6,
    2px 2px 0 #A9ABA6,
    3px 3px 0 #9A9C97,
    8px 10px 14px rgba(26, 26, 23, 0.35);
  transition: color 700ms ease, text-shadow 700ms ease, -webkit-text-stroke-color 700ms ease;
}

.h-try__sign span {
  display: inline-block;
}

.h-hero[data-mode="day"][data-light="side"] .h-try__sign,
.h-hero[data-mode="day"][data-light="contour"] .h-try__sign {
  color: #2B2D30;
  text-shadow:
    1px 1px 0 #44474B,
    2px 2px 0 #3A3D41,
    3px 3px 0 #303336,
    8px 10px 14px rgba(26, 26, 23, 0.4);
}

/* Вечер: три вида подсветки */
.h-hero[data-mode="night"][data-light="side"] .h-try__sign {
  color: #2A2C33;
  -webkit-text-stroke: 2px var(--h-led);
  text-shadow:
    0 0 6px rgba(255, 210, 130, 0.95),
    0 0 22px rgba(255, 190, 90, 0.6),
    0 0 48px rgba(255, 170, 60, 0.3);
}

.h-hero[data-mode="night"][data-light="face"] .h-try__sign {
  color: #FFF6E2;
  text-shadow:
    0 0 4px rgba(255, 236, 190, 1),
    0 0 18px rgba(255, 205, 120, 0.85),
    0 0 46px rgba(255, 180, 70, 0.5),
    0 0 90px rgba(255, 160, 50, 0.3);
}

.h-hero[data-mode="night"][data-light="contour"] .h-try__sign {
  color: #15161A;
  text-shadow:
    0 0 10px rgba(255, 214, 140, 1),
    0 0 26px rgba(255, 196, 100, 0.85),
    0 0 60px rgba(255, 170, 60, 0.45);
}

/* Включение: буквы загораются по очереди, как LED-модули при подаче питания */
.h-hero.is-igniting[data-mode="night"] .h-try__sign span {
  animation: h-ignite 1000ms linear both;
  animation-delay: calc(450ms + var(--i, 0) * 70ms);
}

@keyframes h-ignite {
  0%, 6% { filter: brightness(0.22) saturate(0.4); }
  9% { filter: brightness(1.3); }
  14% { filter: brightness(0.3) saturate(0.4); }
  24% { filter: brightness(1.1); }
  30% { filter: brightness(0.5); }
  40%, 100% { filter: none; }
}

/* Размерные линии */
.h-try__dim {
  font-size: 12px;
  font-weight: 500;
  color: var(--dim);
  transition: color 700ms ease;
}

.h-try__dim--h {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  border-block: 1px solid currentColor;
  position: relative;
  width: 12px;
}

.h-try__dim--h::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 50%;
  border-left: 1px solid currentColor;
}

.h-try__dim--h span {
  position: absolute;
  right: 18px;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.h-try__dim--w {
  grid-column: 2;
  margin-top: 18px;
  padding-top: 10px;
  text-align: center;
  border-inline: 1px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center top / 100% 1px no-repeat;
  height: 12px;
  overflow: visible;
}

.h-try__dim--w span {
  display: inline-block;
  padding-top: 4px;
}

/* Первый этаж жилого дома: витрины в анодированном алюминии,
   стеклянная дверь со штангой, гранитный цоколь. Днём стекло
   отражает небо и дом напротив, вечером изнутри светит магазин. */
.h-shop {
  --alu: #3B3E43;
  --alu-hi: #5B5F66;
  position: relative;
  padding-top: 14px;
}

/* Козырёк/фриз над витринами */
.h-shop::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  background: linear-gradient(180deg, #4A4D52 0 3px, #2E3135 3px 11px, #1E2023 11px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.h-shop__front {
  display: grid;
  grid-template-columns: 1fr 1fr 0.62fr 1fr 1fr;
  gap: clamp(6px, 0.9vw, 12px);
  height: clamp(150px, 15vw, 230px);
  padding: 0 max(var(--ks-gutter), calc((100% - 1240px) / 2 + var(--ks-gutter)));
}

.h-shop__pane {
  position: relative;
  overflow: hidden;
  /* профиль рамы: тёмный алюминий со светлой фаской */
  border: 6px solid var(--alu);
  border-bottom-width: 10px;
  box-shadow: inset 0 0 0 1px var(--alu-hi), 0 0 0 1px rgba(0, 0, 0, 0.35);
  /* днём: небо и силуэт дома напротив в отражении, внутри полутьма */
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(20, 24, 30, 0.55) 100%),
    linear-gradient(90deg, rgba(60, 72, 86, 0.22) 0 18%, transparent 18% 26%, rgba(60, 72, 86, 0.16) 26% 52%, transparent 52% 61%, rgba(60, 72, 86, 0.2) 61% 88%, transparent 88%) 0 30% / 100% 34% no-repeat,
    linear-gradient(180deg, #C9D6E1 0%, #A9BBCB 34%, #6F8396 64%, #3E4B58 100%);
}

/* Импост: верхняя фрамуга */
.h-shop__pane::before {
  content: '';
  position: absolute;
  inset: 22% 0 auto;
  z-index: 2;
  height: 5px;
  background: var(--alu);
  box-shadow: 0 1px 0 var(--alu-hi);
}

/* Вечер: торговый зал — потолок во фрамуге, споты, товар на полках,
   прилавок, пятна света на полу, тёмные углы. У каждой витрины свой
   расклад (--cx — где прилавок, --goods — полки есть/нет). */
.h-shop__pane {
  --goods: repeating-linear-gradient(90deg, #B5523B 0 5px, #E7C26A 5px 9px, #4F6E8C 9px 13px, #EFEAE0 13px 17px, #6E8B4A 17px 21px, transparent 21px 24px);
  --board: linear-gradient(#6B5440, #6B5440);
  --cx: 88%;
  --sx: 10%;
}

.h-shop__pane::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, transparent 45%, rgba(46, 28, 12, 0.6) 100%),
    radial-gradient(circle at 20% 26%, #FFFBEF 0 2px, rgba(255, 236, 196, 0.55) 3px, transparent 18px),
    radial-gradient(circle at 50% 26%, #FFFBEF 0 2px, rgba(255, 236, 196, 0.55) 3px, transparent 18px),
    radial-gradient(circle at 80% 26%, #FFFBEF 0 2px, rgba(255, 236, 196, 0.55) 3px, transparent 18px),
    radial-gradient(ellipse 22% 7% at 30% 96%, rgba(255, 246, 225, 0.5), transparent),
    radial-gradient(ellipse 22% 7% at 70% 96%, rgba(255, 246, 225, 0.5), transparent),
    linear-gradient(180deg, #E6CFA6 0 3px, #4A3524 3px 30%, #36261A) var(--cx) 100% / 38% 24% no-repeat,
    var(--board) var(--sx) 47% / 56% 2px no-repeat,
    var(--board) var(--sx) 61% / 56% 2px no-repeat,
    var(--board) var(--sx) 75% / 56% 2px no-repeat,
    var(--goods) var(--sx) 44% / 56% 9px no-repeat,
    var(--goods) var(--sx) 58% / 56% 9px no-repeat,
    var(--goods) var(--sx) 72% / 56% 9px no-repeat,
    linear-gradient(180deg, #F3E9D8 0 22%, #FFF2DA 22%, #F4DDB4 62%, #C9A57A 84%, #A07E58 100%);
  opacity: 0;
  transition: opacity 900ms ease;
}

.h-shop__pane:nth-child(2),
.h-shop__pane:nth-child(5) {
  --cx: 10%;
  --sx: 92%;
}

/* В двери — глубина зала, без полок у стекла */
.h-shop__door {
  --goods: none;
  --board: none;
  --cx: 50%;
}

.h-hero[data-mode="night"] .h-shop__pane::after {
  opacity: 1;
  transition-delay: calc(900ms + var(--n, 0) * 160ms);
}

.h-shop__pane:nth-child(2) { --n: 2; }
.h-shop__pane:nth-child(3) { --n: 1; }
.h-shop__pane:nth-child(4) { --n: 3; }
.h-shop__pane:nth-child(5) { --n: 4; }

/* Блик на стекле — виден и днём, и вечером */
.h-shop__glare {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.34) 18% 24%, transparent 24% 30%, rgba(255, 255, 255, 0.16) 30% 33%, transparent 33%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%);
  transition: opacity var(--dusk) ease;
}

.h-hero[data-mode="night"] .h-shop__glare {
  opacity: 0.45;
}

/* Дверь: импост выше, табличка «Открыто» */

.h-shop__door::before {
  inset: 14% 0 auto;
}

/* Табличка «Открыто» на двери */
.h-shop__plate {
  position: absolute;
  top: 34%;
  left: 50%;
  z-index: 3;
  padding: 3px 7px 2px;
  border-radius: 2px;
  background: #F4F1E8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  font: 900 clamp(9px, 0.8vw, 12px)/1 var(--h-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2B6B3A;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* Подвес таблички */
.h-shop__plate::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 18px;
  height: 9px;
  border: 1px solid rgba(40, 40, 40, 0.6);
  border-bottom: 0;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Короб рольставни над проёмом */
.h-shop__pane {
  border-top: clamp(10px, 1.1vw, 16px) solid #A9AEB4;
}

/* Рольставни: днём закрыты, вечером уезжают в короб по очереди */
.h-shop__shutter {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(180deg, transparent calc(100% - 7px), #71767C calc(100% - 7px)),
    repeating-linear-gradient(180deg, #D3D6DA 0 6px, #B4B9BE 6px 8px, #8E9399 8px 9px, #E6E8EB 9px 10px);
  box-shadow: inset 0 6px 8px -4px rgba(0, 0, 0, 0.35);
  transition: transform 1400ms cubic-bezier(0.45, 0, 0.2, 1);
}

.h-hero[data-mode="night"] .h-shop__shutter {
  transform: translateY(-101%);
  transition-delay: calc(500ms + var(--n, 0) * 180ms);
}

/* Отлив и гранитный цоколь */
.h-shop__plinth {
  height: clamp(22px, 2.2vw, 32px);
  border-top: 3px solid #8C9096;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px) 0 0 / 7px 9px,
    radial-gradient(circle at 60% 70%, rgba(0, 0, 0, 0.25) 0 1px, transparent 2px) 0 0 / 11px 8px,
    linear-gradient(180deg, #55585C, #3A3C3F);
}

/* Цоколь с пультом */
.h-try__panel {
  position: relative;
  padding: 24px 0 28px;
  border-top: 4px solid #0D0D0B;
  background: var(--h-ink);
  color: var(--h-dusk-text);
}

.h-try__grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto;
  gap: 20px 40px;
  align-items: end;
}

.h-try__label {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--h-dusk-soft);
}

.h-try__input {
  width: 100%;
  min-height: 56px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 2px solid var(--h-ochre);
  border-radius: 0;
  background: transparent;
  font-family: var(--h-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--h-white);
}

.h-try__input:focus {
  outline: none;
  border-bottom-color: var(--h-led);
  box-shadow: 0 2px 0 var(--h-led);
}

.h-try__lights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.h-try__lights label {
  position: relative;
  cursor: pointer;
}

.h-try__lights input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.h-try__lights span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--h-dusk-line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.h-try__lights label:hover span {
  border-color: var(--h-led);
}

.h-try__lights input:checked + span {
  border-color: var(--h-led);
  background: var(--h-led);
  color: var(--h-ink);
}

.h-try__lights input:focus-visible + span {
  outline: 3px solid var(--h-led);
  outline-offset: 2px;
}

.h-try__result {
  margin: 0;
  font-size: 15px;
  color: var(--h-dusk-soft);
  white-space: nowrap;
}

.h-try__result b {
  font-family: var(--h-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: var(--h-led);
}

.h-try__result small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

/* «Хочу такую»: после правки названия или подсветки — короткая вспышка,
   глаз переходит от новой цены к кнопке */
.h-want {
  white-space: nowrap;
}

.h-want.is-nudge {
  animation: h-nudge 900ms var(--btn-ease);
}

@keyframes h-nudge {
  0% { box-shadow: 0 0 0 0 rgba(255, 226, 166, 0.7), 0 0 0 rgba(255, 200, 110, 0); }
  30% { box-shadow: 0 0 0 6px rgba(255, 226, 166, 0.35), 0 0 40px rgba(255, 200, 110, 0.6); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 12px rgba(255, 226, 166, 0), 0 0 0 rgba(255, 200, 110, 0); transform: none; }
}

/* ── Сводка: дата, главный абзац, оглавление ──────────────── */

.h-lead {
  padding: 0 0 clamp(56px, 7vw, 104px);
}

.h-dateline {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--h-ink);
  font-size: 14px;
  font-weight: 500;
}

.h-dateline span + span::before {
  content: '·';
  margin: 0 12px;
  color: var(--h-ink-soft);
}

.h-dateline span:empty {
  display: none;
}

/* «Сейчас на связи» — тёплая точка, как горящая буква */
.h-dateline .is-open::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--h-ochre);
  box-shadow: 0 0 0 3px rgba(221, 162, 58, 0.22), 0 0 10px rgba(255, 200, 110, 0.9);
  vertical-align: 1px;
}

.h-lead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px 96px;
  align-items: start;
  padding-top: clamp(36px, 5vw, 72px);
}

.h-lead__text {
  max-width: 30ch;
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

/* Цифры в тексте — тем же шрифтом, что буквы вывески, с охристой подчёркой */
.h-lead__text b {
  font-family: var(--h-display);
  font-weight: 900;
  font-size: 1.3em;
  line-height: 0.8;
  white-space: nowrap;
  box-shadow: inset 0 -0.14em 0 var(--h-ochre);
}

.h-index {
  padding-top: 12px;
  border-top: 3px solid var(--h-ink);
}

.h-index__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.h-index ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.h-index a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--h-line);
  font-size: 17px;
  font-weight: 600;
  color: var(--h-ink);
  text-decoration: none;
}

.h-index a span {
  font-size: 13px;
  font-weight: 500;
  color: var(--h-ink-soft);
}

.h-index a span::after {
  content: ' →';
}

.h-index a:hover {
  color: var(--h-ochre-deep);
}

/* ── Прайс: пример расчёта + две колонки с отточиями ───────── */

.h-prices__top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 64px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.h-sum {
  margin: 0;
  padding-top: 16px;
  border-top: 3px solid var(--h-ink);
}

.h-sum figcaption {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--h-ink-soft);
}

.h-sum__line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 12px;
  margin: 0 0 18px;
  font-family: var(--h-display);
  font-weight: 900;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1;
}

.h-sum__line span {
  display: flex;
  flex-direction: column;
}

.h-sum__line small {
  margin-top: 6px;
  font-family: var(--h-text);
  font-size: 12px;
  font-weight: 500;
  color: var(--h-ink-soft);
}

.h-sum__line i {
  font-style: normal;
  color: var(--h-ink-soft);
}

.h-sum__line b {
  box-shadow: inset 0 -0.14em 0 var(--h-ochre);
}

.h-sum__note {
  max-width: 44ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--h-ink-soft);
}

.h-prices__cols {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 64px;
  align-items: start;
}

.h-prices__group {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--h-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.h-price {
  margin: 0;
  padding: 0;
  list-style: none;
}

.h-price li {
  padding: 18px 0;
  border-bottom: 1px solid var(--h-line);
}

.h-price__line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.h-price__line h4 {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

/* Отточие от названия до цены */
.h-price__line h4::after {
  content: '';
  flex: 1;
  min-width: 24px;
  border-bottom: 2px dotted var(--h-ink-soft);
  transform: translateY(-0.3em);
}

.h-price__cost {
  margin: 0;
  font-family: var(--h-display);
  font-weight: 900;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1;
  white-space: nowrap;
}

.h-price__cost small {
  font-family: var(--h-text);
  font-weight: 500;
  font-size: 14px;
  color: var(--h-ink-soft);
}

.h-price__cost--text {
  font-size: clamp(22px, 2vw, 28px);
  color: var(--h-ink-soft);
}

.h-price li > p {
  max-width: 52ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--h-ink-soft);
}

.h-price li > p .ks-link {
  color: var(--h-ink);
  white-space: nowrap;
}

/* ── Калькулятор: шапка по колонкам самого инструмента ─────── */

.cx__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  align-items: end;
  margin-bottom: 28px;
}

.cx__lede {
  margin: 0;
  padding: 2px 0 2px 24px;
  border-left: 3px solid var(--h-ochre);
  font-size: 15px;
  line-height: 1.5;
  color: var(--h-ink-soft);
}

/* ── Объявление в рамке: «пришлите фото» ──────────────────── */

.h-ad {
  padding: 0 0 clamp(56px, 7vw, 104px);
}

.h-ad__box {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 24px 56px;
  align-items: end;
  padding: clamp(32px, 4.4vw, 60px);
  border: 3px solid var(--h-ink);
  outline: 1px solid var(--h-ink);
  outline-offset: -10px;
  background: var(--h-white);
}

.h-ad__title {
  max-width: 13ch;
  margin: 0;
  font-family: var(--h-display);
  font-weight: 900;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.h-ad__text {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.5;
}

.h-ad__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.h-ad__hours {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--h-ink-soft);
}

.h-ad__hours a {
  color: var(--h-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--h-ochre);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ── Устройство: фото уходит в левый край экрана ───────────── */

.h-build {
  /* отступ от края экрана до колонки сетки */
  --edge: max(var(--ks-gutter), calc((100vw - 1240px) / 2 + var(--ks-gutter)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 0 clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(24px, 3vw, 48px) var(--edge) clamp(56px, 7vw, 104px) 0;
}

.h-build__img {
  margin: 0;
}

.h-build__img img {
  display: block;
  width: 100%;
  height: auto;
}

.h-build__img figcaption {
  margin-top: 10px;
  padding-left: var(--edge);
  font-size: 13px;
  color: var(--h-ink-soft);
}

.h-build .h-sub {
  margin: 18px 0 28px;
}

.h-build__parts {
  margin: 0;
  border-top: 1px solid var(--h-ink);
}

.h-build__parts div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--h-line);
}

.h-build__parts dt {
  font-weight: 700;
}

.h-build__parts dd {
  margin: 0;
  color: var(--h-ink-soft);
}

/* ── Сводка/прайс/объявление/устройство: планшет и телефон ── */

@media (max-width: 1100px) {
  .h-lead__grid,
  .h-prices__top,
  .h-prices__cols,
  .cx__head,
  .h-ad__box {
    grid-template-columns: 1fr;
  }

  .h-lead__grid {
    gap: 40px;
  }

  .h-index {
    max-width: 480px;
  }

  .cx__lede {
    max-width: 52ch;
    margin-top: 16px;
  }

  .h-build {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: var(--edge);
  }

  .h-build__img figcaption {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .h-dateline {
    font-size: 13px;
  }

  .h-dateline #datelineStatus {
    flex-basis: 100%;
    margin-top: 4px;
  }

  .h-dateline #datelineStatus::before {
    display: none;
  }

  .h-lead__text {
    font-size: 24px;
  }

  /* Формула целиком в одну строку */
  .h-sum__line {
    gap: 4px 7px;
    font-size: 26px;
  }

  .h-price__line {
    flex-direction: column;
    gap: 4px;
  }

  .h-price__line h4::after {
    display: none;
  }

  .h-ad__box {
    outline-offset: -8px;
  }

  .h-ad__actions .ks-btn {
    flex: 1 1 100%;
  }

  .h-build {
    padding-left: 0;
    padding-right: 0;
  }

  .h-build__img figcaption,
  .h-build__text {
    padding-inline: var(--ks-gutter);
  }

  .h-build__parts div {
    grid-template-columns: 80px 1fr;
  }
}

/* ── Сроки: диаграмма по рабочим дням ──────────────────────── */

.h-plan {
  --days: 9;
  --label: 300px;
  position: relative;
}

.h-plan__days {
  display: grid;
  grid-template-columns: var(--label) repeat(var(--days), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid var(--h-ink);
}

.h-plan__days li {
  padding: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--h-ink-soft);
}

.h-plan__days li:first-child {
  grid-column: 2;
}

.h-plan__days li:first-child::before {
  content: 'день ';
}

.h-plan__rows {
  margin: 0;
  padding: 0;
  list-style: none;
  /* вертикальные линии дней */
  background: linear-gradient(90deg, transparent var(--label), transparent var(--label)),
    repeating-linear-gradient(90deg, var(--h-line) 0 1px, transparent 1px calc((100% - var(--label)) / var(--days)));
  background-position: 0 0, var(--label) 0;
  background-size: 100% 100%, calc(100% - var(--label)) 100%;
  background-repeat: no-repeat;
}

.h-plan__rows li {
  display: grid;
  grid-template-columns: var(--label) repeat(var(--days), minmax(0, 1fr));
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--h-line);
}

.h-plan__rows li > div,
.h-plan__rows h3,
.h-plan__rows p {
  grid-column: 1;
}

.h-plan__rows h3 {
  grid-row: 1;
  align-self: end;
  margin: 14px 0 2px;
  padding-right: 24px;
  font-size: 20px;
  font-weight: 700;
}

.h-plan__rows p {
  grid-row: 2;
  align-self: start;
  margin: 0 0 14px;
  padding-right: 24px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--h-ink-soft);
}

.h-plan__rows p b {
  display: block;
  color: var(--h-ochre-deep);
  font-weight: 600;
}

/* Полоса этапа: сплошная — обычно, штриховка — максимум */
.h-plan__rows li::after {
  content: '';
  grid-row: 1 / span 2;
  grid-column: calc(var(--from) + 1) / span var(--len);
  height: 28px;
  margin-inline: 3px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, var(--h-dusk) 0 calc(var(--solid) / var(--len) * 100%), transparent 0),
    repeating-linear-gradient(-45deg, var(--h-dusk) 0 2px, transparent 2px 7px);
  box-shadow: inset 0 0 0 1.5px var(--h-dusk);
}

/* Шапка сроков: заголовок слева, легенда диаграммы справа */
.h-plan-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.h-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--h-ink-soft);
}

.h-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.h-legend i {
  width: 40px;
  height: 16px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px var(--h-dusk);
}

.h-legend__solid {
  background: var(--h-dusk);
}

.h-legend__max {
  background: repeating-linear-gradient(-45deg, var(--h-dusk) 0 2px, transparent 2px 7px);
}

.h-plan__after {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 12px 64px;
  align-items: baseline;
  margin-top: 28px;
}

.h-plan__after p:first-child {
  max-width: 52ch;
  margin: 0;
  font-size: 18px;
}

.h-plan__after .h-note {
  margin: 0;
}

@media (max-width: 1100px) {
  .h-plan__after {
    grid-template-columns: 1fr;
  }
}

/* ── Для кого: газетный набор в две колонки с вводками ─────── */

.h-for-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px 64px;
  align-items: start;
}

.h-for {
  columns: 2;
  column-gap: 48px;
  column-rule: 1px solid var(--h-line);
  padding-top: 16px;
  border-top: 1px solid var(--h-ink);
}

.h-for p {
  margin: 0 0 22px;
  break-inside: avoid;
  font-size: 16px;
  line-height: 1.6;
  color: var(--h-ink-soft);
}

.h-for b {
  font-weight: 700;
  color: var(--h-ink);
}

.h-for .ks-link {
  color: var(--h-ink);
}

/* В сплошном тексте ссылка без стрелки — стрелка рвёт строку */
.h-for .ks-link::after {
  content: none;
}

/* ── FAQ: колонка «спросить» слева, вопросы справа ────────── */

.h-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px 64px;
  align-items: start;
}

.h-faq__head {
  position: sticky;
  top: 96px;
}

.h-faq__head .h-sub {
  margin: 16px 0 10px;
}

.home .faq__list {
  max-width: none;
  margin: 0;
  gap: 0;
  border-top: 1px solid var(--h-ink);
}

.home .faq__item,
.home .faq__item[open] {
  border: 0;
  border-bottom: 1px solid var(--h-line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.home .faq__question {
  padding: 20px 0;
  font-size: 19px;
}

.home .faq__question-text {
  font-family: var(--h-text);
  font-weight: 600;
}

.home .faq__question:hover {
  color: var(--h-ochre-deep);
}

.home .faq__icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--h-ink);
  background: none;
  color: var(--h-ink);
}

.home .faq__item[open] .faq__icon {
  background: var(--h-ink);
  color: var(--h-white);
}

.home .faq__answer {
  padding: 0 48px 24px 0;
}

.home .faq__answer p {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--h-ink-soft);
}

.home .faq__answer a {
  color: inherit;
  text-decoration-color: var(--h-ochre);
  text-decoration-thickness: 2px;
}

@media (max-width: 1100px) {
  .h-for-grid,
  .h-faq__grid {
    grid-template-columns: 1fr;
  }

  .h-faq__head {
    position: static;
  }
}

@media (max-width: 767px) {
  .h-for {
    columns: 1;
  }

  .home .faq__question {
    font-size: 17px;
  }

  .home .faq__answer {
    padding-right: 0;
  }

  /* Ссылки внутри ответа — обычный текст, без увеличенной зоны касания */
  .home .faq__answer a {
    display: inline;
    min-height: 0;
    padding: 0;
  }
}

/* ── Подвал ───────────────────────────────────────────────── */

.home .ks-footer .ks-h2 {
  max-width: 16ch;
  font-family: var(--h-display);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.92;
  text-transform: uppercase;
}

.home .ks-footer .ks-sub {
  margin-top: 0;
}

.home .ks-footer__label {
  letter-spacing: 0.04em;
}

.home .ks-footer__list a:hover,
.home .ks-footer__cookie:hover {
  color: var(--h-led);
}

/* ── Планшет ──────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .home .is-menu-open .ks-nav {
    background: var(--h-ochre);
    border-bottom-color: rgba(26, 26, 23, 0.14);
  }

  .home .is-menu-open .ks-nav a {
    border-bottom-color: rgba(26, 26, 23, 0.14);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 24px;
  }

  .h-hero__top {
    grid-template-columns: 1fr;
  }

  .h-hero__side {
    max-width: 560px;
  }

  .h-try__grid {
    grid-template-columns: 1fr auto;
  }

  .h-try__field,
  .h-try__lights {
    grid-column: 1 / -1;
  }

  .h-plan {
    --label: 220px;
  }
}

/* ── Телефон ──────────────────────────────────────────────── */

@media (max-width: 767px) {
  .home .ks-dock {
    background: rgba(243, 244, 241, 0.97);
  }

  .home .ks-dock__btn:active {
    transform: scale(0.97);
  }

  .home .ks-dock__btn {
    -webkit-tap-highlight-color: transparent;
    transition: transform 120ms ease;
    border-radius: 4px;
    font-family: var(--h-text);
    font-weight: 600;
    font-size: 16px;
  }

  .home .ks-dock__btn--led {
    border-color: var(--h-dusk);
    background: var(--h-dusk);
    color: var(--h-white);
  }

  .home .ks-logo {
    font-size: 21px;
  }

  .h-hero__title {
    font-size: clamp(42px, 12vw, 60px);
  }

  .h-hero__top {
    gap: 16px;
    padding-top: 64px;
  }

  .h-house i:nth-child(n + 4) {
    display: none;
  }

  .h-hero__lede {
    margin-bottom: 16px;
  }

  .h-hero__side .ks-btn {
    width: 100%;
  }

  .h-cta__label {
    flex: 1;
    padding-right: 0;
    text-align: left;
  }

  .h-cta__note {
    text-align: center;
  }

  .h-try__wall {
    min-height: 200px;
    padding: 20px 16px 40px;
  }

  /* На телефоне — три витрины: окно, дверь, окно */
  .h-shop__front {
    grid-template-columns: 1fr 0.7fr 1fr;
    height: 128px;
  }

  .h-shop__pane:first-child,
  .h-shop__pane:last-child {
    display: none;
  }

  .h-try__grid {
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
  }

  .h-try__input {
    font-size: 34px;
  }

  /* Диаграмма → список с полосой на 9 дней под каждым этапом */
  .h-plan__days {
    display: none;
  }

  .h-plan__rows {
    background: none;
    border-top: 2px solid var(--h-ink);
  }

  .h-plan__rows li {
    grid-template-columns: repeat(var(--days), minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    min-height: 0;
    padding: 16px 0;
    background:
      repeating-linear-gradient(90deg, var(--h-line) 0 1px, transparent 1px calc(100% / var(--days)))
      0 calc(100% - 16px) / 100% 34px no-repeat;
  }

  .h-plan__rows h3,
  .h-plan__rows p {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .h-plan__rows h3 {
    margin-top: 0;
  }

  .h-plan__rows li::after {
    grid-row: 3;
    grid-column: var(--from) / span var(--len);
    height: 22px;
    margin-block: 6px;
  }

  .home .ks-footer__channels .ks-btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .ks-btn,
  .home .ks-btn:hover {
    transition: none;
    background-position: 130% 0;
  }

  .h-hero,
  .h-hero *,
  .h-hero *::before,
  .h-hero *::after {
    transition: none !important;
    animation: none !important;
  }
}
