/* 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: #ee4130;
  --c-accent-hover: #d93522;
  --c-accent-text: #fff;
  --c-accent-icon: rgba(255, 255, 255, .6);

  --radius: .3125rem;
  --header-h: 4.5rem;
  --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: 5rem; }
}

/* у образца на телефоне корень растёт до 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); }

/* ---------- шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; z-index: 20; width: 100%;
  color: var(--c-white);
  transition: background-color .45s ease, transform .45s ease;
}
.header__content { position: relative; z-index: 5; display: flex; align-items: center; height: var(--header-h); }
.header__logo { display: flex; align-items: center; width: 4.75rem; margin-right: auto; }
.header__logo img { width: 100%; height: auto; }
.header__burger { margin-right: .75rem; }
.header__burger svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: transform .3s ease, opacity .3s ease; }
.header__burger .i-shut { transform: translate(-50%, -50%) scale(0); opacity: 0; }
.menu-open .header__burger .i-open { transform: translate(-50%, -50%) scale(0); opacity: 0; }
.menu-open .header__burger .i-shut { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.header__nav, .header__actions, .header__phone { display: none; }
.header__contacts { display: flex; align-items: center; gap: 1.5rem; margin-left: 1.5rem; }

.link-header {
  display: inline-flex; align-items: center;
  padding: .4375rem .75rem .5625rem; /* текст на 1px выше геометрической середины — по буквам он тогда в центре */
  border-radius: 6.25rem;
  background: var(--bg); color: var(--fg);
  font-weight: 500; font-size: .875rem; line-height: 1.28571; letter-spacing: -.00875rem;
  transition: background-color .3s ease;
}
.link-header > span { margin-block: -.1875rem; }
.link-header > svg { width: 1rem; height: 1rem; margin: -.25rem .375rem -.25rem 0; }
.link-header--white { --bg: var(--c-white); --fg: var(--c-black); }
.link-header--white:hover { --bg: var(--c-grey); }
.link-header--ghost { --bg: var(--c-white-16); --fg: var(--c-white); backdrop-filter: blur(10px); }
.link-header--ghost:hover { --bg: var(--c-white-24); }

@media (min-width: 1024px) {
  .header__burger { display: none; }
  .header__logo { width: 6rem; margin-right: 1.5rem; }
  .header__nav { display: block; margin-right: auto; }
  .header__nav ul { display: flex; gap: .25rem; }
  .header__phone { display: inline-flex; font-weight: 500; }
  .header__actions { display: flex; align-items: center; gap: .5rem; margin-left: 1.5rem; }
}

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

/* ---------- меню ---------- */
.mega { position: fixed; inset: var(--header-h) 0 0; z-index: 1; display: flex; flex-direction: column; }
.mega::before { content: ""; position: absolute; inset: 0; background: rgba(52, 53, 60, .6); animation: fade .3s ease both; }
.mega__panel {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-white); color: var(--c-black);
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
  animation: drop .45s cubic-bezier(.2, .7, .2, 1) both;
}
.mega__col { padding: 2rem var(--pad); }
.mega__col--main { border-bottom: 1px solid var(--c-stroke-12); }
.mega__big { display: grid; gap: .5rem; }
.mega__big a { font-size: 2.5rem; line-height: 1; letter-spacing: -.03em; }
.mega__small { display: grid; gap: .5rem; }
.mega__small li { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.03rem; }
.mega__small .gap { margin-top: 1.5rem; }
.mega__big a:hover, .mega__small a:hover { color: var(--c-text-60); }
.mega__top { display: flex; flex-direction: column; gap: 2.5rem; }
.mega__socials { display: grid; gap: .75rem; }
.soc-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--c-stroke-16); border-radius: var(--radius);
  transition: border-color .3s ease;
}
.soc-card:hover { border-color: var(--c-black); }
.soc-card__ico { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius); background: var(--c-grey); }
.soc-card__ico svg { width: 1.125rem; height: 1.125rem; }
.soc-card__txt { display: flex; flex-direction: column; gap: .25rem; margin-right: auto; font-size: 1.125rem; line-height: 1.1; }
.soc-card__txt small { font-size: .875rem; color: var(--c-stroke-50); white-space: nowrap; }
.mega__bottom { display: grid; gap: 1rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--c-stroke-12); }
.mega__addr { display: flex; flex-direction: column; gap: .375rem; font-size: 1.375rem; line-height: 1.1; letter-spacing: -.0275rem; }
.mega__addr small { font-size: .875rem; letter-spacing: -.00875rem; color: var(--c-stroke-50); }
.mega__hours { font-size: 1.125rem; color: var(--c-stroke-50); }
.mega__bottom .btn { justify-self: start; }
.mega__close { display: none; }

