/* TentMax — концепт главной в оформлении по образцу dentaplan.ru.
   Корень как у образца: ширина/24.56 на телефоне, /48 на планшете, /96 от 1024 —
   все размеры в rem, на 1440 rem = 15px, на 1920 = 20px. */

:root {
  --sticky-top: var(--header-h); /* прилипающие блоки стоят под шапкой, пока она видна; при прокрутке вниз шапка уезжает — и отступ 0 (Павлон 22.11: «верх карточек под меню») */
  --c-black: #34353c;
  --c-white: #fff;
  --c-grey: #f5f5f5;
  --c-stroke-12: rgba(52, 53, 60, .12);
  --c-stroke-16: rgba(52, 53, 60, .16);
  --c-stroke-50: rgba(52, 53, 60, .5);
  --c-text-60: rgba(52, 53, 60, .6);
  --c-white-16: rgba(255, 255, 255, .16);
  --c-white-24: rgba(255, 255, 255, .24);
  --c-white-40: rgba(255, 255, 255, .4);
  --c-photo-shade: rgba(52, 53, 60, .32);

  /* акцент — красный из логотипа TentMax; ?accent=yellow — жёлтый образца */
  --c-accent: #007732; /* тёмный зелёный из логотипа ВегаСистемы: белый текст на нём 5,6:1 (светлый #43ab32 — 2,9:1) */
  --c-accent-hover: #005f28;
  --c-accent-text: #fff;
  --c-accent-icon: rgba(255, 255, 255, .6);

  --radius: .3125rem;
  --header-h: 4.2rem; /* 64px на 375, как у эталона */
  --pad: 1rem;
  --font: 'Manrope', system-ui, sans-serif;
}
.accent-yellow {
  --c-accent: #fff0a7;
  --c-accent-hover: #ffe982;
  --c-accent-text: #34353c;
  --c-accent-icon: rgba(52, 53, 60, .5);
}
@media (min-width: 1024px) {
  :root { --pad: 2.25rem; --header-h: clamp(4.5rem, 5vw, 6rem); } /* шапка 72 на 1440 и 96 на 1920 — как у эталона */
}

/* у образца на телефоне корень растёт до 31px к 767; ограничиваем 17px — на 375 без изменений, на 500–767 всё не раздувается */
html { font-size: min(4.0712468193vw, 17px); -webkit-text-size-adjust: 100%; }
@media (min-width: 768px) { html { font-size: 2.0833333333vw; } }
@media (min-width: 1024px) { html { font-size: 1.0416666667vw; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -.02rem;
  color: var(--c-black);
  background: var(--c-black);
  -webkit-font-smoothing: antialiased;
}
h1, p, ul, fieldset, legend, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, svg { display: block; }
svg { fill: currentColor; }

.container { width: 100%; padding-inline: var(--pad); margin-inline: auto; }
.lg-only { display: none; }
@media (min-width: 1024px) { .lg-only { display: inline; } .sm-only { display: none !important; } }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--b, transparent);
  border-radius: var(--radius);
  background: var(--bg, transparent);
  color: var(--fg, var(--c-white));
  font-weight: 500; font-size: 1rem; line-height: 1.25; letter-spacing: -.02rem;
  white-space: nowrap;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.btn > svg { width: .875rem; height: .875rem; margin-left: .375rem; color: var(--ic, currentColor); }
.btn--md { min-height: 3.5rem; padding: .75rem 2.5rem; }
.btn--sm { min-height: 2.75rem; padding: .5rem 1.5625rem; }
.btn--xs { min-height: 2.25rem; padding: .375rem 1rem; font-size: .875rem; }
.btn--accent { --bg: var(--c-accent); --b: var(--c-accent); --fg: var(--c-accent-text); --ic: var(--c-accent-icon); }
.btn--accent:hover { --bg: var(--c-accent-hover); --b: var(--c-accent-hover); }
.btn--outline { --b: var(--c-white-24); --fg: var(--c-white); }
.btn--outline:hover { --b: var(--c-white); }
.btn--dark { --bg: var(--c-black); --b: var(--c-black); --fg: var(--c-white); }
.btn--outline-dark { --b: var(--c-stroke-16); --fg: var(--c-black); }
.btn--outline-dark:hover { --b: var(--c-black); }
.btn:disabled { --bg: #e8e8e8; --b: #e8e8e8; --fg: rgba(52, 53, 60, .45); cursor: not-allowed; }

.btn-circle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--b, transparent);
  background: var(--bg, transparent);
  color: var(--fg, var(--c-white));
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.btn-circle svg { width: 1rem; height: 1rem; }
.btn-circle .i-max { width: .9375rem; height: .9375rem; }
.btn-circle--md { width: 2.5rem; height: 2.5rem; }
.btn-circle--lg { width: 3rem; height: 3rem; }
.btn-circle--xl { width: 3.5rem; height: 3.5rem; }
.btn-circle--white { --bg: var(--c-white); --b: var(--c-white); --fg: var(--c-black); }
.btn-circle--white:hover { --bg: var(--c-grey); --b: var(--c-grey); }
.btn-circle--outline { --b: var(--c-white-24); --fg: var(--c-white); }
.btn-circle--outline:hover { --b: var(--c-white); }
.btn-circle--line { --b: var(--c-stroke-16); --fg: var(--c-black); }
@media (pointer: coarse) {
  .btn-circle::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
}

.link {
  position: relative; display: inline-flex;
  font-size: .875rem; line-height: 1.28571; letter-spacing: -.00875rem;
  border-bottom: 1px solid transparent;
}
.link::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px; background: currentColor; transition: width .3s ease; }
.link:hover::after { width: 100%; }
.link--underline { border-color: color-mix(in srgb, currentColor 24%, transparent); }

/* ---------- шапка — по шапке Арт Курьера (Павлон 22.11: «меню делаем как тут: лого на белом фоне и разделители»)
   Пункты меню из шапки убраны (Павлон 22.11: «не лезут и не ровно, только меню оставить и перенести в конец»), остальное — в большом меню.
   Замеры эталона в единицах макета 1440: высота 72, белый блок лого 203 (поля 40/48), капс 11px/500/+4%,
   ячейки отбиты линией белого 20%, такая же линия по низу; на 375 — высота 64, справа квадраты звонка 64 и меню 65.
   На компьютере размеры растут с шириной, как у эталона (--hu = 1px макета 1440), кегль не мельче 11px. ---------- */
.header {
  --hu: 1px; --line: rgba(255, 255, 255, .2);
  position: fixed; top: 0; left: 0; z-index: 20; width: 100%;
  color: var(--c-white);
  transition: background-color .45s ease, transform .45s ease;
}
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 1px; background: var(--line); pointer-events: none; }
.header__content { position: relative; z-index: 5; display: flex; align-items: stretch; height: var(--header-h); }
.header__logo { display: flex; align-items: center; flex: 0 0 auto; padding: 0 1.5rem; background: var(--c-white); }
.header__logo img { display: block; width: 7rem; height: auto; }
.header__cell { display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); }
.header__link {
  display: inline-flex; align-items: center;
  font-weight: 500; font-size: max(10px, calc(11 * var(--hu))); /* у эталона на 1024 капс 7,8px — нечитаемо, держим не мельче 10px */ line-height: 1.3; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; transition: opacity .3s ease;
}
.header__link:hover, .header__menu:hover .header__menu-txt { opacity: .6; }
.header__pick { flex: 1 1 auto; padding: 0 .75rem; }
.header__pick-more { display: none; }
.header__phone, .header__actions { display: none; }
.header__square { position: relative; flex: 0 0 4.2rem; }
.header__square svg { width: 1.25rem; height: 1.25rem; }
.header__menu { flex: 0 0 4.2rem; } /* на телефоне — квадрат со значком, на компьютере — «Меню» в конце шапки (Павлон 22.11) */
.header__menu-ico { position: relative; width: 1.25rem; height: 1.25rem; }
.header__menu-ico svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .3s ease, opacity .3s ease; }
.header__menu-ico .i-shut { transform: scale(0); opacity: 0; }
.menu-open .header__menu-ico .i-open { transform: scale(0); opacity: 0; }
.menu-open .header__menu-ico .i-shut { transform: scale(1); opacity: 1; }
.header__menu-txt { display: none; font-weight: 500; font-size: max(10px, calc(11 * var(--hu))); line-height: 1; letter-spacing: .04em; text-transform: uppercase; transition: opacity .3s ease; }

@media (min-width: 1024px) {
  .header { --hu: calc(100vw / 1440); }
  .header__logo { padding: 0 calc(48 * var(--hu)) 0 calc(40 * var(--hu)); }
  .header__logo img { width: max(7rem, calc(140 * var(--hu))); }
  .header__pick { flex: 1 1 auto; padding: 0 calc(40 * var(--hu)); } /* по центру шапки (Павлон 22.11: «тут по центру сделать Подобрать оборудование») */
  .header__pick-more { display: inline; }
  .header__actions { display: flex; gap: .5rem; padding: 0 calc(40 * var(--hu)); }
  .header__menu { flex: 0 0 auto; gap: calc(10 * var(--hu)); padding: 0 calc(40 * var(--hu)); }
  .header__menu-ico { width: max(.875rem, calc(14 * var(--hu))); height: max(.875rem, calc(14 * var(--hu))); }
  .header__menu-txt { display: block; }
  .header__phone { display: flex; gap: calc(16 * var(--hu)); padding: 0 calc(40 * var(--hu)) 0 calc(41 * var(--hu)); }
  .header__phone-ico { display: grid; place-items: center; width: max(1.5rem, calc(24 * var(--hu))); aspect-ratio: 1; border-radius: 50%; background: var(--c-accent); }
  .header__phone-ico svg { width: 62.5%; height: 62.5%; }
  .header__square { display: none; }
}

/* состояния шапки: уехала при прокрутке вниз, вернулась на тёмной подложке при прокрутке вверх
   (у образца подложка белая; знак TentMax светлый, поэтому подложка — тёмный цвет текста образца) */
.scrolling-down .header { transform: translateY(-100%); }
.scrolling-up .header, .menu-open .header { background-color: var(--c-black); transform: none; }

/* ---------- меню — в языке новой шапки (Павлон 22.11: «меню по-другому как-то делай»): тёмный слой во всю высоту под шапкой,
   колонки разделены теми же линиями белого 12%, подписи капсом 11px. Слева 4 направления с номерами (как экран 2),
   по центру разделы компании, справа телефоны, мессенджеры, адрес и кнопка. Закрывает ячейка «Меню» в шапке. ---------- */
