/* OLIVIN — главная (резиновая). Токены — ui.css */
.h-sec { margin-top: clamp(48px, 5vw, 88px); }
.h-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(18px, 1.8vw, 28px); }
.h-head h2 { font-size: clamp(24px, 2vw, 36px); }

/* Баннер: фото на весь баннер, цвет слайда перетекает в фото. Тема слайда (Slide::THEMES): --c фон, --on текст, --acc акцент */
.h-hero-wrap { margin-top: 16px; }
.h-hero-wrap + .h-sec { margin-top: clamp(28px, 3vw, 48px); }
.h-hero { border-radius: 40px; background: var(--surface); overflow: hidden; position: relative; }
.h-hero .swiper-slide { height: auto; }
.h-hero__slide { position: relative; display: flex; align-items: center; min-height: clamp(400px, 31vw, 560px); overflow: hidden; background: var(--c, var(--brand)); color: var(--on, var(--text)); }
.h-hero__photo { position: absolute; top: 0; right: 0; bottom: 0; left: 34%; display: block; }
.h-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h-hero__slide::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 34%; width: 30%; background: linear-gradient(90deg, var(--c, var(--brand)), transparent); pointer-events: none; }
.h-hero__text { position: relative; z-index: 2; max-width: 44%; padding: clamp(28px, 3vw, 56px) 0 clamp(80px, 5.6vw, 100px) clamp(24px, 4vw, 72px); }
.h-hero__eyebrow { display: inline-flex; align-items: center; margin-bottom: clamp(12px, 1.2vw, 18px); padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .3); font-size: 14px; font-weight: 700; }
.is-dark .h-hero__eyebrow { background: rgba(255, 255, 255, .18); }
.h-hero__title { margin: 0 0 clamp(12px, 1.1vw, 18px); font-size: clamp(30px, 3.1vw, 58px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; color: inherit; }
.h-hero__acc { color: var(--acc, #fff); }
.h-hero__sub { max-width: 520px; margin: 0 0 clamp(18px, 1.8vw, 28px); font-size: clamp(15px, 1.1vw, 19px); font-weight: 500; line-height: 1.45; opacity: .88; }
.h-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.h-hero__btn { background: #151714; color: #fff; }
.h-hero__btn:hover { background: #000; color: #fff; transform: translateY(-1px); }
.is-dark .h-hero__btn, .is-dark .h-hero__btn:hover { background: #fff; color: #151714; }
.h-hero__btn2 { background: rgba(255, 255, 255, .35); color: inherit; }
.h-hero__btn2:hover { background: rgba(255, 255, 255, .55); color: inherit; }
.is-dark .h-hero__btn2 { background: rgba(255, 255, 255, .16); }
.is-dark .h-hero__btn2:hover { background: rgba(255, 255, 255, .28); }
.h-hero__chips { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.h-hero__chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; opacity: .9; }
.h-hero__chips .o-i { width: 16px; height: 16px; }
.h-hero__nav { position: absolute; z-index: 3; left: clamp(24px, 4vw, 72px); right: clamp(20px, 2.6vw, 40px); bottom: clamp(16px, 1.8vw, 28px); display: flex; align-items: center; gap: 8px; pointer-events: none; }
.h-hero__nav > * { pointer-events: auto; }
.h-hero__dots { display: flex; gap: 8px; margin-right: auto; }
.h-hero__dots .swiper-pagination-bullet { width: 32px; height: 5px; margin: 0 !important; border-radius: 3px; background: rgba(255, 255, 255, .55); opacity: 1; transition: background .2s, width .2s; }
.h-hero__dots .swiper-pagination-bullet-active { width: 56px; background: #151714; }
.h-hero__arrow { background: #fff; color: var(--text); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.h-hero__arrow:hover { background: var(--brand); color: var(--on-brand); }

/* Преимущества */
.h-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.h-perk { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 24px; background: var(--surface); }
.h-perk .o-row__icon { flex-basis: 48px; width: 48px; height: 48px; border-radius: 15px; }
.h-perk__title { font-weight: 700; line-height: 1.25; }
.h-perk__text { font-size: 13px; color: var(--text-2); line-height: 1.35; margin-top: 2px; }

/* Подборки */
/* Готовые подборки: карусель — по --n плиток на экран, листается стрелками (data-hscroll) и пальцем; .h-tiles--grid — обычная сетка на /podborki */
.h-tiles { --n: 4; --g: clamp(12px, 1.4vw, 24px); display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--g); scrollbar-width: none; }
.h-tiles::-webkit-scrollbar { display: none; }
.h-tiles > .h-tile { flex: 0 0 calc((100% - (var(--n) - 1) * var(--g)) / var(--n)); scroll-snap-align: start; }
.h-tiles--grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); overflow: visible; }
.h-tiles--grid > .h-tile { flex: none; }
.h-tile__img--empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); color: var(--brand-strong); }
.h-tile__img--empty .o-i { width: 48px; height: 48px; }
.h-tile { position: relative; display: flex; flex-direction: column; border-radius: var(--r-card); background: var(--surface); overflow: hidden; color: var(--text); }
.h-tile:hover { color: var(--text); }
.h-tile__img { aspect-ratio: 4 / 3; overflow: hidden; }
.h-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.h-tile:hover .h-tile__img img { transform: scale(1.05); }
.h-tile__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 12px 20px; flex: 1 1 auto; }
.h-tile__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.h-tile__title { font-size: clamp(17px, 1.2vw, 21px); font-weight: 800; }
.h-tile__sub { font-size: 14px; color: var(--text-2); }
.h-tile__arrow { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.h-tile:hover .h-tile__arrow { background: var(--brand); color: var(--on-brand); }
.h-tile__link { color: inherit; }
.h-tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* вся карточка кликабельна */

/* Каталог: компактная сетка разделов */
/* ровно 2 ряда, плитки идут колонками; --n — сколько колонок видно на экране (зависит от ширины), остальное листается */
.h-cats { --g: 12px; --n: 8; display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--n) - 1) * var(--g)) / var(--n)); gap: var(--g); overflow-x: auto; scrollbar-width: none; padding: 3px 0; }
.h-cats::-webkit-scrollbar { display: none; }
@media (min-width: 1800px) { .h-cats { --n: 10; } }
@media (min-width: 2200px) { .h-cats { --n: 12; } }
@media (max-width: 1399.98px) { .h-cats { --n: 7; } }
@media (max-width: 1199.98px) { .h-cats { --n: 6; } }
@media (max-width: 991.98px) { .h-cats { --n: 5; } }
.h-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 22px; background: var(--surface); color: var(--text); transition: background .15s, transform .15s; }
.h-cat:hover { background: var(--brand-soft); color: var(--text); transform: translateY(-2px); }
.h-cat__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 14px; background: var(--surface-2); color: var(--brand-strong); transition: background .15s, color .15s; }
.h-cat:hover .h-cat__icon { background: var(--brand); color: var(--on-brand); }
.h-cat__icon .o-i { width: 22px; height: 22px; }
.h-cat__name { font-size: 15px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-cat__count { font-size: 13px; font-weight: 600; color: var(--text-3); }

/* Вкладки товаров + карусели */
.h-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.h-tabs__tab { padding: 10px 20px; border: 0; border-radius: var(--r-pill); background: var(--surface); color: var(--text-2); font: 700 clamp(16px, 1.2vw, 20px) var(--font); transition: .15s; }
.h-tabs__tab:hover { color: var(--text); }
.h-tabs__tab.is-active { background: var(--text); color: var(--bg); }
.h-pane { position: relative; }
.h-pane .swiper-slide { height: auto; }
.h-arrow { position: absolute; top: 34%; z-index: 4; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--bg); color: var(--text); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; transition: .15s; }
.h-arrow:hover { background: var(--brand); color: var(--on-brand); }
.h-arrow--prev { left: -12px; } .h-arrow--next { right: -12px; }
.h-arrow.swiper-button-disabled { opacity: 0; pointer-events: none; }
.h-arrow.swiper-button-lock { display: none; }