@media (min-width: 1024px) {
  .mega__panel { flex-direction: row; overflow: visible; max-height: none; }
  .mega__col { padding: 2.25rem var(--pad) 2.25rem; }
  .mega__col--main { width: 38rem; flex-shrink: 0; border-bottom: 0; border-right: 1px solid var(--c-stroke-12); padding-bottom: 3.75rem; }
  .mega__big { gap: 1rem; }
  .mega__big a { font-size: 3.25rem; line-height: 1; }
  .mega__col--side { flex: 1; display: flex; flex-direction: column; padding: 0; }
  .mega__top { flex-direction: row; justify-content: space-between; align-items: flex-start; padding: 2.25rem var(--pad) 2.25rem 5rem; }
  .mega__small { gap: .4rem; }
  .mega__small li { font-size: 1.375rem; letter-spacing: -.0275rem; }
  .mega__small .gap { margin-top: 2rem; }
  .mega__socials { width: 18.5rem; gap: .75rem; }
  .mega__bottom { grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; margin-top: auto; padding: 1.5rem var(--pad) 1.5rem 5rem; }
  .mega__close { display: inline-flex; position: relative; align-self: center; margin-top: 1.5rem; }
}
@keyframes drop { from { transform: translateY(-1.5rem); 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; }
}
/* на телефоне миниатюрам нужно место под кнопками */
@media (max-width: 1023px) {
  .hero-slide__bottom { margin-bottom: 9.5rem; }
}

/* круглая кнопка связи в углу */
.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); }
@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; }
}

/* ---------- плашка про куки ---------- */
.cookie {
  position: fixed; z-index: 16; left: 1rem; right: 6.25rem; bottom: 1rem;
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1rem;
  background: var(--c-white); color: var(--c-black);
  border-radius: var(--radius);
  font-size: .875rem; line-height: 1.3;
}
.cookie a { border-bottom: 1px solid var(--c-stroke-16); }
.cookie__btns { display: flex; gap: .5rem; }
.cookie-done .cookie { display: none; }
@media (min-width: 1024px) {
  .cookie { left: auto; right: 7.25rem; bottom: 1.25rem; width: 22rem; }
}

/* ---------- экран 2: направления — панели внахлёст (по блоку «Лечим самое сложное» образца) ----------
   У образца панели двигает GSAP (pin + y); здесь тот же вид на position: sticky:
   каждая следующая панель наезжает на предыдущую, от неё остаётся полоса с заголовком. */
.dirs { background: var(--c-white); color: var(--c-black); padding-top: 4rem; }
.dirs__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 2.5rem; }