.mega { position: fixed; inset: var(--header-h) 0 0; z-index: 1; }
.mega__panel {
  --line: rgba(255, 255, 255, .12);
  display: flex; flex-direction: column; height: 100%;
  background: var(--c-black); color: var(--c-white);
  overflow-y: auto; overscroll-behavior: contain;
  animation: fade .3s ease both;
}
.mega__col { padding: 1.75rem var(--pad) 2rem; border-top: 1px solid var(--line); animation: drop .5s cubic-bezier(.2, .7, .2, 1) both; }
.mega__col:first-child { border-top: 0; }
.mega__col--co { animation-delay: .06s; }
.mega__col--contact { animation-delay: .12s; }
.mega__label { margin: 0 0 1.25rem; font-weight: 500; font-size: max(10px, .6875rem); line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.mega__dirs { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.mega__dirs li { border-top: 1px solid var(--line); }
.mega__dirs a { display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: center; gap: .5rem; padding: 1rem 0; }
.mega__n { font-weight: 500; font-size: max(10px, .6875rem); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .5); }
.mega__t { font-size: 1.5rem; line-height: 1.1; letter-spacing: -.03em; }
.mega__arr { width: 1.25rem; height: 1.25rem; color: var(--c-white); opacity: .4; transition: opacity .3s ease, transform .3s ease; }
.mega__dirs a:hover .mega__arr { opacity: 1; transform: translateX(.25rem); }
.mega__dirs a:hover .mega__n { color: #43ab32; }
.mega__all, .mega__soc a { display: inline-flex; align-items: center; }
.mega__all { gap: .5rem; margin-top: 1.25rem; font-weight: 500; font-size: max(10px, .6875rem); letter-spacing: .04em; text-transform: uppercase; transition: opacity .3s ease; }
.mega__all svg { width: 1rem; height: 1rem; }
.mega__all:hover { opacity: .6; }
.mega__links { display: grid; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.mega__links a { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; transition: opacity .3s ease; }
.mega__links a:hover { opacity: .6; }
.mega__col--contact { display: flex; flex-direction: column; align-items: flex-start; }
.mega__phone { font-size: 1.75rem; line-height: 1.1; letter-spacing: -.03em; transition: opacity .3s ease; }
.mega__hours { margin: .5rem 0 0; font-size: .875rem; line-height: 1.3; color: rgba(255, 255, 255, .6); }
.mega__phone2 { display: inline-flex; align-items: baseline; gap: .5rem; margin-top: 1rem; font-size: 1.125rem; line-height: 1.2; transition: opacity .3s ease; }
.mega__phone2 span { font-size: .875rem; color: rgba(255, 255, 255, .6); }
.mega__phone:hover, .mega__phone2:hover { opacity: .7; }
.mega__soc { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.mega__soc a { gap: .5rem; min-height: 2.5rem; padding: .375rem 1rem .375rem .75rem; border: 1px solid rgba(255, 255, 255, .24); border-radius: 2rem; font-weight: 500; font-size: .875rem; transition: border-color .3s ease, background-color .3s ease; }
.mega__soc a:hover { border-color: var(--c-white); }
.mega__soc svg { width: 1rem; height: 1rem; }
.mega__soc .i-max { width: .9375rem; height: .9375rem; }
.mega__addr { display: flex; flex-direction: column; gap: .375rem; margin: 1.5rem 0 0; font-size: .9375rem; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.mega__addr small { font-size: .8125rem; color: rgba(255, 255, 255, .5); }
.mega__cta { align-self: stretch; margin-top: 1.75rem; }

@media (min-width: 1024px) {
  .mega__panel { display: grid; grid-template-columns: 1.7fr 1fr 1fr; overflow: hidden; }
  .mega__col { overflow-y: auto; padding: 3rem var(--pad) 2.5rem; border-top: 0; border-left: 1px solid var(--line); }
  .mega__col:first-child { border-left: 0; }
  .mega__label { margin-bottom: 2.5rem; }
  .mega__dirs a { grid-template-columns: 3.5rem 1fr auto; padding: 1.5rem 0; }
  .mega__t { font-size: 2.375rem; line-height: 1.05; } /* «Производственные линии» — в одну строку на 1024–1920 */
  .mega__arr { width: 1.75rem; height: 1.75rem; }
  .mega__all { margin-top: 2rem; }
  .mega__links { gap: .875rem; }
  .mega__links a { font-size: 1.625rem; }
  .mega__phone { font-size: 2.25rem; }
  .mega__cta { margin-top: auto; }
  .mega__addr { margin-bottom: 2rem; }
}
@keyframes drop { from { transform: translateY(-1rem); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.menu-open, .modal-open { overflow: hidden; }

/* ---------- первый экран ---------- */
.hero { position: relative; height: 100svh; min-height: 40rem; overflow: hidden; background: var(--c-black); touch-action: pan-y; }
.hero__slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  padding-top: var(--header-h);
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.hero-slide.is-active { z-index: 2; opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.hero-slide__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
/* затемнение: ровный слой образца (.2) + сгущение под заголовком и под нижним текстом —
   у нас светлые кадры (снег, белый тент), белому тексту одного ровного слоя мало */
.hero-slide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(52, 53, 60, .7) 0%, rgba(52, 53, 60, .35) 26%, rgba(52, 53, 60, 0) 44%, rgba(52, 53, 60, 0) 50%, rgba(52, 53, 60, .55) 72%, rgba(52, 53, 60, .85) 100%),
    rgba(52, 53, 60, .2);
}
.hero-slide__wrap { position: relative; display: flex; flex-direction: column; flex-grow: 1; padding-block: 2.575rem 1rem; color: var(--c-white); }
.hero-slide__top { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.hero-slide__title { display: block; font-weight: 400; font-size: 2.5rem; line-height: .95; letter-spacing: -.03em; max-width: 52.5rem; }
.hero-slide__aside { font-size: 1rem; line-height: 1.25; letter-spacing: -.02rem; }
.hero-slide__aside span { display: block; }
.hero-slide__aside span:first-child { margin-bottom: .25rem; }
.hero-slide__aside span + span { color: rgba(255, 255, 255, .6); }

/* прогрессивный блюр сверху — 1:1 с dent.oxboxdigital.ru; на телефоне ещё и снизу */
.slide-blur { --bk: 1.5; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.slide-blur i { position: absolute; top: 0; left: 0; right: 0; height: var(--t); backdrop-filter: blur(calc(var(--b) * var(--bk))); -webkit-backdrop-filter: blur(calc(var(--b) * var(--bk))); mask-image: linear-gradient(#000, transparent); -webkit-mask-image: linear-gradient(#000, transparent); }
.slide-blur i:nth-child(1) { --b: 1.5px; --t: 34%; }
.slide-blur i:nth-child(2) { --b: 3px; --t: 24%; }
.slide-blur i:nth-child(3) { --b: 6px; --t: 15%; }
.slide-blur i:nth-child(4) { --b: 12px; --t: 7%; }
@media (max-width: 1023px) {
  .slide-blur i { bottom: 0; height: auto; mask-image: linear-gradient(180deg, #000 0, transparent var(--t), transparent calc(100% - var(--d)), #000 100%); -webkit-mask-image: linear-gradient(180deg, #000 0, transparent var(--t), transparent calc(100% - var(--d)), #000 100%); }
  .slide-blur i:nth-child(1) { --d: 46%; }
  .slide-blur i:nth-child(2) { --d: 34%; }
  .slide-blur i:nth-child(3) { --d: 22%; }
  .slide-blur i:nth-child(4) { --d: 11%; }
  /* на телефоне текст стоит в верхних двух третях — затемнение держим и там */
  .hero-slide::after { background: linear-gradient(180deg, rgba(52, 53, 60, .7) 0%, rgba(52, 53, 60, .5) 55%, rgba(52, 53, 60, .35) 72%, rgba(52, 53, 60, .7) 100%), rgba(52, 53, 60, .2); }
}
.hero-slide__bottom { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-slide__bottom p { font-size: 1rem; line-height: 1.25; letter-spacing: -.02rem; }
.hero-slide__buttons { display: flex; flex-direction: column; gap: .5rem; }

@media (min-width: 1024px) {
  .hero { min-height: 45rem; }
  .hero-slide__wrap { justify-content: space-between; padding-block: 2rem 3rem; }
  .hero-slide__top { flex-direction: row; justify-content: space-between; margin-bottom: 2rem; }
  .hero-slide__title { font-size: 4rem; line-height: .9375; }
  .hero-slide__aside { flex-shrink: 0; width: 19rem; font-size: .875rem; line-height: 1.28571; letter-spacing: -.00875rem; }
  .hero-slide__bottom { gap: 2rem; max-width: 42.5rem; margin-top: auto; }
  .hero-slide__bottom p { font-size: 1.125rem; line-height: 1.22; letter-spacing: -.0225rem; }
  .hero-slide__buttons { flex-direction: row; }
}

/* стрелки: большие круги за краем экрана, кольцо проявляется при наведении */
.hero__nav { display: none; }
@media (min-width: 1024px) {
  .hero__nav {
    position: absolute; top: 50%; left: var(--pad); right: var(--pad); z-index: 3;
    display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none;
  }
  .btn-hero {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 17.5rem; height: 17.5rem; border-radius: 50%; color: var(--c-white); pointer-events: auto;
  }
  .btn-hero:first-child { margin-left: -8rem; justify-content: flex-end; padding-right: 8rem; }
  .btn-hero:last-child { margin-right: -8rem; justify-content: flex-start; padding-left: 8rem; }
  .btn-hero::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--c-white-24); border-radius: 50%; transform: scale(0); transition: transform .3s ease; }
  .btn-hero:hover::before { transform: scale(1); }
  .btn-hero svg { width: 1.5rem; height: 1.5rem; }
}

/* миниатюры слайдов с полосой хода автолистания */
.hero-thumbs {
  --progress: 0%;
  position: absolute; z-index: 3; bottom: 1rem; left: var(--pad);
  display: flex; align-items: flex-end; gap: .5rem;
}
.hero-thumb {
  position: relative; overflow: hidden; flex-shrink: 0;
  width: 3.5rem; height: 6.25rem; border-radius: var(--radius);
  opacity: .925; transition: width .3s ease, height .3s ease, opacity .3s ease;
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb::before { content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(255, 255, 255, .08); transition: background-color .3s ease; }
.hero-thumb.is-active { width: 4.3125rem; height: 7.625rem; opacity: 1; }
.hero-thumb.is-active::before { background: transparent; }
.hero-thumb.is-active::after {
  content: ""; position: absolute; left: 0; bottom: 0; z-index: 3;
  width: var(--progress); height: .1875rem; background: rgba(255, 255, 255, .7);
}
@media (min-width: 1024px) {
  .hero-thumbs { left: auto; right: var(--pad); bottom: 3rem; }
  .hero-thumb { width: 4rem; height: 7.125rem; }
  .hero-thumb.is-active { width: 5rem; height: 8.875rem; }
}
/* на телефоне миниатюрам нужно место под кнопками */
/* на телефоне и планшете — просто полоски без картинок (Павлон 22.11): высота кнопки 1.75rem — зона нажатия, видна линия 2px; у активной идёт ход автолистания */
@media (max-width: 1023px) {
  .hero-slide__bottom { margin-bottom: 3rem; }
  .hero-slide__aside { display: none; } /* «Ангар, который не нужно ждать…» на телефоне лишний (Павлон 22.11) */
  .hero-slide__wrap { justify-content: flex-end; } /* весь текст и кнопки прижаты вниз, к полоскам (Павлон 22.11): от кнопок до полосок 1.5rem */
  .hero-thumbs { right: var(--pad); bottom: .75rem; align-items: center; gap: .375rem; }
  .hero-thumb, .hero-thumb.is-active { flex: 1 1 0; width: auto; height: 1.75rem; border-radius: 0; opacity: 1; }
  .hero-thumb img { display: none; }
  .hero-thumb::before, .hero-thumb.is-active::before { inset: auto 0 calc(50% - 1px); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
  .hero-thumb.is-active::after { bottom: calc(50% - 1px); height: 2px; border-radius: 2px; background: #fff; }
}

/* круглая кнопка связи в углу */
.fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 15;
  display: flex; align-items: center; justify-content: center;
  width: 4.25rem; height: 4.25rem; border-radius: 50%;
  background: var(--c-accent); color: var(--c-accent-text);
  transition: background-color .3s ease, transform .3s ease;
}
.fab:hover { background: var(--c-accent-hover); }
.fab svg { width: 1.75rem; height: 1.75rem; }
@media (min-width: 1024px) {
  .fab { right: 1.375rem; bottom: 1.25rem; }
}

/* ---------- окно «Узнать стоимость» ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; }
.modal__shade { position: absolute; inset: 0; background: rgba(52, 53, 60, .6); animation: fade .3s ease both; }
.modal__panel {
  position: relative; width: 100%; height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--c-white); color: var(--c-black);
  padding: 4.5rem var(--pad) 2rem;
  animation: slide .45s cubic-bezier(.2, .7, .2, 1) both;
}
.modal__close { position: absolute; z-index: 2; top: 1rem; right: 1rem; --b: var(--c-stroke-16); }
/* телефон и планшет: крестик в одной строке с переключателем «Заявка | Чат», той же высоты 3rem, справа от него (Павлон 22.11: «прижимается к селекту») */
@media (max-width: 1023px) {
  .modal__panel { padding-top: 1.25rem; }
  .modal__close { top: 1.25rem; right: var(--pad); width: 3rem; height: 3rem; }
  .mswitch { margin-right: 4rem; } /* крестик 3rem + зазор 1rem */
  .lead-form .lead-form__row { gap: .5rem; } /* двойной класс: общее правило ряда ниже по файлу */
  .lead-form__row .field { padding-inline: .625rem; } /* «Ширина, м» влезает целиком и на 360 px (Павлон 22.11: «текст не влезает») */
}
@media (min-width: 1024px) {
  .modal__panel { width: 37.5rem; padding: 2.25rem var(--pad) 2.25rem 2.25rem; }
  .modal__close { top: 2.25rem; right: calc(37.5rem + 1.5rem); --b: var(--c-white); }
}
@keyframes slide { from { transform: translateX(3rem); opacity: 0; } to { transform: none; opacity: 1; } }

.lead-form, .lead-done { display: flex; flex-direction: column; }
.lead-form__title { font-size: 1.75rem; line-height: .95; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.lead-form__lead { font-size: 1rem; line-height: 1.25; margin-bottom: 1.5rem; }
.lead-form__lead a { border-bottom: 1px solid var(--c-stroke-16); }
.lead-form__socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 2.5rem; }
.soc-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.5rem; padding: .5rem;
  border: 1px solid var(--c-stroke-16); border-radius: var(--radius);
  font-weight: 500; font-size: 1rem;
  transition: border-color .3s ease;
}
.soc-btn:hover { border-color: var(--c-black); }
.soc-btn svg { width: 1.25rem; height: 1.25rem; }
.soc-btn .i-max { width: 1.125rem; height: 1.125rem; }
.lead-form__group { border: 0; display: grid; gap: .875rem; margin-bottom: 2rem; }
.lead-form__group legend { font-size: 1.125rem; line-height: 1.22; margin-bottom: 1rem; padding: 0; }
.lead-form__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .875rem; } /* ширина, длина, высота (Павлон 21.11: как в форме tentmax.ru) */
.field { position: relative; display: flex; align-items: center; min-height: 3.5rem; padding: 0 1rem; border: 1px solid var(--c-stroke-16); border-radius: var(--radius); transition: border-color .3s ease; }
.field:focus-within { border-color: var(--c-black); }
.field input { width: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--c-black); letter-spacing: -.02rem; -moz-appearance: textfield; }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input::placeholder { color: var(--c-stroke-50); }
.field i { position: absolute; top: .625rem; right: .875rem; font-style: normal; line-height: 1; color: var(--c-accent); pointer-events: none; } /* звёздочка — в правом верхнем углу поля с отступом (Павлон 21.11) */
.field.is-error { border-color: #e5484d; }
.check { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.5rem; font-size: .875rem; line-height: 1.3; color: var(--c-text-60); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 1.25rem; height: 1.25rem; margin: 0; border: 1px solid var(--c-stroke-50); border-radius: .25rem;
  display: grid; place-content: center; cursor: pointer;
}
.check input::after { content: ""; width: .625rem; height: .375rem; border: 2px solid var(--c-white); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .15s ease; }
.check input:checked { background: var(--c-black); border-color: var(--c-black); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check a { color: var(--c-black); border-bottom: 1px solid var(--c-stroke-16); }
.lead-form__submit { width: 100%; }
.lead-done .btn { align-self: flex-start; }
@media (min-width: 1024px) {
  .lead-form__title { font-size: 2.625rem; line-height: .95; } /* «Узнайте стоимость ангара» в одну строку (Павлон 22.11): было 3.25rem */
  .lead-form__lead { font-size: 1.125rem; line-height: 1.22; letter-spacing: -.0225rem; }
}

/* плашка про куки — строка по низу с крестиком, как на Ятобоксе (Павлон 22.11), но компактная, тёмная и полупрозрачная,
   с размытием фото под ней (Павлон 22.11: «нахрена такого размера, сделай меньше и тёмной прозрачной, чтобы под ней блюр»).
   До ответа не закрывает главное действие первого экрана: кнопки, список 01–05 и полоски слайдов приподняты на высоту плашки,
   после крестика плавно опускаются на место. */
.cookie {
  position: fixed; z-index: 16; left: .75rem; right: 6rem; bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
  padding: .625rem .375rem .625rem .875rem;
  background: rgba(30, 32, 36, .55); color: var(--c-white);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: .5rem;
  font-weight: 500; font-size: .8125rem; line-height: 1.3;
}
.cookie p { flex: 1 1 auto; margin: 0; }
.cookie a { color: var(--c-white); border-bottom: 1px solid rgba(255, 255, 255, .4); transition: border-color .3s ease; }
.cookie a:hover { border-bottom-color: var(--c-white); }
.cookie__x { flex: 0 0 auto; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; color: var(--c-white); transition: background-color .3s ease; }
.cookie__x:hover { background: rgba(255, 255, 255, .14); }
.cookie__x svg { width: .875rem; height: .875rem; }
.cookie-done .cookie { display: none; }
.hero-slide__wrap, .hero-thumbs { transition: padding-bottom .4s ease, bottom .4s ease; }
@media (max-width: 1023px) {
  html:not(.cookie-done) .hero-slide__wrap { padding-bottom: 6rem; }
  html:not(.cookie-done) .hero-thumbs { bottom: 5.5rem; }
}
@media (min-width: 1024px) {
  .cookie { left: var(--pad); right: auto; bottom: 1.25rem; max-width: calc(100% - 2 * var(--pad) - 6rem); padding: .5rem .375rem .5rem .875rem; }
  html:not(.cookie-done) .hero-slide__wrap { padding-bottom: 6rem; }
  html:not(.cookie-done) .hero-thumbs { bottom: 6rem; }
}

/* ---------- экран 2: направления — по блоку «Услуги» Арт Курьера (Павлон 22.11: «2ой экран переделываем, совсем по-другому, изучай референсы»)
   Эталон https://artcourier.greencow-work.ru/ (кадр 1440): подпись и заголовок по центру, вступление между линиями, вкладки капсом 11px,
   сцена: слева фото 26% (под ним малое, справа в колонке), по центру карточка цвета бренда 38% высотой 584px, справа квадрат с предметом 26%,
   поля 2,8%, зазоры 2,2%; в карточке номер «1 — 4», название, текст, кнопка-контур, внизу белая кнопка и стрелки.
   Телефон — как у эталона: аккордеон, открытая строка на цвете бренда, без левых фото. ---------- */
.dirs { background: var(--c-white); color: var(--c-black); padding-top: 4rem; }
.dirs__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dirs__pre {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem;
  font-weight: 500; font-size: .75rem; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--c-accent);
}
.dirs__pre::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-accent); }
.dirs__title { margin: 0; max-width: 60rem; font-weight: 400; font-size: 2rem; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.dirs__intro { display: grid; margin-top: 2.5rem; border-top: 1px solid var(--c-stroke-16); }
.dirs__intro p { margin: 0; padding: 1.5rem var(--pad); font-size: 1rem; line-height: 1.4; color: rgba(52, 53, 60, .8); }
.dirs__intro .dirs__fact { border-top: 1px solid var(--c-stroke-16); font-weight: 500; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c-black); }
.dirs__tabs { display: none; }

/* направление на телефоне — строка аккордеона */
.dir { border-top: 1px solid var(--c-stroke-16); transition: background-color .3s ease; }
.dir:last-child { border-bottom: 1px solid var(--c-stroke-16); }
.dir__head { margin: 0; }
.dir__head button {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 4.125rem; padding: .75rem var(--pad);
  font-weight: 400; font-size: 1.375rem; line-height: 1.1; letter-spacing: -.02em; text-align: left; color: inherit;
}
.dir__plus { position: relative; flex: 0 0 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--c-accent); transition: background-color .3s ease, transform .3s ease; }
.dir__plus::before, .dir__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: .75rem; height: 1.5px; margin: -.75px 0 0 -.375rem; background: #fff; transition: background-color .3s ease; }
.dir__plus::after { transform: rotate(90deg); }
.dir__body { display: none; padding: .5rem var(--pad) 2rem; }
.dir.is-open { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.dir.is-open + .dir { border-top-color: var(--c-accent); }
.dir.is-open .dir__plus { background: #fff; transform: rotate(45deg); }
.dir.is-open .dir__plus::before, .dir.is-open .dir__plus::after { background: var(--c-black); }
.dir.is-open .dir__body { display: flex; flex-direction: column; } /* как у эталона: под названием квадрат с машиной, ниже текст и кнопки */
.dir__ph1, .dir__ph2 { display: none; }
.dir__ph1, .dir__ph2, .dir__ill { margin: 0; overflow: hidden; background: #f2f2f2; }
.dir__ph1 img, .dir__ph2 img, .dir__ill img { display: block; width: 100%; height: 100%; object-fit: cover; }
.is-cut img { mix-blend-mode: multiply; } /* у фото каталога белый фон — растворяем его в сером квадрате */
.dir__ill img { object-fit: contain; padding: 8%; }
.dir__ill { order: -1; width: 57%; aspect-ratio: 1; margin: 0 0 .5rem auto; }
.dir__card { display: flex; flex-wrap: wrap; align-items: flex-start; }
.dir__count, .dir__title, .dir__arrows { display: none; }
.dir__text { flex: 0 0 100%; margin: 1.5rem 0 0; font-size: 1rem; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.dir__tags { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: .375rem; margin-top: 1.25rem; }
.dir__tags .tag { border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.dir__tags .tag:hover { background: #fff; color: var(--c-accent); }
.dir__bar { display: contents; }
.dir__more, .dir__cta { flex: 0 0 100%; padding-inline: .75rem; } /* две кнопки в строку на 375 не входят («Подобрать оборудование» длиннее, чем у эталона) — друг под другом, главная первой */
.dir__cta { order: 2; margin-top: 2rem; --bg: #fff; --b: #fff; --fg: var(--c-black); }
.dir__more { order: 3; margin-top: .5rem; }
.dir__cta:hover { --bg: var(--c-grey); --b: var(--c-grey); }

@media (min-width: 1024px) {
  .dirs { padding-top: 7.5rem; }
  .dirs__pre { font-size: .6875rem; margin-bottom: 2rem; }
  .dirs__title { font-size: 3.5rem; line-height: 1.04; }
  .dirs__intro { grid-template-columns: 1fr 1fr; margin-top: 4.5rem; border-bottom: 1px solid var(--c-stroke-16); }
  .dirs__intro p { max-width: 42.5rem; padding: 2rem var(--pad); font-size: 1.125rem; }
  .dirs__intro .dirs__fact { display: flex; align-items: center; border-top: 0; border-left: 1px solid var(--c-stroke-16); font-size: .6875rem; }
  .dirs__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 2.125rem var(--pad) 3rem; }
  .dirs__tab {
    display: inline-flex; align-items: center; gap: .5rem;
    font-weight: 500; font-size: max(10px, .6875rem); line-height: 1.75rem; letter-spacing: .04em; text-transform: uppercase;
    color: rgba(52, 53, 60, .7); transition: color .3s ease;
  }
  .dirs__tab::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity .3s ease; }
  .dirs__tab:hover { color: var(--c-black); }
  .dirs__tab.is-active { color: var(--c-accent); }
  .dirs__tab.is-active::before { opacity: 1; }

  /* сцена: все направления в одной клетке, видно активное */
  .dirs__stage { display: grid; padding-bottom: 7.5rem; }
  .dir, .dir:last-child, .dir.is-open { grid-area: 1 / 1; border: 0; background: none; color: inherit; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
  .dir.is-active { opacity: 1; visibility: visible; }
  .dir__head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* заголовок для скринридера; видимое название — в карточке */
  .dir__body, .dir.is-open .dir__body {
    display: grid; grid-template-columns: 26fr 38fr 26fr; grid-template-rows: auto auto; align-content: start; column-gap: 2rem; padding: 0;
  }
  .dir__ph1 { display: block; grid-area: 1 / 1; aspect-ratio: 521 / 351; }
  .dir__ph2 { display: block; grid-area: 2 / 1; justify-self: end; align-self: start; width: 47%; aspect-ratio: 244 / 323; margin-top: 2rem; }
  .dir__ill { grid-area: 1 / 3 / 3; align-self: start; width: 100%; margin: 0; }
  .dir__card {
    grid-area: 1 / 2 / 3; flex-direction: column; flex-wrap: nowrap; align-items: center; min-height: 39rem; /* у эталона 584 на 1440; 39rem — чтобы карточка с названием в две строки («Производственные линии») не прыгала по высоте */ padding: 1.5rem 2rem 2rem;
    background: var(--c-accent); color: #fff; text-align: center;
  }
  .dir__count { display: block; margin: 0; font-weight: 500; font-size: .6875rem; line-height: 1.75rem; letter-spacing: .04em; color: rgba(255, 255, 255, .75); }
  .dir__title { display: block; margin: 3.25rem 0 0; font-weight: 400; font-size: 3rem; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
  .dir__text { flex: none; max-width: 24rem; margin-top: 1.5rem; }
  .dir__tags { flex: none; justify-content: center; max-width: 28rem; margin-top: 1.5rem; }
  .dir__more { order: 0; flex: none; margin-top: 2rem; padding-inline: 1.5625rem; }
  .dir__bar { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 2rem; }
  .dir__cta { order: 0; flex: none; margin: 0; padding-inline: 1.5625rem; }
  .dir__arrows { display: flex; gap: .5rem; }
}

/* чип раздела — общий для всего сайта (был в блоке экрана 2, вынесен при переделке 22.11) */
.tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 1.625rem; padding: .25rem .625rem; border-radius: 1000px;
  font-weight: 500; font-size: .75rem; line-height: 1.1667;
  transition: background-color .3s ease, color .3s ease;
}
@media (min-width: 1024px) {
  .tag { min-height: 1.75rem; padding: .25rem .75rem; font-size: .875rem; line-height: 1.28571; letter-spacing: -.00875rem; }
}

/* общий заголовок разделов (экраны 2 и 3 — одним правилом) */
.sec-title { margin: 0; font-weight: 400; font-size: 2.25rem; line-height: .95; letter-spacing: -.03em; }
.sec-count { display: none; flex-shrink: 0; font-size: 2rem; line-height: .89; letter-spacing: -.03em; } /* «/4» на телефоне и планшете убран (Павлон 22.11) */
@media (min-width: 1024px) {
  .sec-count { display: block; }
  .sec-title { font-size: 4.5rem; line-height: .9375; max-width: 72rem; }
  .sec-count { font-size: 4.5rem; }
}

/* ---------- экран 3: конечный продукт — по блоку «Преимущества» DepoGold (Павлон 22.11: «после меню переделывай 3 экран»)
   Эталон https://depo.greencow-work.ru/ (1440): шапка надвое — слева подпись капсом 11px, справа заголовок и абзац (поля 120/40/96);
   сетка ячеек во всю ширину за линиями, 3 в ряд, ячейка 475×496, поля 32/40/40: номер капсом, название 20/28, предмет по центру,
   квадратная кнопка 48 в правом нижнем углу. У нас светлый вариант: серый фон после белого экрана 2,
   продукт с белым фоном растворяется в сером (multiply), ячейка — ссылка в подборку каталога, при наведении белеет. ---------- */
.works { background: #f2f2f2; color: var(--c-black); padding-block: 4rem; }
.works__head { display: grid; gap: 1rem; padding: 0 var(--pad) 2.5rem; }
.works__pre {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0;
  font-weight: 500; font-size: .75rem; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--c-accent);
}
.works__pre::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-accent); }
.works__main { display: grid; gap: 1.25rem; }
.works__title { margin: 0; font-weight: 400; font-size: 2rem; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.works__lead { margin: 1rem 0 0; font-size: 1rem; line-height: 1.4; color: rgba(52, 53, 60, .8); }
.works__grid { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-stroke-12); }
.fp { border-bottom: 1px solid var(--c-stroke-12); }
.fp__in {
  display: grid; grid-template-columns: 5.5rem 1fr auto; grid-template-areas: "img top go" "img title go" "img out go";
  column-gap: 1rem; align-items: center; padding: 1rem var(--pad); transition: background-color .3s ease;
}
.fp__top { grid-area: top; display: flex; gap: .75rem; font-weight: 500; font-size: .6875rem; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: rgba(52, 53, 60, .5); }
.fp__n { font-variant-numeric: tabular-nums; }
.fp__title { grid-area: title; margin: .25rem 0; font-weight: 400; font-size: 1.125rem; line-height: 1.2; letter-spacing: -.02em; }
.fp__img { grid-area: img; width: 5.5rem; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s ease; }
.fp__out { grid-area: out; font-size: .875rem; line-height: 1.3; color: rgba(52, 53, 60, .6); }
.fp__out b { font-weight: 500; color: var(--c-black); }
.fp__go { grid-area: go; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--c-accent); color: var(--c-white); transition: background-color .3s ease; }
.fp__go svg { width: 1rem; height: 1rem; transition: transform .3s ease; }
@media (hover: hover) {
  .fp__in:hover { background: var(--c-white); }
  .fp__in:hover .fp__img { transform: scale(1.06); }
  .fp__in:hover .fp__go { background: var(--c-accent-hover); }
  .fp__in:hover .fp__go svg { transform: translateX(.125rem); }
}
.works__more { display: flex; flex-direction: column; gap: .5rem; margin-top: 2.5rem; }

@media (min-width: 1024px) {
  .works { padding-block: 7.5rem 7.5rem; }
  /* шапка: подпись и заголовок слева, абзац справа по низу заголовка (Павлон 22.11: «огромное пустое место с левой стороны») */
  .works__head { grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); align-items: end; gap: 5rem; padding: 0 var(--pad) 5rem; }
  .works__pre { font-size: .6875rem; }
  .works__title { font-size: 3.5rem; line-height: 1.04; }
  .works__lead { margin: 0; font-size: 1.125rem; }
  .works__grid { grid-template-columns: repeat(3, 1fr); }
  .fp { border-left: 1px solid var(--c-stroke-12); }
  .fp:nth-child(3n + 1) { border-left: 0; }
  .fp__in {
    height: 100%; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "top top" "title title" "img img" "out go";
    row-gap: 0; align-items: end; padding: 2rem 2.5rem 2.5rem;
  }
  .fp__top { align-self: start; }
  .fp__title { margin: 1.25rem 0 0; font-size: 1.5rem; line-height: 1.2; min-height: 2.4em; }
  .fp__img { justify-self: center; align-self: center; width: 15rem; margin: 1.5rem 0; }
  .fp__out { align-self: center; font-size: .9375rem; }
  .fp__go { width: 3rem; height: 3rem; }
  .works__more { flex-direction: row; justify-content: center; gap: 1rem; margin-top: 4rem; }
}

/* ---------- экран 4: отзывы (по блоку «Отзывы пациентов» образца) ---------- */
.reviews { background: var(--c-white); color: var(--c-black); padding-block: 4rem; }
.reviews__head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.reviews__title { margin: 0; font-weight: 400; font-size: 2.25rem; line-height: .95; letter-spacing: -.03em; }
/* порядок раздела (Павлон 21.11): заголовок производства + цифры + фото → «Что говорят клиенты» + отзывы → логотипы */
.reviews__title--balance { text-wrap: balance; } /* «Производство / в Набережных Челнах», а не «Челнах» сиротой */
.reviews--prod { background: var(--c-grey); padding-bottom: 0; }
.reviews--prod .reviews__head { margin-bottom: 0; } /* до фото — только поле ленты (3rem на компьютере, 4rem на телефоне) */
.facts.facts--after { border-top: 0; } /* двойной класс: общее .facts ниже по файлу перебивало и рисовало линию */ /* цифры под фото (Павлон 21.11): линии сверху нет, снизу есть */ /* производство — на сером (Павлон 21.11), отзывы и логотипы — на белом */

.reviews__lead { font-size: 1rem; line-height: 1.25; color: rgba(52, 53, 60, .72); }
/* ряд фактов на месте ряда оценок площадок у образца */
/* телефон и планшет: строки «число + подпись справа» (Павлон 22.11: сетка 2×3 «выглядит безобразно» — пятая клетка одна, «региона России» в две строки) */
.facts { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--c-stroke-12); }
.facts__item { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.125rem var(--pad); border-bottom: 1px solid var(--c-stroke-12); }
.facts__item > span { text-align: right; }
.facts__item > span { font-size: .875rem; line-height: 1.28571; color: rgba(52, 53, 60, .6); }
.facts__item p { display: flex; align-items: baseline; gap: .375rem; }
.facts__item b { font-weight: 400; font-size: 2.5rem; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } /* цифры одной ширины: пробег не дёргает подписи */
.facts__item small { font-size: .875rem; color: rgba(52, 53, 60, .6); }
.reviews__list {
  display: flex; gap: .5rem; margin: 2rem calc(var(--pad) * -1) 0; padding-inline: var(--pad);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none;
}
.reviews__list::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
  .reviews { padding-block: 7.5rem; }
  .reviews__head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 5rem; margin-bottom: 3rem; }
  .reviews__title { font-size: 3.25rem; line-height: .923; }
  .reviews--prod { padding-top: 6rem; padding-bottom: 7.5rem; }
  .facts--after { border-bottom: 1px solid var(--c-stroke-12); }

  .reviews__lead { max-width: none; width: 36rem; font-size: 1.125rem; line-height: 1.22; }
  .facts { grid-template-columns: repeat(5, 1fr); }
  .facts__item { flex-direction: column; justify-content: space-between; align-items: stretch; gap: 1.5rem; min-height: 10rem; padding: 1rem 2.25rem 2rem; border-bottom: 0; border-right: 1px solid var(--c-stroke-12); }
  .facts__item > span { text-align: left; }
  .facts__item:last-child { border-right: 0; }
  .facts__item b { font-size: 3.25rem; }
  .reviews__list { margin-top: 1.5rem; }

}



/* ---------- производство в Набережных Челнах (Павлон 21.11: между цифрами и логотипами, фото крупно).
   Лента фото «высокая / низкая» — по «Галерее клиники» образца (карточки 454 px, 578 / 341, зазор 8 на 1440).
   Огромный заголовок с наездом фото у образца — на одну короткую строку; у нас две, вышло как поломка («очень плохо») —
   заголовок обычный, как у разделов, вводная справа, как в шапке отзывов ---------- */
.prod { padding-block: 0 4rem; } /* сверху — только поле ленты 2rem (Павлон 22.11: «лишний промежуток под текстом», было 4 + 2rem) */
.prod__list {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 2rem; padding-inline: var(--pad); scroll-padding-inline: var(--pad);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.prod__list::-webkit-scrollbar { display: none; }
.prod__card { position: relative; flex: 0 0 15.65rem; margin: 0; scroll-snap-align: start; overflow: hidden; border-radius: var(--radius); background: var(--c-grey); height: 20.75rem; }
.prod__card img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.prod__card .tag { position: absolute; left: .75rem; bottom: .75rem; max-width: calc(100% - 1.5rem); background: rgba(255, 255, 255, .92); color: var(--c-black); }
@media (min-width: 1024px) {
  /* фото одного размера, видно три; блок прилипает, прокрутка страницы ведёт ленту справа налево (js: data-prod-pin задаёт высоту = экран + путь ленты) */
  .prod { padding: 0; } /* без линии над фото (Павлон 21.11: «убери нижний разделитель») */
  .prod { --ch: min(72svh, calc((100vw - 2 * var(--pad) - 1rem) / 3 * 1.5)); } /* фото ниже экрана (Павлон 21.11: «листается, а я не вижу фото»): кадр целиком в экране ещё до прилипания, лента трогается только тогда */ /* высота фото: почти весь экран, но не уже 2 : 3 */
  .prod__sticky { position: sticky; top: var(--sticky-top); transition: top .45s cubic-bezier(.2, .7, .2, 1); padding-block: 3rem; overflow: hidden; } /* прилипает к верху (посередине поле до фото росло на глазах); поле 3rem — Павлон: 1.5 «перебор» */
  .prod__list { margin-top: 0; overflow: visible; scroll-snap-type: none; will-change: transform; }
  .prod__card { flex-basis: calc((100% - 1rem) / 3); height: var(--ch); }
  .prod__card .tag { left: 1.25rem; bottom: 1.25rem; }
}

/* ---------- экран 4: каталог по объёму выпуска (Павлон 22.11: «делай следующий экран»).
   Главная цифра карточки — производительность, крупно и цветом бренда, как «30 лет / 200+» в цифрах Арт Курьера;
   раскладка — сетка ячеек за линиями, как «Преимущества» DepoGold, шапка надвое. Фон белый: тёмный здесь Павлон отверг 21.11,
   а серый теперь у экрана 3 — белый даёт смену фона. Лента со стрелками убрана. ---------- */
.ready { background: var(--c-white); color: var(--c-black); padding-block: 4rem; }
.ready__head { display: grid; gap: 1rem; padding: 0 var(--pad) 2.5rem; }
.ready__pre {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0;
  font-weight: 500; font-size: .75rem; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--c-accent);
}
.ready__pre::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-accent); }
.ready__main { display: grid; gap: 1.25rem; }
.ready__title { margin: 0; font-weight: 400; font-size: 2rem; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.ready__lead { margin: 1rem 0 0; font-size: 1rem; line-height: 1.4; color: rgba(52, 53, 60, .8); }
.ready__grid { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-stroke-12); }
.rc { border-bottom: 1px solid var(--c-stroke-12); }
.rc__in { display: flex; flex-direction: column; height: 100%; padding: 1.5rem var(--pad) 1.75rem; }
.rc__top { display: flex; justify-content: space-between; gap: 1rem; font-weight: 500; font-size: .6875rem; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: rgba(52, 53, 60, .5); }
.rc__n { font-variant-numeric: tabular-nums; }
.rc__val { display: flex; align-items: flex-start; gap: .375rem; margin: 1.25rem 0 0; font-weight: 300; font-size: 3rem; line-height: 1; letter-spacing: -.04em; color: var(--c-accent); white-space: nowrap; }
.rc__pre, .rc__unit { font-weight: 500; font-size: .875rem; line-height: 1.2; letter-spacing: .02em; }
.rc__pre { align-self: flex-end; margin-bottom: .3em; }
.rc__unit { margin-top: .2em; }
.rc__img { aspect-ratio: 16 / 10; margin: 1.5rem 0 0; overflow: hidden; background: #f2f2f2; } /* на телефоне ниже — шесть карточек подряд */
.rc__img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform .45s ease; }
.rc__img.is-studio img { object-fit: cover; padding: 0; mix-blend-mode: normal; } /* машина на своём сером студийном фоне — заполняет квадрат целиком */
.rc__kind { margin: 1.25rem 0 0; font-weight: 400; font-size: 1.375rem; line-height: 1.15; letter-spacing: -.02em; }
.rc__kind a::after { content: ""; position: absolute; inset: 0; } /* вся ячейка — ссылка на карточку товара */
.rc__in { position: relative; }
.rc__model { margin: .375rem 0 0; font-size: .9375rem; line-height: 1.3; color: rgba(52, 53, 60, .6); }
.rc__price {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .375rem; align-self: flex-start; margin-top: 1.25rem; padding-top: .75rem;
  font-weight: 500; font-size: .9375rem; color: var(--c-accent); transition: color .3s ease;
}
.rc__price svg { width: .875rem; height: .875rem; transition: transform .3s ease; }
.rc__price:hover { color: var(--c-accent-hover); }
.rc__price:hover svg { transform: translateX(.125rem); }
@media (hover: hover) { .rc__in:hover .rc__img img { transform: scale(1.04); } }
.ready__more { display: flex; justify-content: center; margin-top: 2.5rem; }

@media (min-width: 1024px) {
  .ready { padding-block: 7.5rem; }
  /* шапка: подпись и заголовок слева, абзац справа по низу заголовка (Павлон 22.11: «огромное пустое место с левой стороны») */
  .ready__head { grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); align-items: end; gap: 5rem; padding: 0 var(--pad) 5rem; }
  .ready__pre { font-size: .6875rem; }
  .ready__title { font-size: 3.5rem; line-height: 1.04; }
  .ready__lead { margin: 0; font-size: 1.125rem; }
  .ready__grid { grid-template-columns: repeat(3, 1fr); }
  .rc { border-left: 1px solid var(--c-stroke-12); }
  .rc:nth-child(3n + 1) { border-left: 0; }
  .rc__in { padding: 2rem 2.5rem 2.5rem; }
  .rc__val { margin-top: 1.5rem; font-size: 4.5rem; }
  .rc__pre, .rc__unit { font-size: 1rem; }
  .rc__img { aspect-ratio: 4 / 3; margin-top: 2rem; }
  .rc__kind { margin-top: 1.75rem; font-size: 1.625rem; }
  .rc__price { margin-top: auto; padding-top: 1.5rem; }
  .ready__more { margin-top: 4rem; }
}

/* ---------- «Производим и монтируем сами» — по «Современной цифровой стоматологии» образца:
   фото на весь экран при прокрутке сжимается в окошко в заголовке (js: data-why), ниже 4 колонки с большой цифрой ---------- */
.why { background: var(--c-white); color: var(--c-black); padding-top: 4rem; } /* тело страницы тёмное — белый фон каждый раздел задаёт сам */
.why__sticky { position: relative; padding-inline: var(--pad); }
.why__title { margin: 0; font-weight: 400; font-size: 2.25rem; line-height: .95; letter-spacing: -.045em; }
.why__title > span { display: block; }
.why__slot { display: none; vertical-align: middle; width: 4.25rem; height: 2.36rem; margin-left: .08em; border-radius: var(--radius); overflow: hidden; transform: translateY(-.06em); }
.why__slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.why__media { display: none; }
.why__intro { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.why__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.why__lead p { font-size: 1rem; line-height: 1.25; }
.why__lead .btn { width: 100%; }
.num-cards { display: grid; margin-top: 2.5rem; }
.num-card { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: 13.8rem; padding: 1.5rem 1rem 2.5rem; border-top: 1px solid var(--c-stroke-12); }
.num-card__num { display: flex; align-items: flex-start; gap: .375rem; }
.num-card__num b { font-weight: 400; font-size: 3.5rem; line-height: .83; letter-spacing: -.05em; white-space: nowrap; }
.num-card__num small { font-size: .875rem; line-height: 1.25; color: rgba(52, 53, 60, .55); }
.num-card__text h3 { margin: 0; font-weight: 400; font-size: 1.375rem; line-height: 1; letter-spacing: -.04em; }
.num-card__more { display: grid; grid-template-rows: 1fr; } /* на телефоне и планшете описание видно всегда: наведения там нет */
.num-card__more > p { overflow: hidden; min-height: 0; }
.num-card__more > p::before { content: ""; display: block; height: .5rem; } /* отступ внутри обрезаемой части — свёрнутое описание не занимает места */
.num-card__text p { font-size: 1rem; line-height: 1.25; color: rgba(52, 53, 60, .6); }
@media (min-width: 1024px) {
  .why { padding-top: 0; }
  .why__sticky { position: sticky; top: 0; display: flex; flex-direction: column; padding-block: 5rem; } /* блок по высоте содержимого, заголовок сверху: фото сжимается в окошко у верха экрана, абзац и кнопка уже под ним (Павлон 22.11: «сверху дыра»; было 100svh с заголовком внизу) */
  .why__title { font-size: 7rem; line-height: .8; } /* меньше образца (8.5): «и монтируем» должно кончаться до окошка (Павлон 21.11); .8 вместо .735 — «д» и «р» не упираются во вторую строку */
  .why__title { position: relative; }
  .why__slot { position: absolute; left: var(--slot-x, 46.5rem); top: var(--slot-y, .4em); width: calc(var(--slot-h, 2.3em) * 1.5); height: var(--slot-h, 2.3em); margin: 0; transform: none; } /* левый край над абзацем, верх — по верху «П», низ — по нижней линии «сами» (Павлон 21.11; js меряет по шрифту) */
  .why__media { display: block; position: absolute; left: 0; top: 0; z-index: 2; width: 100%; height: 100svh; object-fit: cover; pointer-events: none; }
  .why__intro { margin-top: 5rem; }
  .why__slot { display: block; } /* на телефоне и планшете окошка нет (Павлон 22.11: «ужас»); «TENTMAX /» убран везде (Павлон 22.11) */
  /* абзац — слева под заголовком, на месте «TENTMAX /»; справа кнопка шириной с окошко фото и под ним (Павлон 22.11) */
  .why__lead { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; align-items: start; }
  .why__lead p { grid-column: 1; max-width: 36rem; font-size: 1.125rem; line-height: 1.22; }
  .why__lead .btn { grid-column: 2; justify-self: start; width: auto; } /* ширину = окошку задаёт js */
  .num-cards { grid-template-columns: repeat(4, 1fr); margin-top: 3.35rem; } /* кнопка → цифры 167 px на 1920 (было 250; Павлон 22.11: «сократи на 1/3») */
  .num-card { min-height: 30.27rem; padding: 2.25rem; border-left: 1px solid var(--c-stroke-12); }
  .num-card:first-child { border-left: 0; }
  .num-card__num b { font-size: 4.5rem; } /* меньше образца (6rem) — Павлон 21.11 */
  .num-card__num small { font-size: 1rem; }
  .num-card__text h3 { min-height: 2em; display: flex; align-items: flex-end; } /* заголовки в одну линию: у всех высота двух строк */
}

/* ---------- «Как мы работаем», круг 2 (Павлон 21.11: лента карточек «не получилась»): слева прилипает заголовок
   со счётчиком шага, справа шаги строками через линию — как строки проектов на экране 3; шаг посередине экрана подсвечен,
   полоса хода заполняется прокруткой (js: data-steps) ---------- */
.steps { background: var(--c-grey); padding-block: 4rem; } /* серый: после белого раздела отзывов */
.steps__grid { display: flex; flex-direction: column; gap: 2rem; }
.steps__side { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.steps__title { margin: 0; font-weight: 400; font-size: 2.25rem; line-height: .95; letter-spacing: -.03em; }
.steps__lead { max-width: 30rem; font-size: 1rem; line-height: 1.25; color: rgba(52, 53, 60, .72); }
.steps__count { display: none; }
.steps__side .btn { width: 100%; margin-top: .5rem; }
.steps__track { position: relative; }
.steps__bar { display: none; }
.steps__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-stroke-12); }
.step { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num time" "body body"; align-items: center; gap: 1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--c-stroke-12); }
.step__num { grid-area: num; font-size: 1rem; line-height: 1.25; color: rgba(52, 53, 60, .5); }
.step__time { grid-area: time; justify-self: start; background: var(--c-white); color: var(--c-black); }
.step__body { grid-area: body; }
.step__title { margin: 0; font-weight: 400; font-size: 1.5rem; line-height: 1; letter-spacing: -.03em; }
.step__text { margin-top: .75rem; font-size: 1rem; line-height: 1.25; color: rgba(52, 53, 60, .6); }
@media (min-width: 1024px) {
  .steps { padding-block: 7.5rem; }
  .steps__grid { display: grid; grid-template-columns: 31% 1fr; gap: 5rem; align-items: start; }
  .steps__side { position: sticky; top: 7.5rem; gap: 1.5rem; } /* прилипает, пока идут шаги; 7.5rem — под шапкой, когда она выезжает */
  .steps__title { font-size: 4.5rem; line-height: .9375; }
  .steps__lead { font-size: 1.125rem; line-height: 1.22; }
  .steps__count { display: flex; align-items: flex-start; gap: .375rem; margin-top: 2rem; }
  .steps__count b { font-weight: 400; font-size: 6rem; line-height: .83; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
  .steps__count span { font-size: 1.125rem; line-height: 1.25; color: rgba(52, 53, 60, .5); }
  .steps__side .btn { width: auto; margin-top: 1rem; }
  .steps__bar { display: block; position: absolute; left: -2.5rem; top: 0; bottom: 0; width: 2px; background: var(--c-stroke-12); }
  .steps__bar i { display: block; width: 100%; height: var(--steps-p, 0%); background: var(--c-accent); }
  .step { grid-template-columns: 5rem 1fr 11rem; grid-template-areas: "num body time"; align-items: start; gap: 2rem; padding-block: 2.25rem; opacity: .35; transition: opacity .4s ease; }
  .step.is-on { opacity: 1; }
  .step__num { font-size: 1.125rem; padding-top: .35rem; }
  .step__title { font-size: 2rem; }
  .step__text { max-width: 36rem; margin-top: 1rem; font-size: 1.125rem; line-height: 1.33; }
  .step__time { justify-self: end; margin-top: .25rem; } /* на компьютере — у правого края, как было; на телефоне — сразу за номером (Павлон 22.11) */
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) { .step { opacity: 1; } }

/* описание выезжает из-под заголовка при наведении и поднимает его (Павлон 21.11) — только где есть мышь */
@media (min-width: 1024px) and (hover: hover) {
  .num-card__more { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.22, .61, .36, 1), opacity .3s ease; }
  .num-card:hover .num-card__more, .num-card:focus-within .num-card__more { grid-template-rows: 1fr; opacity: 1; }
  .num-card__more > p::before { height: .75rem; }
}

/* ---------- «Статьи и новости», круг 3 (Павлон 21.11, по кадру блока «Блог, Люди, События, Ai»; замер кадра 1920: карточка 594×622, поле 32, картинка 530×325 на 83 от верха,
   название 30/36 у низа, зазор 21, стрелки 68). Заголовок — переключатель: активное слово чёрное, второе серое. В карточке середина — картинка ИЛИ описание статьи,
   название всегда у низа, поэтому карточки с картинкой и без стоят в ряд ровно. Круг 2 (главная + список) — коммит 5256f00, круг 1 (лента) — a6aa0eb ---------- */
.news { background: var(--c-grey); color: var(--c-black); padding-block: 4rem; }
.news__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* заголовок раздела для поиска и скринридера; видимый — переключатель */
.news__tabs { display: flex; flex-wrap: wrap; align-items: baseline; }
.news__tab, .news__comma { font-weight: 400; font-size: 1.875rem; line-height: .95; letter-spacing: -.03em; } /* на телефоне три слова в строку (было 2.5rem — «Статьи» падали вниз) */
.news__tab { padding: 0; border: 0; background: none; font-family: inherit; color: rgba(52, 53, 60, .32); cursor: pointer; transition: color .3s ease; }
.news__tab:hover { color: rgba(52, 53, 60, .6); }
.news__tab.is-active { color: var(--c-black); cursor: default; }
.news__tab:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: 2px; }
.news__comma { margin-right: .3em; color: rgba(52, 53, 60, .32); transition: color .3s ease; }
.news__tab.is-active + .news__comma { color: var(--c-black); } /* запятая — цвета слова перед ней, как на образце */
.news__list {
  display: flex; gap: .5rem; margin-top: 2rem; padding-inline: var(--pad); scroll-padding-inline: var(--pad);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.news__list::-webkit-scrollbar { display: none; }
.news__list.is-in .ncard { animation: news-in .45s ease both; }
.news__list.is-in .ncard:nth-child(2) { animation-delay: .06s; }
.news__list.is-in .ncard:nth-child(3) { animation-delay: .12s; }
@keyframes news-in { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
.ncard {
  position: relative; flex: 0 0 85%; display: flex; flex-direction: column; min-height: 26rem; padding: 1.25rem;
  border-radius: .625rem; background: var(--c-white); scroll-snap-align: start;
}
.ncard__meta { display: flex; gap: 2rem; font-weight: 500; font-size: .8125rem; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.ncard__meta time { color: var(--c-black); }
.ncard__img { margin-top: 1.5rem; overflow: hidden; border-radius: .375rem; background: var(--c-grey); }
.ncard__img img { display: block; width: 100%; height: auto; aspect-ratio: 530 / 325; object-fit: cover; transition: transform .6s ease; }
.ncard__title { margin: auto 0 0; padding-top: 1.5rem; font-weight: 400; font-size: 1.375rem; line-height: 1.15; letter-spacing: -.02em; }
.ncard__title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; transition: color .3s ease; }
.ncard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* вся карточка — ссылка */
.news__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.news__all { flex: 1; }
@media (hover: hover) {
  .ncard:hover .ncard__img img { transform: scale(1.04); }
  .ncard:hover .ncard__title a { color: var(--c-accent); } /* заливку карточки цветом подвала Павлон отклонил 21.11 */
}
@media (min-width: 768px) {
  .ncard { flex-basis: calc((100% - var(--pad) * 2 - .5rem) / 2); }
}
@media (min-width: 1024px) {
  .news { padding-block: 7.5rem; }
  .news__tab, .news__comma { font-size: 3.5rem; line-height: .9; }
  .news__list { gap: 1rem; margin-top: 3.75rem; }
  .ncard { flex-basis: calc((100% - var(--pad) * 2 - 2rem) / 3); height: 31rem; min-height: 0; padding: 1.6rem; border-radius: .8rem; }
  .ncard__meta { gap: 2.75rem; font-size: .875rem; }
  .ncard__img { margin-top: 2.15rem; border-radius: .5rem; }
  .ncard__title { font-size: 1.5rem; line-height: 1.2; }
  .news__foot { margin-top: 2.25rem; }
  .news__all { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .news__list.is-in .ncard { animation: none; } .ncard__img img { transition: none; } }

/* ---------- подвал, круг 2 (Павлон 22.11: «футер плохо выглядит — переделывай — думай»).
   Было: пять узких колонок разной силы, телефон тонул среди списков, полоса без связи с телом.
   Стало по подвалу Арт Курьера (как и шапка): полоса = шапка (лого на белом 228 макетных px, разделы капсом от его края, «Наверх» с кружком),
   тело надвое вертикальной линией — слева зелёная ячейка «Подобрать оборудование» ровно под разделами и каталог,
   справа контакты строками «подпись | значение», телефон продаж 40px. Список «Услуги» убран: все пять ссылок вели на один адрес /services.
   Вариант ?foot=2 — сверху слово «ВегаСистемы» во всю ширину, как у DepoGold. ---------- */
.foot { --hu: 1px; --line: rgba(255, 255, 255, .12); --logo-w: 10.5rem; background: var(--c-black); color: var(--c-white); }
.foot a { transition: opacity .3s ease; }
.foot a:hover { opacity: .65; }
.foot__label { margin: 0 0 .75rem; font-weight: 500; font-size: max(10px, calc(11 * var(--hu))); line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }

.foot__word { display: none; margin: 0; padding: 1.5rem var(--pad) 1.25rem; border-bottom: 1px solid var(--line); font-weight: 500; font-size: calc((100vw - 2 * var(--pad)) * .149); line-height: .8; letter-spacing: -.055em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
[data-foot="2"] .foot__word { display: block; }

.foot__bar { display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid var(--line); }
.foot__logo { display: flex; align-items: center; flex: 0 0 auto; height: var(--header-h); padding: 0 1.5rem; background: var(--c-white); }
.foot__logo:hover { opacity: 1 !important; }
.foot__logo img { display: block; width: 7rem; height: auto; }
.foot__up { display: flex; align-items: center; justify-content: center; gap: 1rem; flex: 0 0 var(--header-h); margin-left: auto; border-left: 1px solid var(--line); }
.foot__up-txt { display: none; font-weight: 500; font-size: max(10px, calc(11 * var(--hu))); letter-spacing: .04em; text-transform: uppercase; }
.foot__up-ico { display: grid; place-items: center; width: 1.75rem; aspect-ratio: 1; border-radius: 50%; background: var(--c-accent); }
.foot__up-ico svg { width: 50%; height: 50%; transform: rotate(-90deg); }
.foot__nav { order: 3; flex: 1 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem var(--pad); border-top: 1px solid var(--line); font-weight: 500; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }

.foot__row { display: flex; border-bottom: 1px solid var(--line); }
.foot__gap { display: none; }
.foot__pick {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: 1 1 auto; min-height: var(--header-h); padding: 0 var(--pad);
  background: var(--c-accent); color: var(--c-accent-text); border: 0; cursor: pointer;
  font: 500 max(10px, calc(11 * var(--hu))) / 1.3 var(--font); letter-spacing: .04em; text-transform: uppercase; text-align: left;
  transition: background-color .3s ease;
}
.foot__pick:hover { background: var(--c-accent-hover); }
.foot__pick svg { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; }
.foot__cat { padding: 1.75rem var(--pad) 2rem; }
.foot__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; margin: 0; padding: 0; list-style: none; font-size: .9375rem; line-height: 1.25; }
.foot__list a, .foot__nav a { display: block; padding: .625rem 0; } /* на телефоне ссылка ~40px высотой, а не 19 — пальцем не промахнуться */
.foot__nav { gap: 0 1rem; padding-block: .75rem; }

.foot__contacts { border-top: 1px solid var(--line); }
.foot__line { padding: 1.5rem var(--pad); border-bottom: 1px solid var(--line); }
.foot__line:last-child { border-bottom: 0; }
.foot__line .foot__label { margin-bottom: .625rem; }
.foot__val { display: flex; flex-direction: column; align-items: flex-start; }
.foot__phone { font-size: 1.875rem; line-height: 1.05; letter-spacing: -.03em; white-space: nowrap; }
.foot__mail { margin-top: .625rem; font-size: 1rem; line-height: 1.3; color: rgba(255, 255, 255, .75); }
.foot__phone2 { font-size: 1.375rem; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; }
.foot__note { margin: .5rem 0 0; font-size: .875rem; line-height: 1.35; color: rgba(255, 255, 255, .55); }
.foot__addr { margin: 0; max-width: 24em; font-size: 1rem; line-height: 1.4; }
.foot__soc { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.foot__soc a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .375rem 1rem .375rem .75rem; border: 1px solid rgba(255, 255, 255, .24); border-radius: 2rem; font-weight: 500; font-size: .875rem; }
.foot__soc a:hover { opacity: 1; border-color: var(--c-white); }
.foot__soc svg { width: 1rem; height: 1rem; }
.foot__soc .i-max { width: .9375rem; height: .9375rem; }

.foot__bottom { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem var(--pad) 6.5rem; border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.4; color: rgba(255, 255, 255, .5); } /* снизу запас под кнопку чата */

@media (min-width: 1024px) {
  .foot { --hu: calc(100vw / 1440); --logo-w: calc(228 * var(--hu)); } /* белая ячейка лого = как в шапке: 40 + 140 + 48 макетных px */
  .foot__word { padding: calc(40 * var(--hu)) var(--pad) calc(30 * var(--hu)); }
  .foot__bar { flex-wrap: nowrap; }
  .foot__logo { width: var(--logo-w); padding: 0 calc(48 * var(--hu)) 0 calc(40 * var(--hu)); }
  .foot__logo img { width: calc(140 * var(--hu)); }
  .foot__nav { order: 0; flex: 1 1 auto; display: flex; align-items: center; gap: calc(24 * var(--hu)); padding: 0 calc(60 * var(--hu)); border-top: 0; font-size: max(10px, calc(11 * var(--hu))); }
  .foot__up { flex: 0 0 auto; gap: calc(16 * var(--hu)); padding: 0 calc(40 * var(--hu)); }
  .foot__up-txt { display: block; }
  .foot__up-ico { width: max(1.5rem, calc(24 * var(--hu))); }

  /* обе половины на одной сетке строк: зелёная ячейка ровно высотой с «Отделом продаж», линии слева и справа совпадают */
  .foot__body { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: auto auto auto 1fr; }
  .foot__side, .foot__contacts { display: contents; }
  .foot__row { grid-column: 1; grid-row: 1; }
  .foot__cat { grid-column: 1; grid-row: 2 / -1; }
  .foot__line { grid-column: 2; border-left: 1px solid var(--line); }
  .foot__gap { display: block; flex: 0 0 var(--logo-w); border-right: 1px solid var(--line); }
  .foot__pick { padding: 0 calc(40 * var(--hu)) 0 calc(60 * var(--hu)); }
  .foot__pick svg { width: max(1rem, calc(18 * var(--hu))); height: max(1rem, calc(18 * var(--hu))); }
  .foot__cat { display: grid; grid-template-columns: var(--logo-w) 1fr; align-content: start; padding: calc(36 * var(--hu)) 0 calc(48 * var(--hu)); }
  .foot__cat .foot__label { margin: calc(5 * var(--hu)) 0 0; padding-left: calc(40 * var(--hu)); }
  .foot__nav a { padding: 0; }
  .foot__list a { display: inline-block; padding: calc(4 * var(--hu)) 0; }
  .foot__list { grid-template-columns: 1fr; gap: calc(6 * var(--hu)); padding: 0 calc(40 * var(--hu)) 0 calc(60 * var(--hu)); font-size: max(15px, calc(17 * var(--hu))); }

  .foot__line { display: grid; grid-template-columns: max(160px, calc(200 * var(--hu))) 1fr; column-gap: 16px; align-items: baseline; padding: calc(28 * var(--hu)) calc(40 * var(--hu)) calc(28 * var(--hu)) calc(60 * var(--hu)); }
  .foot__line .foot__label { margin: 0; }
  .foot__phone { font-size: calc(40 * var(--hu)); }
  .foot__mail { margin-top: calc(12 * var(--hu)); font-size: max(15px, calc(17 * var(--hu))); }
  .foot__phone2 { font-size: calc(26 * var(--hu)); }
  .foot__note { font-size: max(13px, calc(14 * var(--hu))); }
  .foot__addr { font-size: max(15px, calc(17 * var(--hu))); }

  .foot__bottom { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; padding: calc(28 * var(--hu)) calc(var(--pad) + 6rem) calc(28 * var(--hu)) calc(40 * var(--hu)); } /* справа место под кнопку чата: «Разработано в OXBOX» больше не уходит под неё */
  .foot__dev { margin-left: auto; }
}

/* ===== Просмотр фото производства на весь экран (Павлон 21.11: «не получается 1 фотку посмотреть»): клик по фото — кадр целиком, без обрезки ленты; стрелки, свайп, Esc ===== */
.prod__card { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.lb__shade { position: absolute; inset: 0; background: rgba(28, 29, 33, .94); }
.lb__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; margin: 0; max-width: calc(100vw - 2rem); }
.lb__img { display: block; max-width: calc(100vw - 2rem); max-height: calc(100svh - 9rem); width: auto; height: auto; border-radius: var(--radius); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb__cap { display: flex; gap: 1rem; align-items: baseline; color: #fff; font-size: 1rem; line-height: 1.25; }
.lb__count { color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.lb__close { position: absolute; top: 1rem; right: 1rem; }
.lb__arrow { position: absolute; top: 50%; transform: translateY(-50%); display: none; }
.lb__arrow--prev { left: 1.5rem; } .lb__arrow--next { right: 1.5rem; }
.lb.is-in .lb__shade { animation: lb-fade .3s ease both; }
.lb.is-in .lb__stage { animation: lb-in .35s ease both; }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
@media (min-width: 1024px) {
  .lb__img { max-width: calc(100vw - 14rem); max-height: calc(100svh - 8rem); }
  .lb__arrow { display: inline-flex; }
  .lb__close { top: 1.5rem; right: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .lb.is-in .lb__shade, .lb.is-in .lb__stage { animation: none; } }

/* ===== Стрелки лент — один вид на весь сайт (Павлон 21.11: «как на новостях и везде под блоком»): тёмные круги 3.5rem под лентой справа; кнопка раздела — слева ===== */
.s-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.s-foot--end { justify-content: flex-end; }
.arrows { display: none; gap: 1rem; }
.arrow { --bg: var(--c-black); --b: var(--c-black); --fg: var(--c-white); }
.arrow svg { width: 1.375rem; height: 1.375rem; }
.arrow:hover { --bg: var(--c-accent); --b: var(--c-accent); }
.arrow:disabled { --bg: rgba(52, 53, 60, .16); --b: transparent; --fg: var(--c-white); cursor: default; }
@media (min-width: 1024px) {
  .s-foot { margin-top: 2.25rem; }
  .arrows { display: flex; }
}

/* тип ангара в форме — один из трёх, вид нашего флажка; формулировки — с формы tentmax.ru */
.lead-form__types { display: flex; flex-direction: column; gap: .875rem; margin-top: 1.25rem; }
.lead-form__types .check { margin: 0; align-items: center; font-size: .9375rem; }
.lead-form__types .check b { font-weight: 500; color: var(--c-black); }
.check--radio input { border-radius: 50%; }
.check--radio input::after { width: .5rem; height: .5rem; border: 0; border-radius: 50%; background: var(--c-white); transform: scale(0); }
.check--radio input:checked::after { transform: scale(1); }

/* ===== Окно связи: переключатель «Заявка | Чат» (Павлон 21.11: «как мессенджер на petala.ru, чтобы с заявки переключиться на мессенджер»).
   Чат говорит с OXBOX Chat напрямую (petala.net/oxchat, site=tentmax) — ответы приходят из группы «OXBOX Заявки», ветка «Чат · TENTMAX» ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.modal__panel { display: flex; flex-direction: column; }
.mswitch { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; /* на ширину полей, кнопки пополам (Павлон 22.11) */ margin-bottom: 2rem; padding: .25rem; border-radius: 999px; background: var(--c-grey); flex-shrink: 0; }
.mswitch__btn { min-height: 2.5rem; padding: 0 1.25rem; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 500; font-size: .9375rem; color: rgba(52, 53, 60, .6); cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.mswitch__btn:hover { color: var(--c-black); }
.mswitch__btn.is-active { background: var(--c-black); color: var(--c-white); cursor: default; }
.mswitch__btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.mchat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.mchat[hidden] { display: none; }
.mchat__head { display: flex; align-items: center; gap: .875rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--c-stroke-12); }
.mchat__logo { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--c-black); flex-shrink: 0; overflow: hidden; }
.mchat__logo img { width: 2.25rem; height: auto; }
.mchat__name { display: block; font-weight: 500; font-size: 1.125rem; line-height: 1.2; }
.mchat__sub { display: block; font-size: .875rem; line-height: 1.3; color: rgba(52, 53, 60, .6); }
.mchat__list { flex: 1; min-height: 12rem; overflow-y: auto; display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem 0; overscroll-behavior: contain; }
.mchat__msg { max-width: 85%; display: flex; flex-direction: column; gap: .375rem; }
.mchat__msg p { margin: 0; padding: .875rem 1.125rem; border-radius: 1.25rem; font-size: 1rem; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.mchat__msg small { padding-inline: .5rem; font-size: .8125rem; color: rgba(52, 53, 60, .55); }
.mchat__msg--team { align-self: flex-start; }
.mchat__msg--team p { background: var(--c-grey); border-bottom-left-radius: .375rem; }
.mchat__msg--me { align-self: flex-end; align-items: flex-end; }
.mchat__msg--me p { background: var(--c-accent); color: var(--c-white); border-bottom-right-radius: .375rem; }
.mchat__msg--me.is-sending p { opacity: .6; }
.mchat__msg--me.is-error p { background: #fff; color: var(--c-black); border: 1px solid #e5484d; cursor: pointer; }
.mchat__msg--me.is-error small { color: #e5484d; }
.mchat__form { flex-shrink: 0; display: flex; flex-direction: column; gap: .5rem; padding: .875rem 1rem .75rem; border: 1px solid var(--c-stroke-16); border-radius: 1rem; transition: border-color .3s ease; }
.mchat__form:focus-within { border-color: var(--c-black); }
.mchat__box textarea { display: block; width: 100%; min-height: 3rem; max-height: 10rem; border: 0; outline: 0; resize: none; background: none; font: inherit; font-size: 16px; line-height: 1.35; color: var(--c-black); }
.mchat__box textarea::placeholder { color: var(--c-stroke-50); }
.mchat__tools { display: flex; justify-content: space-between; align-items: center; }
.mchat__attach { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-left: -.375rem; border-radius: 50%; color: rgba(52, 53, 60, .6); cursor: pointer; transition: color .3s ease, background-color .3s ease; }
.mchat__attach:hover { color: var(--c-black); background: var(--c-grey); }
.mchat__attach svg, .mchat__send svg { width: 1.25rem; height: 1.25rem; }
.mchat__send { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: var(--c-accent); color: var(--c-white); cursor: pointer; transition: background-color .3s ease; }
.mchat__send:hover { background: var(--c-accent-hover); }
.mchat__send:disabled { background: var(--c-grey); color: rgba(52, 53, 60, .35); cursor: default; }
.mchat__agree { flex-shrink: 0; margin: .875rem 0 0; } /* флажок согласия до первой отправки (правило студии: флажок в каждой форме) */
.mchat__agree[hidden] { display: none; }

/* «Размеры ангара уже знаете?» — переключатель Нет / Да (по умолчанию Нет); на «Да» раскрываются размеры и тип ангара (Павлон 21.11) */
.dims-q { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dims-q__text { font-size: 1.125rem; line-height: 1.2; letter-spacing: -.02em; }
.tswitch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; flex-shrink: 0; padding: .25rem; border: 0; border-radius: 999px; background: var(--c-grey); font: inherit; cursor: pointer; }
.tswitch::before { content: ""; position: absolute; top: .25rem; bottom: .25rem; left: .25rem; width: calc(50% - .25rem); border-radius: 999px; background: var(--c-black); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.tswitch[aria-checked="true"]::before { transform: translateX(100%); }
.tswitch__opt { position: relative; z-index: 1; min-width: 3.25rem; padding: .5rem .875rem; font-weight: 500; font-size: .9375rem; line-height: 1.2; text-align: center; color: rgba(52, 53, 60, .6); transition: color .3s ease; }
.tswitch[aria-checked="false"] .tswitch__opt:first-child, .tswitch[aria-checked="true"] .tswitch__opt:last-child { color: var(--c-white); }
.tswitch:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.dims { margin-top: 1.25rem; }
.dims:not([hidden]) { animation: dims-in .35s ease both; }
@keyframes dims-in { from { opacity: 0; transform: translateY(-.5rem); } }
@media (prefers-reduced-motion: reduce) { .tswitch::before, .dims:not([hidden]) { transition: none; animation: none; } }

/* кнопка связи — как у чата Petala (oxchat widget.js 1:1): через 1 с «выпрыгивает» с пружиной, следом от неё дважды расходятся два кольца (Павлон 22.11) */
.fab.pop { animation: fab-pop .55s cubic-bezier(.34, 1.56, .64, 1) 1s backwards; }
@keyframes fab-pop { from { transform: scale(0); opacity: 0; } }
.fab.wave::before, .fab.wave::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-accent); pointer-events: none; animation: fab-wave 1.6s ease-out 2; opacity: 0; }
.fab.wave::after { animation-delay: .45s; }
@keyframes fab-wave { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fab.pop { animation: none; } .fab.wave::before, .fab.wave::after { animation: none; } }

/* карточка «Оставьте почту…» в чате — по oxchat (.mail), в токенах TENTMAX */
.mchat__mail { align-self: stretch; margin: .25rem 0; padding: .875rem 1rem; border: 1px solid var(--c-stroke-12); border-radius: 1rem; font-size: .9375rem; line-height: 1.35; }
.mchat__mail p { margin: 0; }
.mchat__mail form { display: flex; gap: .5rem; margin-top: .625rem; }
.mchat__mail input { flex: 1; min-width: 0; height: 2.75rem; padding: 0 .875rem; border: 1px solid var(--c-stroke-16); border-radius: var(--radius); font: inherit; font-size: 16px; color: var(--c-black); background: #fff; }
.mchat__mail input:focus { outline: none; border-color: var(--c-black); }
.mchat__mail input.is-error { border-color: #e5484d; }
.mchat__mail button { flex: none; height: 2.75rem; padding: 0 1.125rem; border: 0; border-radius: var(--radius); background: var(--c-accent); color: #fff; font: inherit; font-weight: 500; cursor: pointer; transition: background-color .3s ease; }
.mchat__mail button:hover { background: var(--c-accent-hover); }
.mchat__mail button:disabled { opacity: .6; cursor: default; }
.mchat__mail.is-done { color: rgba(52, 53, 60, .72); }

/* поле вопроса в форме «Задайте вопрос» — многострочное, звёздочка в том же углу */
.field--area { align-items: flex-start; padding-block: 1rem; }
.field--area textarea { width: 100%; min-height: 7.5rem; border: 0; outline: 0; resize: vertical; background: none; font: inherit; font-size: 16px; line-height: 1.35; color: var(--c-black); }
.field--area textarea::placeholder { color: var(--c-stroke-50); }
.mswitch[hidden] { display: none; }

.scrolling-down { --sticky-top: 0px; }

/* ===== ВегаСистемы: виды карточек, которых не было у образца ===== */
/* машина на белом в панели направления */
.ncard__img--product { background: #fff; border: 1px solid var(--c-stroke-12); }
.ncard__img--product img { object-fit: contain; padding: 6%; }


/* ===== Первый экран: справа список разделов с номерами вместо миниатюр (Павлон 22.11 выбрал вариант 1) ===== */
.hero-thumb__n, .hero-thumb__t { display: none; }

@media (min-width: 1024px) {
  .hero .hero-thumbs { flex-direction: column; align-items: stretch; gap: 0; width: 19.5rem; }
  .hero .hero-thumb, .hero .hero-thumb.is-active {
    display: grid; grid-template-columns: 2.5rem 1fr; align-items: baseline; width: auto; height: auto; padding: .875rem 0;
    overflow: visible; border-radius: 0; border-top: 1px solid rgba(255, 255, 255, .24); text-align: left; opacity: .55;
  }
  .hero .hero-thumb:last-child { border-bottom: 1px solid rgba(255, 255, 255, .24); }
  .hero .hero-thumb:hover { opacity: .85; }
  .hero .hero-thumb.is-active { opacity: 1; }
  .hero .hero-thumb img, .hero .hero-thumb::before { display: none; }
  .hero .hero-thumb.is-active::after { top: -1px; bottom: auto; height: 2px; background: #fff; }
  .hero .hero-thumb__n, .hero .hero-thumb__t { display: block; }
  .hero .hero-thumb__n { font-size: .8125rem; line-height: 1.2; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .6); }
  .hero .hero-thumb__t { font-weight: 500; font-size: 1rem; line-height: 1.2; color: #fff; }
}
.dir__ill.is-studio img { object-fit: cover; padding: 0; } /* машина снята на своём сером студийном фоне — заполняет квадрат целиком, без границы фона */
@media (max-width: 1023px) { .dirs__stage { padding-inline: 0; } } /* открытая строка на цвете бренда — во всю ширину, как у эталона; поля несут сами строки */
.fp__img--native { max-width: 193px; max-height: 287px; } /* фото «Ножевая очистка» у клиента всего 193×287 — в родном размере, без мыла */

/* первый экран: перетаскивание мышью и пальцем — фото едет за рукой, под ним проступает соседний слайд (Павлон 22.11: «чтобы можно было руками переключить») */
@media (hover: hover) and (pointer: fine) { .hero { cursor: grab; } }
.hero.is-grabbing { cursor: grabbing; user-select: none; }
.hero-slide__media { transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.hero.is-grabbing .hero-slide, .hero.is-grabbing .hero-slide__media { transition: none; }
.hero-slide.is-peek { z-index: 1; opacity: 1; visibility: visible; }

/* ===== Клиенты и видео (Павлон 22.11: «этот экран переделывай») — по блоку «Партнёры» Арт Курьера:
   шапка как у экранов 3–4; логотипы сеткой ячеек за линиями, 4 в ряд (эталон 342×157 на 1440), широкая ячейка с текстом и стрелками,
   ячейка цвета бренда на два ряда с призывом; 31 логотип листается по 8. Ниже — 4 видео машин в работе теми же ячейками. ===== */
.clients { background: var(--c-white); color: var(--c-black); padding-block: 4rem; }
.clients__head { display: grid; gap: 1rem; padding: 0 var(--pad) 2.5rem; }
.clients__main { display: grid; gap: 1.25rem; }
.clients__pre, .clients__sub {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0;
  font-weight: 500; font-size: .75rem; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--c-accent);
}
.clients__pre::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-accent); }
.clients__title { margin: 0; font-weight: 400; font-size: 2rem; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.clients__lead { margin: 0; font-size: 1rem; line-height: 1.4; color: rgba(52, 53, 60, .8); }

/* сетка: линии — это фон сетки, видный в зазоре 1px */
.cl-grid, .cv-grid { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--c-stroke-12); border-block: 1px solid var(--c-stroke-12); }
.cl-grid { grid-template-columns: repeat(2, 1fr); }
.cl-grid > * { background: var(--c-white); }
.cl-intro { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem var(--pad); }
.cl-intro__num { margin: 0; font-weight: 300; font-size: 4rem; line-height: .9; letter-spacing: -.04em; color: var(--c-accent); }
.cl-intro__text { margin: 0; max-width: 20rem; font-size: 1rem; line-height: 1.35; }
.cl-intro__arrows { display: flex; gap: .5rem; }
.cl-intro__arrows .btn-circle { width: 2.75rem; height: 2.75rem; }
.cl-intro__page { align-self: center; margin-left: .5rem; font-weight: 500; font-size: .75rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: rgba(52, 53, 60, .5); }
.cl-logo { display: grid; place-items: center; min-height: 7rem; padding: 1rem; }
.cl-logo[hidden] { display: none; }
.cl-logo img { display: block; width: auto; height: 5.5rem; max-height: 130px; max-width: 92%; object-fit: contain; } /* у файлов 210–250×130 свои поля внутри — показываем почти в родную высоту, не выше 130px */
.cl-logo.is-in { animation: cl-in .45s ease both; }
@keyframes cl-in { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }
.cl-cta { grid-column: 1 / -1; order: 99; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.75rem var(--pad) 2rem; background: var(--c-accent) !important; color: #fff; }
.cl-cta__title { margin: 0; font-weight: 400; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.03em; }
.cl-cta__text { margin: 0; font-size: 1rem; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.cl-cta .btn { margin-top: .5rem; --bg: #fff; --b: #fff; --fg: var(--c-black); }
.cl-cta .btn:hover { --bg: var(--c-grey); --b: var(--c-grey); }

/* видео */
.cv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; padding: 2.5rem var(--pad) 1.25rem; }
.cv-head__title { margin: 0; font-weight: 400; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; }
.cv-head__all { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c-accent); transition: color .3s ease; }
.cv-head__all svg { width: 1rem; height: 1rem; }
.cv-head__all:hover { color: var(--c-accent-hover); }
.cv-grid { grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cv-grid::-webkit-scrollbar { display: none; }
.cv { scroll-snap-align: start; background: var(--c-white); }
.cv__in { display: flex; flex-direction: column; height: 100%; padding: 1rem var(--pad) 1.5rem; }
.cv__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-black); }
.cv__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cv__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem; border-radius: 50%; background: var(--c-accent); color: #fff; transition: background-color .3s ease, transform .3s ease; }
.cv__play svg { width: 1.25rem; height: 1.25rem; fill: currentColor; margin-left: .15rem; }
.cv__dur { position: absolute; right: .5rem; bottom: .5rem; padding: .2rem .45rem; border-radius: .25rem; background: rgba(0, 0, 0, .64); color: #fff; font-size: .8125rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cv__name { margin: 1rem 0 0; font-weight: 400; font-size: 1.125rem; line-height: 1.2; letter-spacing: -.02em; }
.cv__name a::after { content: ""; position: absolute; inset: 0; }
.cv__in { position: relative; }
@media (hover: hover) {
  .cv__in:hover .cv__media img { transform: scale(1.04); }
  .cv__in:hover .cv__play { background: var(--c-accent-hover); transform: scale(1.06); }
}

@media (min-width: 1024px) {
  .clients { padding-block: 7.5rem; }
  .clients__head { grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); align-items: end; gap: 5rem; padding: 0 var(--pad) 5rem; }
  .clients__pre { font-size: .6875rem; }
  .clients__title { font-size: 3.5rem; line-height: 1.04; }
  .clients__lead { font-size: 1.125rem; }
  .cl-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 9.8125rem; }
  .cl-intro { grid-column: 1 / 3; grid-row: 1; flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 1.75rem var(--pad) 1.75rem; }
  .cl-intro__lead { display: flex; align-items: flex-end; gap: 1.5rem; }
  .cl-intro__num { font-size: 5.5rem; }
  .cl-intro__text { max-width: 16rem; padding-bottom: .375rem; }
  .cl-cta { grid-column: 4; grid-row: 2 / 4; order: 0; justify-content: space-between; padding: 2rem 2.5rem 2.5rem; }
  .cl-cta__title { font-size: 2rem; }
  .cl-logo { min-height: 0; }
  .cl-logo img { height: 7rem; max-width: 80%; }
  .cv-head { padding: 4.5rem var(--pad) 2rem; }
  .cv-head__title { font-size: 2rem; }
  .cv-head__all { font-size: .6875rem; }
  .cv-grid { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .cv__in { padding: 1.5rem 1.5rem 2rem; }
  .cv__name { font-size: 1.25rem; }
}

/* «Как мы работаем» — докрутка в языке новых экранов (Павлон 22.11: «этот немного переделывай»): подпись над заголовком,
   заголовок 3.5rem как у экранов 2–4, счётчик шага цветом бренда, номера «01» капсом, подпись этапа капсом с точкой вместо пилюли,
   неактивные шаги контрастнее (было .35 — текст почти не читался) */
.steps__pre {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0;
  font-weight: 500; font-size: .75rem; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--c-accent);
}
.steps__pre::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-accent); }
.steps__title { font-size: 2rem; line-height: 1.05; }
.step__num { font-weight: 500; font-size: .75rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.step__time { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .6875rem; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: rgba(52, 53, 60, .6); }
.step__time::before { content: ""; flex: none; width: .375rem; height: .375rem; border-radius: 50%; background: var(--c-accent); }
@media (min-width: 1024px) {
  .steps__pre { font-size: .6875rem; }
  .steps__title { font-size: 3.5rem; line-height: 1.04; }
  .steps__count b { color: var(--c-accent); font-weight: 300; }
  .steps__count span { font-weight: 500; font-size: .75rem; letter-spacing: .04em; padding-top: .5rem; }
  .step { opacity: .45; }
  .step__num { font-size: .75rem; padding-top: .9rem; }
  .step__time { justify-self: end; text-align: right; margin-top: .75rem; }
  .step.is-on .step__time { color: var(--c-black); }
}

/* ===== ассистент — перенесён с концепта Тентмакса (22.11), стили без изменений; подложка — наш тёмный ===== */
/* ===== ИИ-консультант под первым экраном — на тёмном #34353c, как FAQ и подвал (Павлон 22.11: «делай на тёмном фоне»; образец heidihealth.com, образец heidihealth.com, замеры на 1440: карточка 1280×440 r36, поле 768×66, текст 16,
   чипы 34 r8 f14 на 24 ниже поля, переключатель 44 у низа). Карточка — по нашим полям --pad, чтобы края совпали с остальными блоками ===== */
.ask { background: var(--c-black); padding: 0; } /* подложка на всю ширину экрана (Павлон 22.11: «подложку на весь экран») */
.ask__card { position: relative; isolation: isolate; background: var(--c-black); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem var(--pad); } /* всё по центру полосы, поля сверху и снизу равные (Павлон 22.11) */
.ask__inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; width: 100%; max-width: 51.2rem; }
.ask__title { margin: 0; font-weight: 400; font-size: 1.75rem; line-height: 1.05; letter-spacing: -.03em; text-align: center; text-wrap: balance; color: #fff; } /* balance: две ровные строки, без одного слова на второй */
.ask__form { display: flex; align-items: center; gap: .75rem; width: 100%; height: 4rem; padding: 0 .75rem 0 1rem; border-radius: 1rem; background: #fff; box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .25); }
.ask__mark { display: grid; flex-shrink: 0; color: var(--c-accent); }
.ask__mark svg { width: 1.5rem; height: 1.5rem; }
.ask__input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: max(16px, 1.125rem); letter-spacing: -.01em; color: var(--c-black); } /* растёт с полем (на 1920 было 16 px в поле 88 px — «мелко»); не меньше 16 — iOS не увеличивает страницу */ /* 16px — iOS не увеличивает страницу при вводе */
.ask__input::placeholder { color: rgba(52, 53, 60, .55); }
.ask__send { display: grid; place-items: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: .55rem; background: var(--c-accent); color: #fff; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.ask__send:disabled { background: rgba(52, 53, 60, .1); color: rgba(52, 53, 60, .4); cursor: default; }
.ask__send svg { width: 1.125rem; height: 1.125rem; }
.ask__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.ask__chip { display: inline-flex; align-items: center; gap: .4rem; height: 2.25rem; padding: 0 .85rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: .55rem; background: rgba(255, 255, 255, .06); font: inherit; font-size: .9375rem; color: #fff; cursor: pointer; transition: background-color .3s ease, border-color .3s ease; }
.ask__chip:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); }
.ask__chip svg, .ask__panel-title svg { fill: none; } /* общее svg { fill: currentColor } заливало контурные значки сплошняком */
.ask__chip svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; opacity: .85; } /* значки одного набора (Lucide, ISC): сетка 24, линия 1.75, один размер (Павлон 22.11: «страшные и в разном стиле и размера») */
.ask__switch { position: relative; margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .3125rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(255, 255, 255, .06); } /* в общем столбике под чипами, а не приколот к низу; крупнее: кнопки 3.25rem, равной ширины (Павлон 22.11: «мелко и не красиво») */
.ask__switch-btn { min-width: 9rem; min-height: 3.25rem; padding: 0 2rem; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 500; font-size: 1.0625rem; transition: color .3s ease, background-color .3s ease; color: rgba(255, 255, 255, .6); cursor: pointer; }
.ask__switch-btn:hover { color: #fff; }
.ask__switch-btn.is-active { background: var(--c-accent); color: var(--c-accent-text, #fff); cursor: default; } /* красная, как «Узнать стоимость» (Павлон 22.11) */
.ask__send:focus-visible, .ask__chip:focus-visible, .ask__switch-btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (min-width: 768px) {
  .ask__card { padding: 6rem 2rem; }
  .ask__title { font-size: 2.25rem; }
  .ask__form { height: 4.4rem; padding: 0 1rem 0 1.25rem; }
}
/* чип открывает панель популярных вопросов на месте чипов (образец: на 24 ниже поля, ширина поля, белая, r16, шапка «тема + ×», строки 44 r12 f16; вылезает за низ карточки) */
.ask__chips.is-off { visibility: hidden; }
.ask__panel { position: absolute; left: 0; right: 0; top: calc(100% - 2.25rem); padding: 0 .5rem .75rem; border: 1px solid rgba(52, 53, 60, .08); border-radius: 1rem; background: #fff; color: var(--c-black); box-shadow: 0 1rem 3rem rgba(0, 0, 0, .25); text-align: left; }
.ask__panel[hidden] { display: none; }
.ask__panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .25rem 0 .75rem; }
.ask__panel-title { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; color: rgba(52, 53, 60, .6); }
.ask__panel-title svg { width: .95rem; height: .95rem; }
.ask__panel-close { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: .5rem; background: none; color: rgba(52, 53, 60, .7); cursor: pointer; }
.ask__panel-close:hover { background: rgba(52, 53, 60, .06); color: var(--c-black); }
.ask__panel-close svg { width: 1.1rem; height: 1.1rem; }
.ask__panel-list { display: flex; flex-direction: column; }
.ask__panel-q { display: block; width: 100%; padding: .75rem; border: 0; border-radius: .75rem; background: none; font: inherit; font-size: max(15px, 1rem); line-height: 1.3; text-align: left; color: var(--c-black); cursor: pointer; }
.ask__panel-q:hover, .ask__panel-q:focus-visible { background: rgba(52, 53, 60, .06); outline: 0; }
