/* =====================================================================
   hi-tech electric — стили сайта (v4)
   ---------------------------------------------------------------------
   Как устроен файл:
   1. Токены — цвета, шрифты, отступы. Меняешь здесь — меняется везде.
   2. База — сброс и типографика.
   3. Компоненты — кнопки, метки, карточки, иконки.
   4. Секции главной — по порядку сверху вниз, как в Figma.
   5. Анимации — появление при скролле, бегущая строка, «светлячки».
   6. Адаптив — планшет и телефон.
   Все классы начинаются с ht- чтобы не конфликтовать с темой и плагинами.
   ===================================================================== */

/* ---------- 1. ТОКЕНЫ ---------- */
:root {
  /* цвета */
  --ht-ink: #0A0D12;        /* почти чёрный — тёмные секции, текст */
  --ht-graphite: #12171F;   /* графит — второй тёмный фон */
  --ht-graphite-2: #1B222C; /* карточки на тёмном */
  --ht-line: #E4E7EB;       /* линии и рамки */
  --ht-fog: #F3F4F6;        /* светло-серый фон секций */
  --ht-white: #FFFFFF;
  --ht-muted: #5B6675;      /* второстепенный текст на светлом */
  --ht-soft: #A9B3C0;       /* второстепенный текст на тёмном */
  --ht-orange: #FC471E;     /* фирменный оранжевый */
  --ht-orange-2: #FF7A2F;   /* оранжевый при наведении */
  --ht-volt: #2FE0A0;       /* мятный акцент на тёмном */
  --ht-max: #5B5BF7;        /* кнопка мессенджера MAX */

  /* шрифты */
  --ht-font-head: 'Tektur', system-ui, sans-serif;
  --ht-font-text: 'IBM Plex Sans', system-ui, sans-serif;
  --ht-font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* размеры текста — как в Figma (десктоп → телефон считается автоматически) */
  --ht-h1: clamp(36px, 5vw, 72px);
  --ht-h2: clamp(34px, 4.4vw, 64px);
  --ht-h3: clamp(18px, 1.6vw, 22px);
  --ht-lead: clamp(17px, 1.5vw, 21px);
  --ht-text: 16px;
  --ht-eyebrow: clamp(16px, 1.4vw, 20px);

  /* отступы и сетка */
  --ht-container: 1280px;
  --ht-gutter: 20px;                         /* поля по бокам на телефоне */
  --ht-section: clamp(64px, 8vw, 112px);     /* отступ секции сверху и снизу */
  --ht-stack: clamp(28px, 3.4vw, 48px);      /* расстояние между блоками внутри секции */
  --ht-gap: clamp(12px, 1.4vw, 20px);        /* расстояние между карточками */
  --ht-radius: 22px;
  --ht-radius-sm: 14px;

  /* движение */
  --ht-ease: cubic-bezier(.22, .61, .36, 1); /* мягкое замедление в конце */
  --ht-fast: .45s;  /* ховеры */
  --ht-slow: .9s;   /* появление блоков */
}

/* ---------- 2. БАЗА ---------- */
.ht-page { margin: 0; font-family: var(--ht-font-text); font-size: var(--ht-text); line-height: 1.55; color: var(--ht-ink); background: var(--ht-white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* :where() даёт этим правилам нулевой вес — любые классы ниже их спокойно перебивают */
:where(.ht-page) *, :where(.ht-page) *::before, :where(.ht-page) *::after { box-sizing: border-box; }
:where(.ht-page) img, :where(.ht-page) svg, :where(.ht-page) video { display: block; max-width: 100%; }
:where(.ht-page) :is(a) { color: inherit; text-decoration: none; } /* :is(a) = вес обычного a, чтобы перебить a {color} родительской темы */
:where(.ht-page) :is(h1, h2, h3, h4, p, figure) { margin: 0; }

.ht-container { width: min(var(--ht-container), 100% - var(--ht-gutter) * 2); margin-inline: auto; }
.ht-section { position: relative; padding-block: var(--ht-section); overflow: hidden; }
.ht-section > .ht-container { position: relative; display: grid; gap: var(--ht-stack); }
.ht-section--white { background: var(--ht-white); }
.ht-section--fog   { background: var(--ht-fog); }
.ht-section--dark  { background: var(--ht-ink); color: var(--ht-white); }
.ht-section--graphite { background: var(--ht-graphite); color: var(--ht-white); }

.ht-h1 { font-family: var(--ht-font-head); font-weight: 800; font-size: var(--ht-h1); line-height: 1.06; letter-spacing: -.02em; text-transform: uppercase; }
.ht-h2 { font-family: var(--ht-font-head); font-weight: 800; font-size: var(--ht-h2); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; max-width: 16ch; }
.ht-h3 { font-family: var(--ht-font-head); font-weight: 700; font-size: var(--ht-h3); line-height: 1.25; text-transform: uppercase; }
.ht-lead { font-size: var(--ht-lead); line-height: 1.52; color: var(--ht-soft); max-width: 600px; }
.ht-text { color: var(--ht-muted); }
.ht-section--dark .ht-text, .ht-section--graphite .ht-text { color: var(--ht-soft); }
.ht-accent { color: var(--ht-orange); }

/* надпись над заголовком (eyebrow) */
.ht-eyebrow { display: block; margin-bottom: 14px; font-family: var(--ht-font-mono); font-weight: 600; font-size: var(--ht-eyebrow); line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--ht-orange); }
.ht-section--dark .ht-eyebrow, .ht-section--graphite .ht-eyebrow { color: var(--ht-volt); }

/* шапка секции: заголовок слева, пояснение справа */
.ht-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ht-head > p { max-width: 400px; font-size: 18px; line-height: 1.55; }

/* ---------- 3. КОМПОНЕНТЫ ---------- */

/* Кнопка. Варианты: --primary (оранжевая), --ghost (контурная), --white, --max */
.ht-btn { color: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 999px; font: 600 16px/1 var(--ht-font-text); cursor: pointer; transition: transform var(--ht-fast) var(--ht-ease), background-color var(--ht-fast) var(--ht-ease), box-shadow var(--ht-fast) var(--ht-ease), color var(--ht-fast) var(--ht-ease), border-color var(--ht-fast) var(--ht-ease), filter var(--ht-fast) var(--ht-ease); }
.ht-btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--ht-fast) var(--ht-ease); }
.ht-btn:hover { transform: translateY(-2px); }
.ht-btn:hover svg.ht-arrow { transform: translateX(3px); }
.ht-btn:active { transform: translateY(0); }
.ht-btn:focus-visible { outline: 3px solid var(--ht-volt); outline-offset: 3px; }
.ht-btn--primary { background: linear-gradient(90deg, var(--ht-orange-2), var(--ht-orange)); color: var(--ht-white); box-shadow: 0 12px 24px -12px rgba(252, 71, 30, .6); }
.ht-btn--primary:hover { box-shadow: 0 18px 36px -12px rgba(252, 71, 30, .8); filter: brightness(1.05); }
.ht-btn--ghost { border-color: currentColor; background: transparent; }
.ht-btn--ghost:hover { background: var(--ht-ink); border-color: var(--ht-ink); color: var(--ht-white); }
.ht-section--dark .ht-btn--ghost:hover, .ht-section--graphite .ht-btn--ghost:hover, .ht-hero .ht-btn--ghost:hover { background: var(--ht-white); border-color: var(--ht-white); color: var(--ht-ink); }
.ht-btn--white { background: var(--ht-white); color: var(--ht-ink); }
.ht-btn--max { background: var(--ht-max); color: var(--ht-white); padding-left: 16px; }
.ht-btn--max:hover { box-shadow: 0 14px 32px -12px rgba(91, 91, 247, .7); }
.ht-btn__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ht-btn__icon svg { width: 20px; height: 20px; }
.ht-btn--block { width: 100%; }

/* круглая иконка-ссылка (соцсети, мессенджеры) */
.ht-round { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: var(--ht-white); transition: background var(--ht-fast) var(--ht-ease), transform var(--ht-fast) var(--ht-ease); }
.ht-round svg { width: 20px; height: 20px; }
.ht-round:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.ht-round--dark { border-color: var(--ht-line); color: var(--ht-ink); }
.ht-round--dark:hover { background: var(--ht-fog); }

/* плашка-иконка (квадрат со скруглением и двухцветной иконкой) */
.ht-icon { display: grid; place-items: center; flex: none; width: 84px; height: 84px; border-radius: 24px; background: var(--ht-white); color: var(--ht-ink); box-shadow: 0 10px 24px rgba(10, 13, 18, .1); transition: transform var(--ht-fast) var(--ht-ease); }
.ht-icon svg { width: 56%; height: 56%; }
.ht-icon--sm { width: 56px; height: 56px; border-radius: 16px; }
.ht-icon--dark { background: var(--ht-ink); color: var(--ht-white); box-shadow: none; --accent: var(--ht-volt); }
.ht-icon--glass { background: rgba(255, 255, 255, .12); color: var(--ht-white); border: 1px solid rgba(255, 255, 255, .28); box-shadow: none; backdrop-filter: blur(16px); --accent: var(--ht-volt); }
/* в иконках из спрайта: currentColor = контур, var(--accent) = цветная деталь */
:where(.ht-page) svg { --accent: var(--ht-orange); }