/* полоса = поле + две строки заголовка + такое же поле по буквам: над заглавной = под базовой линией */
.dirs__stack { --tp: 1rem; --strip: 4.5rem; position: relative; }
.dir-panel {
  position: sticky; top: calc(var(--sticky-top) + var(--i) * var(--strip)); transition: top .45s cubic-bezier(.2, .7, .2, 1);
  display: flex; overflow: hidden;
  min-height: 36.3125rem;
  background: var(--panel-bg); color: var(--panel-fg);
}
.dir-panel--light { --panel-bg: #f5f5f5; --panel-fg: var(--c-black); --panel-sub: rgba(52, 53, 60, .72); --tag-bg: rgba(52, 53, 60, .06); --tag-fg: rgba(52, 53, 60, .72); --line: rgba(52, 53, 60, .16); }
.dir-panel--dark { --panel-bg: #34353c; --panel-fg: #fff; --panel-sub: rgba(255, 255, 255, .72); --tag-bg: rgba(255, 255, 255, .1); --tag-fg: rgba(255, 255, 255, .8); --line: rgba(255, 255, 255, .24); }
.dir-panel--platinum { --panel-bg: #6f6c67; --panel-fg: #fff; --panel-sub: #fff; --tag-bg: rgba(255, 255, 255, .14); --tag-fg: #fff; --line: rgba(255, 255, 255, .32); }
.dir-panel--warm { --panel-bg: #e9e6df; --panel-fg: var(--c-black); --panel-sub: rgba(52, 53, 60, .75); --tag-bg: rgba(52, 53, 60, .07); --tag-fg: rgba(52, 53, 60, .75); --line: rgba(52, 53, 60, .18); }

.dir-panel__content { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; padding: var(--tp) var(--pad) 1.5rem; }
.dir-panel__title { display: flex; align-items: flex-start; gap: .75rem; min-height: calc(var(--strip) - var(--tp)); margin-bottom: 1rem; }
.dir-panel__title > span { flex-shrink: 0; font-size: 1rem; line-height: 1.25; padding-top: .05rem; }
.dir-panel__title h3 { margin: 0; font-weight: 400; font-size: 1.25rem; line-height: 1; letter-spacing: -.03em; }
.dir-panel__img { order: 3; width: 10rem; height: 13.3125rem; margin: 2rem auto 0; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; }
.dir-panel__img img { width: 100%; height: 100%; object-fit: cover; }
.dir-panel__info { order: 2; display: flex; flex-direction: column; gap: 1.5rem; }
.dir-panel__info p { font-size: 1rem; line-height: 1.25; color: var(--panel-sub); }
.dir-panel__tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.dir-panel .tag { background: var(--tag-bg); color: var(--tag-fg); }
.dir-panel .tag:hover { background: var(--panel-fg); color: var(--panel-bg); }
.dir-panel__btns { display: flex; flex-direction: column; gap: .5rem; }
.btn--line { --b: var(--line); --fg: var(--panel-fg); }
.btn--line:hover { --b: var(--panel-fg); }

.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) {
  .dirs { padding-top: 7.5rem; }
  .dirs__head { margin-bottom: 5rem; padding-inline: var(--pad); }
  .dirs__stack { --tp: 1.25rem; --strip: 5.8167rem; } /* 2×1.25 + 2×1.625 + (0.151−0.110)×1.625 по Manrope */
  .dir-panel { min-height: 0; height: 35rem; }
  .dir-panel__content {
    display: grid; grid-template-columns: 31% 27% 1fr; gap: 5rem;
    max-width: 96rem; margin: 0 auto; padding: var(--tp) var(--pad) 0;
  }
  .dir-panel__title { gap: 1.5rem; margin: 0; }
  .dir-panel__title > span { font-size: 1rem; }
  .dir-panel__title h3 { font-size: 1.625rem; }
  /* поля над и под фото ×3 (Павлон 21.11): было 1.25 / 1rem, панель 35rem не растёт — фото уменьшается, пропорция 22.875 : 32.75 прежняя */
  .dir-panel { --img-t: 3rem; --img-b: 2.4rem; } /* поля у фото на 1/5 меньше (Павлон 21.11): было 3.75 / 3rem */
  .dir-panel__img { order: 0; height: calc(35rem - var(--img-t) - var(--img-b)); width: auto; aspect-ratio: 22.875 / 32.75; margin: calc(var(--img-t) - var(--tp)) 0 0; justify-self: center; }
  .dir-panel__info { order: 0; align-self: start; align-items: flex-start; gap: 2rem; margin: calc(var(--img-t) - var(--tp) - var(--cap-trim, .3rem)) 0 0; } /* текст по верху фото (Павлон 21.11); --cap-trim — верх строчных/заглавных на уровне края фото, а не верх строки */
  .dir-panel__info p { font-size: 1.125rem; line-height: 1.22; letter-spacing: -.0225rem; }
  .dir-panel__btns { flex-direction: row; }
  .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 { flex-shrink: 0; font-size: 2rem; line-height: .89; letter-spacing: -.03em; }
@media (min-width: 1024px) {
  .sec-title { font-size: 4.5rem; line-height: .9375; max-width: 72rem; }
  .sec-count { font-size: 4.5rem; }
}

/* ---------- экран 3: реализованные проекты (по списку «До / после» образца) ---------- */
.works { background: var(--c-white); color: var(--c-black); padding-block: 4rem; }
.works__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
.works__list { border-top: 1px solid var(--c-stroke-12); }
.work {
  position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: 1.25rem;
  grid-template-areas: "img img" "main go" "params params" "same same";
  padding-block: 1.5rem; border-bottom: 1px solid var(--c-stroke-12);
}
.work__img { grid-area: img; display: block; overflow: hidden; border-radius: var(--radius); }
.work__img img { width: 100%; aspect-ratio: 383 / 216; height: auto; object-fit: cover; transition: transform .45s ease-in-out; }
.work__main { grid-area: main; display: flex; flex-direction: column; gap: 1rem; }
.work__title { margin: 0; font-weight: 400; font-size: 1.5rem; line-height: .95; letter-spacing: -.03em; }
.work__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* вся строка — ссылка на проект */
.work__tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.work .tag { background: rgba(52, 53, 60, .06); color: rgba(52, 53, 60, .72); }
.work__params { grid-area: params; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; }
.work__params div { display: flex; flex-direction: column; gap: .25rem; }
.work__params dt { font-size: .875rem; line-height: 1.28571; color: rgba(52, 53, 60, .6); }
.work__params dd { margin: 0; font-size: 1rem; line-height: 1.25; }
.work__same { position: relative; z-index: 2; grid-area: same; justify-self: start; font-size: 1rem; font-weight: 500; line-height: 1.25; }
.work__go { position: relative; z-index: 2; grid-area: go; align-self: start; }
.works__more { display: flex; flex-direction: column; gap: .5rem; margin-top: 2.5rem; }
@media (hover: hover) {
  .work:hover .work__img img { transform: scale(1.04); }
  .work:hover .work__go { --bg: var(--c-accent); --b: var(--c-accent); --fg: var(--c-accent-text); } /* кружок заливается красным, без обводки — в списке и в плитке (Павлон 21.11) */
}
@media (min-width: 1024px) {
  .works { padding-block: 7.5rem 5rem; } /* низ меньше: дальше серый раздел, граница цвета разделяет сама (было 7.5 + 7.5 = 300 px на 1920) */
  .works__head { margin-bottom: 5rem; }
  /* всё содержимое — одним столбцом под заголовком; ссылка «Хочу такой же» — по низу фото */
  .work {
    grid-template-columns: 25.5rem 1fr auto; column-gap: 2rem; row-gap: 0;
    grid-template-rows: auto auto 1fr; grid-template-areas: "img main go" "img params go" "img same go";
    padding-block: 3rem;
  }
  .work__main { gap: 1rem; }
  .work__title { font-size: 2rem; line-height: .9375; }
  .work__params { margin-top: 1.75rem; display: flex; gap: 2.5rem; }
  .work__same { align-self: end; margin-top: 1.5rem; }
  .work__go { justify-self: end; }
  .works__more { flex-direction: row; justify-content: center; width: calc((100% - 2rem) / 3); margin: 4rem auto 0; gap: 1rem; } /* две кнопки на ширину средней карточки плитки (Павлон 21.11) */
  .works__more > * { flex: 1; padding-inline: 1rem; }
}

/* ---------- экран 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), отзывы и логотипы — на белом */
.logos--after { margin-top: 4rem; }
.reviews__lead { font-size: 1rem; line-height: 1.25; color: rgba(52, 53, 60, .72); }
/* ряд фактов на месте ряда оценок площадок у образца */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--c-stroke-12); }
.facts__item { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 8.5rem; padding: 1rem var(--pad); border-bottom: 1px solid var(--c-stroke-12); }
.facts__item:nth-child(odd) { border-right: 1px solid var(--c-stroke-12); }
.facts__item:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; } /* нечётная последняя — во всю строку */
.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; }
.review {
  flex: 0 0 85%; scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column; gap: 1.5rem; min-height: 14rem;
  padding: 1.5rem; border-radius: var(--radius); background: var(--c-grey);
}
.review figcaption { display: flex; flex-direction: column; gap: .5rem; }
.review__name { font-size: 1.375rem; line-height: 1; letter-spacing: -.03em; }
.review__role { font-size: .875rem; line-height: 1.28571; color: rgba(52, 53, 60, .6); }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.25; }
@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); }
  .logos--after { margin-top: 7.5rem; }
  .reviews__lead { max-width: none; width: 36rem; font-size: 1.125rem; line-height: 1.22; }
  .facts { grid-template-columns: repeat(5, 1fr); }
  .facts__item { min-height: 10rem; padding: 1rem 2.25rem 2rem; border-bottom: 0; border-right: 1px solid var(--c-stroke-12); }
  .facts__item:last-child, .facts__item:last-child:nth-child(odd) { grid-column: auto; border-right: 0; }
  .facts__item b { font-size: 3.25rem; }
  .reviews__list { margin-top: 1.5rem; }
  .review { flex: 0 0 42.0625rem; min-height: 17rem; padding: 2.25rem; gap: 2rem; }
  .review__name { font-size: 1.375rem; }
  .review blockquote { font-size: 1.125rem; line-height: 1.33; }
}

