/* ==========================================================================
   ГарантСтрой — дизайн-система
   ========================================================================== */

/* --------------------------------------------------------------- 1. Токены */
:root {
  --red:        #C8102E;
  --red-hover:  #A50C24;
  --red-bright: #E01B2E;

  --ink:        #1D1D1D;
  --ink-2:      #3A3A3A;
  --body:       #555555;
  --muted:      #8A8A8A;

  --panel:      #262626;
  --panel-2:    #1A1A1A;

  --white:      #FFFFFF;
  --grey:       #F0F0F0;
  --grey-2:     #E6E6E6;
  --line:       #DCDCDC;
  --line-2:     #C8C8C8;

  --font: 'Golos Text', 'Onest', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container:  1320px;
  --gutter:     clamp(16px, 3.2vw, 40px);
  --section:    clamp(56px, 6.4vw, 100px);

  --header-h:   88px;
  --ease:       cubic-bezier(.22, .61, .36, 1);
  --ease-out:   cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 108px; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

/* ------------------------------------------------------------ 3. Типографика */
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); font-weight: 700; line-height: 1.16; }

.h-section {
  font-size: clamp(1.5rem, 3.1vw, 2.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.14;
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
}
.h-section--left { text-align: left; }

.h-sub {
  max-width: 74ch;
  margin: 20px auto 0;
  text-align: center;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.66;
  color: var(--body);
}
.h-sub--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.rule-red { width: 56px; height: 3px; background: var(--red); margin: 18px auto 0; }
.rule-red--left { margin-inline: 0; }

p { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 4. Сетка */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--grey { background: var(--grey); }
.section--dark { background: var(--panel); color: rgba(255,255,255,.72); }
.section--dark .h-section, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .h-sub { color: rgba(255,255,255,.68); }
.section--tight { padding-block: clamp(40px, 4.4vw, 68px); }

/* Диагональная «водяная» текстура фона */
.section--grey::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 40px, rgba(0,0,0,.016) 40px 80px);
}
.section--grey > * { position: relative; }

.section-top { margin-bottom: clamp(32px, 3.6vw, 56px); }

/* --------------------------------------------------------------- 5. Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .24s, border-color .24s, color .24s, transform .24s var(--ease), box-shadow .24s;
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--red { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px -8px rgba(200,16,46,.7); }
.btn--red:hover { background: var(--red-hover); border-color: var(--red-hover); }

.btn--dark { background: var(--panel); border-color: var(--panel); color: #fff; }
.btn--dark:hover { background: #000; border-color: #000; }

.btn--outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--red); color: var(--red); }

.btn--on-dark { background: transparent; border-color: rgba(255,255,255,.42); color: #fff; }
.btn--on-dark:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn--white { background: #fff; border-color: #fff; color: var(--red); }
.btn--white:hover { background: var(--grey); border-color: var(--grey); }

.btn--lg { padding: 19px 42px; font-size: 0.9375rem; }
.btn--sm { padding: 12px 24px; font-size: 0.8125rem; }
.btn--block { width: 100%; }

@media (max-width: 620px) {
  /* Длинные подписи не должны распирать вёрстку */
  .btn { white-space: normal; padding: 15px 22px; line-height: 1.3; }
  .btn--lg { padding: 17px 26px; font-size: .875rem; }
}

.link-red {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.link-red svg { transition: transform .28s var(--ease); }
.link-red:hover svg { transform: translateX(5px); }

/* ---------------------------------------------------------------- 6. Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.is-stuck { box-shadow: 0 6px 24px -14px rgba(0,0,0,.42); }

.header__inner {
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 36px);
  transition: height .3s var(--ease);
}
.header.is-stuck .header__inner { height: 72px; }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 42px; height: 49px; flex: none; transition: width .3s var(--ease), height .3s var(--ease); }
.header.is-stuck .logo__mark { width: 36px; height: 42px; }
.logo__word {
  display: block;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: var(--ink);
  white-space: nowrap;
}
.logo__word b { font-weight: 700; color: var(--red); }
.logo__tag {
  display: block;
  margin-top: 3px;
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}

/* Навигация */
.nav { display: flex; align-items: center; gap: clamp(10px, 1.35vw, 26px); margin-left: auto; }
.nav__link {
  position: relative;
  padding: 8px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--ease-out);
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--red); font-weight: 600; }