/* метка-чип */
.ht-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(252, 71, 30, .14); color: var(--ht-orange); font: 600 12px/1 var(--ht-font-mono); letter-spacing: .1em; text-transform: uppercase; }
.ht-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: ht-pulse 1.8s infinite; }

/* галочка в списке */
.ht-checks { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.ht-checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.ht-checks li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ht-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' stroke='white' stroke-width='2.4' fill='none'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ht-section--dark .ht-checks li::before { background-color: var(--ht-volt); }

/* картинка-заглушка: пока фото не загружено, виден аккуратный градиент */
.ht-media { position: relative; overflow: hidden; border-radius: var(--ht-radius); background: linear-gradient(135deg, #232c39, #0f141b); }
.ht-media img, .ht-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ht-ease); }

/* поле формы */
.ht-input { width: 100%; min-height: 56px; padding: 16px 18px; border: 1.5px solid var(--ht-line); border-radius: var(--ht-radius-sm); background: var(--ht-fog); font: 16px/1.4 var(--ht-font-text); color: var(--ht-ink); outline: none; transition: border-color var(--ht-fast) var(--ht-ease), background var(--ht-fast); }
.ht-input:focus { border-color: var(--ht-orange); background: var(--ht-white); }
textarea.ht-input { min-height: 110px; resize: vertical; }
.ht-note { font-size: 13px; line-height: 1.4; color: var(--ht-muted); }

/* ---------- 4. СЕКЦИИ ГЛАВНОЙ ---------- */

/* 4.1 Шапка — тёмная «стеклянная» таблетка поверх первого экрана, полностью скруглённая */
.ht-header { position: fixed; z-index: 50; top: 24px; left: 50%; transform: translateX(-50%); width: min(var(--ht-container), 100% - 40px); display: flex; align-items: center; gap: clamp(16px, 2vw, 36px); padding: 10px 12px 10px 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(10, 13, 18, .55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: var(--ht-white); transition: top var(--ht-fast) var(--ht-ease), background var(--ht-fast) var(--ht-ease), box-shadow var(--ht-fast) var(--ht-ease); }
.ht-header.is-scrolled { top: 12px; background: rgba(10, 13, 18, .92); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .6); }
.ht-header__logo { flex: none; }
.ht-header__logo img { height: 52px; width: auto; }
.ht-nav { flex: 1; min-width: 0; display: flex; justify-content: center; gap: clamp(16px, 2vw, 32px); white-space: nowrap; font-weight: 600; font-size: 16px; line-height: 22px; }
.ht-nav a { position: relative; opacity: .85; transition: opacity var(--ht-fast) var(--ht-ease); }
.ht-nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--ht-orange); transition: width var(--ht-fast) var(--ht-ease); }
.ht-nav a:hover { opacity: 1; }
.ht-nav a:hover::after { width: 100%; }
.ht-header__phone { flex: none; font: 600 17px/22px var(--ht-font-head); white-space: nowrap; transition: color var(--ht-fast) var(--ht-ease); }
.ht-header__phone:hover { color: var(--ht-orange); }
.ht-header .ht-btn { flex: none; min-height: 48px; padding: 0 22px; font-size: 15px; white-space: nowrap; }
/* на узких ноутбуках прячем телефон, чтобы меню не переносилось */
@media (max-width: 1280px) { .ht-header__phone { display: none; } }
.ht-burger:focus:not(:focus-visible) { outline: none; }
.ht-burger { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--ht-orange); cursor: pointer; position: relative; }
.ht-burger span { position: absolute; left: 14px; right: 14px; height: 2.5px; border-radius: 2px; background: var(--ht-white); transition: transform .3s, opacity .3s, top .3s; }
.ht-burger span:nth-child(1) { top: 16px; } .ht-burger span:nth-child(2) { top: 23px; } .ht-burger span:nth-child(3) { top: 30px; }
.is-menu-open .ht-burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.is-menu-open .ht-burger span:nth-child(2) { opacity: 0; }
.is-menu-open .ht-burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* 4.2 Мобильное меню (на весь экран) */
.ht-menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; padding: 104px 20px 28px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--ht-ink); color: var(--ht-white); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s var(--ht-ease), visibility .3s; }
.is-menu-open .ht-menu { opacity: 1; visibility: visible; transform: none; }
.ht-menu__nav { display: grid; }
.ht-menu a.ht-menu__link { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font: 800 24px/1.15 var(--ht-font-head); text-transform: uppercase; transition: color var(--ht-fast) var(--ht-ease); }
.ht-menu__link small { flex: none; width: 22px; font: 600 12px var(--ht-font-mono); color: var(--ht-orange); }
.ht-menu__link span { flex: 1; }
.ht-menu__link svg { flex: none; width: 18px; height: 18px; color: var(--ht-volt); transition: transform var(--ht-fast) var(--ht-ease); }
.ht-menu__link:hover svg { transform: translateX(4px); }
.ht-menu__bottom { margin-top: auto; padding-top: 48px; display: grid; gap: 16px; }
.ht-menu__hours { font: 500 12px var(--ht-font-mono); letter-spacing: .02em; color: var(--ht-soft); }
.ht-menu__phone { font: 800 30px/1.1 var(--ht-font-head); }
.ht-menu .ht-round { width: 48px; height: 48px; border-color: rgba(255, 255, 255, .9); }
.ht-menu .ht-btn { min-height: 56px; }

/* 4.3 Первый экран: фото/видео + затемнение + свечение + сетка; справа «стеклянная» форма */
.ht-hero { position: relative; overflow: hidden; padding: 190px 0 72px; background: var(--ht-ink); color: var(--ht-white); }
.ht-hero__bg { position: absolute; inset: 0; }
.ht-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.ht-hero .ht-decor__glow--orange { left: -306px; top: auto; bottom: -400px; width: 900px; height: 900px; opacity: .3; }
.ht-hero .ht-decor__glow--volt { right: -280px; top: -262px; bottom: auto; width: 700px; height: 700px; opacity: .1; }
.ht-hero__row { display: grid; grid-template-columns: minmax(0, 760px) 440px; justify-content: space-between; gap: 80px; align-items: start; }
.ht-hero__copy { display: grid; gap: 28px; justify-items: start; }
.ht-hero .ht-chip { padding: 8px 16px; gap: 8px; background: rgba(255, 255, 255, .1); color: var(--ht-white); border-radius: 20px; letter-spacing: .08em; }
.ht-hero h1 { font-weight: 700; font-size: var(--ht-h1); line-height: 1.06; letter-spacing: -.03em; }
.ht-hero h1 .ht-line { display: block; overflow: hidden; }
.ht-hero h1 .ht-line > span { display: block; animation: ht-rise .9s var(--ht-ease) both; }
.ht-hero h1 .ht-line:nth-child(2) > span { animation-delay: .12s; color: var(--ht-orange); }
.ht-hero .ht-lead { max-width: 640px; color: #D5DBE3; }
.ht-hero__buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.ht-hero__buttons .ht-btn { min-height: 64px; padding: 0 28px; font-size: 17px; }
/* стеклянные элементы первого экрана */
.ht-glass { background: rgba(255, 255, 255, .15); border: 1.5px solid rgba(255, 255, 255, .16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.ht-hero .ht-btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: var(--ht-white); }
.ht-quick { display: grid; gap: 16px; padding: 32px; border-radius: 32px; color: var(--ht-white); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.ht-quick h2 { font: 600 26px/32px var(--ht-font-head); letter-spacing: -.01em; }
.ht-quick p { color: #C9D1DB; }
.ht-quick .ht-input { min-height: 60px; padding: 0 22px; border-radius: 18px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: var(--ht-white); font-size: 17px; }
.ht-quick .ht-input::placeholder { color: #C9D1DB; }
.ht-quick .ht-input:focus { border-color: var(--ht-orange); background: rgba(255, 255, 255, .18); }
.ht-quick .ht-btn { min-height: 62px; font-size: 17px; }
.ht-quick .ht-note { font-size: 12px; line-height: 16px; color: #8C97A5; }
.ht-stats { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; padding: 28px; border-radius: 28px; }
.ht-stat b { display: block; margin-bottom: 6px; font: 700 32px/38px var(--ht-font-head); letter-spacing: -.01em; }
.ht-stat span { font-size: 15px; line-height: 20px; color: #D5DBE3; }

/* 4.4 Бегущая строка */
.ht-marquee { overflow: hidden; background: var(--ht-orange); color: var(--ht-ink); }
.ht-marquee__track { display: flex; width: max-content; animation: ht-marquee 32s linear infinite; }
.ht-marquee:hover .ht-marquee__track { animation-play-state: paused; }
.ht-marquee span { display: inline-flex; align-items: center; gap: 40px; padding: 18px 20px; font: 700 30px/1 var(--ht-font-head); text-transform: uppercase; white-space: nowrap; }
.ht-marquee span::after { content: "✦"; font-size: 20px; }

/* 4.5 Услуги — журнальная сетка */
.ht-mag { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: var(--ht-gap); }
.ht-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 32px; border-radius: var(--ht-radius); overflow: hidden; isolation: isolate; color: var(--ht-white); transition: transform .6s var(--ht-ease), box-shadow .6s var(--ht-ease); }
.ht-tile__bg { position: absolute; inset: 0; z-index: -2; background: #1b222c; }
.ht-tile__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ht-ease); }
.ht-tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 13, 18, .05), rgba(10, 13, 18, .88)); }
.ht-tile .ht-icon { position: absolute; top: 32px; left: 32px; }
.ht-tile__go { position: absolute; top: 32px; right: 32px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ht-white); color: var(--ht-ink); transition: transform .5s var(--ht-ease), background .5s var(--ht-ease), color .5s var(--ht-ease); }
.ht-tile__go svg { width: 20px; height: 20px; }
.ht-tile p { max-width: 38ch; color: #D5DBE2; }
.ht-tile .ht-h3 { font-size: clamp(26px, 3vw, 48px); line-height: 1.04; }
a.ht-tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10, 13, 18, .5); }
a.ht-tile:hover .ht-tile__bg img { transform: scale(1.06); }
a.ht-tile:hover .ht-tile__go { background: var(--ht-orange); color: var(--ht-white); transform: rotate(45deg); }
.ht-tile--ev { grid-column: span 7; grid-row: span 3; }
.ht-tile--el { grid-column: span 5; grid-row: span 2; }
.ht-tile--num { grid-column: span 5; flex-direction: row; align-items: flex-end; justify-content: space-between; background: var(--ht-orange); color: var(--ht-ink); }
.ht-tile--num b { font: 800 128px/.9 var(--ht-font-head); letter-spacing: -.04em; }
.ht-tile--repair { grid-column: span 4; grid-row: span 2; background: var(--ht-fog); color: var(--ht-ink); }
.ht-tile--repair p { color: var(--ht-muted); }
.ht-tile--quote { grid-column: span 8; grid-row: span 2; justify-content: center; }
.ht-tile--quote q { font: 700 clamp(22px, 2.8vw, 40px)/1.15 var(--ht-font-head); text-transform: uppercase; quotes: none; }
.ht-tile--quote em { font-style: normal; color: var(--ht-volt); }
.ht-label { font: 600 12px/1 var(--ht-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ht-volt); }
.ht-tile--repair .ht-label, .ht-tile--num .ht-label { color: inherit; }