/* две ленты логотипов клиентов между цифрами и отзывами (Павлон 21.11): шахматкой — вторая сдвинута на полъячейки,
   едут в разные стороны, при прокрутке страницы ускоряются (js: data-logos) */
.logos { --cell: 9rem; --row: 5.5rem; overflow: hidden; }
.logos__row { border-bottom: 1px solid var(--c-stroke-12); }
.logos__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; will-change: transform; }
.logos__row--shift .logos__track { margin-left: calc(var(--cell) / -2); }
.logos__item { display: flex; flex: 0 0 var(--cell); align-items: center; justify-content: center; height: var(--row); padding: 0 1rem; border-right: 1px solid var(--c-stroke-12); }
.logos__item img { display: block; width: auto; height: calc(var(--h, 2.5rem) * .7); max-width: 100%; object-fit: contain; } /* --h — высота при равной площади: широкие ниже, компактные выше */
@media (min-width: 1024px) {
  .logos { --cell: 13.75rem; --row: 8rem; border-top: 1px solid var(--c-stroke-12); } /* ячейка = 1/7 ширины экрана: на 1440 и 1920 в ряду ровно 7 логотипов */
  .logos__item { padding: 0 1.75rem; }
  .logos__item img { height: calc(var(--h, 2.5rem) * .9); }
}