/* Промо: расчёт тиража */
.h-promo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: center; padding: clamp(28px, 4vw, 64px); border-radius: 40px; background: var(--brand-soft); }
.h-promo__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 700; color: var(--brand-strong); }
.h-promo h2 { font-size: clamp(24px, 2.2vw, 40px); margin-bottom: 14px; }
.h-promo p { color: var(--text-2); font-size: 17px; max-width: 640px; }
.h-promo__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.h-promo__actions .o-btn--secondary { background: var(--surface-2); }
.h-promo__types { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.h-promo__types .o-chip { background: var(--surface-2); padding: 10px 16px; font-size: 15px; font-weight: 600; }

/* Этапы */

/* О компании */
.h-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.h-about__desc { margin: 18px 0 28px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.h-about .o-stats { gap: 24px; }
.h-about__sub { margin: 0 0 16px; font-size: 18px; font-weight: 700; }
.h-about .o-stat b { font-size: clamp(28px, 2.4vw, 40px); } /* «26+ лет»: число крупно, слово мельче — в одну строку */
.h-about .o-stat b small { display: inline-block; font-size: .5em; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.h-about .o-stat span { display: block; margin-top: 4px; }
.h-about__img img { display: block; width: 100%; height: clamp(280px, 26vw, 460px); object-fit: cover; border-radius: 40px; } /* ниже текста, а не выше */

/* SEO-текст — внизу блока «Нанесение логотипа», на всю ширину, свёрнут до «Читать полностью» */
.h-promo__seo { grid-column: 1 / -1; padding-top: clamp(22px, 2.2vw, 34px); border-top: 1px solid rgba(88, 127, 11, .18); }
.h-promo .h-promo__seo h2 { font-size: clamp(19px, 1.4vw, 24px); margin-bottom: 12px; }
.h-promo .h-promo__seo p { max-width: none; font-size: 15px; }
.h-seo__text { max-width: none; position: relative; max-height: 140px; overflow: hidden; color: var(--text-2); font-size: 15px; transition: max-height .4s; }
.h-seo__text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(rgba(239, 247, 220, 0), var(--brand-soft)); }
.h-seo__text.is-open { max-height: 2000px; }
.h-seo__text.is-open::after { display: none; }
[data-seo-toggle][aria-expanded="true"] .o-i { transform: rotate(180deg); }

@media (max-width: 1199.98px) {
  .h-hero__text { max-width: 54%; }
  .h-hero__photo, .h-hero__slide::before { left: 42%; }
  .h-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-tiles { --n: 2; }
  .h-promo, .h-about { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .h-hero { border-radius: 28px; }
  .h-hero__slide { display: block; min-height: 0; }
  .h-hero__photo { position: relative; left: auto; height: 250px; }
  .h-hero__slide::before { left: 0; width: 100%; top: 170px; bottom: auto; height: 80px; background: linear-gradient(180deg, transparent, var(--c, var(--brand))); }
  .h-hero__text { max-width: none; margin-top: -28px; padding: 0 20px 72px; }
  .h-hero__title { font-size: 30px; }
  .h-hero__actions .o-btn { flex: 1 1 100%; }
  .h-hero__btn2 { display: none; } /* на телефоне одна кнопка — баннер не на весь экран */
  .h-hero__nav { left: 20px; right: 20px; bottom: 26px; }
  .h-hero__arrow { display: none; }
  .h-perks { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .h-perk { padding: 14px 16px; }
  .h-tiles { --g: 12px; }
  .h-tiles > .h-tile { flex: 0 0 78%; }
  .h-tiles--grid { grid-template-columns: minmax(0, 1fr); }
  .h-cats { --n: 2.5; --g: 10px; scroll-snap-type: x mandatory; } /* телефон: листается пальцем, стрелки не нужны */
  .h-cats-box .o-hscroll__arrow { display: none; }
  .h-cat { scroll-snap-align: start; padding: 14px; }
  .h-arrow { display: none; }
  .h-promo { border-radius: 28px; padding: 24px 20px; }
  .h-promo__actions .o-btn { width: 100%; }
  .h-about__img img { border-radius: 28px; }
}

/* ---------- Отзывы (partials/home-reviews): 1 плашки сеткой, 2 зигзаг-облачка, 3 тёмная полоса ---------- */
.h-rv .h-head .o-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--brand-strong); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.h-rv__card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.h-rv__company { font-size: 17px; font-weight: 800; line-height: 1.3; }
.h-rv__text { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.h-rv__person { display: flex; align-items: center; gap: 12px; }
.h-rv__photo { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand); }
.h-rv__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h-rv__who { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.h-rv__who b { font-weight: 700; }
.h-rv__who span { color: var(--text-3); font-size: 13px; }

/* 1 — плашки */
.h-rv__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.h-rv--1 .h-rv__card { padding: 26px 28px; border-radius: var(--r-card); background: var(--surface); }
.h-rv--1 .h-rv__card--photo-bottom .h-rv__person { margin-top: auto; padding-top: 4px; }
.h-rv--1 .h-rv__card:not(.h-rv__card--photo-bottom) .h-rv__text { flex: 1 1 auto; }
@media (max-width: 1199.98px) { .h-rv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .h-rv__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .h-rv__grid::-webkit-scrollbar { display: none; }
  .h-rv--1 .h-rv__card { flex: 0 0 84%; scroll-snap-align: start; padding: 22px; }
}

/* 2 — зигзаг: облачко с хвостиком к фото, фото по очереди над / под облачком */
.h-rv--2 .swiper-slide { height: auto; }
.h-rv--2 .h-rv__card { gap: 18px; }
.h-rv--2 .h-rv__bubble { position: relative; padding: 24px 26px; border-radius: var(--r-card); background: var(--surface); flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; }
.h-rv--2 .h-rv__bubble::before { content: ""; position: absolute; left: 34px; width: 22px; height: 22px; background: var(--surface); transform: rotate(45deg); border-radius: 4px; }
.h-rv--2 .h-rv__card:not(.h-rv__card--photo-bottom) .h-rv__bubble::before { top: -8px; }
.h-rv--2 .h-rv__card--photo-bottom .h-rv__bubble::before { bottom: -8px; }
.h-rv--2 .h-rv__card:not(.h-rv__card--photo-bottom) { padding-bottom: 82px; } /* зигзаг: облачка смещены по очереди */
.h-rv--2 .h-rv__card--photo-bottom { padding-top: 82px; }
.h-rv--2 .h-rv__person { padding-left: 18px; }

/* 3 — тёмная полоса */
.h-rv--3 { padding-top: clamp(28px, 3vw, 48px); padding-bottom: clamp(28px, 3vw, 48px); }
.h-rv--3 { background: #14200A; border-radius: 40px; color: #fff; }
.h-rv--3 .h-head h2 { color: #fff; }
.h-rv--3 .h-head .o-link { color: var(--brand); }
.h-rv--3 .swiper-slide { height: auto; }
.h-rv--3 .h-rv__bubble { position: relative; height: 100%; padding: 28px; border-radius: var(--r-card); background: rgba(255, 255, 255, .06); display: flex; flex-direction: column; gap: 12px; }
.h-rv--3 .h-rv__quote { font: 800 72px/0.6 Georgia, serif; color: var(--brand); height: 30px; }
.h-rv--3 .h-rv__company { color: #fff; }
.h-rv--3 .h-rv__text { color: rgba(255, 255, 255, .78); flex: 1 1 auto; }
.h-rv--3 .h-rv__who b { color: #fff; }
.h-rv--3 .h-rv__who span { color: rgba(255, 255, 255, .55); }
.h-rv--3 .h-rv__photo { box-shadow: 0 0 0 3px #14200A, 0 0 0 5px var(--brand); }
@media (max-width: 767.98px) { .h-rv--3 { border-radius: 28px; margin-left: 8px; margin-right: 8px; } }
.h-rv--2 .swiper, .h-rv--3 .swiper { padding-bottom: 10px; padding-top: 4px; }
.h-rv__more { display: flex; justify-content: flex-end; margin-top: 18px; }
.h-rv__more .o-link { font-weight: 700; color: var(--brand-strong); display: inline-flex; align-items: center; gap: 6px; }
.h-rv--3 .h-rv__more .o-link { color: var(--brand); }
.h-rv--page .h-rv__text { -webkit-line-clamp: unset; }

/* 4 — бенто: крупный тёмный отзыв на 2 строки слева + 4 светлых карточки */
.h-rv__bento { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: clamp(14px, 1.4vw, 22px); }
.h-rv--4 .h-rv__card { position: relative; padding: 26px 28px; border-radius: var(--r-card); background: var(--surface); transition: transform .2s ease, box-shadow .2s ease; }
.h-rv--4 .h-rv__card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20, 32, 10, .10); }
.h-rv--4 .h-rv__q { position: absolute; right: 22px; top: 20px; width: 34px; height: 34px; color: var(--brand); opacity: .9; }
.h-rv--4 .h-rv__card:nth-child(3) .h-rv__q, .h-rv--4 .h-rv__card:nth-child(4) .h-rv__q { color: #F4A23A; }
.h-rv--4 .h-rv__card--photo-bottom .h-rv__person { margin-top: auto; }
.h-rv--4 .h-rv__card:not(.h-rv__card--photo-bottom) .h-rv__text { flex: 1 1 auto; }
.h-rv--4 .h-rv__card .h-rv__company { padding-right: 44px; }
.h-rv--4 .h-rv__card--big { grid-row: span 2; justify-content: flex-start; padding: clamp(28px, 2.6vw, 44px); background: #14200A; color: #fff; overflow: hidden; }
.h-rv--4 .h-rv__card--big::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: var(--brand); opacity: .16; }
.h-rv--4 .h-rv__card--big .h-rv__q { width: 56px; height: 56px; right: 30px; top: 30px; }
.h-rv--4 .h-rv__card--big .h-rv__photo { width: 84px; height: 84px; box-shadow: 0 0 0 4px #14200A, 0 0 0 6px var(--brand); }
.h-rv--4 .h-rv__card--big .h-rv__who b { color: #fff; font-size: 17px; }
.h-rv--4 .h-rv__card--big .h-rv__who span { color: rgba(255, 255, 255, .6); font-size: 14px; }
.h-rv--4 .h-rv__card--big .h-rv__company { margin-top: 10px; font-size: clamp(20px, 1.6vw, 26px); color: var(--brand); }
.h-rv--4 .h-rv__card--big .h-rv__text { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.55; color: rgba(255, 255, 255, .88); }
@media (max-width: 1199.98px) {
  .h-rv__bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-rv--4 .h-rv__card--big { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .h-rv__bento { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .h-rv__bento::-webkit-scrollbar { display: none; }
  .h-rv--4 .h-rv__card { flex: 0 0 84%; scroll-snap-align: start; padding: 22px; }
  .h-rv--4 .h-rv__card--big { padding: 24px; }
}
@media (max-width: 767.98px) {
  .h-rv--4 .h-rv__q, .h-rv--4 .h-rv__card--big .h-rv__q { width: 28px; height: 28px; right: 16px; top: 16px; }
  .h-rv--4 .h-rv__person { padding-right: 34px; }
  .h-rv--4 .h-rv__card--big .h-rv__photo { width: 64px; height: 64px; }
}
@media (max-width: 767.98px) { .h-rv--page .h-rv__bento { display: grid; grid-template-columns: minmax(0, 1fr); margin-right: 0; padding-right: 0; } .h-rv--page .h-rv__card { flex: none; } } /* страница «Отзывы»: на телефоне списком */

/* 5 — бегущая лента: два ряда одинаковых карточек плывут навстречу; при наведении стоят; края растворяются */
.h-rv__marquee { display: grid; gap: 14px; margin: 0 calc(-1 * var(--gutter)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.h-rv__row { overflow: hidden; }
.h-rv__track { display: flex; gap: 14px; width: max-content; animation: h-rv-run calc(var(--n, 6) * 9s) linear infinite; }
.h-rv__row--rev .h-rv__track { animation-direction: reverse; }
.h-rv__marquee:hover .h-rv__track, .h-rv__marquee:focus-within .h-rv__track { animation-play-state: paused; }
@keyframes h-rv-run { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
.h-rv__chip { display: flex; align-items: flex-start; gap: 14px; width: 400px; padding: 18px 20px; border-radius: 22px; background: var(--surface); color: var(--text); transition: background-color .2s; }
.h-rv__chip:hover { background: var(--brand-soft); color: var(--text); }
.h-rv__chip .h-rv__photo { width: 52px; height: 52px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand); }
.h-rv__chip-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.h-rv__chip .h-rv__company { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-rv__chip .h-rv__text { font-size: 14px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h-rv__by { font-size: 12px; color: var(--text-3); }
@media (max-width: 767.98px) { .h-rv__chip { width: 300px; padding: 16px; } .h-rv__chip .h-rv__photo { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .h-rv__track { animation: none; } .h-rv__row { overflow-x: auto; } }
.h-rv__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.h-rv--page .h-rv__chip { width: auto; }
.h-rv--page .h-rv__chip .h-rv__text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.h-rv--page .h-rv__chip .h-rv__company { white-space: normal; }

/* Отзыв = реплика человека: облачко с цитатой (главное) + подпись под ним (фото, имя, должность · компания) */
.h-rv__say { display: flex; flex-direction: column; gap: 14px; width: 380px; color: var(--text); }
.h-rv__say:hover { color: var(--text); }
.h-rv__bubble { position: relative; display: block; padding: 22px 24px 20px 60px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(20, 32, 10, .06); transition: border-color .2s, box-shadow .2s; }
.h-rv__bubble::after { content: ""; position: absolute; left: 34px; bottom: -8px; width: 16px; height: 16px; background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.h-rv__say:hover .h-rv__bubble { border-color: var(--brand); box-shadow: 0 10px 30px rgba(20, 32, 10, .1); }
.h-rv__say:hover .h-rv__bubble::after { border-color: var(--brand); }
.h-rv__bubble .h-rv__q { position: absolute; left: 20px; top: 20px; width: 26px; height: 26px; color: var(--brand); }
.h-rv__say .h-rv__text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.55; color: var(--text); }
.h-rv__sign { display: flex; align-items: center; gap: 12px; padding-left: 18px; }
.h-rv__sign .h-rv__photo { width: 46px; height: 46px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand); }
.h-rv__sign .h-rv__who b { font-size: 15px; }
.h-rv__sign .h-rv__who span { font-size: 13px; color: var(--text-3); }
.h-rv__marquee .h-rv__track { align-items: flex-start; padding: 6px 0 4px; }
@media (max-width: 767.98px) { .h-rv__say { width: 290px; } .h-rv__bubble { padding: 18px 18px 16px 50px; } .h-rv__bubble .h-rv__q { left: 16px; top: 18px; width: 22px; height: 22px; } }
.h-rv--page .h-rv__say { width: auto; }
.h-rv--page .h-rv__say .h-rv__text { display: block; -webkit-line-clamp: unset; overflow: visible; }
/* Подпись (фото, имя) сверху, облачко с отзывом снизу — хвостик облачка смотрит вверх, на автора */
.h-rv__bubble::after { bottom: auto; top: -8px; border-right: 0; border-bottom: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }

/* 6 — карусель: один ряд, карточки повыше (до 6 строк отзыва), точки по центру снизу */
.h-rv__carousel .swiper { padding: 6px 4px 4px; margin: -6px -4px 0; }
.h-rv__carousel .swiper-slide { height: auto; }
.h-rv__carousel .h-rv__say { width: auto; height: 100%; }
.h-rv__carousel .h-rv__bubble { flex: 1 1 auto; min-height: 210px; padding: 26px 28px 24px 64px; }
.h-rv__carousel .h-rv__bubble .h-rv__q { left: 22px; top: 24px; width: 28px; height: 28px; }
.h-rv__carousel .h-rv__say .h-rv__text { -webkit-line-clamp: 6; font-size: 16px; line-height: 1.6; }
.h-rv__carousel .h-arrow { top: 58%; }
.h-rv__dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; position: static; }
.h-rv__dots .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0 !important; border-radius: 6px; background: var(--line); opacity: 1; transition: width .25s, background-color .25s; }
.h-rv__dots .swiper-pagination-bullet-active { width: 28px; background: var(--brand); }
@media (max-width: 767.98px) { .h-rv__carousel .h-rv__bubble { min-height: 190px; padding: 20px 18px 18px 52px; } .h-rv__carousel .h-rv__bubble .h-rv__q { left: 16px; top: 20px; width: 24px; height: 24px; } }
.h-rv__carousel .h-rv__sign { min-height: 58px; } /* подпись в 1–2 строки — облачка на одном уровне */
.h-rv__carousel .swiper, .h-rv__carousel.h-pane { background: none; }
.h-rv__carousel .swiper { padding: 8px 6px 26px; margin: -8px -6px -22px; } /* тени карточек не обрезаются */
/* 4 в ряд: компактнее текст и облачко */
.h-rv__carousel .h-rv__bubble { min-height: 180px; padding: 22px 22px 20px 56px; }
.h-rv__carousel .h-rv__bubble .h-rv__q { left: 18px; top: 22px; width: 24px; height: 24px; }
.h-rv__carousel .h-rv__say .h-rv__text { font-size: 15px; line-height: 1.55; -webkit-line-clamp: 6; }
.h-rv__carousel .h-rv__sign .h-rv__photo { width: 44px; height: 44px; }
.h-rv__carousel .h-rv__sign { min-height: 52px; padding-left: 14px; }
.h-rv__carousel .h-rv__sign .h-rv__who b { font-size: 14px; }
.h-rv__carousel .h-rv__sign .h-rv__who span { font-size: 12px; }

/* Баннер-картинка (текст нарисован дизайнером): пропорции фиксированы — ПК 2400×737, телефон 1080×1350 (3:4) */
.h-hero--img { background: var(--surface); }
.h-banner { display: block; aspect-ratio: 2400 / 737; }
.h-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h-hero--img .h-hero__nav { left: auto; right: clamp(16px, 2vw, 32px); bottom: clamp(14px, 1.6vw, 24px); width: auto; gap: 8px; }
.h-hero--img .h-hero__dots { margin-right: 10px; padding: 7px 10px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .28); }
.h-hero--img .h-hero__dots .swiper-pagination-bullet { width: 18px; background: rgba(255, 255, 255, .6); }
.h-hero--img .h-hero__dots .swiper-pagination-bullet-active { width: 34px; background: #fff; }
@media (max-width: 767.98px) {
  .h-banner { aspect-ratio: 1080 / 1350; } /* 3:4; старые картинки 1080×1800 обрезаются снизу (там пустой фон), верх сохраняется */
  .h-banner img { object-position: top; }
  .h-hero--img .h-hero__nav { left: 0; right: 0; justify-content: center; bottom: 14px; }
  .h-hero--img .h-hero__dots { margin: 0; }
}
.h-hero--img .h-hero__dots { flex: 0 0 auto; width: auto; }
.h-hero--img .h-hero__dots.swiper-pagination-horizontal { width: auto !important; }
/* Баннер-картинка: точки по центру снизу (по числу слайдов), стрелки — по краям посередине */
.h-hero--img .h-hero__nav { left: 0; right: 0; top: 0; bottom: 0; justify-content: center; align-items: flex-end; padding-bottom: clamp(14px, 1.6vw, 24px); pointer-events: none; }
.h-hero--img .h-hero__dots { margin: 0; }
.h-hero--img .h-hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); }
.h-hero--img .h-hero__arrow[data-hero-prev] { left: clamp(12px, 1.4vw, 24px); }
.h-hero--img .h-hero__arrow[data-hero-next] { right: clamp(12px, 1.4vw, 24px); }
.h-hero--img .h-hero__arrow { opacity: 0; transition: opacity .2s; } .h-hero--img:hover .h-hero__arrow, .h-hero--img .h-hero__arrow:focus-visible { opacity: 1; } /* стрелки — только при наведении, не закрывают картинку */
/* Стрелки — справа снизу, рядом, всегда видны (точки — по центру) */
.h-hero--img .h-hero__arrow { opacity: 1; top: auto; transform: none; bottom: clamp(12px, 1.4vw, 22px); width: 44px; height: 44px; min-height: 44px; }
.h-hero--img .h-hero__arrow[data-hero-prev] { left: auto; right: calc(clamp(12px, 1.4vw, 22px) + 52px); }
.h-hero--img .h-hero__arrow[data-hero-next] { right: clamp(12px, 1.4vw, 22px); }

/* ---------- Больше интересного: сетка обложек как в Instagram (до 6 в линию), клик — в Instagram ---------- */
.h-ig__profile { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-strong); }
.h-ig__profile .o-i { width: 20px; height: 20px; }
.h-ig__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.h-ig__item { position: relative; display: block; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--surface); }
.h-ig__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.h-ig__hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20, 32, 10, .45); color: #fff; opacity: 0; transition: opacity .2s; }
.h-ig__hover .o-i { width: 40px; height: 40px; }
.h-ig__item:hover img { transform: scale(1.05); }
.h-ig__item:hover .h-ig__hover, .h-ig__item:focus-visible .h-ig__hover { opacity: 1; }
@media (max-width: 991.98px) { .h-ig__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .h-ig__item { border-radius: 14px; } .h-ig__grid { gap: 6px; } }

/* Телефон: у всех лент главной видны стрелки «туда-сюда» — компактные круглые кнопки поверх края (листать пальцем тоже можно) */
@media (max-width: 767.98px) {
  .h-arrow { display: flex; width: 38px; height: 38px; }
  .h-arrow .o-i { width: 18px; height: 18px; }
  .h-arrow--prev { left: 4px; } .h-arrow--next { right: 4px; }
  .h-cats-box .o-hscroll__arrow, .h-tiles-box .o-hscroll__arrow { display: flex; top: 50%; bottom: auto; width: 38px; height: 38px; margin-top: -19px; justify-content: center; border-radius: 50%; background: var(--bg); box-shadow: var(--shadow); }
  .h-cats-box .o-hscroll__arrow .o-i, .h-tiles-box .o-hscroll__arrow .o-i { width: 18px; height: 18px; }
  .h-cats-box .o-hscroll__arrow--prev, .h-tiles-box .o-hscroll__arrow--prev { left: 4px; }
  .h-cats-box .o-hscroll__arrow--next, .h-tiles-box .o-hscroll__arrow--next { right: 4px; }
  .h-tiles-box .o-hscroll__arrow { margin-top: -40px; } /* по центру картинки, не текста */
  .h-brands-box .o-brands, .h-brands-box .o-clients { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; scrollbar-width: none; }
  .h-brands-box .o-brands::-webkit-scrollbar, .h-brands-box .o-clients::-webkit-scrollbar { display: none; }
  .h-brands-box .o-brand, .h-brands-box .o-client { flex: 0 0 calc((100% - 20px) / 2.4); min-height: 104px; padding: 14px; scroll-snap-align: start; }
  .h-brands-box .o-hscroll__arrow { display: flex; top: 50%; bottom: auto; width: 38px; height: 38px; margin-top: -19px; justify-content: center; border-radius: 50%; background: var(--bg); box-shadow: var(--shadow); }
  .h-brands-box .o-hscroll__arrow .o-i { width: 18px; height: 18px; }
  .h-brands-box .o-hscroll__arrow--prev { left: 4px; } .h-brands-box .o-hscroll__arrow--next { right: 4px; }
}
.h-head button.o-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; cursor: pointer; } /* кнопка-ссылка у заголовка (окно заявки) */
/* Готовые подборки: название и подпись по центру; стрелка — в правом нижнем углу картинки, чтобы не сужать текст */
/* У тела плитки не должно быть position: relative — иначе растянутая ссылка (.h-tile__link::after) накроет только текст, а не картинку */
.h-tile__body { align-items: center; text-align: center; padding: 16px 20px 14px; }
.h-tile__head { justify-content: center; }
.h-tile__img { position: relative; }
.h-tile__arrow { position: absolute; right: 14px; bottom: 14px; background: var(--bg); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }

/* «Нам доверяют» на главной: от планшета и шире — одна строка-лента, круглые стрелки по краям, шаг — один логотип (data-hscroll-step="item").
   Поля сверху/снизу у ленты — чтобы приподнятая при наведении карточка и её тень не обрезались */
@media (min-width: 768px) {
  .h-brands-box .o-clients { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 0 28px; margin: -8px 0 -28px; }
  .h-brands-box .o-clients::-webkit-scrollbar { display: none; }
  .h-brands-box .o-client { flex: 0 0 calc((100% - 96px) / 7); scroll-snap-align: start; scroll-snap-stop: always; }
  .h-brands-box .o-hscroll__arrow { top: 50%; bottom: auto; width: 44px; height: 44px; margin-top: -22px; justify-content: center; border-radius: 50%; background: var(--bg); box-shadow: var(--shadow); }
  .h-brands-box .o-hscroll__arrow .o-i { width: 20px; height: 20px; }
  .h-brands-box .o-hscroll__arrow--prev { left: -18px; } .h-brands-box .o-hscroll__arrow--next { right: -18px; }
}
@media (min-width: 768px) and (max-width: 1399.98px) { .h-brands-box .o-client { flex-basis: calc((100% - 80px) / 6); } }
@media (min-width: 768px) and (max-width: 1199.98px) { .h-brands-box .o-client { flex-basis: calc((100% - 64px) / 5); } }
@media (min-width: 768px) and (max-width: 991.98px) { .h-brands-box .o-client { flex-basis: calc((100% - 48px) / 4); } }
.h-brands-box .o-client { scroll-snap-stop: always; } /* пальцем — тоже по одному логотипу, без пролёта */