/* 4.6 Вся сеть — фото + список зон */
.ht-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: stretch; }
/* картинка растягивается по высоте текста рядом */
.ht-split .ht-media, .ht-ev .ht-media, .ht-about .ht-media { height: 100%; min-height: 320px; aspect-ratio: auto; }
.ht-zones { list-style: none; margin: 28px 0 0; padding: 0; }
.ht-zones li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid var(--ht-line); font: 700 26px/1.15 var(--ht-font-head); text-transform: uppercase; transition: padding .5s var(--ht-ease), color .5s var(--ht-ease); }
.ht-zones li:last-child { border-bottom: 1px solid var(--ht-line); }
.ht-zones li small { font: 600 13px var(--ht-font-mono); color: var(--ht-orange); }
.ht-zones .ht-icon { width: 56px; height: 56px; border-radius: 16px; }
.ht-zones li:hover { padding-left: 12px; color: var(--ht-orange); }

/* 4.7 Этапы */
.ht-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ht-gap); counter-reset: step; }
.ht-step { position: relative; padding-top: 24px; border-top: 2px solid var(--ht-line); }
.ht-step::before { content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: var(--ht-orange); transition: width 1.2s var(--ht-ease) .2s; }
.ht-step.is-visible::before { width: 100%; }
.ht-step b { display: block; margin-bottom: 14px; font: 800 clamp(64px, 8vw, 112px)/.95 var(--ht-font-head); color: transparent; -webkit-text-stroke: 1.5px var(--ht-orange); }
.ht-step .ht-h3 { margin-bottom: 8px; font-size: 24px; }

/* 4.8 Цены — карточки */
.ht-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ht-gap); }
.ht-price { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 220px; padding: 28px; border-radius: var(--ht-radius); background: var(--ht-white); transition: transform .5s var(--ht-ease), box-shadow .5s var(--ht-ease); }
.ht-price__top { display: flex; justify-content: space-between; gap: 12px; }
.ht-price__go { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ht-fog); color: var(--ht-orange); transition: background .45s var(--ht-ease), color .45s var(--ht-ease), transform .45s var(--ht-ease); }
.ht-price__go svg { width: 18px; height: 18px; }
.ht-price__sum { display: flex; align-items: baseline; gap: 10px; color: var(--ht-muted); }
.ht-price__sum b { font: 800 36px/1 var(--ht-font-head); color: var(--ht-orange); }
.ht-price:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(10, 13, 18, .35); }
.ht-price:hover .ht-price__go { background: var(--ht-orange); color: var(--ht-white); transform: rotate(-45deg); }
.ht-bar { display: flex; align-items: center; gap: 24px; padding: 28px; border-radius: var(--ht-radius); background: var(--ht-ink); color: var(--ht-white); }
.ht-bar__icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--ht-max); }
.ht-bar__icon svg { width: 26px; height: 26px; }
.ht-bar > div { flex: 1; }
.ht-bar__actions { flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; }

/* 4.9 Зарядные станции (тёмная) */
.ht-ev { display: grid; grid-template-columns: 1fr 520px; gap: 80px; align-items: stretch; }
.ht-ev__copy { display: grid; gap: 24px; justify-items: start; }
.ht-ev .ht-media { border: 2px solid rgba(47, 224, 160, .5); }
.ht-badge { position: absolute; left: 20px; bottom: 20px; padding: 10px 16px; border-radius: 999px; background: var(--ht-volt); color: var(--ht-ink); font-weight: 600; font-size: 14px; }

/* 4.10 Квиз-расчёт */
.ht-quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.ht-quiz__form { display: grid; gap: 22px; padding: 36px; border-radius: var(--ht-radius); background: var(--ht-white); box-shadow: 0 20px 50px rgba(10, 13, 18, .08); }
.ht-quiz__group { display: grid; gap: 10px; }
.ht-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ht-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ht-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ht-line); border-radius: 999px; background: var(--ht-fog); font-weight: 600; font-size: 15px; cursor: pointer; transition: background var(--ht-fast) var(--ht-ease), color var(--ht-fast), border-color var(--ht-fast), transform var(--ht-fast) var(--ht-ease); }
.ht-pill span:hover { transform: translateY(-2px); border-color: var(--ht-ink); }
.ht-pill input:checked + span { background: var(--ht-ink); border-color: var(--ht-ink); color: var(--ht-white); }
.ht-pill input:focus-visible + span { outline: 3px solid var(--ht-volt); outline-offset: 2px; }
.ht-range { width: 100%; accent-color: var(--ht-orange); }
.ht-range-value { font: 700 20px/1 var(--ht-font-head); }

/* 4.11 Работы — «кирпичики» */
.ht-works { columns: 3; column-gap: var(--ht-gap); }
.ht-work { position: relative; break-inside: avoid; margin-bottom: var(--ht-gap); }
.ht-work .ht-media { height: var(--h, 340px); }
.ht-work figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 14px; border-radius: 999px; background: var(--ht-white); font-weight: 600; font-size: 14px; }
.ht-work:hover img { transform: scale(1.06); }

/* 4.12 Видео-ролики */
.ht-reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ht-gap); }
.ht-swipe { display: none; }
.ht-reel { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 9 / 16.6; padding: 18px; border-radius: var(--ht-radius); overflow: hidden; color: var(--ht-white); transition: transform .55s var(--ht-ease); }
.ht-reel .ht-media { position: absolute; inset: 0; border-radius: 0; }
.ht-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 18, .05) 40%, rgba(10, 13, 18, .9)); }
.ht-reel > *:not(.ht-media) { position: relative; z-index: 1; }
.ht-reel__play { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ht-orange); transition: transform .3s var(--ht-ease); }
.ht-reel:hover { transform: translateY(-8px); }
.ht-reel:hover .ht-reel__play { transform: scale(1.12); }
.ht-reel:hover img { transform: scale(1.05); }