/* ---------- производство в Набережных Челнах (Павлон 21.11: между цифрами и логотипами, фото крупно).
   Лента фото «высокая / низкая» — по «Галерее клиники» образца (карточки 454 px, 578 / 341, зазор 8 на 1440).
   Огромный заголовок с наездом фото у образца — на одну короткую строку; у нас две, вышло как поломка («очень плохо») —
   заголовок обычный, как у разделов, вводная справа, как в шапке отзывов ---------- */
.prod { padding-block: 4rem; }
.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; }
}


/* ---------- типовые размеры и цены — по «Акциям клиники» образца (ref/dp5-7.txt): фон платиновый, фото на всю карточку ---------- */
.ready { background: var(--c-grey); color: var(--c-black); padding-block: 4rem; } /* светло-серый, как у производства (Павлон 21.11: тёмный — «нет, давай серый»); у образца платиновый #6f6c67 */
.ready__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.ready__title { margin: 0; font-weight: 400; font-size: 2.25rem; line-height: .95; letter-spacing: -.03em; text-wrap: balance; }
.ready__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; }
.ready__list::-webkit-scrollbar { display: none; }
.ready-card { position: relative; isolation: isolate; flex: 0 0 18.93rem; height: 25rem; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; border-radius: var(--radius); overflow: hidden; color: #fff; }
.ready-card__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ready-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .72) 100%); } /* снег и небо на фото — без затемнения белый текст не читается */
.ready-card__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tag--glass { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(10px); }
.ready-card__size { font-size: 1rem; line-height: 1.25; }
.ready-card__bottom { display: flex; flex-direction: column; gap: .75rem; }
.ready-card__title { font-size: 1.25rem; line-height: 1; letter-spacing: -.04em; }
.ready-card__title::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* вся карточка — ссылка на готовое решение */
.ready-card__price { font-size: 1.75rem; line-height: 1; letter-spacing: -.03em; }
.ready-card__pdf { position: relative; z-index: 2; align-self: flex-start; display: inline-flex; align-items: center; gap: .375rem; font-weight: 500; font-size: 1rem; line-height: 1.25; transition: opacity .3s ease; }
.ready-card__pdf svg { width: 1.125rem; height: 1.125rem; }
.ready-card__pdf:hover { opacity: .7; }
.ready-card:hover .ready-card__bg { transform: scale(1.04); }
.ready__more { display: flex; margin-top: 2rem; }
.ready__more .btn { width: 100%; }
@media (min-width: 1024px) {
  .ready { padding-block: 7.5rem; }
  .ready__title { font-size: 4.5rem; line-height: .9375; max-width: 64rem; } /* у образца 8.5rem на 2 коротких слова; фраза TENTMAX длинная — размер заголовков разделов (огромный в 3 строки Павлон уже отверг) */
  .ready__list { gap: 1rem; margin-top: 3rem; }
  .ready-card { flex-basis: 24.47rem; height: 31.73rem; padding: 2.25rem; }
  .ready-card__title { font-size: 1.375rem; }
  .ready-card__price { font-size: 2rem; }
  .ready__more { justify-content: center; margin-top: 3rem; }
  .ready__more .btn { width: auto; }
}