/* Телефон и меню */
.header__phone { flex: none; text-align: right; line-height: 1.15; }
.header__phone a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: color .2s;
}
.header__phone a:hover { color: var(--red); }
.header__phone a svg { color: var(--red); flex: none; }
.header__phone button {
  display: block;
  margin-top: 2px;
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--line-2);
  transition: color .2s, border-color .2s;
}
.header__phone button:hover { color: var(--red); border-color: var(--red); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .2s;
}
.menu-btn:hover { color: var(--red); }
.menu-btn__bars { position: relative; width: 30px; height: 16px; flex: none; }
.menu-btn__bars span, .menu-btn__bars::before, .menu-btn__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 30px; height: 2px;
  background: currentColor;
  transition: transform .34s var(--ease), opacity .2s;
}
.menu-btn__bars::before { top: 0; }
.menu-btn__bars span { top: 7px; }
.menu-btn__bars::after { top: 14px; }
.menu-btn.is-open .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open .menu-btn__bars span { opacity: 0; }
.menu-btn.is-open .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1400px) { .nav { display: none; } .header__phone { margin-left: auto; } }
@media (max-width: 720px)  { .header__phone button { display: none; } .header__phone a { font-size: 1rem; } }
@media (max-width: 560px)  {
  .header__phone a span { display: none; }
  .logo__tag { display: none; }
  .menu-btn__label { display: none; }
  :root { --header-h: 68px; }
  .logo__mark { width: 34px; height: 40px; }
}

/* Выпадающее меню */
.drawer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 95;
  background: rgba(20,20,20,.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(460px, 100%);
  height: 100%;
  background: #fff;
  padding: 24px clamp(22px, 3vw, 44px) 40px;
  overflow-y: auto;
  transform: translateX(30px);
  opacity: .4;
  transition: transform .4s var(--ease-out), opacity .3s;
}
.drawer.is-open .drawer__panel { transform: none; opacity: 1; }
.drawer__close {
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: border-color .2s, color .2s;
}
.drawer__close:hover { border-color: var(--red); color: var(--red); }
.drawer__list { margin-top: 20px; }
.drawer__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .2s, padding-left .28s var(--ease);
}
.drawer__list a:hover { color: var(--red); padding-left: 8px; }
.drawer__list a small { font-size: .75rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.drawer__foot { margin-top: 28px; display: grid; gap: 14px; }
.drawer__phone { font-size: 1.55rem; font-weight: 700; color: var(--ink); }
.drawer__addr { font-size: .875rem; color: var(--body); }

/* ----------------------------------------------------------- 7. Герой-слайдер */
.hero { position: relative; background: var(--panel-2); overflow: hidden; }
.hero__viewport { position: relative; height: clamp(520px, 76vh, 740px); }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s var(--ease-out), visibility .8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide picture { position: absolute; inset: 0; display: block; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active img { animation: heroZoom 9s var(--ease-out) forwards; }
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,15,15,.6) 0%, rgba(15,15,15,.25) 40%, rgba(15,15,15,.5) 100%);
}