/* 4.13 Безопасность */
.ht-safety { display: grid; grid-template-columns: 5fr 7fr; gap: var(--ht-gap); }
.ht-photo-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 560px; padding: 32px; border-radius: var(--ht-radius); overflow: hidden; color: var(--ht-white); }
.ht-photo-card .ht-media { position: absolute; inset: 0; z-index: -1; border-radius: 0; }
.ht-photo-card { isolation: isolate; }
.ht-photo-card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10, 13, 18, .1), rgba(10, 13, 18, .9)); pointer-events: none; }
.ht-photo-card > *:not(.ht-media) { position: relative; z-index: 1; }
.ht-cards-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ht-gap); }
.ht-card { display: grid; align-content: start; gap: 14px; padding: 28px; border-radius: var(--ht-radius); background: var(--ht-fog); transition: transform .5s var(--ht-ease), box-shadow .5s var(--ht-ease); }
.ht-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(10, 13, 18, .35); }
.ht-card:hover .ht-icon { transform: rotate(-6deg) scale(1.05); }
.ht-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ht-card__num { font: 800 28px/1 var(--ht-font-head); color: #C3CAD3; }
.ht-card--accent { background: var(--ht-orange); }
.ht-card--accent .ht-text, .ht-card--accent .ht-card__num { color: var(--ht-ink); }

/* 4.14 О компании */
.ht-about { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: stretch; }
.ht-about__photo { display: flex; flex-direction: column; }
.ht-about__photo .ht-media { flex: 1; }
.ht-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.ht-mini-stats div { padding: 22px; border-radius: 18px; background: var(--ht-white); }
.ht-mini-stats div:first-child { background: var(--ht-ink); color: var(--ht-white); }
.ht-mini-stats b { display: block; font: 800 44px/1.05 var(--ht-font-head); }
.ht-mini-stats div:first-child b { color: var(--ht-orange); }
.ht-mini-stats span { font-size: 14px; color: var(--ht-muted); }
.ht-links { margin-top: 8px; padding: 10px 24px; border-radius: var(--ht-radius); background: var(--ht-white); }
.ht-links a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ht-line); font-weight: 600; transition: color var(--ht-fast) var(--ht-ease); }
.ht-links a:first-child { border-top: 0; }
.ht-links img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--ht-fog); }
.ht-links a svg { width: 18px; height: 18px; margin-left: auto; color: var(--ht-orange); transition: transform var(--ht-fast) var(--ht-ease); }
.ht-links a:hover { color: var(--ht-orange); }
.ht-links a:hover svg { transform: translateX(4px); }

/* 4.15 Партнёры */
.ht-partners { display: grid; gap: var(--ht-gap); }
.ht-partners__row { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: var(--ht-gap); }
.ht-partner { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 200px; padding: 28px; border-radius: var(--ht-radius); background: var(--ht-fog); filter: grayscale(1); transition: filter .6s var(--ht-ease), transform .5s var(--ht-ease); }
.ht-partner:hover { filter: none; transform: translateY(-4px); }
.ht-partner__logo { display: flex; align-items: center; min-height: 64px; }
.ht-partner__logo img { max-height: 64px; width: auto; }
.ht-partner__word { font: 800 34px/1 var(--ht-font-head); letter-spacing: .02em; }

/* 4.16 Отзывы (тёмная) */
.ht-reviews { display: grid; grid-template-columns: 4fr 8fr; gap: var(--ht-gap); }
.ht-rating .ht-btn { align-self: flex-start; }
.ht-rating { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 32px; border-radius: var(--ht-radius); background: var(--ht-orange); color: var(--ht-ink); }
.ht-rating b { font: 800 96px/.95 var(--ht-font-head); }

/* заглушки, пока нет отзывов */
.ht-stub { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ht-gap); }
.ht-stub__card { display: grid; align-content: start; gap: 14px; padding: 28px; border-radius: var(--ht-radius); background: var(--ht-graphite-2); }
.ht-stub__head { display: flex; align-items: center; gap: 12px; }
.ht-stub__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ht-orange); }
.ht-stub__card:nth-child(2) .ht-stub__avatar { background: var(--ht-volt); }
.ht-stub__line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); background-size: 200% 100%; animation: ht-shimmer 2.4s linear infinite; }
.ht-stub__stars { display: flex; gap: 3px; color: var(--ht-orange); }
.ht-stub__stars svg { width: 12px; height: 12px; }
@keyframes ht-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* рейтинг: звёзды закрашиваются по средней оценке */
.ht-rating { align-self: start; position: sticky; top: 110px; min-height: 340px; }
.ht-rating b { display: block; margin-bottom: 14px; }
.ht-rating__stars { display: flex; gap: 4px; }
.ht-rating__stars svg { width: 26px; height: 26px; color: rgba(10, 13, 18, .25); transition: color .4s var(--ht-ease); }
.ht-rating__stars svg.is-on { color: var(--ht-ink); }