/* ---------- «Производим и монтируем сами» — по «Современной цифровой стоматологии» образца:
   фото на весь экран при прокрутке сжимается в окошко в заголовке (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: inline-block; 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__brand { font-weight: 400; font-size: 1.375rem; line-height: 1; letter-spacing: -.04em; }
.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; justify-content: flex-end; height: 100svh; padding-bottom: 5rem; }
  .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: 100%; object-fit: cover; pointer-events: none; }
  .why__intro { flex-direction: row; justify-content: space-between; gap: 4rem; margin-top: 0; padding-right: calc(var(--pad) + 15rem); }
  .why__brand { text-align: right; } /* правый край — под концом слова «сами» (js задаёт ширину) */
  .why__brand { font-size: 2rem; }
  .why__lead { width: 30rem; gap: 2rem; }
  .why__lead p { font-size: 1.125rem; line-height: 1.22; }
  .why__lead .btn { width: auto; }
  .num-cards { grid-template-columns: repeat(4, 1fr); margin-top: 7.5rem; }
  .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: end; 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 { margin-top: .25rem; }
}
@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; } }

/* ---------- подвал — по подвалу образца (#34353c, сверху о компании и контакты, справа связь, ниже колонки ссылок);
   карты нет: у TENTMAX её в подвале нет, а скрипт Яндекс.Карт убран с главной ради скорости ---------- */