.hero__inner {
  position: relative;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(24px, 4vh, 52px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero__panel {
  width: min(478px, 100%);
  background: rgba(24,24,24,.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  padding: clamp(22px, 2.4vw, 38px);
  color: rgba(255,255,255,.76);
  max-height: 100%;
  overflow-y: auto;
}
.hero__panel-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
.pill svg { color: var(--red-bright); flex: none; }
.hero__badges { display: flex; gap: 8px; }
.hero__badge {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--red);
  flex: none;
}
.hero__eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.hero__title { font-size: clamp(1.55rem, 2.5vw, 2.3rem); font-weight: 700; color: #fff; line-height: 1.14; letter-spacing: -0.01em; }
.hero__addr { margin-top: 10px; font-size: 1rem; color: rgba(255,255,255,.8); }
.hero__div { width: 78px; height: 1px; background: rgba(255,255,255,.4); border: 0; margin: 20px 0; }
.hero__text { font-size: 0.9375rem; line-height: 1.66; }
.hero__panel .btn { margin-top: 24px; }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: #fff;
  transition: background-color .24s, border-color .24s;
}
.hero__arrow:hover { background: var(--red); border-color: var(--red); }
.hero__arrow--prev { left: clamp(12px, 2.4vw, 40px); }
.hero__arrow--next { right: clamp(12px, 2.4vw, 40px); }

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__dot { width: 46px; height: 3px; background: rgba(255,255,255,.36); transition: background-color .3s; }
.hero__dot.is-active { background: var(--red-bright); }

@media (max-width: 1080px) {
  /* На узких экранах слайд задаёт высоту содержимым, а не вьюпортом */
  .hero__viewport { height: auto; }
  .hero__slide { position: relative; display: none; opacity: 1; visibility: visible; }
  .hero__slide.is-active { display: block; }
  .hero__inner { justify-content: center; min-height: 520px; }
  .hero__panel { width: 100%; max-width: 560px; max-height: none; overflow: visible; }
  .hero__arrow { width: 46px; height: 46px; }
}
@media (max-width: 620px) {
  .hero__arrow { display: none; }
  .hero__inner { padding-block: 26px 56px; min-height: 0; }
  .hero__dots { bottom: 18px; }
  .hero__dot { width: 34px; }
}

/* ----------------------------------------------------- 8. Панель подбора */
.quickbar { background: #fff; border-bottom: 1px solid var(--line); }
.quickbar__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  padding-block: 20px;
  flex-wrap: wrap;
}
.quickbar__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.quickbar__field { position: relative; }
.quickbar select, .quickbar input {
  appearance: none;
  -webkit-appearance: none;
  padding: 13px 46px 13px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9375rem;
  color: var(--ink);
  cursor: pointer;
  min-width: 210px;
  transition: border-color .2s;
}
.quickbar input { min-width: 150px; padding-right: 22px; cursor: text; }
.quickbar select:hover, .quickbar input:hover { border-color: var(--red); }
.quickbar__field > svg { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--red); }
.quickbar .btn { margin-left: auto; }
@media (max-width: 1000px) {
  .quickbar__label { display: none; }
  .quickbar__field { flex: 1 1 220px; }
  .quickbar select, .quickbar input { min-width: 0; width: 100%; }
  .quickbar .btn { margin-left: 0; width: 100%; }
}

/* ------------------------------------------------------- 9. Преимущества */
.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.adv__item { background: var(--white); padding: clamp(26px, 2.6vw, 42px) clamp(18px, 1.8vw, 28px); text-align: center; transition: background-color .3s; }
.section--grey .adv__item { background: #fff; }
.adv__icn { width: 64px; height: 64px; margin: 0 auto 20px; color: var(--red); }
.adv__num { font-size: 2.1rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 12px; }
.adv__item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.adv__item p { font-size: 0.875rem; line-height: 1.55; color: var(--body); }
@media (max-width: 1000px) { .adv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .adv { grid-template-columns: 1fr; } }

/* ------------------------------------------------ 10. Направления работ */
.dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 28px); }
@media (max-width: 1000px) { .dirs { grid-template-columns: 1fr; } }

.dir { position: relative; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .35s, transform .35s var(--ease); }
.dir:hover { box-shadow: 0 26px 50px -34px rgba(0,0,0,.55); transform: translateY(-4px); }
.dir__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.dir__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.dir:hover .dir__media img { transform: scale(1.06); }
.dir__cap {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--red);
  color: #fff;
  padding: 14px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 88%;
}
.dir__body { padding: clamp(22px, 2.2vw, 32px); display: flex; flex-direction: column; flex: 1; }
.dir__body h3 { font-size: 1.25rem; margin-bottom: 12px; }
.dir__body > p { font-size: 0.9375rem; line-height: 1.6; margin-bottom: 20px; }
.dir__list { display: grid; gap: 10px; margin-bottom: 24px; }
.dir__list li { display: flex; gap: 11px; font-size: 0.875rem; line-height: 1.5; }
.dir__list svg { flex: none; margin-top: 4px; color: var(--red); }
.dir__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dir__price span { display: block; font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.dir__price b { font-size: 1.25rem; font-weight: 700; color: var(--ink); }

/* --------------------------------------------- 11. Слоёный блок с фото */
.layer { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
@media (max-width: 900px) { .layer { grid-template-columns: 1fr; } }
.layer--rev .layer__media { order: -1; }
@media (max-width: 900px) { .layer--rev .layer__media { order: 0; } }
.layer__media { position: relative; }
.layer__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.layer__tag {
  position: absolute;
  left: 0; top: 30px;
  background: var(--red);
  color: #fff;
  padding: 15px 28px;
  font-size: clamp(0.9375rem, 1.3vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 80%;
  line-height: 1.25;
}
.layer__card { background: var(--panel); color: rgba(255,255,255,.76); padding: clamp(24px, 2.6vw, 40px); }
.layer__card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 18px; }
.layer__card ul { display: grid; gap: 14px; }
.layer__card li { display: flex; gap: 13px; font-size: 0.9375rem; line-height: 1.55; }
.layer__card svg { flex: none; margin-top: 4px; color: var(--red-bright); }

/* ------------------------------------------------------------ 12. Этапы */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; padding: clamp(24px, 2.6vw, 38px); transition: background-color .3s; }
.step:hover { background: #FBF7F8; }
.step__num { font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--grey-2); margin-bottom: 16px; transition: color .3s; }
.step:hover .step__num { color: var(--red); }
.step h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.step p { font-size: 0.875rem; line-height: 1.58; margin-bottom: 14px; }
.step__time { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.6875rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--red); }