/* список отзывов */
.ht-rlist { display: grid; gap: var(--ht-gap); align-content: start; }
.ht-rcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ht-gap); align-items: start; }
.ht-rcard { display: grid; gap: 16px; padding: 28px; border-radius: var(--ht-radius); background: var(--ht-graphite-2); transition: transform .5s var(--ht-ease), box-shadow .5s var(--ht-ease); }
.ht-rcard:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .6); }
.ht-rcard.is-extra { display: none; }
.ht-rcard__head { display: flex; align-items: center; gap: 14px; }
.ht-rcard__avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ht-orange); color: var(--ht-white); font: 700 18px/1 var(--ht-font-head); }
.ht-rcard:nth-child(even) .ht-rcard__avatar { background: var(--ht-volt); color: var(--ht-ink); }
.ht-rcard__who { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ht-rcard__who b { font-weight: 600; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.ht-rcard__who small { font-size: 13px; line-height: 1.3; color: var(--ht-soft); }
.ht-rcard__stars { flex: none; display: flex; gap: 2px; }
.ht-rcard__stars svg { width: 15px; height: 15px; color: rgba(255, 255, 255, .22); }
.ht-rcard__stars svg.is-on { color: var(--ht-orange); }
.ht-rcard__text { margin: 0; color: rgba(255, 255, 255, .88); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.ht-rcard__svc { margin: 0; justify-self: start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--ht-soft); font-size: 13px; line-height: 1.2; }
.ht-page [hidden] { display: none !important; }
.ht-rcard__who small i { font-style: normal; color: var(--ht-volt); font-weight: 500; }
/* длинный отзыв сворачивается на 7 строк, кнопка «Читать целиком» раскрывает */
.ht-rcard__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; line-clamp: 7; overflow: hidden; }
.ht-rcard__more { justify-self: start; padding: 0; border: 0; background: none; color: var(--ht-volt); font: 600 14px/1 var(--ht-font-text); cursor: pointer; border-bottom: 1px solid transparent; transition: border-color .3s var(--ht-ease); }
.ht-rcard__more:hover { border-color: currentColor; }
.ht-rcard__src { margin: 0; font-size: 13px; color: var(--ht-soft); }
.ht-rcard__src a { display: inline-flex; align-items: center; gap: 6px; color: var(--ht-volt); border-bottom: 1px solid transparent; transition: border-color .3s var(--ht-ease); }
.ht-rcard__src a:hover { border-color: currentColor; }
.ht-rcard__src svg { width: 12px; height: 12px; transition: transform .3s var(--ht-ease); }
.ht-rcard__src a:hover svg { transform: translateX(3px); }
/* ответ администратора */
.ht-rcard__reply { display: grid; gap: 8px; padding: 16px 18px; border-left: 3px solid var(--ht-volt); border-radius: 0 14px 14px 0; background: rgba(255, 255, 255, .04); }
.ht-rcard__reply p { margin: 0; color: var(--ht-soft); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.ht-rmore { justify-self: center; }
.ht-rempty { grid-column: 1 / -1; display: grid; gap: 20px; }
.ht-rempty .ht-stub { grid-template-columns: repeat(2, 1fr); }
.ht-rempty__text { margin: 0; color: var(--ht-soft); font-size: 17px; line-height: 1.55; }

/* ссылки на площадки */
.ht-plats { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ht-plats__row { display: flex; flex-wrap: wrap; gap: 12px; }
.ht-plat { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 999px; color: var(--ht-white); font-weight: 600; font-size: 15px; transition: background-color var(--ht-fast) var(--ht-ease), color var(--ht-fast) var(--ht-ease), border-color var(--ht-fast) var(--ht-ease), transform var(--ht-fast) var(--ht-ease); }
.ht-plat[hidden] { display: none; }
.ht-plat svg { width: 14px; height: 14px; transform: rotate(-45deg); transition: transform var(--ht-fast) var(--ht-ease); }
.ht-plat:hover { background: var(--ht-white); border-color: var(--ht-white); color: var(--ht-ink); transform: translateY(-2px); }
.ht-plat:hover svg { transform: rotate(-45deg) translateX(3px); }
.ht-plat:focus-visible { outline: 3px solid var(--ht-volt); outline-offset: 3px; }

/* окно «Оставить отзыв» */
.ht-modal { width: min(560px, 100% - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--ht-radius); background: var(--ht-white); color: var(--ht-ink); overflow: auto; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); }
.ht-modal::backdrop { background: rgba(10, 13, 18, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ht-modal[open] { animation: ht-pop .45s var(--ht-ease); }
.ht-modal[open]::backdrop { animation: ht-fade .45s var(--ht-ease); }
@keyframes ht-pop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ht-fade { from { opacity: 0; } to { opacity: 1; } }
.ht-modal__close { position: absolute; top: 16px; right: 16px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ht-fog); color: var(--ht-ink); cursor: pointer; transition: background-color var(--ht-fast) var(--ht-ease), color var(--ht-fast) var(--ht-ease), transform .5s var(--ht-ease); }
.ht-modal__close svg { width: 18px; height: 18px; }
.ht-modal__close:hover { background: var(--ht-orange); color: var(--ht-white); transform: rotate(90deg); }
.ht-rform { display: grid; gap: 16px; padding: 36px 32px 32px; }
.ht-rform .ht-eyebrow { color: var(--ht-orange); }
.ht-modal__title { margin: 0; font: 700 32px/1.1 var(--ht-font-head); text-transform: uppercase; padding-right: 48px; }
.ht-rform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ht-rform select.ht-input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235B6675' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; }
.ht-rform__status { margin: 0; min-height: 0; font-size: 15px; line-height: 1.4; }
.ht-rform__status:empty { display: none; }
.ht-rform__status.is-error { color: #D92D20; }
.ht-rform__status.is-ok { padding: 14px 16px; border-radius: var(--ht-radius-sm); background: rgba(47, 224, 160, .14); color: #067A52; font-weight: 600; }
.ht-rform .ht-btn { min-height: 60px; }
.ht-rform.is-sending .ht-btn { opacity: .6; pointer-events: none; }
.ht-rform.is-done > :not(.ht-rform__status):not(.ht-modal__title):not(.ht-eyebrow) { display: none; }
/* поле-ловушка для ботов: человек его не видит */
.ht-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ht-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ht-check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--ht-muted); cursor: pointer; }
.ht-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ht-orange); }
.ht-check a { text-decoration: underline; color: inherit; }

/* выбор оценки: звёзды закрашиваются слева направо и при наведении */
.ht-rate { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.ht-rate legend { padding: 0; font: 600 12px/1 var(--ht-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ht-muted); }
.ht-rate__row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.ht-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ht-rate label { cursor: pointer; line-height: 0; }
.ht-rate label svg { width: 44px; height: 44px; color: var(--ht-line); transition: color .25s var(--ht-ease), transform .35s var(--ht-ease); }
.ht-rate label:hover svg { transform: scale(1.12); }
.ht-rate input:checked ~ label svg, .ht-rate label:hover svg, .ht-rate label:hover ~ label svg { color: var(--ht-orange); }
.ht-rate input:focus-visible + label svg { outline: 3px solid var(--ht-volt); outline-offset: 2px; border-radius: 6px; }
.ht-rate.is-error legend { color: #D92D20; }

/* ---------- Страница «Галерея» ---------- */
.ht-pagehero { position: relative; overflow: hidden; padding: 190px 0 88px; background: var(--ht-ink); color: var(--ht-white); }
.ht-pagehero .ht-container { position: relative; z-index: 1; display: grid; gap: 24px; justify-items: start; }
.ht-pagehero .ht-eyebrow { color: var(--ht-volt); }
.ht-crumbs { display: flex; gap: 10px; align-items: center; font: 500 13px/1 var(--ht-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ht-soft); }
.ht-crumbs a { color: var(--ht-white); transition: color var(--ht-fast) var(--ht-ease); }
.ht-crumbs a:hover { color: var(--ht-orange-2); }
.ht-vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ht-gap); }
.ht-vcard { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--ht-radius); overflow: hidden; background: linear-gradient(135deg, var(--ht-graphite-2, #1B222C), var(--ht-ink)); color: var(--ht-white); cursor: pointer; text-align: left; text-decoration: none; transition: transform .6s var(--ht-ease), box-shadow .6s var(--ht-ease); }
.ht-vcard:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -26px rgba(10, 13, 18, .7); }
.ht-vcard:focus-visible { outline: 3px solid var(--ht-orange); outline-offset: 4px; }
.ht-vcard__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ht-ease); }
.ht-vcard:hover .ht-vcard__media { transform: scale(1.05); }
.ht-vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 18, 0) 45%, rgba(10, 13, 18, .85)); pointer-events: none; }
.ht-vcard__play { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--ht-orange); box-shadow: 0 0 0 0 rgba(252, 71, 30, .5); transition: transform .5s var(--ht-ease), background-color .4s var(--ht-ease); animation: ht-pulse 2.6s infinite; }
.ht-vcard__play svg { width: 30px; height: 30px; margin-left: 4px; color: var(--ht-white); }
.ht-vcard:hover .ht-vcard__play { transform: scale(1.1); background: var(--ht-orange-2); }
@keyframes ht-pulse { 0% { box-shadow: 0 0 0 0 rgba(252, 71, 30, .45); } 70%, 100% { box-shadow: 0 0 0 22px rgba(252, 71, 30, 0); } }
.ht-vcard__cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 24px 28px; }
.ht-vcard__cap b { font: 700 22px/1.15 var(--ht-font-head); text-transform: uppercase; }
.ht-vcard__cap small { font: 600 12px/1 var(--ht-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ht-volt); }
.ht-modal--video { width: min(980px, 100% - 32px); background: #000; border-radius: var(--ht-radius); }
.ht-modal--video video { display: block; width: 100%; max-height: calc(100dvh - 230px); background: #000; }
.ht-modal--video .ht-modal__close { background: rgba(255, 255, 255, .16); color: var(--ht-white); backdrop-filter: blur(8px); }

/* 4.17 Вопросы — плавный аккордеон */
.ht-faq { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
.ht-faq__list { display: grid; gap: 12px; }
.ht-faq__item { border-radius: 18px; background: var(--ht-white); transition: box-shadow .3s; }
.ht-faq__item.is-open { box-shadow: 0 12px 30px rgba(10, 13, 18, .08); }
.ht-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 22px 28px; border: 0; background: none; text-align: left; cursor: pointer; font: 700 22px/1.25 var(--ht-font-head); text-transform: uppercase; color: var(--ht-ink); }
.ht-faq__toggle { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ht-fog); transition: background .3s, transform .4s var(--ht-ease); }
.ht-faq__toggle::before, .ht-faq__toggle::after { content: ""; position: absolute; left: 13px; right: 13px; top: 21px; height: 2px; background: currentColor; transition: transform .55s var(--ht-ease); }
.ht-faq__toggle::after { transform: rotate(90deg); }
.is-open .ht-faq__toggle { background: var(--ht-orange); color: var(--ht-white); transform: rotate(180deg); }
.is-open .ht-faq__toggle::after { transform: rotate(0); }
/* трюк с grid-rows даёт плавное раскрытие без расчёта высоты */
.ht-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ht-ease); }
.ht-faq__a > div { overflow: hidden; }
.ht-faq__a p { padding: 0 28px 24px; color: var(--ht-muted); font-size: 17px; }
.is-open .ht-faq__a { grid-template-rows: 1fr; }

/* 4.18 Заявка — карточка на фото */
.ht-cta { position: relative; display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; padding: 56px; border-radius: 28px; overflow: hidden; color: var(--ht-white); isolation: isolate; }
.ht-cta > .ht-media { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.ht-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 13, 18, .92), rgba(10, 13, 18, .55)); }
.ht-cta__copy { display: grid; gap: 18px; justify-items: start; }
.ht-cta form { display: grid; gap: 12px; padding: 32px; border-radius: var(--ht-radius); background: var(--ht-white); color: var(--ht-ink); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .3); }
.ht-messengers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* 4.19 Подвал */
.ht-footer { padding: 80px 0 36px; background: var(--ht-graphite); color: var(--ht-soft); }
.ht-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.ht-footer__title { margin: 0 0 14px; font: 600 12px var(--ht-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ht-orange); }
.ht-footer a { display: block; padding: 4px 0; transition: color var(--ht-fast) var(--ht-ease); }
.ht-footer a:hover { color: var(--ht-white); }
.ht-footer__copy { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ht-graphite-2); font-size: 13px; }

/* 4.20 Плавающие кнопки «Связаться» и «Наверх» */
.ht-float { position: fixed; z-index: 40; right: 24px; bottom: 24px; display: flex; align-items: flex-end; gap: 12px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity var(--ht-fast) var(--ht-ease), transform var(--ht-fast) var(--ht-ease), visibility var(--ht-fast); }
.ht-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.ht-totop { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: rgba(10, 13, 18, .85); backdrop-filter: blur(12px); color: var(--ht-white); cursor: pointer; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); transition: transform var(--ht-fast) var(--ht-ease), background var(--ht-fast) var(--ht-ease); }
.ht-totop svg { width: 20px; height: 20px; transition: transform var(--ht-fast) var(--ht-ease); }
.ht-totop:hover { background: var(--ht-ink); transform: translateY(-2px); }
.ht-totop:hover svg { transform: translateY(-3px); }
.ht-contact { position: relative; }
.ht-contact__toggle { min-height: 56px; padding: 0 22px 0 18px; }
.ht-contact__toggle svg { width: 20px; height: 20px; }
.ht-contact__close, .is-open .ht-contact__open { display: none; }
.is-open .ht-contact__close { display: block; }
.ht-contact__toggle .ht-contact__open { animation: ht-ring 3s var(--ht-ease) infinite; }
.ht-contact__panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: 300px; display: grid; gap: 4px; padding: 12px; border-radius: 24px; background: var(--ht-white); color: var(--ht-ink); box-shadow: 0 24px 60px -20px rgba(10, 13, 18, .45); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: bottom right; transition: opacity var(--ht-fast) var(--ht-ease), transform var(--ht-fast) var(--ht-ease), visibility var(--ht-fast); }
.is-open .ht-contact__panel { opacity: 1; visibility: visible; transform: none; }
.ht-contact__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; transition: background var(--ht-fast) var(--ht-ease); }
.ht-contact__item:hover { background: var(--ht-fog); }
.ht-contact__item b { display: block; font-size: 15px; }
.ht-contact__item small { color: var(--ht-muted); font-size: 13px; }
.ht-contact__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: var(--ht-white); }
.ht-contact__ic svg { width: 20px; height: 20px; }
.ht-contact__more { display: flex; gap: 8px; padding: 8px 10px 4px; border-top: 1px solid var(--ht-line); margin-top: 4px; }
@keyframes ht-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(4deg); } }