.footer { background: var(--c-black); color: #fff; padding-top: 4rem; }
.footer a { transition: opacity .3s ease; }
.footer a:hover { opacity: .7; }
.footer__top { display: flex; flex-direction: column; gap: 2.5rem; }
.footer__contacts { display: flex; flex-direction: column; gap: 1.5rem; margin: 0; /* вводная о компании убрана (Павлон 21.11) — контакты сверху */ padding: 0; list-style: none; }
.footer__contacts li { display: flex; flex-direction: column; align-items: flex-start; gap: .375rem; }
.footer__contacts .footer__notes { flex-direction: column; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); } /* почтовый адрес и часы — под общей линией в один ряд (Павлон 21.11) */
.footer__label { font-size: .875rem; line-height: 1.28571; color: rgba(255, 255, 255, .6); }
.footer__value { font-size: 1.25rem; line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.footer__write { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer__write-title { font-size: 1.25rem; line-height: 1.1; letter-spacing: -.03em; }
.footer__socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; width: 100%; } /* три в ряд, как в окне заявки */
.soc-btn--dark { border-color: rgba(255, 255, 255, .24); color: #fff; }
.soc-btn--dark:hover { border-color: #fff; }
.footer__write .btn { width: 100%; margin-top: .5rem; }
.footer__nav { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
.footer__col { display: flex; flex-direction: column; gap: .75rem; margin: 0; padding: 0; list-style: none; font-size: 1rem; line-height: 1.25; }
.footer__col-title { margin-bottom: .5rem; font-size: 1.25rem; line-height: 1; letter-spacing: -.03em; color: rgba(255, 255, 255, .6); }
.footer__join { display: flex; flex-direction: column; gap: 1rem; }
.footer__circles { display: flex; gap: .5rem; }
.footer__circle svg { width: 1.25rem; height: 1.25rem; }
.footer__bottom { display: flex; flex-direction: column; gap: .5rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; line-height: 1.28571; color: rgba(255, 255, 255, .6); }
@media (min-width: 1024px) {
  .footer { padding-top: 5rem; }
  .footer__top { flex-direction: row; justify-content: space-between; gap: 4rem; }
  .footer__about { width: 36.6rem; }
  .footer__contacts { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 1.5rem 4rem; }
  .footer__contacts .footer__notes { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; column-gap: inherit; } /* колонки строки — те же, что у адреса и контактов */
  .footer__value { font-size: 1.375rem; }
  .footer__write { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.5rem .5rem; width: 35.27rem; } /* сетка: кнопка ниже тянется ровно до правого края Telegram (Павлон 21.11) */
  .footer__write-title { font-size: 1.375rem; }
  .footer__write-title { grid-column: 1 / -1; }
  .footer__write .btn { grid-column: 1 / 3; width: auto; margin-top: 0; }
  .footer__socials { display: contents; }
  .soc-btn--dark { padding-inline: 1.25rem; }
  .footer__nav { flex-direction: row; justify-content: space-between; align-items: flex-start; margin-top: 5rem; padding-top: 3rem; }
  .footer__cols { display: flex; gap: 5.5rem; } /* колонки 14.4rem; зазор шире образца (Павлон 21.11: «растащи столбики»), было 3.93rem */
  .footer__col { width: 14.4rem; }
  .footer__col-title { font-size: 1.375rem; }
  .footer__join { align-items: flex-end; }
  .footer__bottom { flex-direction: row; flex-wrap: wrap; gap: .5rem 2.5rem; margin-top: 5rem; padding-block: 2.25rem; }
  .footer__dev { margin-left: auto; } /* подпись студии — к правому краю */
  .footer__bottom { padding-right: calc(1.375rem + 4.25rem + 1.5rem); } /* правее — круглая кнопка чата (4.25rem, отступ 1.375rem): подпись не уходит под неё */
}

/* ===== «Частые вопросы» (#faq), круг 2 — по FAQ DepoGold (depo.greencow-work.ru, 1440: номер x40, вопрос с x387 шириной до 664, строка 124, клетка с плюсом 96 за линией, ответ белым .8).
   Цвета TENTMAX: тёмный #34353c, акцентная кнопка. Круг 1 (белый список по «Вопрос-ответ» dentaplan) — в git, коммит 8f8aea7 ===== */
.faq { --qcol: var(--pad); --tog: 3.5rem; --line: rgba(255, 255, 255, .12);
  background: var(--c-black); color: var(--c-white); padding-block: 4rem 0; } /* низа нет: раздел кончается последним вопросом (Павлон 21.11) */
.faq__head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; padding-inline: var(--pad); }
.faq__title { margin: 0; font-weight: 400; font-size: 2.75rem; line-height: .92; letter-spacing: -.03em; }
.faq__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.faq__lead { max-width: 30rem; font-size: 1rem; line-height: 1.25; color: rgba(255, 255, 255, .72); }
.faq__list { margin: 0; padding: 0; list-style: none; } /* нижней линии нет: снизу граница цвета со следующим разделом */
.faq__item { position: relative; display: flow-root; border-top: 1px solid var(--line); }
.faq__item::after { content: ""; position: absolute; top: 0; bottom: 0; right: var(--tog); width: 1px; background: var(--line); pointer-events: none; } /* линия клетки с плюсом — на всю строку, и у открытого ответа */
.faq__button {
  display: grid; grid-template-columns: 1fr var(--tog); grid-template-areas: "num tog" "text tog";
  width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.faq__num { grid-area: num; padding: 1.25rem 1rem 0 var(--pad); font-size: .875rem; line-height: 1.28571; color: rgba(255, 255, 255, .5); }
.faq__text { grid-area: text; padding: .5rem 1rem 1.5rem var(--pad); font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; }
.faq__tog { grid-area: tog; position: relative; display: grid; place-items: center; transition: background-color .3s ease; }
.faq__tog svg { grid-area: 1 / 1; width: 1.25rem; height: 1.25rem; transition: opacity .3s ease-in-out, transform .3s ease-in-out; }
.faq__minus { opacity: 0; transform: rotate(-90deg); }
.faq__item.is-open .faq__plus { opacity: 0; transform: rotate(90deg); }
.faq__item.is-open .faq__minus { opacity: 1; transform: none; }
.faq__item::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: var(--tog); background: rgba(255, 255, 255, .06); opacity: 0; pointer-events: none; transition: opacity .3s ease; } /* подсветка клетки с плюсом — на всю строку, и у открытого ответа (Павлон 21.11: «не весь блок подсвечивается») */
.faq__item:has(.faq__button:hover)::before, .faq__item:has(.faq__button:focus-visible)::before { opacity: 1; }
.faq__button:focus-visible { outline: none; }
.faq__button:focus-visible .faq__text { text-decoration: underline; text-underline-offset: .2em; }
.faq__content {
  display: grid; grid-template-rows: 0fr; padding: 0 calc(var(--tog) + 1rem) 0 var(--pad);
  font-size: 1rem; line-height: 1.375; color: rgba(255, 255, 255, .8); visibility: hidden;
  transition: grid-template-rows .4s ease-in-out, margin .4s ease-in-out, visibility 0s .4s;
}
.faq__inner { min-height: 0; overflow: hidden; }
.faq__inner p { margin: 0; max-width: 44rem; }
.faq__item.is-open .faq__content { grid-template-rows: 1fr; margin: -.5rem 0 1.75rem; visibility: visible; transition-delay: 0s; }
@media (min-width: 1024px) {
  .faq { --qcol: 25.8rem; --tog: 6.4rem; padding-block: 7.5rem 0; }
  .faq__head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 4rem; margin-bottom: 5rem; } /* заголовок в одну строку (Павлон 21.11) — шире колонки номеров, вводная с кнопкой справа */
  .faq__title { font-size: 4.5rem; line-height: .9; white-space: nowrap; }
  .faq__aside { flex-direction: row; align-items: flex-start; gap: 3rem; } /* мелкий текст — по верху кнопки (Павлон 22.11) */
  .faq__lead { max-width: none; font-size: 1.125rem; line-height: 1.22; } /* строки по переносу: «ответим» со второй (Павлон 21.11) */
  .faq__button { grid-template-columns: var(--qcol) 1fr var(--tog); grid-template-areas: "num text tog"; min-height: 7.425rem; } /* на 10% уже (Павлон 21.11): было 8.25rem */
  .faq__num { align-self: center; padding: 0 1rem 0 var(--pad); }
  .faq__text { align-self: center; max-width: 46rem; padding: 2rem 2rem 2rem 0; font-size: 1.5rem; line-height: 1.2; }
  .faq__content { padding-left: var(--qcol); font-size: 1.125rem; line-height: 1.33; }
  .faq__item.is-open .faq__content { margin: -1rem 0 2.75rem; }
}
@media (prefers-reduced-motion: reduce) { .faq__content, .faq__tog svg { transition: none; } }

/* ===== Проекты: переключатель «списком / плиткой» (Павлон 21.11) — под счётчиком /762, круглые кнопки как стрелки разделов ===== */
.works__head { align-items: flex-end; } /* счётчик /762 убран (Павлон 21.11) — переключатель встаёт по низу заголовка */
.works__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 1.25rem; }
.views { display: none; gap: .5rem; }
.views__btn {
  display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 1px solid var(--c-stroke-16); border-radius: 50%;
  background: transparent; color: var(--c-black); cursor: pointer; transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.views__btn svg { width: 1.25rem; height: 1.25rem; }
.views__btn:hover { border-color: var(--c-black); }
.views__btn.is-active { background: var(--c-black); border-color: var(--c-black); color: var(--c-white); cursor: default; }
.views__btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@keyframes works-in { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
.works__list.is-switching .work { animation: works-in .4s ease both; }
@media (min-width: 768px) {
  .views { display: flex; }
  /* плитка (Павлон 21.11: «по 3 в ряд и с подложкой»): карточка на светло-сером, внутри те же области строки — фото, заголовок и чипы, параметры, «Хочу такой же» + стрелка */
  .works__list--grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; border-top: 0; }
  .works__list--grid .work {
    grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr auto; column-gap: 1rem; row-gap: 1.25rem;
    grid-template-areas: "img img" "main main" "params params" "same go";
    padding: 1rem 1rem 1.5rem; border: 0; border-radius: var(--radius); background: var(--c-grey);
  }
  .works__list--grid .work__img img { aspect-ratio: 670 / 375; }
  .works__list--grid .work__main { padding-top: .25rem; }
  .works__list--grid .work .tag { background: var(--c-white); }
  .works__list--grid .work__title { font-size: 1.625rem; line-height: .95; }
  .works__list--grid .work__params { align-self: end; margin-top: .5rem; gap: 2rem; } /* параметры по низу: в ряду карточек на одной линии при любой длине названия */
  .works__list--grid .work__same { align-self: center; margin-top: 0; }
  .works__list--grid .work__go { align-self: center; justify-self: end; --bg: var(--c-white); --b: var(--c-white); }
}
@media (min-width: 1024px) {
  .works__list--grid { grid-template-columns: repeat(3, 1fr); }
  .works__list--grid .work { padding: 1.25rem 1.25rem 1.75rem; }
}
@media (prefers-reduced-motion: reduce) { .works__list.is-switching .work { animation: none; } }
/* ленты мышью: рука на компьютере, без выделения текста во время перетаскивания */
@media (hover: hover) and (pointer: fine) {
  .news__list, .ready__list, .reviews__list, .prod__list { cursor: grab; }
  .is-dragging { cursor: grabbing; user-select: none; }
  .is-dragging a { pointer-events: none; }
}

/* ===== Просмотр фото производства на весь экран (Павлон 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; }
  .ready__more.s-foot { justify-content: space-between; }
}

/* тип ангара в форме — один из трёх, вид нашего флажка; формулировки — с формы 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; }