/* --------------------------------------------------------- 13. Калькулятор */
.calc { display: grid; grid-template-columns: minmax(0,1.32fr) minmax(0,1fr); background: #fff; border: 1px solid var(--line); }
@media (max-width: 980px) { .calc { grid-template-columns: 1fr; } }
.calc__form { padding: clamp(22px, 2.8vw, 44px); }
.calc__field { margin-bottom: 30px; }
.calc__field:last-child { margin-bottom: 0; }
.calc__label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.calc__label > span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.calc__label output { font-size: 1.15rem; font-weight: 700; color: var(--red); }

.calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: var(--line-2); outline: none; cursor: pointer; }
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--red); border: 4px solid #fff;
  box-shadow: 0 2px 10px -1px rgba(0,0,0,.4); cursor: grab;
}
.calc__range::-moz-range-thumb { width: 17px; height: 17px; border-radius: 50%; background: var(--red); border: 4px solid #fff; box-shadow: 0 2px 10px -1px rgba(0,0,0,.4); cursor: grab; }
.calc__scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.75rem; color: var(--muted); }

.calc__opts { display: grid; gap: 8px; }
.calc__opts--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) { .calc__opts--3 { grid-template-columns: 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box { display: block; height: 100%; padding: 14px 18px; border: 1px solid var(--line-2); cursor: pointer; transition: all .22s var(--ease); }
.opt__box b { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.opt__box span { display: block; font-size: 0.75rem; line-height: 1.4; color: var(--muted); }
.opt__box:hover { border-color: var(--red); }
.opt input:checked + .opt__box { border-color: var(--red); background: #FCF2F3; box-shadow: inset 0 0 0 1px var(--red); }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--red); outline-offset: 2px; }

.calc__result { background: var(--panel); color: rgba(255,255,255,.72); padding: clamp(22px, 2.8vw, 44px); display: flex; flex-direction: column; }
.calc__result h3 { color: #fff; font-size: 1.0625rem; margin-bottom: 6px; }
.calc__result > p { font-size: 0.8125rem; margin-bottom: 24px; }
.calc__total { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1; color: #fff; }
.calc__range-note { font-size: 0.8125rem; color: rgba(255,255,255,.5); margin: 10px 0 24px; }
.calc__lines { display: grid; gap: 11px; padding-block: 22px; border-block: 1px solid rgba(255,255,255,.18); margin-bottom: 22px; }
.calc__line { display: flex; justify-content: space-between; gap: 16px; font-size: 0.875rem; }
.calc__line b { font-weight: 600; color: #fff; white-space: nowrap; }
.calc__meta { display: flex; gap: 28px; margin-bottom: 26px; flex-wrap: wrap; }
.calc__meta span { display: block; font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 5px; }
.calc__meta b { font-size: 1.15rem; font-weight: 700; color: #fff; }
.calc__result .btn { margin-top: auto; }
.calc__disclaimer { font-size: 0.6875rem; line-height: 1.5; color: rgba(255,255,255,.45); margin-top: 14px; }

/* ---------------------------------------------------------- 14. Объекты */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.filter { padding: 11px 24px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.8125rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); transition: all .22s var(--ease); }
.filter:hover { border-color: var(--red); color: var(--red); }
.filter.is-active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

.objs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 28px); }
@media (max-width: 1040px) { .objs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .objs { grid-template-columns: 1fr; } }

.obj { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; cursor: pointer; transition: box-shadow .35s, transform .35s var(--ease); }
.obj:hover { box-shadow: 0 26px 50px -34px rgba(0,0,0,.55); transform: translateY(-4px); }
.obj__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.obj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.obj:hover .obj__media img { transform: scale(1.06); }
.obj__tag { position: absolute; top: 0; left: 0; background: var(--red); color: #fff; padding: 9px 18px; font-size: 0.6875rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.obj__year { position: absolute; bottom: 0; right: 0; background: rgba(24,24,24,.86); color: #fff; padding: 8px 16px; font-size: 0.8125rem; font-weight: 600; }
.obj__zoom { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 50%; color: #fff; opacity: 0; transform: scale(.86); transition: opacity .28s, transform .3s var(--ease); }
.obj:hover .obj__zoom { opacity: 1; transform: none; }
.obj__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.obj__body h3 { font-size: 1.125rem; margin-bottom: 6px; }
.obj__place { font-size: 0.8125rem; color: var(--muted); margin-bottom: 16px; }
.obj__specs { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 14px; border-block: 1px solid var(--line); margin-bottom: 14px; }
.obj__specs span { font-size: 0.8125rem; color: var(--ink-2); }
.obj__specs b { font-weight: 600; }
.obj__body > p { font-size: 0.875rem; line-height: 1.55; margin-top: auto; }


/* ------------------------------------------------- 14b. Тарифные карточки */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 26px); align-items: start; }
@media (max-width: 940px) { .tiers { grid-template-columns: 1fr; } }
.tier { position: relative; background: #fff; border: 1px solid var(--line); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; transition: box-shadow .35s, transform .35s var(--ease); }
.tier:hover { box-shadow: 0 26px 50px -34px rgba(0,0,0,.5); transform: translateY(-3px); }
.tier--featured { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.tier__flag { position: absolute; top: 0; right: 22px; background: var(--red); color: #fff; padding: 7px 14px; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tier h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tier__sub { font-size: .875rem; line-height: 1.55; margin-bottom: 22px; min-height: 44px; }
.tier__price { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tier__price b { font-size: 1.9rem; font-weight: 700; color: var(--red); line-height: 1; }
.tier__price span { display: block; font-size: .8125rem; color: var(--muted); margin-top: 8px; }
.tier__list { display: grid; gap: 11px; margin-bottom: 26px; }
.tier__list li { display: flex; gap: 11px; font-size: .875rem; line-height: 1.5; }
.tier__list svg { flex: none; margin-top: 4px; color: var(--red); }
.tier .btn { margin-top: auto; }

/* --------------------------------------------------------- 15. Прайс-лист */
.price-table { background: #fff; border: 1px solid var(--line); }
.price-table__scroll { overflow-x: auto; }
.price-table table { min-width: 620px; }
.price-table thead th { text-align: left; padding: 16px 24px; font-size: 0.6875rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); background: var(--grey); border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-table tbody td { padding: 15px 24px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr { transition: background-color .2s; }
.price-table tbody tr:hover { background: #FCF6F7; }
.price-table td:first-child { color: var(--ink); font-weight: 500; }
.price-table td.price { font-weight: 700; color: var(--red); white-space: nowrap; text-align: right; }
.price-table td.unit { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.price-table__group td { background: var(--panel); color: #fff; font-weight: 700; font-size: .75rem !important; letter-spacing: .12em; text-transform: uppercase; }
.price-table__group td:first-child { color: #fff; }

/* ---------------------------------------------------------- 16. Отзывы */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 1.8vw, 28px); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.review { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 2.6vw, 38px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.review::before { content: '\201E'; position: absolute; top: 4px; right: 24px; font-size: 6rem; line-height: 1; color: var(--grey-2); font-family: Georgia, serif; }
.review__stars { display: flex; gap: 3px; margin-bottom: 18px; color: var(--red); position: relative; }
.review__text { font-size: 0.9375rem; line-height: 1.68; color: var(--ink-2); margin-bottom: 24px; flex: 1; position: relative; }
.review__author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); position: relative; }
.review__ava { width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.875rem; flex: none; }
.review__author b { display: block; font-size: 0.9375rem; color: var(--ink); }
.review__author span { font-size: 0.8125rem; color: var(--muted); }

/* ------------------------------------------------------------- 17. FAQ */
.faq { border-top: 1px solid var(--line); max-width: 980px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 0; text-align: left; font-size: clamp(0.9375rem, 1.35vw, 1.125rem); font-weight: 600; color: var(--ink); transition: color .22s; }
.faq__q:hover { color: var(--red); }
.faq__icon { flex: none; width: 26px; height: 26px; position: relative; margin-top: 1px; border: 1px solid var(--line-2); border-radius: 50%; transition: border-color .3s, background-color .3s; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; top: 50%; left: 50%; background: var(--red); transform: translate(-50%,-50%); transition: transform .32s var(--ease), background-color .3s; }
.faq__icon::before { width: 11px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 11px; }
.faq__item.is-open .faq__icon { background: var(--red); border-color: var(--red); }
.faq__item.is-open .faq__icon::before { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq__a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq__a-inner { padding-bottom: 26px; font-size: 0.9375rem; line-height: 1.7; }
.faq__a-inner p + p { margin-top: 12px; }
.faq__a-inner ul { display: grid; gap: 8px; margin-top: 12px; }
.faq__a-inner li { display: flex; gap: 10px; }
.faq__a-inner li::before { content: '—'; color: var(--red); flex: none; }

/* --------------------------------------------------------------- 18. Формы */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: block; }
.field > span { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 15px 20px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 0.9375rem; color: var(--ink);
  transition: border-color .22s, box-shadow .22s;
}
.field textarea { min-height: 110px; resize: vertical; border-radius: 18px; }
.field input::placeholder, .field textarea::placeholder { color: #ABABAB; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: #FDF4F5; }
.field__err { display: none; font-size: .75rem; color: var(--red); margin-top: 6px; padding-left: 20px; }
.field.has-error .field__err { display: block; }

.form--on-dark .field > span { color: rgba(255,255,255,.5); }
.form--on-dark .field input, .form--on-dark .field textarea { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); color: #fff; }
.form--on-dark .field input::placeholder, .form--on-dark .field textarea::placeholder { color: rgba(255,255,255,.42); }
.form--on-dark .field input:focus, .form--on-dark .field textarea:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 0.75rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--red); cursor: pointer; }
.consent a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.form--on-dark .consent { color: rgba(255,255,255,.5); }
.form--on-dark .consent a { color: #fff; }
.consent.has-error { color: var(--red); }

.form__ok { display: none; padding: 22px 24px; background: #FCF2F3; border: 1px solid var(--red); color: var(--ink); font-size: .9375rem; line-height: 1.55; }
.form__ok b { display: block; font-size: 1.0625rem; color: var(--red); margin-bottom: 5px; }
.form--on-dark .form__ok { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.8); }
.form--on-dark .form__ok b { color: #fff; }
.form.is-sent .form__ok { display: block; }
.form.is-sent .form__body { display: none; }

/* ----------------------------------------------------------- 19. CTA-блок */
.cta { position: relative; overflow: hidden; background: var(--panel-2); color: rgba(255,255,255,.74); }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.cta__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,18,18,.95) 0%, rgba(18,18,18,.8) 48%, rgba(18,18,18,.55) 100%); }
.cta__inner { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.88fr); gap: clamp(28px, 4vw, 68px); align-items: center; }
@media (max-width: 900px) { .cta__inner { grid-template-columns: 1fr; } }
.cta h2 { color: #fff; margin-bottom: 20px; }
.cta__lead { font-size: 1rem; line-height: 1.66; margin-bottom: 28px; max-width: 50ch; }
.cta__points { display: grid; gap: 13px; }
.cta__points li { display: flex; gap: 12px; font-size: 0.9375rem; }
.cta__points svg { flex: none; margin-top: 4px; color: var(--red-bright); }
.cta__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); padding: clamp(24px, 2.6vw, 38px); }
.cta__card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.cta__card > p { font-size: .875rem; margin-bottom: 24px; }

/* ------------------------------------------------------------ 20. Контакты */
.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 52px); }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }
.contact-list { border-top: 1px solid var(--line); }
.contact-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item__icn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--red); }
.contact-item span { display: block; font-size: .6875rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.contact-item b, .contact-item a { display: block; font-size: 1.0625rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.contact-item a:hover { color: var(--red); }
.contact-item p { font-size: .875rem; margin-top: 5px; }

.map { position: relative; min-height: 360px; height: 100%; border: 1px solid var(--line); background: var(--grey); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(.2); }
.map__fallback {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px;
  background:
    repeating-linear-gradient(0deg, var(--grey) 0 43px, var(--line) 43px 44px),
    repeating-linear-gradient(90deg, var(--grey) 0 43px, var(--line) 43px 44px);
}
.map__pin { display: grid; gap: 12px; justify-items: center; }
.map__pin svg { color: var(--red); }
.map__pin b { font-size: 1.0625rem; color: var(--ink); }
.map__pin span { font-size: .875rem; color: var(--muted); max-width: 32ch; }

/* --------------------------------------------------------------- 21. Подвал */
.footer { background: var(--panel-2); color: rgba(255,255,255,.58); padding-top: clamp(44px, 5vw, 72px); }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr)); gap: clamp(26px, 3vw, 46px); padding-bottom: clamp(34px, 4vw, 54px); }
@media (max-width: 980px) { .footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.footer .logo__word { color: #fff; }
.footer .logo__word b { color: var(--red-bright); }
.footer .logo__tag { color: rgba(255,255,255,.42); }
.footer__about { font-size: .875rem; line-height: 1.62; margin-top: 20px; max-width: 42ch; }
.footer__soc { display: flex; gap: 10px; margin-top: 22px; }
.footer__soc a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: rgba(255,255,255,.72); transition: all .24s var(--ease); }
.footer__soc a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.footer__title { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__list { display: grid; gap: 11px; font-size: .9375rem; }
.footer__contact { display: grid; gap: 16px; font-size: .9375rem; }
.footer__contact b { display: block; font-size: 1.15rem; color: #fff; margin-bottom: 3px; }
.footer__contact small { display: block; font-size: .75rem; color: rgba(255,255,255,.42); margin-top: 4px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; font-size: .8125rem; }
.footer__req { max-width: 70ch; line-height: 1.6; }

/* ------------------------------------------------- 22. Плавающие элементы */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 78; display: grid; gap: 12px; justify-items: center; }
.fab a, .fab button { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; box-shadow: 0 10px 26px -8px rgba(0,0,0,.5); transition: transform .26s var(--ease); }
.fab a:hover, .fab button:hover { transform: scale(1.07); }
.fab__call { background: var(--red); position: relative; }
.fab__call::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); animation: ping 2.4s var(--ease-out) infinite; pointer-events: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.75); opacity: 0; } }
.fab__wa { background: #25D366; }
.fab__tg { background: #2AABEE; }
@media (max-width: 560px) { .fab { right: 14px; bottom: 14px; gap: 10px; } .fab a, .fab button { width: 50px; height: 50px; } }

/* Промо-плашки слева снизу */
.promos { position: fixed; left: 20px; bottom: 20px; z-index: 76; display: grid; gap: 16px; width: min(320px, calc(100vw - 40px)); }
.promo { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 48px 22px 22px; color: #fff; border: 2px solid var(--red); transition: transform .28s var(--ease), box-shadow .28s; animation: promoIn .55s var(--ease-out) backwards; }
.promo:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(0,0,0,.6); }
@keyframes promoIn { from { opacity: 0; transform: translateY(18px); } }
.promo--red { background: var(--red); }
.promo--dark { background: var(--panel); animation-delay: .15s; }
.promo__icn { flex: none; color: #fff; }
.promo b { font-size: 0.8125rem; font-weight: 600; line-height: 1.45; letter-spacing: .03em; text-transform: uppercase; }
.promo__go { position: absolute; right: 16px; bottom: 14px; color: rgba(255,255,255,.8); transition: transform .26s var(--ease); }
.promo:hover .promo__go { transform: translateX(4px); }
.promo__x { position: absolute; top: -11px; right: -11px; width: 26px; height: 26px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); z-index: 2; transition: background-color .2s, color .2s; }
.promo__x:hover { background: var(--red); color: #fff; border-color: var(--red); }
.promo.is-gone { display: none; }
@media (max-width: 1180px) { .promos { display: none; } }

/* Cookie-бар */
.cookies {
  position: fixed;
  left: 50%; bottom: 22px;
  transform: translate(-50%, 20px);
  z-index: 82;
  width: min(760px, calc(100vw - 32px));
  display: flex;
  align-items: stretch;
  background: #fff;
  box-shadow: 0 16px 44px -18px rgba(0,0,0,.44);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, transform .4s var(--ease-out), visibility .35s;
}
.cookies.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cookies p { flex: 1; padding: 18px 24px; font-size: 0.8125rem; line-height: 1.55; color: var(--body); }
.cookies p a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.cookies button { padding-inline: 36px; background: var(--red); color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background-color .22s; }
.cookies button:hover { background: var(--red-hover); }
@media (max-width: 640px) {
  .cookies { flex-direction: column; bottom: 82px; }
  .cookies button { padding-block: 15px; }
}

/* ------------------------------------------------------------ 23. Модалка */
.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: clamp(14px, 4vw, 48px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(15,15,15,.66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal__box { position: relative; width: 100%; max-width: 500px; background: #fff; padding: clamp(26px, 3vw, 42px); max-height: 90vh; overflow-y: auto; transform: translateY(16px) scale(.985); transition: transform .38s var(--ease-out); }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: background-color .2s, color .2s; }
.modal__close:hover { background: var(--grey); color: var(--red); }
.modal__box h3 { font-size: 1.35rem; margin-bottom: 8px; }
.modal__box > p { font-size: .9375rem; margin-bottom: 24px; }

/* ---------------------------------------------------------- 24. Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 140; background: rgba(12,12,12,.95); display: grid; place-items: center; padding: clamp(14px, 4vw, 56px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { max-width: 1120px; width: 100%; }
.lightbox__fig img { width: 100%; max-height: 74vh; object-fit: contain; }
.lightbox__cap { margin-top: 18px; color: rgba(255,255,255,.7); font-size: .9375rem; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; }
.lightbox__cap b { color: #fff; font-size: 1.15rem; }
.lightbox__close, .lightbox__nav { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; transition: background-color .24s, border-color .24s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 680px) {
  .lightbox__nav { bottom: 22px; top: auto; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 58px); }
  .lightbox__nav--next { right: calc(50% - 58px); }
}

/* ----------------------------------------------- 25. Внутренние страницы */
.page-head { position: relative; background: var(--panel); color: rgba(255,255,255,.72); padding-block: clamp(36px, 4.6vw, 72px); overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 40px, rgba(255,255,255,.026) 40px 80px); }
.page-head > * { position: relative; }
.page-head h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 3rem); text-transform: uppercase; line-height: 1.14; max-width: 22ch; }
.page-head p { margin-top: 18px; font-size: clamp(0.9375rem, 1.2vw, 1.0625rem); line-height: 1.66; max-width: 74ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8125rem; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.crumbs a:hover { color: var(--red-bright); }
.crumbs b { color: rgba(255,255,255,.85); font-weight: 500; }
.anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.anchors a { padding: 10px 20px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: .8125rem; letter-spacing: .03em; color: #fff; transition: all .22s var(--ease); }
.anchors a:hover { background: var(--red); border-color: var(--red); }

.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px, 4vw, 68px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split--rev .split__media { order: -1; }
@media (max-width: 900px) { .split--rev .split__media { order: 0; } }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.checks { display: grid; gap: 13px; margin-top: 24px; }
.checks li { display: flex; gap: 13px; font-size: .9375rem; line-height: 1.55; }
.checks svg { flex: none; margin-top: 4px; color: var(--red); }

.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
@media (max-width: 940px) { .docs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .docs { grid-template-columns: 1fr; } }
.doc { background: #fff; border: 1px solid var(--line); padding: 28px; display: flex; gap: 18px; transition: border-color .3s, transform .32s var(--ease); }
.doc:hover { border-color: var(--red); transform: translateY(-3px); }
.doc__icn { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--red); }
.doc h4 { font-size: 1rem; margin-bottom: 7px; }
.doc p { font-size: .8125rem; line-height: 1.55; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 26px); }
@media (max-width: 940px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team { grid-template-columns: 1fr; } }
.person { background: #fff; border: 1px solid var(--line); }
.person__ph { aspect-ratio: 1; background: var(--grey); display: grid; place-items: center; overflow: hidden; }
.person__ph img { width: 100%; height: 100%; object-fit: cover; }
.person__ph b { font-size: 2.1rem; color: var(--line-2); font-weight: 700; }
.person__body { padding: 22px; }
.person__body h4 { font-size: 1rem; margin-bottom: 4px; }
.person__body > span { font-size: .8125rem; color: var(--red); font-weight: 600; }
.person__body p { font-size: .8125rem; margin-top: 12px; line-height: 1.55; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats__item { background: #fff; padding: clamp(24px, 2.4vw, 36px); text-align: center; }
.stats__num { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; line-height: 1; color: var(--red); display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stats__num sup { font-size: .4em; top: -.9em; }
.stats__label { margin-top: 12px; font-size: .8125rem; line-height: 1.5; color: var(--body); }

.centered-page { min-height: 74svh; display: grid; place-items: center; text-align: center; padding: clamp(56px, 8vw, 120px) var(--gutter); }
.centered-page__inner { max-width: 580px; }
.centered-page__code { font-size: clamp(5rem, 15vw, 9.5rem); font-weight: 700; line-height: 1; color: var(--red); }
.centered-page h1 { text-transform: uppercase; margin-top: 8px; }
.centered-page p { margin-block: 18px 32px; font-size: 1rem; line-height: 1.66; }
.centered-page .btn { margin: 4px; }

/* ------------------------------------------------------------- 26. Анимации */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ 27. Утилиты */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }
.center { text-align: center; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 200; padding: 12px 20px; background: var(--red); color: #fff; transition: top .24s; }
.skip-link:focus { top: 16px; }