/* 4.21 Нижняя панель на телефоне */
.ht-mobilebar { display: none; }

/* ---------- 5. АНИМАЦИИ ---------- */

/* Появление при скролле: добавь data-reveal к любому блоку.
   data-reveal="2", "3", "4" — небольшая задержка (лесенка). */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity var(--ht-slow) var(--ht-ease), transform var(--ht-slow) var(--ht-ease); }
[data-reveal="2"] { transition-delay: .1s; }
[data-reveal="3"] { transition-delay: .2s; }
[data-reveal="4"] { transition-delay: .3s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Декор тёмных секций: сетка, свечение, «светлячки» */
.ht-decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ht-decor__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); }
.ht-decor__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .35; animation: ht-float 12s ease-in-out infinite; }
.ht-decor__glow--orange { left: -160px; top: -120px; background: var(--ht-orange); }
.ht-decor__glow--volt { right: -180px; bottom: -200px; background: var(--ht-volt); opacity: .18; animation-delay: -6s; }
.ht-firefly { position: absolute; top: 80px; right: 0; width: min(500px, 60vw); height: auto; overflow: visible; }
.ht-hero .ht-firefly { top: auto; bottom: 40px; }
.ht-firefly path { fill: none; stroke: var(--ht-volt); stroke-width: 1.5; opacity: .45; }
.ht-firefly .ht-firefly__run { stroke-dasharray: 60 700; stroke-dashoffset: 760; opacity: .9; animation: ht-current 4s linear infinite; }
.ht-firefly circle { fill: var(--ht-volt); filter: drop-shadow(0 0 8px var(--ht-volt)); animation: ht-pulse 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

@keyframes ht-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes ht-marquee { to { transform: translateX(-50%); } }
@keyframes ht-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.35); } }
@keyframes ht-float { 50% { transform: translate(40px, 30px); } }
@keyframes ht-current { to { stroke-dashoffset: 0; } }

/* Если человек отключил анимации в системе — показываем всё сразу */
@media (prefers-reduced-motion: reduce) {
  .ht-page *, .ht-page *::before, .ht-page *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 6. АДАПТИВ ---------- */

/* Планшет и меньше */
@media (max-width: 1100px) {
  .ht-vgrid { grid-template-columns: repeat(2, 1fr); }
  .ht-rating { position: static; min-height: 0; }
  .ht-rcards, .ht-rempty .ht-stub { grid-template-columns: 1fr; }
  .ht-nav, .ht-header__phone, .ht-header .ht-btn { display: none; }
  .ht-burger { display: block; }
  .ht-stub { grid-template-columns: 1fr; }
  .ht-hero__row, .ht-split, .ht-ev, .ht-quiz, .ht-about, .ht-faq, .ht-cta, .ht-safety, .ht-reviews { grid-template-columns: 1fr; }
  .ht-stats { flex-wrap: wrap; justify-content: flex-start; gap: 20px 40px; }
  .ht-hero__row { grid-template-columns: 1fr; }
  .ht-mag { grid-auto-rows: auto; }
  .ht-mag > * { grid-column: 1 / -1 !important; grid-row: auto !important; min-height: 280px; }
  .ht-tile--ev { min-height: 420px !important; }
  .ht-prices { grid-template-columns: 1fr 1fr; }
  .ht-steps { grid-template-columns: 1fr 1fr; }
  .ht-works { columns: 2; }
  /* ролики листаются пальцем; вертикальной прокрутки нет, полоса прокрутки скрыта */
  .ht-reels { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--ht-gutter) * -1); padding: 12px var(--ht-gutter) 8px; scroll-padding-inline: var(--ht-gutter); }
  .ht-reels::-webkit-scrollbar { display: none; }
  .ht-reel:hover { transform: translateY(-4px); }
  .ht-swipe { display: inline-flex; align-items: center; gap: 10px; font: 600 13px var(--ht-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ht-soft); }
  .ht-swipe svg { width: 18px; height: 18px; animation: ht-nudge 1.6s var(--ht-ease) infinite; }
  @keyframes ht-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
  .ht-reel { flex: 0 0 62%; scroll-snap-align: start; }
  .ht-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Телефон */
@media (max-width: 640px) {
  .ht-pagehero { padding: 128px 0 56px; }
  .ht-vgrid { grid-template-columns: 1fr; }
  .ht-vcard__play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .ht-rform { padding: 28px 20px 24px; }
  .ht-rform__grid { grid-template-columns: 1fr; }
  .ht-modal__title { font-size: 26px; }
  .ht-rate label svg { width: 40px; height: 40px; }
  .ht-rcard { padding: 22px; }
  .ht-plats { margin-top: 32px; }
  .ht-plat { flex: 1 1 auto; justify-content: space-between; }
  .ht-header { top: 14px; width: calc(100% - 24px); padding: 8px 8px 8px 16px; border-radius: 24px; }
  .ht-header.is-scrolled { top: 8px; }
  .ht-header__logo img { height: 44px; }
  .ht-hero { padding: 118px 0 40px; }
  .ht-hero__buttons, .ht-hero__buttons .ht-btn { width: 100%; }
  .ht-quick { display: none; } /* на телефоне заявку собирает нижняя панель */
  .ht-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 32px; padding: 20px; border-radius: 22px; }
  .ht-stat b { font-size: 26px; line-height: 30px; }
  .ht-head > p { font-size: 16px; }
  .ht-hide-mobile { display: none; }
  .ht-price { min-height: 150px; }
  .ht-price__sum b { font-size: 28px; }
  .ht-tile, .ht-card, .ht-price, .ht-partner, .ht-rating { padding: 22px; }
  .ht-tile .ht-icon, .ht-tile__go { top: 22px; }
  .ht-tile .ht-icon { left: 22px; width: 64px; height: 64px; }
  .ht-tile__go { right: 22px; }
  .ht-tile--num b { font-size: 88px; }
  .ht-prices, .ht-steps, .ht-cards-2x2, .ht-partners__row, .ht-mini-stats { grid-template-columns: 1fr; }
  .ht-mini-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ht-mini-stats div { padding: 14px; }
  .ht-mini-stats b { font-size: 28px; }
  .ht-zones li { font-size: 20px; gap: 14px; }
  .ht-zones .ht-icon { width: 44px; height: 44px; border-radius: 12px; }
  .ht-works { columns: 1; }
  .ht-work .ht-media { height: 260px; }
  .ht-photo-card { min-height: 300px; padding: 22px; }
  .ht-bar { flex-direction: column; align-items: flex-start; }
  .ht-bar__actions { width: 100%; }
  .ht-bar__actions .ht-btn { flex: 1; }
  .ht-quiz__form, .ht-cta form, .ht-quick { padding: 22px; }
  .ht-cta { padding: 24px; }
  .ht-faq__q { padding: 18px; font-size: 18px; }
  .ht-faq__a p { padding: 0 18px 18px; font-size: 15px; }
  .ht-footer__grid { grid-template-columns: 1fr; }
  .ht-footer { padding-bottom: 110px; } /* место под нижнюю панель */

  /* нижняя панель «Позвонить / Заявка» — появляется после первого экрана */
  /* на телефоне «Связаться» заменяет нижняя панель, остаётся только «Наверх» над ней */
  .ht-float { right: 16px; bottom: 96px; }
  .ht-contact { display: none; }
  .ht-totop { width: 48px; height: 48px; }
  .ht-mobilebar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--ht-white); box-shadow: 0 -8px 24px rgba(10, 13, 18, .12); transform: translateY(110%); transition: transform .55s var(--ht-ease); }
  .ht-mobilebar.is-visible { transform: none; }
  .ht-mobilebar .ht-btn { flex: 1; min-height: 52px; padding: 0 14px; }
}

/* Описание ролика в галерее */
.ht-vcard__cap em { display: -webkit-box; margin-top: 6px; font-style: normal; font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, .78); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ht-vinfo { display: grid; gap: 10px; justify-items: start; padding: 20px 4px 4px; color: var(--ht-white); }
.ht-vinfo .ht-text { margin: 0; color: rgba(255, 255, 255, .78); }

/* ===== Внутренние страницы: услуги, прайс, работы, контакты, «Спасибо», 404 ===== */
.ht-pagehero .ht-hero__buttons { margin-top: 8px; }
.ht-pagehero .ht-btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: var(--ht-white); }
.ht-pagehero .ht-btn--ghost:hover { background: var(--ht-white); border-color: var(--ht-white); color: var(--ht-ink); }
.ht-pagehero .ht-stats { width: 100%; margin-top: 24px; }
.ht-pagehero .ht-lead { max-width: 62ch; color: #D5DBE2; }
.ht-pagehero--center .ht-container { justify-items: center; text-align: center; }
.ht-pagehero--center { padding-bottom: 104px; }

.ht-cards3, .ht-cards4 { display: grid; gap: var(--ht-gap); margin-top: var(--ht-stack); }
.ht-cards3 { grid-template-columns: repeat(3, 1fr); }
.ht-cards4 { grid-template-columns: repeat(4, 1fr); }
.ht-cards3 > *, .ht-cards4 > * { min-width: 0; }
.ht-card .ht-h3 { margin: 0; }
.ht-card .ht-card__num { font: 800 28px/1 var(--ht-font-head); color: #C3CAD3; }

.ht-dcard { display: grid; align-content: start; gap: 12px; padding: 28px; border-radius: var(--ht-radius); background: var(--ht-graphite-2); border: 1px solid rgba(255, 255, 255, .08); transition: transform .5s var(--ht-ease), border-color .5s var(--ht-ease); }
.ht-dcard:hover { transform: translateY(-4px); border-color: rgba(252, 71, 30, .55); }
.ht-dcard b { font: 800 56px/1 var(--ht-font-head); color: transparent; -webkit-text-stroke: 1.5px var(--ht-orange); }
.ht-dcard .ht-h3 { margin: 0; color: var(--ht-white); }
.ht-dcard .ht-text { margin: 0; color: var(--ht-soft); }

.ht-ptable, .ht-pgroup { display: grid; border-radius: var(--ht-radius); background: var(--ht-white); overflow: hidden; }
.ht-ptable { margin: var(--ht-stack) 0; }
.ht-prow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 18px 28px; border-top: 1px solid var(--ht-line); transition: background-color .3s var(--ht-ease); }
.ht-prow:first-child { border-top: 0; }
.ht-prow:hover { background: var(--ht-fog); }
.ht-prow__name { font-weight: 500; }
.ht-prow__unit { font: 500 13px/1 var(--ht-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ht-muted); }
.ht-prow__sum { font: 700 20px/1.2 var(--ht-font-head); color: var(--ht-orange); white-space: nowrap; text-align: right; }
.ht-pgroup .ht-prow { grid-template-columns: minmax(0, 1fr) auto; }
.ht-pgroups { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ht-gap); margin-top: var(--ht-stack); align-items: start; }
.ht-pgroup { background: var(--ht-fog); }
.ht-pgroup .ht-prow:hover { background: var(--ht-white); }
.ht-pgroup__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 24px 28px 16px; }
.ht-pgroup__head .ht-h3 { margin: 0; font-size: 22px; }
.ht-pgroup__head span { font: 500 13px/1 var(--ht-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ht-muted); }

.ht-related { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 140px; padding: 28px; border-radius: var(--ht-radius); background: var(--ht-white); transition: transform .5s var(--ht-ease), box-shadow .5s var(--ht-ease); }
.ht-related .ht-h3 { margin: 0; font-size: clamp(20px, 2vw, 28px); text-transform: uppercase; }
.ht-related:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(10, 13, 18, .35); }
.ht-related:hover .ht-price__go { background: var(--ht-orange); color: var(--ht-white); transform: rotate(-45deg); }

.ht-faq__list--wide { margin-top: var(--ht-stack); display: grid; gap: 12px; }
.ht-faq__list--wide .ht-faq__item { background: var(--ht-fog); }

/* калькулятор на странице «Цены» */
.ht-calc { display: grid; gap: var(--ht-gap); margin-top: var(--ht-stack); }
.ht-calc__rows { display: grid; border-radius: var(--ht-radius); background: var(--ht-white); overflow: hidden; }
.ht-crow { display: grid; grid-template-columns: minmax(0, 1fr) auto 140px; align-items: center; gap: 24px; padding: 18px 28px; border-top: 1px solid var(--ht-line); }
.ht-crow:first-child { border-top: 0; }
.ht-crow__name b { display: block; font-weight: 600; }
.ht-crow__name small { color: var(--ht-muted); font-size: 14px; }
.ht-crow__sum { text-align: right; font: 700 20px/1 var(--ht-font-head); white-space: nowrap; }
.ht-qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ht-fog); }
.ht-qty__btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ht-white); color: var(--ht-ink); font: 600 22px/1 var(--ht-font-text); cursor: pointer; transition: background-color .3s var(--ht-ease), color .3s var(--ht-ease); }
.ht-qty__btn:hover { background: var(--ht-orange); color: var(--ht-white); }
.ht-qty__input { width: 56px; border: 0; background: transparent; text-align: center; font: 700 18px/1 var(--ht-font-text); color: var(--ht-ink); -moz-appearance: textfield; }
.ht-qty__input::-webkit-outer-spin-button, .ht-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ht-calc__total { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 32px; align-items: end; padding: 32px; border-radius: var(--ht-radius); background: var(--ht-ink); color: var(--ht-white); }
.ht-calc__total b { display: block; margin: 10px 0; font: 800 clamp(40px, 5vw, 72px)/1 var(--ht-font-head); color: var(--ht-orange-2); }
.ht-calc__total p { margin: 0; max-width: 46ch; color: var(--ht-soft); }
.ht-calc__send { display: grid; gap: 12px; }
.ht-calc__send .ht-note { color: var(--ht-soft); }

/* фильтр и сетка на странице «Работы» */
.ht-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--ht-stack); }
.ht-filter__btn { padding: 12px 22px; border: 1.5px solid var(--ht-line); border-radius: 999px; background: var(--ht-white); color: var(--ht-ink); font: 600 15px/1 var(--ht-font-text); cursor: pointer; transition: background-color .3s var(--ht-ease), color .3s var(--ht-ease), border-color .3s var(--ht-ease); }
.ht-filter__btn:hover { border-color: var(--ht-ink); }
.ht-filter__btn.is-on { background: var(--ht-ink); border-color: var(--ht-ink); color: var(--ht-white); }
.ht-wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ht-gap); }
.ht-wgrid .ht-work[hidden] { display: none; }
.ht-work--tall { margin: 0; }
.ht-work--tall .ht-media { height: auto; aspect-ratio: 4 / 5; }
.ht-wempty { margin-top: 24px; }

/* контакты */
.ht-contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ht-gap); }
.ht-ccard { display: grid; align-content: start; gap: 10px; min-height: 240px; padding: 28px; border-radius: var(--ht-radius); background: var(--ht-white); }
.ht-ccard__main { font: 700 clamp(20px, 2vw, 26px)/1.25 var(--ht-font-head); word-break: break-word; transition: color .3s var(--ht-ease); }
a.ht-ccard__main:hover { color: var(--ht-orange); }
.ht-ccard .ht-text { margin: 0; }
.ht-ccard--map { padding: 0; overflow: hidden; position: relative; }
.ht-ccard--map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ht-ccard--map > .ht-label, .ht-ccard--map > .ht-text, .ht-ccard--map > .ht-btn { margin: 28px 28px 0; }
.ht-req { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ht-gap); margin: var(--ht-stack) 0 0; }
.ht-req > div { padding: 24px; border-radius: var(--ht-radius); background: var(--ht-fog); }
.ht-req dt { font: 500 13px/1 var(--ht-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ht-muted); }
.ht-req dd { margin: 10px 0 0; font-weight: 600; word-break: break-word; }

/* сообщение под формой */
.ht-formmsg { margin: 0; font-size: 14px; line-height: 1.4; color: #FF9A85; }
form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }

@media (max-width: 1100px) {
  .ht-cards4 { grid-template-columns: repeat(2, 1fr); }
  .ht-cards3, .ht-wgrid, .ht-contacts { grid-template-columns: repeat(2, 1fr); }
  .ht-pgroups { grid-template-columns: 1fr; }
  .ht-req { grid-template-columns: repeat(2, 1fr); }
  .ht-calc__total { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ht-cards3, .ht-cards4, .ht-wgrid, .ht-contacts, .ht-req { grid-template-columns: 1fr; }
  .ht-prow { grid-template-columns: minmax(0, 1fr) auto; padding: 16px 20px; gap: 6px 16px; }
  .ht-prow__unit { grid-column: 1; grid-row: 2; }
  .ht-prow__sum { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .ht-pgroup .ht-prow__sum { grid-row: auto; }
  .ht-crow { grid-template-columns: 1fr auto; padding: 16px 20px; }
  .ht-crow__sum { grid-column: 1 / -1; text-align: left; }
  .ht-calc__total { padding: 24px 20px; }
  .ht-pagehero { padding-top: 150px; }
  .ht-pagehero .ht-stats { flex-direction: column; }
}


/* ===== Правки: иконки в подвале, нижняя панель и «Наверх» на iPhone, карточка мессенджеров ===== */
/* общий стиль ссылок подвала (display:block + отступы) сдвигал значки вверх — для круглых кнопок возвращаем центрирование */
.ht-footer a.ht-round { display: grid; place-items: center; padding: 0; }
.ht-footer .ht-messengers { gap: 10px; }
.ht-messengers--card { margin: 4px 0 2px; }
.ht-ccard .ht-round--dark { width: 52px; height: 52px; }
.ht-ccard .ht-round--dark svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  :root { --ht-bar-pad: calc(env(safe-area-inset-bottom, 0px) * .5); }
  .ht-mobilebar { align-items: center; padding: 12px 16px calc(12px + var(--ht-bar-pad)); }
  .ht-mobilebar .ht-btn { height: 52px; min-height: 52px; padding: 0 14px; line-height: 1; }
  /* «Наверх» всегда над панелью: высота панели 76px + запас под «чёлку» + 14px воздуха */
  .ht-float { right: 16px; bottom: calc(76px + var(--ht-bar-pad) + 14px); }
  .ht-footer { padding-bottom: calc(110px + var(--ht-bar-pad)); }
}

/* ---------- Страницы услуг по макету v4 ---------- */
.ht-pagehero--img { padding-bottom: 72px; }
.ht-pagehero--img .ht-container { gap: 0; justify-items: stretch; }
.ht-pagehero__split { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 56px; align-items: center; }
.ht-pagehero__copy { display: grid; gap: 24px; justify-items: start; }
.ht-pagehero--img .ht-h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.05; }
.ht-pagehero__img { position: relative; margin: 0; height: 460px; border-radius: 22px; overflow: hidden; background: var(--ht-graphite-2); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.ht-pagehero__img img { width: 100%; height: 100%; object-fit: cover; }
.ht-pagehero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 18, 0) 55%, rgba(10, 13, 18, .45)); pointer-events: none; }
.ht-pagehero--img .ht-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; padding: 0; border-radius: 0; background: none; border: 0; backdrop-filter: none; box-shadow: none; }
.ht-pagehero--img .ht-stat { padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(14px); }
.ht-pagehero--img .ht-stat b { font-weight: 800; font-size: 36px; line-height: 40px; }
.ht-pagehero--img .ht-stat span { color: var(--ht-soft); font-size: 14px; }

.ht-wcard { display: grid; align-content: start; gap: 16px; padding: 26px; border-radius: 22px; background: var(--ht-white); transition: transform .5s var(--ht-ease), box-shadow .5s var(--ht-ease); }
.ht-wcard:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(10, 13, 18, .35); }
.ht-wcard .ht-h3 { margin: 0; font-size: 21px; }
.ht-wcard .ht-text { margin: 0; font-size: 15px; }
.ht-wcard__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--ht-fog); color: var(--ht-ink); border: 1px solid var(--ht-line); --accent: var(--ht-orange); }
.ht-wcard__icon svg { width: 56%; height: 56%; }
.ht-wcard__icon.is-accent { background: var(--ht-orange); border-color: var(--ht-orange); color: var(--ht-white); --accent: var(--ht-ink); }

.ht-icard { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border-radius: 20px; background: var(--ht-fog); transition: transform .5s var(--ht-ease); }
.ht-icard:hover { transform: translateY(-3px); }
.ht-icard > b { flex: none; font: 800 32px/34px var(--ht-font-head); color: var(--ht-orange); }
.ht-icard .ht-h3 { margin: 0 0 6px; font-size: 20px; }
.ht-icard .ht-text { margin: 0; font-size: 15px; }

.ht-process--dark { position: relative; overflow: hidden; background: var(--ht-ink); }
.ht-process--dark .ht-h2 { color: var(--ht-white); }
.ht-process--dark .ht-step { border-top-color: rgba(255, 255, 255, .16); }
.ht-process--dark .ht-step .ht-h3 { color: var(--ht-white); }
.ht-process--dark .ht-step b { -webkit-text-stroke-color: var(--ht-orange); }

.ht-work--wide .ht-media { height: 340px; aspect-ratio: auto; border-radius: 22px; }
.ht-work--wide figcaption { left: 14px; bottom: 14px; }

.ht-faq__list--wide .ht-faq__item { background: var(--ht-white); border-radius: 18px; }
.ht-faq__list--wide .ht-faq__item .ht-faq__toggle { background: var(--ht-fog); }
.ht-faq__list--wide .ht-faq__item.is-open .ht-faq__toggle { background: var(--ht-orange); }

.ht-related { justify-content: flex-start; min-height: 0; padding: 18px; border-radius: 20px; background: var(--ht-fog); }
.ht-related .ht-h3 { flex: 1; font-size: 19px; text-transform: none; }
.ht-related__thumb { flex: none; width: 80px; height: 80px; border-radius: 14px; object-fit: cover; }
.ht-related .ht-price__go { margin-left: auto; }

@media (max-width: 1100px) {
  .ht-pagehero__split { grid-template-columns: 1fr; gap: 32px; }
  .ht-pagehero__img { height: 340px; }
}
@media (max-width: 640px) {
  .ht-pagehero--img { padding-bottom: 40px; }
  .ht-pagehero__img { height: 240px; border-radius: 18px; }
  .ht-pagehero--img .ht-stats { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .ht-pagehero--img .ht-stat { padding: 18px 20px; }
  .ht-pagehero--img .ht-stat b { font-size: 28px; line-height: 32px; }
  .ht-wcard, .ht-icard { padding: 20px; }
  .ht-work--wide .ht-media { height: 240px; }
  .ht-related__thumb { width: 64px; height: 64px; }
}

/* ---------- Остальные страницы по v4 ---------- */
.ht-pagehero .ht-messengers { display: flex; align-items: center; gap: 10px; }
.ht-pagehero .ht-messengers .ht-btn--max { min-height: 56px; padding: 0 22px; font-size: 16px; }
.ht-pagehero .ht-hero__buttons { align-items: center; }

.ht-fcard { display: grid; align-content: start; gap: 10px; padding: 26px; border-radius: 22px; background: var(--ht-fog); color: var(--ht-ink); }
.ht-fcard > b { font: 800 32px/34px var(--ht-font-head); color: var(--ht-orange); }
.ht-fcard .ht-h3 { margin: 0; font-size: 20px; }
.ht-fcard .ht-text { margin: 0; font-size: 15px; }
.ht-fcard.is-accent { background: var(--ht-orange); }
.ht-fcard.is-accent > b, .ht-fcard.is-accent .ht-text { color: var(--ht-ink); }
.ht-fcard.is-accent > b { color: var(--ht-white); }

.ht-contacts { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 24px; }
.ht-contacts__list { display: grid; align-content: start; gap: 12px; }
.ht-contacts .ht-ccard { min-height: 0; padding: 22px 28px; background: var(--ht-fog); border-radius: 18px; }
.ht-contacts .ht-ccard--dark { background: var(--ht-ink); color: var(--ht-white); }
.ht-contacts .ht-ccard--dark .ht-label, .ht-contacts .ht-ccard--dark .ht-text { color: var(--ht-soft) !important; }
.ht-contacts .ht-ccard > .ht-icon { display: none; }
.ht-contacts .ht-ccard--map { min-height: 460px; background: var(--ht-fog); }
.ht-contacts__social { margin-top: 8px; }
.ht-contacts__social .ht-round--dark { width: 48px; height: 48px; }

.ht-work--cap figcaption { position: static; display: grid; gap: 4px; padding: 14px 2px 0; border-radius: 0; background: none; }
.ht-work--cap figcaption b { font: 700 20px/24px var(--ht-font-head); }
@media (max-width: 900px) { .ht-contacts { grid-template-columns: 1fr; } }

/* ---------- Текстовая страница (политика) ---------- */
.ht-legal { max-width: 820px; display: grid; gap: 14px; font-size: 17px; line-height: 1.65; color: var(--ht-ink); }
.ht-legal .ht-h3 { margin: 28px 0 0; font-size: 24px; }
.ht-legal p { margin: 0; }
.ht-legal a { color: var(--ht-orange); text-decoration: underline; }

/* ---------- Заголовок первого экрана 55px, без переноса «Санкт-Петербург» ---------- */
.ht-nowrap { white-space: nowrap; }
.ht-pagehero .ht-h1 { font-size: 55px; line-height: 1.08; letter-spacing: -.01em; max-width: none; }
.ht-pagehero--img .ht-h1 { font-size: 55px; }
.ht-pagehero__split { gap: 64px; }
.ht-pagehero__copy { min-width: 0; }
@media (max-width: 1100px) { .ht-pagehero__split { gap: 36px; } }
@media (max-width: 640px) { .ht-pagehero .ht-h1, .ht-pagehero--img .ht-h1 { font-size: 34px; line-height: 1.1; } }

/* ---------- Политика во всплывающем окне ---------- */
.ht-modal--policy { width: min(780px, 100% - 32px); }
.ht-modal--policy .ht-modal__body { padding: 40px 40px 36px; }
.ht-legal--modal { margin-top: 20px; max-width: none; font-size: 16px; line-height: 1.6; }
.ht-legal--modal .ht-h3 { font-size: 20px; margin-top: 18px; }
@media (max-width: 640px) { .ht-modal--policy .ht-modal__body { padding: 28px 20px 24px; } }
