/* ============================================================
   ТОПДОМ — минималистичная дизайн-система
   Ориентир: gwd.ru — белая сетка, тонкий Manrope, пилюли, скруглённые карточки,
   контент почти до краёв экрана. Один шрифт на весь сайт.
   Цвет меняется в одном месте: --accent
   ============================================================ */

:root {
  --ink: #111111;
  --ink-2: #4d4d49;
  --ink-3: #8c8c86;
  --line: #e6e6e2;
  --paper: #f5f5f2;
  --white: #ffffff;
  --dark: #0e0e0e;

  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-num: var(--f-sans);

  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --gutter: clamp(14px, 1.7vw, 28px);
  --hdr: 64px;
  --adv-h: 100px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-sans); font-weight: 400; font-size: 16px; line-height: 1.5;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* один шрифт везде, включая формы и кнопки */
button, input, select, textarea, output { font-family: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-size: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: #fff; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }   /* без max-width: сайт «в края» */
.section { padding-top: clamp(56px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 112px); position: relative; }
.section--paper { background: var(--paper); }

/* ---------- типографика ---------- */
.eyebrow { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-bottom: 16px; }
.h2 { font-size: clamp(32px, 4.4vw, 72px); line-height: 1.04; font-weight: 300; letter-spacing: -.035em; }
.lead { color: var(--ink-2); font-size: clamp(15px, 1.15vw, 18px); max-width: 520px; font-weight: 400; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(28px, 3.4vw, 52px); flex-wrap: wrap; }
.head .lead { padding-bottom: 6px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 6px 0 24px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background .25s, color .25s;
}
.btn:hover { background: #2b2b2b; }
.btn__ic { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease); flex: none; }
.btn:hover .btn__ic { transform: rotate(45deg); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper); }
.btn--light .btn__ic { background: var(--ink); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding-right: 5px; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { height: 42px; font-size: 14px; padding-left: 18px; gap: 10px; }
.btn--sm .btn__ic { width: 32px; height: 32px; }
.arrow { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

.pills { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--paper); flex-wrap: wrap; }
.section--paper .pills { background: #fff; }
.pill { height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: 14px; color: var(--ink-3); transition: background .25s, color .25s, box-shadow .25s; }
.pill:hover { color: var(--ink); }
.pill.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 8px rgba(0, 0, 0, .09); }
.section--paper .pill.is-active { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- шапка (как у gwd.ru — белая плашка) ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hdr); display: flex; align-items: center; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); border-bottom: 1px solid var(--line); }
.header__in { width: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: block; flex: none; }
.logo img { height: 34px; width: auto; filter: brightness(0); }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { white-space: nowrap; padding: 9px 13px; border-radius: 999px; font-weight: 500; font-size: 14.5px; transition: background .25s; }
.nav a:hover, .nav a.is-current { background: var(--paper); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header__phone { font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.header__tg { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: background .25s, color .25s; }
.header__tg:hover { background: var(--ink); color: #fff; }
.header__tg svg { width: 19px; height: 19px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); position: relative; margin-left: auto; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 26px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: #fff; padding: calc(var(--hdr) + 28px) var(--gutter) 32px; display: flex; flex-direction: column; transform: translateY(-100%); transition: transform .5s var(--ease); visibility: hidden; }
.menu-open .mobile-menu { transform: none; visibility: visible; }
.mobile-menu a.m-link { font-size: 30px; font-weight: 300; padding: 12px 0; border-bottom: 1px solid var(--line); letter-spacing: -.03em; }
.mobile-menu .m-foot { margin-top: auto; display: grid; gap: 14px; }

/* ---------- hero: минимум — фото, заголовок, одна кнопка ---------- */
.hero { position: relative; margin-top: var(--hdr); height: calc(100svh - var(--hdr) - var(--adv-h)); min-height: 520px; max-height: none; color: #fff; overflow: hidden; background: #222; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; transform: scale(1.05); animation: heroZoom 12s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.16) 42%, rgba(0,0,0,0) 62%), linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 55%); }
.hero__in { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(24px, 3.4vw, 52px); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero h1 { font-size: clamp(34px, 4.9vw, 88px); line-height: 1.0; font-weight: 300; letter-spacing: -.04em; max-width: 11.5em; }
.hero__sub { margin-top: 20px; max-width: 460px; font-size: clamp(15px, 1.25vw, 19px); opacity: .92; }

/* ---------- преимущества ---------- */
.adv { background: var(--paper); }
.adv__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.adv__item { padding: 26px 24px 26px 0; }
.adv__item + .adv__item { padding-left: 24px; border-left: 1px solid var(--line); }
.adv__item b { display: block; font-size: 16px; font-weight: 600; }
.adv__item span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }

/* ---------- проекты ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 12px; }
.proj { display: block; cursor: pointer; text-align: left; width: 100%; }
.proj__img { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.proj:hover .proj__img img { transform: scale(1.04); }
.tag { position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.tag--dark { left: auto; right: 12px; background: rgba(14, 14, 14, .6); color: #fff; backdrop-filter: blur(8px); }
.proj__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; font-size: 18px; }
.proj__row b { font-weight: 600; }
.proj__row span { font-weight: 500; white-space: nowrap; }
.proj__meta { display: flex; gap: 18px; margin-top: 6px; color: var(--ink-3); font-size: 14px; flex-wrap: wrap; }
.proj__meta i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.proj__meta svg { width: 16px; height: 16px; }
.proj.is-hidden { display: none; }
.center-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- планировка ---------- */
.plan { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: center; }
.plan__media { border-radius: var(--r-lg); overflow: hidden; position: relative; aspect-ratio: 5 / 4; }
.plan__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plan__body .lead { margin-top: 20px; }
.steps3 { margin-top: 28px; }
.steps3 li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps3 li:last-child { border-bottom: 1px solid var(--line); }
.steps3 em { font-style: normal; font-weight: 200; font-size: 34px; line-height: 1; color: var(--ink); }
.steps3 b { display: block; font-size: 16px; font-weight: 600; }
.steps3 span { color: var(--ink-2); font-size: 14.5px; }
.form-inline { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.form-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.field { height: 52px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 22px; font-size: 15px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.form-inline .field { flex: 1 1 200px; }

/* ---------- построенные дома ---------- */
.built { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.built__item { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; isolation: isolate; }
.built__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.built__item:hover img { transform: scale(1.05); }
.built__item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.62) 100%); }
.built__top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; }
.built__top .tag { position: static; }
.built__bot { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.built__bot b { font-size: clamp(28px, 3vw, 44px); font-weight: 300; letter-spacing: -.03em; display: block; line-height: 1.05; }
.built__bot p { margin-top: 4px; opacity: .88; font-size: 14.5px; }

/* ---------- комплектации ---------- */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.level { position: relative; min-height: 500px; padding: 24px 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: color .4s; }
.level:last-child { border-right: 0; }
.level__bg { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity .6s var(--ease), transform 1.2s var(--ease); transform: scale(1.06); }
.level__bg img { width: 100%; height: 100%; object-fit: cover; }
.level::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.72)); opacity: 0; transition: opacity .5s; }
.level:hover { color: #fff; }
.level:hover .level__bg { opacity: 1; transform: scale(1); }
.level:hover::after { opacity: 1; }
.level__chip { align-self: flex-start; border: 1px solid currentColor; border-radius: 999px; padding: 5px 14px; font-weight: 500; font-size: 13px; }
.level__num { font-weight: 200; font-size: clamp(120px, 13vw, 210px); line-height: .95; text-align: center; letter-spacing: -.04em; margin: 4px 0 12px; }
.level h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.level__list { margin: 16px 0 0; display: grid; gap: 6px; font-size: 14px; opacity: .85; }
.level__list li { display: flex; gap: 10px; align-items: baseline; }
.level__list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-2px); }
.level__list .base { opacity: .65; }
.level__foot { margin-top: auto; padding-top: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.level__foot b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.level__foot span { font-size: 14px; opacity: .75; }
.level__go { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .3s, color .3s; }
.level:hover .level__go { background: #fff; color: var(--ink); transform: rotate(45deg); }
.level--cta { background: var(--ink); color: #fff; cursor: pointer; }
.level--cta::after { display: none; }
.level--cta .level__num { text-align: left; font-size: clamp(100px, 10vw, 160px); }
.level--cta .level__go { background: #fff; color: var(--ink); }
.level--cta .lead2 { font-size: 16px; opacity: .8; margin-top: 8px; }

.calc { margin-top: 12px; border-radius: var(--r-lg); background: #fff; padding: clamp(22px, 2.6vw, 40px); display: grid; grid-template-columns: .8fr 1.3fr auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.calc h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 300; letter-spacing: -.03em; line-height: 1.12; }
.calc__ctl { display: grid; gap: 18px; }
.calc__lab { display: flex; justify-content: space-between; font-weight: 500; font-size: 14px; margin-bottom: 10px; }
.calc__lab output { font-weight: 300; font-size: 22px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 3px; background: var(--line); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); border: 5px solid #fff; box-shadow: 0 1px 8px rgba(0,0,0,.3); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 5px solid #fff; box-shadow: 0 1px 8px rgba(0,0,0,.3); cursor: pointer; }
.calc__res { text-align: right; }
.calc__res small { display: block; color: var(--ink-3); font-size: 13px; }
.calc__res b { display: block; font-size: clamp(32px, 3.4vw, 52px); letter-spacing: -.04em; font-weight: 300; line-height: 1.05; margin: 4px 0 16px; white-space: nowrap; }
.calc__res .btn { margin-left: auto; }

/* ---------- технологии ---------- */
.tech { position: relative; border-radius: var(--r-lg); overflow: hidden; height: clamp(300px, calc(100svh - 400px), 560px); background: var(--dark); color: #fff; isolation: isolate; }
.tech__img { position: absolute; inset: 0; z-index: -2; }
.tech__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); transform: scale(1.04); }
.tech__img img.is-on { opacity: 1; transform: scale(1); }
.tech::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); }
.tech__foot { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 2.6vw, 40px); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.tech__title { font-size: clamp(28px, 3.8vw, 60px); line-height: 1.04; font-weight: 300; letter-spacing: -.035em; max-width: 14em; }

/* ---------- цифры ---------- */
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.num { padding: 28px 24px 40px 0; border-bottom: 1px solid var(--line); }
.num:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.num b { display: block; font-size: clamp(56px, 8vw, 140px); line-height: .95; font-weight: 200; letter-spacing: -.05em; }
.num span { display: block; margin-top: 14px; font-weight: 600; font-size: 16px; }
.num p { color: var(--ink-2); font-size: 14px; margin-top: 4px; max-width: 280px; }

/* ---------- доверие ---------- */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.trust__photos { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: end; }
.trust__photos img { width: 100%; border-radius: var(--r-md); object-fit: cover; }
.trust__photos img:first-child { aspect-ratio: 4 / 5; }
.trust__photos img:last-child { aspect-ratio: 3 / 4; }
.trust__body .lead { margin-top: 20px; }
.celebs { margin-top: clamp(56px, 7vw, 104px); }
.celeb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.celeb { display: grid; grid-template-columns: 38% 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.celeb img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.celeb__b { padding: 28px; display: flex; flex-direction: column; }
.celeb__b h3 { font-size: 28px; letter-spacing: -.03em; font-weight: 300; }
.celeb__b ul { margin-top: 12px; color: var(--ink-2); font-size: 14px; display: grid; gap: 3px; }
.celeb__b p { margin-top: 16px; font-weight: 600; font-size: 15px; }
.celeb__b .link-arrow { margin-top: auto; padding-top: 18px; }
.assoc { margin-top: clamp(48px, 6vw, 88px); }
.assoc__h { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; }
.assoc__h h3 { font-size: clamp(24px, 2.6vw, 38px); font-weight: 300; letter-spacing: -.03em; max-width: 620px; line-height: 1.1; }
.assoc__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.assoc__item { padding: 22px 20px 8px 0; }
.assoc__item + .assoc__item { padding-left: 20px; border-left: 1px solid var(--line); }
.assoc__logo { height: 76px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; margin-bottom: 18px; }
.assoc__item b { font-weight: 200; font-size: 72px; line-height: 1; display: block; letter-spacing: -.04em; }
.assoc__item span { display: block; margin-top: 10px; font-weight: 600; font-size: 15px; }
.assoc__item small { color: var(--ink-3); font-size: 13px; }

/* ---------- этапы ---------- */
.fix__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: #fff; font-weight: 500; font-size: 14.5px; }
.stages { margin-top: clamp(36px, 5vw, 72px); display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--ink); }
.stage { padding: 18px 12px 12px 0; }
.stage + .stage { padding-left: 14px; border-left: 1px solid rgba(0,0,0,.1); }
.stage em { display: block; font-style: normal; font-weight: 200; font-size: clamp(60px, 6.4vw, 110px); line-height: 1; letter-spacing: -.04em; margin: 8px 0 20px; }
.stage b { display: block; font-size: 15.5px; line-height: 1.3; font-weight: 600; }
.fix__list { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fix__list li { padding: 18px 20px; border-radius: var(--r-md); background: #fff; font-weight: 500; font-size: 15px; line-height: 1.3; }

/* ---------- отзывы: две бегущие строки с видео ---------- */
.rev-sec { overflow: hidden; }
.rev-title { font-size: clamp(32px, 4.4vw, 72px); line-height: 1.04; font-weight: 300; letter-spacing: -.035em; text-transform: none; max-width: 14em; }
.rev-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 56px); }
.rev-rate { display: flex; align-items: center; gap: 18px; }
.rev-rate b { font-size: clamp(44px, 4vw, 64px); font-weight: 200; letter-spacing: -.04em; line-height: 1; }
.rev-rate span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.rev-rate i { font-style: normal; color: var(--ink); letter-spacing: 3px; font-size: 15px; display: block; }
.marquee { display: grid; gap: 12px; }
.marquee__row { display: flex; width: max-content; gap: 12px; animation: marquee 70s linear infinite; will-change: transform; }
.marquee__row.is-rev { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.vid { flex: none; width: clamp(240px, 24vw, 400px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; position: relative; background: #ddd; cursor: pointer; }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vid:hover img { transform: scale(1.05); }
.vid__play { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease); }
.vid:hover .vid__play { transform: scale(1.12); }
.vid__play svg { width: 15px; height: 15px; margin-left: 2px; }
.rev-cta { margin-top: clamp(28px, 4vw, 52px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.rev-cta p { color: var(--ink-2); max-width: 560px; }
@media (prefers-reduced-motion: reduce) { .marquee__row { animation: none; } .marquee { overflow-x: auto; } }

/* ---------- оплата ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pay { border-radius: var(--r-lg); background: #fff; padding: 28px 24px; display: flex; flex-direction: column; min-height: 320px; transition: box-shadow .3s, transform .3s var(--ease); }
.pay:hover { box-shadow: 0 16px 40px rgba(0,0,0,.07); transform: translateY(-3px); }
.pay__n { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-bottom: 40px; }
.pay h3 { font-size: 24px; letter-spacing: -.03em; font-weight: 400; }
.pay p { color: var(--ink-2); font-size: 14.5px; margin-top: 10px; }
.pay__big { font-weight: 200; font-size: 76px; line-height: 1; margin-top: auto; padding-top: 20px; display: block; letter-spacing: -.04em; }
.pay__big small { font-size: 14px; color: var(--ink-3); font-weight: 400; display: block; margin-top: 6px; line-height: 1.3; letter-spacing: 0; }
.pay ul { margin-top: 16px; display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.pay ul li { display: flex; gap: 8px; align-items: baseline; }
.pay ul li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); flex: none; transform: translateY(-2px); }
.banks { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.banks span { height: 38px; padding: 0 12px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; }
.banks img { height: 20px; width: auto; max-width: 70px; object-fit: contain; }
.mort { margin-top: 12px; border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: clamp(24px, 3vw, 40px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.mort h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 300; letter-spacing: -.03em; }
.mort p { opacity: .7; margin-top: 8px; }
.mort__r { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.mort__r small { opacity: .6; font-size: 13px; display: block; }

/* ---------- посёлки: карта и карточки (белый / серый / тёмно-серый) ---------- */
.vill { background: var(--paper); color: var(--ink); position: relative; overflow: hidden; }
.vill__head { padding-top: clamp(56px, 7vw, 104px); padding-bottom: 32px; }
.vill__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.vill__stage { position: relative; display: grid; grid-template-columns: 1fr 430px; min-height: 0; background: #eef0f2; }
.vill__map { position: relative; overflow: hidden; container-type: size; aspect-ratio: 1.4045 / 1; }
.vill__map .mapbox { width: 100cqw; height: 100cqh; left: 0; top: 0; }
.mapbox { position: absolute; width: max(100cqw, calc(100cqh * 1.4045)); height: max(100cqh, calc(100cqw / 1.4045)); left: calc((100cqw - max(100cqw, 100cqh * 1.4045)) * .35); top: calc((100cqh - max(100cqh, 100cqw / 1.4045)) * .5); }
.vill__map-bg { position: absolute; inset: 0; background: url("../assets/opt/map-main.webp") center / 100% 100%; transition: transform 1.4s var(--ease); }
.vill__map:hover .vill__map-bg { transform: scale(1.03); }
.vill__side { padding: 52px 40px; background: #fff; display: flex; flex-direction: column; }
.kicker { color: var(--ink-3); font-weight: 500; font-size: 14px; }
.vill__side h2 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.08; font-weight: 300; margin: 12px 0 0; letter-spacing: -.035em; }
.vill__info { margin: 20px 0 24px; color: var(--ink-2); line-height: 1.55; min-height: 92px; font-size: 15px; }
.vcards { display: flex; flex-direction: column; gap: 10px; }
.vcard { min-height: 100px; padding: 18px 20px; border-radius: var(--r-md); background: var(--paper); display: grid; grid-template-columns: 14px 1fr 20px; gap: 14px; color: var(--ink); align-items: start; border: 1px solid transparent; transition: border-color .25s, background .25s; }
.vcard:hover, .vcard.is-hover { border-color: var(--ink); background: #fff; }
.vcard .dot { width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--ink); }
.vcard h3 { font-size: 18px; font-weight: 500; margin: 0; letter-spacing: -.02em; }
.vcard p, .vcard b { color: var(--ink-3); font-size: 14px; display: block; margin: 0; font-weight: 400; }
.vcard b { color: var(--ink-2); font-weight: 500; margin-top: 2px; }
.vcard strong { font-size: 26px; line-height: 1; font-weight: 300; }
.pt { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; z-index: 5; cursor: pointer; display: block; }
.pt i { position: absolute; left: 27px; top: 27px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); background: rgba(17,17,17,.1); opacity: 0; transition: opacity .25s, box-shadow .25s; }
.pt:hover i, .pt.is-hover i { opacity: 1; box-shadow: 0 0 0 6px rgba(17,17,17,.12); }
.pt svg { display: none; position: absolute; inset: -32px; width: calc(100% + 64px); height: calc(100% + 64px); animation: spinCW 7s linear infinite reverse; pointer-events: none; overflow: visible; }
.pt:hover svg, .pt.is-hover svg { display: block; }
.pt text { fill: var(--ink); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-family: var(--f-sans); font-weight: 600; }
@keyframes spinCW { to { transform: rotate(360deg); } }
.vill-feats { padding-top: 12px; }
.vf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 40px; }
.vf { border-radius: var(--r-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .3s, transform .4s var(--ease); }
.vf:hover { box-shadow: 0 16px 40px rgba(0,0,0,.08); transform: translateY(-3px); }
.vf__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; display: block; }
.vf__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.vf:hover .vf__img img { transform: scale(1.05); }
.vf__b { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.vf__b .kicker { font-size: 13px; }
.vf__b h3 { font-size: 26px; font-weight: 300; margin: 6px 0 0; letter-spacing: -.03em; }
.vf__b p { color: var(--ink-2); font-size: 14.5px; margin: 10px 0 0; }
.vf__b ul { margin: 14px 0 0; display: grid; gap: 6px; font-size: 13.5px; }
.vf__b ul li { padding-top: 8px; border-top: 1px solid var(--line); }
.vf__b .link-arrow { margin-top: auto; padding-top: 18px; }
.vill__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: clamp(48px, 6vw, 88px); }
.vill__foot p { color: var(--ink-2); max-width: 520px; }

/* ---------- популярные проекты на главной: 2 в ряд, подпись при наведении ---------- */
.proj-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pcard { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); isolation: isolate; color: #fff; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.pcard:hover img { transform: scale(1.04); }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.18) 38%, rgba(0,0,0,0) 60%); opacity: 0; transition: opacity .5s var(--ease); }
.pcard .tag { z-index: 1; }
.pcard__info { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2vw, 30px); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pcard:hover::after, .pcard:focus-visible::after { opacity: 1; }
.pcard:hover .pcard__info, .pcard:focus-visible .pcard__info { opacity: 1; transform: none; }
.pcard__info b { display: block; font-size: clamp(24px, 2.4vw, 38px); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; }
.pcard__info small { display: block; margin-top: 6px; font-size: 14px; opacity: .88; }
.pcard__info span { font-size: clamp(18px, 1.6vw, 24px); font-weight: 400; white-space: nowrap; }
@media (hover: none) { .pcard::after, .pcard__info { opacity: 1; transform: none; } }

/* ---------- личная встреча: люди проекта ---------- */
.meet { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(28px, 5vw, 88px); align-items: start; }
.meet__form { position: sticky; top: calc(var(--hdr) + 24px); }
.meet__form .lead { margin-top: 18px; }
.meet__form form { margin-top: 28px; display: grid; gap: 10px; max-width: 460px; }
.meet__form .btn { justify-content: space-between; width: 100%; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.person { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: #d9d9d6; isolation: isolate; color: #fff; }
.person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; z-index: -2; filter: grayscale(1); transition: filter .6s var(--ease), transform 1s var(--ease); }
.person:hover img { filter: grayscale(0); transform: scale(1.03); }
.person::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 45%); }
.person div { position: absolute; left: 20px; right: 20px; bottom: 18px; }
.person b { display: block; font-size: clamp(20px, 1.8vw, 28px); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.person span { display: block; margin-top: 4px; font-size: 13.5px; opacity: .85; }

/* ---------- рядом с посёлком есть всё ---------- */
.near { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 72px); align-items: stretch; }
.near__title { font-size: clamp(34px, 5vw, 84px); line-height: 1; font-weight: 300; letter-spacing: -.045em; }
.near__list { margin-top: clamp(28px, 4vw, 56px); border-top: 1px solid var(--ink); }
.near__item { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: clamp(22px, 2.2vw, 34px); font-weight: 300; letter-spacing: -.03em; color: var(--ink-3); transition: color .3s, padding .4s var(--ease); }
.near__item small { font-size: 14px; letter-spacing: 0; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.near__item:hover { color: var(--ink-2); }
.near__item.is-active { color: var(--ink); padding-left: 14px; border-bottom-color: var(--ink); }
.near__item.is-active small { color: var(--ink); }
.near__stage { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; background: var(--dark); color: #fff; isolation: isolate; }
.near__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); transform: scale(1.04); }
.near__stage img.is-on { opacity: 1; transform: scale(1); }
.near__stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,.05) 60%); }
.near__panel { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: clamp(18px, 2vw, 28px); border-radius: var(--r-md); background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.near__panel h3 { font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.near__panel ul { margin-top: 12px; display: grid; gap: 0; }
.near__panel li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.near__panel li b { font-weight: 500; white-space: nowrap; }
.near__note { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- вживую ---------- */
.locs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.loc { grid-column: span 2; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.1; color: #fff; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; text-align: left; }
.loc:nth-child(n+4) { grid-column: span 3; aspect-ratio: 16 / 7; }
.loc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.loc:hover img { transform: scale(1.05); }
.loc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.04) 30%, rgba(0,0,0,.7)); }
.loc .tag { position: absolute; top: 16px; left: 16px; }
.loc h3 { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.03em; font-weight: 300; line-height: 1.1; }
.loc p { opacity: .88; font-size: 14px; margin-top: 6px; max-width: 460px; }
.loc .loc__go { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; }
.loc .loc__go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.loc:hover .loc__go svg { transform: translate(3px, -3px); }
.acts { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.act { border-radius: var(--r-lg); background: var(--paper); padding: 24px; display: flex; flex-direction: column; min-height: 200px; transition: background .3s, color .3s; text-align: left; }
.act:hover { background: var(--ink); color: #fff; }
.act b { font-size: 22px; letter-spacing: -.03em; line-height: 1.15; font-weight: 400; }
.act span { color: var(--ink-3); font-size: 14.5px; margin-top: 8px; transition: color .3s; }
.act:hover span { color: rgba(255,255,255,.65); }
.act .btn__ic { margin-top: auto; background: var(--ink); color: #fff; align-self: flex-end; transition: background .3s, color .3s, transform .3s; }
.act:hover .btn__ic { background: #fff; color: var(--ink); transform: rotate(45deg); }

/* ---------- финал ---------- */
.final { background: var(--paper); border-radius: var(--r-lg); padding: clamp(28px, 4.4vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.final .lead { margin-top: 18px; }
.final form { display: grid; gap: 10px; }
.final .btn { justify-content: space-between; width: 100%; }
.final__addr { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.final__addr b { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; margin-bottom: 4px; }

/* ---------- футер ---------- */
.footer { background: var(--dark); color: #fff; padding-top: 64px; padding-bottom: 0; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 32px; }
.footer .logo img { height: 60px; filter: none; }
.footer__about { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 18px; max-width: 280px; }
.footer h4 { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 18px; font-weight: 500; }
.footer li { margin-bottom: 10px; font-size: 14.5px; }
.footer li a { opacity: .82; transition: opacity .2s; }
.footer li a:hover { opacity: 1; text-decoration: underline; }
.footer__tel { font-size: 24px; font-weight: 300; letter-spacing: -.02em; display: block; }
.footer__soc { display: flex; gap: 10px; margin-top: 16px; }
.footer__soc a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; transition: background .25s, color .25s; }
.footer__soc a:hover { background: #fff; color: var(--dark); }
.footer__soc svg { width: 18px; height: 18px; }
.footer__mark { margin-top: 8px; height: 9.8vw; overflow: hidden; pointer-events: none; user-select: none; }
.footer__mark span { display: block; text-align: center; font-weight: 200; letter-spacing: -.05em; font-size: 22vw; line-height: 1; white-space: nowrap; color: rgba(255,255,255,.08); transform: translateY(-.12em); }
.footer__bot { padding-top: 22px; padding-bottom: 6px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); }
.modal__card { position: relative; width: min(470px, 100%); border-radius: var(--r-lg); background: #fff; color: var(--ink); padding: 34px 30px 30px; transform: translateY(24px) scale(.98); transition: transform .45s var(--ease); max-height: 94vh; overflow: auto; }
.modal.is-open .modal__card { transform: none; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 22px; line-height: 1; }
.modal__card h3 { font-size: 28px; letter-spacing: -.03em; font-weight: 300; line-height: 1.12; padding-right: 36px; }
.modal__card > p { color: var(--ink-2); font-size: 14.5px; margin-top: 10px; }
.modal form { margin-top: 22px; display: grid; gap: 10px; }
.modal .btn { justify-content: space-between; width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.modal__ok { text-align: center; padding: 20px 0 6px; display: none; }
.modal__ok .ok-ic { width: 68px; height: 68px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; margin: 0 auto 18px; }
.modal__ok .ok-ic svg { width: 32px; height: 32px; }
.modal.is-sent form, .modal.is-sent .modal__lead { display: none; }
.modal.is-sent .modal__ok { display: block; }

/* ---------- появление при прокрутке (включается только если JS работает) ---------- */
.reveal-on .rv:not(.is-in) { opacity: 0; transform: translateY(24px); }
.rv { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .rv:not(.is-in) { opacity: 1; transform: none; }
  .hero__bg img { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .header__phone { display: none; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .level:nth-child(2) { border-right: 0; }
  .level:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .level { min-height: 460px; }
  .calc { grid-template-columns: 1fr; }
  .calc__res { text-align: left; }
  .calc__res .btn { margin-left: 0; }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(4, 1fr); }
  .stage:nth-child(5) { padding-left: 0; border-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .vill__stage { grid-template-columns: 1fr 360px; }
  .vill__side { padding: 40px 26px; }
}
@media (max-width: 900px) {
  .meet, .near { grid-template-columns: 1fr; }
  .meet__form { position: static; }
  .near__stage { min-height: 460px; }
  .nav, .header__right { display: none; }
  .burger { display: block; }
  .adv__grid { grid-template-columns: 1fr 1fr; }
  .adv__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .plan, .trust, .rev, .final { grid-template-columns: 1fr; }
  .built { grid-template-columns: 1fr; }
  .built__item { aspect-ratio: 4 / 3.2; }
  .num-grid { grid-template-columns: 1fr 1fr; }
  .num:nth-child(n) { padding-left: 0; border-left: 0; }
  .num:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .celeb-grid { grid-template-columns: 1fr; }
  .assoc__grid { grid-template-columns: 1fr 1fr; }
  .assoc__item:nth-child(n) { padding-left: 0; border-left: 0; }
  .assoc__item:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
  .fix__list { grid-template-columns: 1fr 1fr; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stage:nth-child(n) { padding-left: 14px; border-left: 1px solid rgba(0,0,0,.1); }
  .stage:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .acts { grid-template-columns: 1fr; }
  .act { min-height: 140px; }
  .locs { grid-template-columns: 1fr 1fr; }
  .loc, .loc:nth-child(n+4) { grid-column: span 1; aspect-ratio: 1 / 1.1; }
  .loc:nth-child(3) { grid-column: span 2; aspect-ratio: 16 / 9; }
  .vf-grid { grid-template-columns: 1fr; }
  .vill__stage { grid-template-columns: 1fr; min-height: 0; }
  .vill__map { height: 52vh; min-height: 360px; }
  .vill__side { border-left: 0; border-top: 1px solid var(--line); }
  .vill__info { min-height: 0; }
  .hero__in { flex-direction: column; align-items: flex-start; gap: 22px; }
  .tech { height: clamp(300px, 52svh, 460px); }
}
@media (max-width: 600px) {
  .proj-grid--2 { grid-template-columns: 1fr; }
  .people { gap: 8px; }
  .proj-grid { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr; }
  .level:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .level:last-child { border-bottom: 0; }
  .level { min-height: 440px; }
  .level__num { font-size: 160px; }
  .vids { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
  .pay { min-height: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .celeb { grid-template-columns: 1fr; }
  .celeb img { min-height: 0; aspect-ratio: 4 / 3; }
  .head { align-items: flex-start; }
  .locs { grid-template-columns: 1fr; }
  .loc:nth-child(n) { grid-column: span 1; aspect-ratio: 4 / 3; }
  .adv__grid { grid-template-columns: 1fr; }
  .adv__item:nth-child(n) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 18px; }
  .adv__item:first-child { border-top: 0; }
  .fix__list { grid-template-columns: 1fr; }
  .tech { height: 52svh; }
  .pill { padding: 0 14px; }
}

/* ---------- переход между страницами (js/shared.js): «лесенка» из чёрных полос и «сдвиг» ---------- */
html.tr-enter::before { content: ""; position: fixed; inset: 0; z-index: 9998; background: #0b0b0b url("../assets/opt/logo.png") center / 112px auto no-repeat; pointer-events: none; }
.trl { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.trl__cols { position: absolute; inset: 0; display: flex; }
.trl__cols i { flex: 1; margin-right: -1px; background: #0b0b0b; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .36s cubic-bezier(.76, 0, .24, 1); transition-delay: calc(var(--k) * 26ms); }
.trl.is-in .trl__cols i { transform: scaleY(1); }
.trl__logo { position: absolute; left: 50%; top: 50%; width: 112px; height: auto; translate: -50% -50%; opacity: 0; transition: opacity .2s; pointer-events: none; }
.trl.is-in .trl__logo { opacity: 1; transition: opacity .22s ease .16s; }
.trl.is-static .trl__logo { transition: none; }
.trl.is-out .trl__logo { opacity: 0; transition: opacity .16s; }
@media (max-width: 700px) { .trl__logo { width: 88px; } html.tr-enter::before { background-size: 88px auto; } }
.trl.is-static .trl__cols i { transition: none; }
.trl.is-out .trl__cols i { transform-origin: 50% 0; transform: scaleY(0); transition-delay: calc((5 - var(--k)) * 24ms); transition-duration: .42s; }
@media (prefers-reduced-motion: reduce) { .trl { display: none; } }

/* сдвиг: страницы стоят рядом в порядке вкладок шапки; старая уезжает, новая приезжает одновременно (View Transitions), шапка стоит */
@view-transition { navigation: auto; }
.header { view-transition-name: hdr; }
::view-transition-group(hdr) { animation: none; }
::view-transition-old(hdr) { display: none; }
::view-transition-new(hdr) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .62s; animation-timing-function: cubic-bezier(.77, 0, .18, 1); animation-fill-mode: both; mix-blend-mode: normal; }
html:active-view-transition-type(fwd)::view-transition-old(root) { animation-name: td-vt-out-l; }
html:active-view-transition-type(fwd)::view-transition-new(root) { animation-name: td-vt-in-r; }
html:active-view-transition-type(back)::view-transition-old(root) { animation-name: td-vt-out-r; }
html:active-view-transition-type(back)::view-transition-new(root) { animation-name: td-vt-in-l; }
@keyframes td-vt-out-l { to { transform: translateX(-100%); } }
@keyframes td-vt-out-r { to { transform: translateX(100%); } }
@keyframes td-vt-in-r { from { transform: translateX(100%); } }
@keyframes td-vt-in-l { from { transform: translateX(-100%); } }

/* запасной вариант (браузер без View Transitions): сначала уезжает, потом приезжает; направление то же */
html.tr-slide-out, html.tr-slide { overflow-x: hidden; }
html.tr-slide-out body > :not(#header, #mobileMenu, #modal, .trl, svg, script, style, link, .cfg-back, .lbx, .hv, .rm-hv, .theme-pop, .rm-dec, .rm-top) { translate: -100vw 0; transition: translate .42s cubic-bezier(.7, 0, .3, 1); }
html.tr-slide-out.tr-back body > :not(#header, #mobileMenu, #modal, .trl, svg, script, style, link, .cfg-back, .lbx, .hv, .rm-hv, .theme-pop, .rm-dec, .rm-top) { translate: 100vw 0; }
html.tr-slide body > :not(#header, #mobileMenu, #modal, .trl, svg, script, style, link, .cfg-back, .lbx, .hv, .rm-hv, .theme-pop, .rm-dec, .rm-top) { translate: 100vw 0; }
html.tr-slide.tr-back body > :not(#header, #mobileMenu, #modal, .trl, svg, script, style, link, .cfg-back, .lbx, .hv, .rm-hv, .theme-pop, .rm-dec, .rm-top) { translate: -100vw 0; }
html.tr-slide.tr-slide-go body > :not(#header, #mobileMenu, #modal, .trl, svg, script, style, link, .cfg-back, .lbx, .hv, .rm-hv, .theme-pop, .rm-dec, .rm-top) { translate: 0 0; transition: translate .5s cubic-bezier(.16, 1, .3, 1); }
@media (prefers-reduced-motion: reduce) { html.tr-slide-out body > *, html.tr-slide body > * { translate: none !important; transition: none !important; } }

/* кнопка выбора анимации перехода в шапке */
.tanim { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px 0 11px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; flex: none; cursor: pointer; white-space: nowrap; transition: background .25s, box-shadow .25s; }
.tanim:hover { box-shadow: 0 0 0 2px rgba(0, 0, 0, .08); }
.tanim__i { width: 18px; height: 18px; flex: none; }
.tanim .tanim__sl { display: none; }
.tanim[data-mode="slide"] .tanim__st { display: none; }
.tanim[data-mode="slide"] .tanim__sl { display: inline; }
.tanim__v { min-width: 50px; text-align: left; line-height: 1; }
.tanim:focus-visible { outline: 2px solid var(--pink, #111); outline-offset: 2px; }
.header__soc--menu .tanim { height: 44px; font-size: 14px; padding: 0 16px 0 13px; }
@media (max-width: 1500px) { .header__soc:not(.header__soc--menu) .tanim__v { min-width: 0; } .header__soc:not(.header__soc--menu) .tanim { padding: 0 11px; } }
@media (max-width: 1300px) { .header__soc:not(.header__soc--menu) .tanim { display: none; } }



/* =====================  ТЕЛЕФОН: логика без наведения  ===================== */
@media (max-width: 900px) {
  .h2 { font-size: clamp(28px, 7.4vw, 44px); }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .head { margin-bottom: 24px; gap: 14px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 56px); }
  /* подписи на карточках проектов видны сразу */
  .pcard::after { opacity: 1; }
  .pcard__info { opacity: 1; transform: none; padding: 16px; }
  .pcard__info b { font-size: 22px; }
  .pcard__info span { font-size: 17px; }
  /* люди — сразу цветные */
  .person img { filter: none; }
  /* комплектации: компактные карточки, каждая целиком умещается в экран */
  .levels { grid-template-columns: 1fr; }
  .level { min-height: 0; padding: 18px 18px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .level:last-child { border-bottom: 0; }
  .level__chip { font-size: 12px; padding: 4px 12px; }
  .level__num, .level--cta .level__num { font-size: 84px; text-align: left; margin: 0 0 4px; line-height: .95; }
  .level h3 { font-size: 20px; }
  .level__list { grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: 12.5px; margin-top: 10px; }
  .level__foot { padding-top: 14px; }
  .level__foot b { font-size: 20px; }
  .level__go { width: 38px; height: 38px; }
  .level--cta .lead2 { font-size: 14px; margin-top: 4px; }
  .level:hover { color: inherit; }
  .level--cta:hover { color: #fff; }
  .level:hover .level__bg { opacity: 0; transform: scale(1.06); }
  .level:hover::after { opacity: 0; }
  .level:hover .level__go { background: var(--ink); color: #fff; transform: none; }
  .level--cta:hover .level__go { background: #fff; color: var(--ink); }
}

@media (max-width: 900px) {
  /* переключатели-пилюли: одна прокручиваемая строка, не ломают ширину экрана */
  .pills { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
  /* карта посёлков на главной: целиком, все метки видны */
  .vill__map { height: calc(100vw / 1.4045 + 28px); min-height: 0; background: #eef0f2; aspect-ratio: auto; }
  .vill__map .mapbox { width: 100cqw; height: calc(100cqw / 1.4045); left: 0; top: calc((100cqh - 100cqw / 1.4045) / 2); }
  .vill__side { padding: 28px var(--gutter) 32px; }
  .vill__side h2 { font-size: 32px; }
  .vill__info { min-height: 0; margin: 14px 0 18px; }
  .vcard { min-height: 0; padding: 16px; }
  .vill__head { padding-top: 48px; }
  .vf__img { aspect-ratio: 16 / 9; }
  .vill__foot .btn { width: 100%; justify-content: space-between; }
  /* «в 5–10 минутах»: список + фото компактнее */
  .near__stage { min-height: 0; aspect-ratio: 4 / 5; }
  .near__panel { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .near__panel li { padding: 8px 0; font-size: 14px; }
  .near__note { display: none; }
  .near__item { padding: 14px 0; font-size: 22px; }
  /* отзывы / люди / оплата / локации */
  .rev-title { font-size: clamp(28px, 7.4vw, 44px); }
  .people { grid-template-columns: 1fr 1fr; }
  .person div { left: 12px; right: 12px; bottom: 12px; }
  .person b { font-size: 17px; }
  .person span { font-size: 12px; }
  .pay__n { margin-bottom: 18px; }
  .mort { padding: 22px; }
  .mort__r { width: 100%; }
  .mort__r .btn { width: 100%; justify-content: space-between; }
  .loc { aspect-ratio: 4 / 3.2 !important; padding: 18px; }
  .act { min-height: 0; padding: 20px; gap: 10px; }
  .act .btn__ic { margin-top: 14px; }
  .calc { padding: 20px; gap: 20px; }
  .calc__res b { font-size: 34px; }
  .calc__res .btn { width: 100%; justify-content: space-between; }
  .final { padding: 24px; }
  .num b { font-size: clamp(44px, 14vw, 72px); }
  .assoc__logo { height: 56px; }
  .assoc__item b { font-size: 52px; }
  .adv__item { padding: 16px 12px 16px 0; }
  .stage em { font-size: 56px; margin: 6px 0 12px; }
  .tech { height: 56vw; min-height: 240px; }
  .tech__title { font-size: 24px; }
  .tech__foot { padding: 16px; }
  .tech__foot .btn { height: 44px; font-size: 13px; }
}
@media (max-width: 600px) {
  .adv__grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .adv__item:nth-child(n) { border-top: 0; padding: 14px 10px 14px 0; border-left: 0; }
  .adv__item:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--line); }
  .adv__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .adv__item b { font-size: 14.5px; }
  .adv__item span { font-size: 12.5px; }
  .hero { min-height: 480px; }
}
@media (max-width: 900px) { .head > * { min-width: 0; max-width: 100%; } .head .pills { display: flex; } html, body { overflow-x: hidden; } }
@media (max-width: 900px) { .tech__foot { flex-direction: column; align-items: flex-start; gap: 12px; } .tech__title { max-width: 100%; } }
@media (max-width: 600px) {
  .footer__grid > div:last-child { grid-column: 1 / -1; }
  .footer__tel { font-size: 24px; white-space: nowrap; }
  .pay { border: 1px solid var(--line); padding: 22px 20px; }
  .pay__big { font-size: 60px; padding-top: 14px; }
  .footer { padding-top: 44px; }
}

/* ---------- главная: проекты 2×2, левая нижняя плитка короче, под ней кнопка ---------- */
.pcell { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pcard--short { flex: 1; aspect-ratio: auto; min-height: 0; }
.btn--wide { width: 100%; height: 64px; justify-content: space-between; font-size: 16px; padding-left: 28px; flex: none; }
.btn--wide .btn__ic { width: 48px; height: 48px; }
@media (max-width: 900px) { .pcard--short { aspect-ratio: 4 / 3; flex: none; } .btn--wide { height: 56px; } }

/* ---------- технологии: заголовок и пояснение сверху слева ---------- */
.tech::after { background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0) 55%), linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0) 40%); }
.tech__top { position: absolute; left: 0; top: 0; padding: clamp(20px, 2.6vw, 40px); max-width: min(640px, 80%); }
.tech__top .tech__title { font-size: clamp(28px, 3.4vw, 54px); }
.tech__desc { margin-top: 12px; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.5; opacity: .92; max-width: 520px; }
.tech__foot { justify-content: flex-end; }
@media (max-width: 900px) {
  .tech { height: clamp(380px, 105vw, 520px); }
  .tech__top { max-width: 100%; padding: 18px; }
  .tech__top .tech__title { font-size: 26px; }
  .tech__desc { font-size: 14px; }
  .tech__foot { flex-direction: row; align-items: flex-end; }
}

/* ---------- люди: цветные, имя сильно увеличивается при наведении ---------- */
.person img { filter: none; }
.person b { transition: font-size .5s var(--ease); }
.person:hover b { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.02; }
.person span { transition: opacity .4s; }
@media (max-width: 900px) { .person:hover b { font-size: clamp(20px, 1.8vw, 28px); } }

/* ---------- соцсети в шапке ---------- */
.header__soc { display: flex; align-items: center; gap: 6px; }
.soc { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: background .25s, color .25s, transform .3s var(--ease); flex: none; }
.soc:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.soc svg { width: 18px; height: 18px; }
.soc img { width: 20px; height: 20px; object-fit: contain; }
.header__right { gap: 14px; }
@media (max-width: 1400px) { .header__soc .soc-x:nth-child(n+4) { display: none; } }
@media (max-width: 1280px) { .header__soc .soc-x { display: none; } }
.header__soc--menu { margin-top: 4px; }
.header__soc--menu .soc-x { display: grid !important; }
.header__soc--menu .soc { width: 44px; height: 44px; }
.soc img { filter: brightness(0); transition: filter .25s; }
.soc:hover img, .header__soc--menu .soc img { filter: none; }
.header__soc--menu .soc img { filter: brightness(0); }

/* ---------- известные люди: две плашки рядом, дом (2 ракурса) под текстом ---------- */
.celeb-grid { grid-template-columns: 1fr 1fr; }
.celeb { grid-template-columns: 36% 1fr; min-height: 0; }
.celeb__photo { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.celeb__b { padding: 26px 26px 22px; }
.celeb__houses { position: relative; flex: 1; min-height: 305px; margin: 16px 0 10px; }
.ch { position: absolute; margin: 0; width: 80%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #ddd; box-shadow: 0 14px 36px rgba(0, 0, 0, .2); transition: transform .7s var(--ease); }
.ch img { width: 100%; height: 100%; object-fit: cover; }
.ch--1 { left: 0; top: 0; transform: rotate(-3deg); z-index: 1; }
.ch--2 { left: 7%; top: 9%; transform: rotate(2.5deg); z-index: 2; }
.celeb:hover .ch--1 { transform: rotate(-6deg) translate(-8px, -4px); }
.celeb:hover .ch--2 { transform: rotate(4.5deg) translate(8px, 4px); }
@media (max-width: 1100px) { .celeb-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .celeb { grid-template-columns: 1fr; } .celeb__photo { min-height: 0; aspect-ratio: 4 / 3; } .celeb__houses { min-height: 230px; } .ch { width: 84%; } }

/* ---------- технологии: белая плашка с описанием и плюсами ---------- */
.tech { height: clamp(460px, calc(100svh - 230px), 700px); }
.tech__top { max-width: min(760px, 92%); }
.tech__plate { margin-top: 16px; background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 20px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.tech__plate .tech__desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); opacity: 1; max-width: none; }
.tech__pros { display: grid; gap: 8px; font-size: 14.5px; font-weight: 500; }
.tech__pros li { display: flex; gap: 10px; align-items: baseline; line-height: 1.35; }
.tech__pros li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; transform: translateY(-2px); }
@media (max-width: 900px) {
  .tech { height: auto; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: auto; }
  .tech__top { position: relative; max-width: 100%; padding: 16px; }
  .tech__plate { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .tech__plate .tech__desc { font-size: 14px; }
  .tech__pros { font-size: 13.5px; gap: 6px; }
  .tech__foot { position: relative; padding: 0 16px 16px; justify-content: flex-end; }
}

/* ---------- «Прозрачность и честность»: при наведении на этап весь блок меняется на картинку ---------- */
.fix { position: relative; isolation: isolate; overflow: hidden; transition: color .5s var(--ease); }
.fix__in { position: relative; z-index: 1; }
.fix__bgs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fix__bgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .7s var(--ease), transform 1.6s var(--ease); }
.fix__bgs img.is-on { opacity: 1; transform: none; }
.fix__bgs::after { content: ""; position: absolute; inset: 0; background: rgba(8, 10, 8, .58); opacity: 0; transition: opacity .6s var(--ease); }
.fix.is-hover .fix__bgs::after { opacity: 1; }
.fix .h2, .fix .lead, .stage em, .stage b, .stages { transition: color .5s var(--ease), border-color .5s var(--ease); }
.fix.is-hover .h2, .fix.is-hover .lead, .fix.is-hover .stage em, .fix.is-hover .stage b { color: #fff; }
.fix.is-hover .lead { color: rgba(255,255,255,.85); }
.fix.is-hover .stages { border-top-color: rgba(255,255,255,.7); }
.fix.is-hover .stage + .stage { border-left-color: rgba(255,255,255,.25); }
.stages { margin-bottom: 120px; }
.stage { position: relative; cursor: default; }
.stage__plate { position: absolute; top: calc(100% + 6px); left: 0; z-index: 3; width: max(100%, 250px); background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 16px; box-shadow: 0 14px 36px rgba(0,0,0,.22); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.stage__plate p { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.stage:nth-child(n+6) .stage__plate { left: auto; right: 0; }
.stage:hover .stage__plate, .stage.is-active .stage__plate { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .stages { margin-bottom: 24px; }
  .stage__plate { position: static; width: auto; margin-top: 10px; display: none; opacity: 1; transform: none; }
  .stage.is-active .stage__plate { display: block; }
  .stage:hover .stage__plate { display: none; }
  .stage.is-active:hover .stage__plate { display: block; }
}

/* технологии: вертикальная белая плашка, привязана к нижнему краю картинки */
@media (min-width: 901px) {
  .tech { height: clamp(540px, calc(100svh - 190px), 740px); }
  .tech__top { bottom: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; pointer-events: none; }
  .tech__plate { grid-template-columns: 1fr; width: min(420px, 100%); margin-top: 0; gap: 14px; pointer-events: auto; }
}


/* =====================  правка: экраны-секции, плитки, режим без рамок  ===================== */
:root:has(body[data-page="home"]) { scroll-snap-type: y proximity; scroll-padding-top: var(--hdr); }
.snap { scroll-snap-align: start; scroll-margin-top: var(--hdr); }

/* отзывы: на весь экран, заголовок в одну строку, плашки крупнее */
.rev-sec { min-height: calc(100svh - var(--hdr)); display: flex; flex-direction: column; justify-content: center; padding-top: 28px; padding-bottom: 28px; }
.rev-title { white-space: nowrap; max-width: none; }
.rev-meta { margin-bottom: 22px; }
.rev-cta { margin-top: 22px; }
.vid { width: max(260px, min(36vw, calc((100svh - 372px) * .889))); }

/* технологии: блок на весь экран, заметные кнопки */
#tech { min-height: calc(100svh - var(--hdr)); display: flex; flex-direction: column; justify-content: center; padding-top: 28px; padding-bottom: 28px; }
#tech .head { margin-bottom: 18px; }
.tech-hint { font-size: 14px; color: var(--ink-3); font-weight: 500; margin: 14px 0 8px; }
#techTabs { padding: 5px; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; gap: 4px; }
#techTabs .pill { height: 52px; padding: 0 26px; font-size: 15.5px; font-weight: 600; color: var(--ink); background: var(--paper); }
#techTabs .pill:hover { background: #e9e9e5; color: var(--ink); }
#techTabs .pill.is-active { background: var(--ink); color: #fff; box-shadow: none; }
@media (min-width: 901px) { #tech .tech { height: clamp(480px, calc(100svh - var(--hdr) - 300px), 760px); } }

/* посёлки на главной: заголовок и карта умещаются в экран */
@media (min-width: 901px) {
  .vill__head { padding-top: 26px; padding-bottom: 16px; }
  .vill .h2 { font-size: clamp(28px, 3.3vw, 52px); }
  .vill__stage { grid-template-columns: min(calc((100svh - var(--hdr) - 160px) * 1.4045), calc(100% - 400px)) 1fr; }
  .vill__side { padding: 28px 30px; }
  .vill__side h2 { font-size: clamp(26px, 2.4vw, 36px); }
  .vill__info { min-height: 0; margin: 12px 0 16px; }
  .vcard { min-height: 0; padding: 14px 18px; }
  .vill-feats { padding-top: 12px; }
}

/* известные люди: карточки домов меньше */
.ch { width: 64%; }
.celeb__houses { min-height: 250px; }

/* построенные дома: 6 горизонтальных плашек (высота вдвое меньше) */
.built { gap: 12px; }
.built__item { aspect-ratio: 8 / 5; }
.built__bot b { font-size: clamp(22px, 2.2vw, 34px); }
.built__bot { left: 18px; right: 18px; bottom: 14px; }
@media (max-width: 900px) { .built { grid-template-columns: 1fr 1fr; } .built__item { aspect-ratio: 4 / 3; } .built__bot b { font-size: 20px; } .built__top .tag--dark { display: none; } }
@media (max-width: 600px) { .built { grid-template-columns: 1fr; } .built__item { aspect-ratio: 16 / 10; } }

@media (max-width: 900px) {
  .rev-sec, #tech { min-height: 0; display: block; }
  .rev-title { white-space: normal; }
  .vid { width: clamp(240px, 70vw, 360px); }
  #techTabs .pill { height: 46px; padding: 0 18px; font-size: 14.5px; }
}

/* ---------- кнопка «без рамок» в футере ---------- */
.edge-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s; flex: none; }
.edge-btn svg { width: 19px; height: 19px; }
.edge-btn:hover { background: #fff; color: var(--dark); }
.edge-btn[aria-pressed="true"] { background: #fff; color: var(--dark); border-color: #fff; }
.footer__bot { align-items: center; }

/* режим «без рамок»: изображения-плитки до краёв экрана, без скруглений и отступов */
html.edge .proj-grid--2, html.edge .built, html.edge .locs { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); gap: 0; }
html.edge .pcell { gap: 0; }
html.edge .pgrid { padding-left: 0; padding-right: 0; gap: 0; }
html.edge .people, html.edge .acts { gap: 0; }
html.edge .pcard, html.edge .built__item, html.edge .loc, html.edge .person, html.edge .vf__img, html.edge .proj__img, html.edge .celeb, html.edge .vid, html.edge .act, html.edge .plan__media, html.edge .tech, html.edge .near__stage { border-radius: 0; }
html.edge .btn--wide { border-radius: 0; }
html.edge .btn--wide .btn__ic { border-radius: 50%; }
html.edge .tech { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
html.edge .marquee, html.edge .marquee__row { gap: 0; }
@media (min-width: 901px) {
  #tech .head > div:first-child { flex: none; max-width: 100%; }
  #techTabs { flex-wrap: nowrap; }
  #tech .tech { height: clamp(480px, calc(100svh - var(--hdr) - 262px), 760px); }
}
@media (min-width: 901px) {
  #tech .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 470px); align-items: end; gap: 32px; }
  #tech .head > div:first-child { flex: none; max-width: none; }
}


/* ==========================================================================
   Альтернативная тема «зелёно-розовая». Включается только кнопкой в шапке (html.gp).
   Основной дизайн не затронут: всё ниже действует лишь при классе .gp.
   ========================================================================== */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .55s; }

html.gp {
  --ink: #0c4b36;
  --ink-2: #3a5c4e;
  --ink-3: #6f8d80;
  --line: #d3e6db;
  --paper: #edf6f0;
  --dark: #093d2b;
  --pink: #f2457f;
  --pink-d: #d3215f;
  --pink-l: #ffeef3;
  --pink-m: #ffc9da;
  --green-m: #146b4b;
}
html.gp ::selection { background: var(--pink); color: #fff; }
html.gp .logo img { filter: none; }
html.gp .footer .logo img { filter: none; }

/* кнопки: зелёные, кружок со стрелкой — розовый */
html.gp .btn:hover { background: var(--green-m); }
html.gp .btn .btn__ic { background: var(--pink); color: #fff; }
html.gp .btn--light { background: #fff; color: var(--ink); }
html.gp .btn--light:hover { background: var(--pink-l); }
html.gp .btn--light .btn__ic { background: var(--pink); color: #fff; }
html.gp .btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
html.gp .btn--outline:hover { background: var(--ink); color: #fff; }
html.gp .btn--outline .btn__ic { background: var(--pink) !important; color: #fff !important; }
html.gp .link-arrow svg, html.gp .eyebrow { color: var(--pink-d); }
html.gp .level__go, html.gp .act .btn__ic { background: var(--pink); color: #fff; }
html.gp .act:hover .btn__ic, html.gp .level:hover .level__go { background: #fff; color: var(--pink-d); }
html.gp .act:hover { background: var(--ink); }
html.gp .soc { background: var(--paper); }
html.gp .soc:hover, html.gp .header__tg:hover { background: var(--pink); color: #fff; }
html.gp .soc img { filter: brightness(0) saturate(100%) invert(22%) sepia(60%) saturate(900%) hue-rotate(112deg); }
html.gp .soc:hover img { filter: brightness(0) invert(1); }
html.gp .nav a:hover, html.gp .nav a.is-current { background: var(--pink-l); color: var(--pink-d); }
html.gp .burger { background: var(--pink-l); }
html.gp .header { border-bottom-color: var(--pink-m); }

/* переключатели и теги */
html.gp .pill.is-active, html.gp .section--paper .pill.is-active, html.gp #techTabs .pill.is-active { background: var(--pink-d); color: #fff; box-shadow: none; }
html.gp .pills { background: var(--pink-l); }
html.gp .section--paper .pills { background: #fff; }
html.gp #techTabs { border-color: var(--ink); background: #fff; }
html.gp #techTabs .pill { background: var(--paper); color: var(--ink); }
html.gp #techTabs .pill:hover { background: var(--pink-m); }
html.gp .calc .pill.is-active { background: var(--pink-d); }
html.gp .tag { background: var(--pink-d); color: #fff; }
html.gp .tag--dark { background: rgba(9, 61, 43, .78); color: #fff; }
html.gp .chip { background: #fff; border: 1px solid var(--pink-m); }
html.gp .chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); margin-right: 9px; }
html.gp .field:focus { border-color: var(--pink-d); box-shadow: 0 0 0 3px rgba(242, 69, 127, .18); }
html.gp .check input { accent-color: var(--pink-d); }
html.gp input[type="range"]::-webkit-slider-thumb { background: var(--pink-d); }
html.gp input[type="range"]::-moz-range-thumb { background: var(--pink-d); }

/* фоны блоков */
html.gp .adv { background: var(--pink-l); }
html.gp .adv__item + .adv__item { border-left-color: var(--pink-m); }
html.gp .final { background: var(--pink-l); }
html.gp .final__addr { border-top-color: var(--pink-m); }
html.gp .section--paper { background: var(--paper); }
html.gp .vill { background: var(--paper); }
html.gp .calc { background: #fff; }
html.gp .celeb { background: var(--paper); }
html.gp .celeb:nth-child(2) { background: var(--pink-l); }
html.gp .rev__more, html.gp .act { background: var(--paper); }
html.gp .act:nth-child(2) { background: var(--pink-l); }
html.gp .act--img { background: #fff !important; }
html.gp .act:hover span { color: rgba(255,255,255,.8); }
html.gp .num-grid, html.gp .assoc__grid, html.gp .stages { border-top-color: var(--ink); }
html.gp .pay:hover { box-shadow: 0 16px 40px rgba(12, 75, 54, .12); }
html.gp .pay:nth-child(odd) { border-top: 3px solid var(--pink); }
html.gp .pay:nth-child(even) { border-top: 3px solid var(--ink); }

/* крупные цифры и акценты — розовые */
html.gp .num b, html.gp .stage em, html.gp .assoc__item b, html.gp .pay__big, html.gp .steps3 em, html.gp .calc__lab output { color: var(--pink-d); }
html.gp .level:not(:hover) .level__num { color: var(--pink); }
html.gp .level--cta .level__num, html.gp .level--cta:hover .level__num { color: #ff9ab9; }
html.gp .level__chip { border-color: currentColor; }
html.gp .level--cta { background: var(--ink); }
html.gp .calc__res b { color: var(--ink); }
html.gp .pay__n, html.gp .near__item small { color: var(--pink-d); }
html.gp .near__item.is-active { border-bottom-color: var(--pink); }
html.gp .near__item.is-active small { color: var(--pink-d); }
html.gp .pay ul li::before, html.gp .tech__pros li::before, html.gp .level__list li::before { background: var(--pink); }
html.gp .rev-rate b { color: var(--pink-d); }
html.gp .rev-rate i { color: var(--pink); }
html.gp .rating__st { color: #ff9ab9; }

/* затемнения поверх фото — в зелёный */
html.gp .hero::before { background: linear-gradient(0deg, rgba(5, 48, 33, .68) 0%, rgba(5, 48, 33, .14) 42%, rgba(5, 48, 33, 0) 62%), linear-gradient(90deg, rgba(5, 48, 33, .34), rgba(5, 48, 33, 0) 55%); }
html.gp .pcard::after { background: linear-gradient(0deg, rgba(5, 48, 33, .72) 0%, rgba(5, 48, 33, .2) 38%, rgba(5, 48, 33, 0) 60%); }
html.gp .built__item::after { background: linear-gradient(180deg, rgba(5, 48, 33, 0) 50%, rgba(5, 48, 33, .7) 100%); }
html.gp .loc::after { background: linear-gradient(180deg, rgba(5, 48, 33, .04) 30%, rgba(5, 48, 33, .75)); }
html.gp .person::after { background: linear-gradient(0deg, rgba(5, 48, 33, .7), rgba(5, 48, 33, 0) 45%); }
html.gp .tech::after { background: linear-gradient(180deg, rgba(5, 48, 33, .62), rgba(5, 48, 33, 0) 55%), linear-gradient(0deg, rgba(5, 48, 33, .4), rgba(5, 48, 33, 0) 40%); }
html.gp .level::after { background: linear-gradient(180deg, rgba(5, 48, 33, .3), rgba(5, 48, 33, .78)); }
html.gp .act--img::after { background: linear-gradient(180deg, rgba(5, 48, 33, .3), rgba(5, 48, 33, .74)); }
html.gp .fix__bgs::after { background: rgba(5, 48, 33, .64); }
html.gp .vf:hover, html.gp .hc:hover { box-shadow: 0 16px 40px rgba(12, 75, 54, .14); }
html.gp .modal__bg { background: rgba(5, 48, 33, .6); }

/* карта посёлков — розовая с зелёными дорогами */
html.gp .vill__map-bg, html.gp .big-map { background-image: url("../assets/opt/map-gp.webp"); }
html.gp .vill__map, html.gp .vill__stage, html.gp .map-area { background-color: #fbd7e3; }
html.gp .vcard:hover, html.gp .vcard.is-hover, html.gp .card:hover, html.gp .card.is-hover { border-color: var(--pink); background: #fff; }
html.gp .vcard .dot, html.gp .card .dot { background: var(--pink); }
html.gp .pt i { border-color: var(--pink-d); background: rgba(242, 69, 127, .15); }
html.gp .pt:hover i, html.gp .pt.is-hover i { box-shadow: 0 0 0 6px rgba(242, 69, 127, .22); }
html.gp .pt text, html.gp .point text { fill: var(--ink); }

/* футер */
html.gp .footer { background: var(--dark); }
html.gp .footer h4 { color: #ff9ab9; }
html.gp .footer__mark span { color: rgba(255, 150, 185, .13); }
html.gp .footer__soc a:hover, html.gp .edge-btn:hover { background: var(--pink); color: #fff; border-color: var(--pink); }
html.gp .edge-btn[aria-pressed="true"] { background: var(--pink); color: #fff; border-color: var(--pink); }
html.gp .footer li a:hover { color: #ffc9da; }
html.gp .pay { border: 1px solid var(--line); }
html.gp .pay:nth-child(odd) { border-top: 3px solid var(--pink); }
html.gp .pay:nth-child(even) { border-top: 3px solid var(--ink); }


/* ==========================================================================
   Ползунок цветовой схемы (1–4) и уровни 2–3
   1 — классика | 2 — html.g1 | 3 — html.gp.soft | 4 — html.gp
   ========================================================================== */
.theme-pop { position: fixed; z-index: 400; background: #fff; color: #111; border-radius: 20px; padding: 18px 20px 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .06); animation: popIn .35s var(--ease); }
.theme-pop[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.theme-pop__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.theme-pop__top span { font-size: 13px; color: #6b6b66; font-weight: 600; }
.theme-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 18px 0 6px; border-radius: 6px; outline: none; cursor: pointer; --p: 0%; background: linear-gradient(90deg, #111 var(--p), #e3e3df var(--p)); }
.theme-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid #111; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: grab; }
.theme-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid #111; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: grab; }
/* уровень 1 — без зелёного; зелёный появляется в шкале и значке только со 2-го уровня */
html.g1 .theme-range, html.gp .theme-range { background: linear-gradient(90deg, #0a7150 var(--p), #e3e3df var(--p)); }
html.g1 .theme-range::-webkit-slider-thumb, html.gp .theme-range::-webkit-slider-thumb { border-color: #0a7150; }
html.g1 .theme-range::-moz-range-thumb, html.gp .theme-range::-moz-range-thumb { border-color: #0a7150; }
.theme-ticks { display: flex; justify-content: space-between; padding: 0 9px; font-style: normal; }
.theme-ticks i { font-style: normal; font-size: 12px; font-weight: 600; color: #8c8c86; width: 8px; text-align: center; }
.theme-pop__name { margin-top: 12px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.theme-pop__desc { margin-top: 3px; font-size: 13px; color: #6b6b66; line-height: 1.4; }

/* ---------- уровень 2: насыщенный зелёный как акцент (без цветных градиентов) ---------- */
html.g1 { --g: #0a7150; --g-d: #075a3f; --g-l: #e4f2eb; }
html.g1 ::selection { background: var(--g); color: #fff; }
html.g1 .btn { background: var(--g); }
html.g1 .btn:hover { background: var(--g-d); }
html.g1 .btn .btn__ic { color: var(--g); }
html.g1 .btn--light { background: #fff; color: var(--ink); }
html.g1 .btn--light:hover { background: var(--g-l); }
html.g1 .btn--light .btn__ic { background: var(--g); color: #fff; }
html.g1 .btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
html.g1 .btn--outline:hover { background: var(--g); border-color: var(--g); color: #fff; }
html.g1 .btn--outline .btn__ic { background: var(--g) !important; color: #fff !important; }
html.g1 .eyebrow, html.g1 .link-arrow svg { color: var(--g); }
html.g1 .nav a:hover, html.g1 .nav a.is-current { background: var(--g-l); color: var(--g-d); }
html.g1 .soc:hover, html.g1 .header__tg:hover { background: var(--g); color: #fff; }
html.g1 .soc:hover img { filter: brightness(0) invert(1); }
html.g1 .pill.is-active, html.g1 .section--paper .pill.is-active, html.g1 #techTabs .pill.is-active { background: var(--g); color: #fff; box-shadow: none; }
html.g1 #techTabs .pill:hover { background: var(--g-l); }
html.g1 .calc .pill.is-active { background: var(--g); }
html.g1 .tag { background: var(--g); color: #fff; }
html.g1 .tag--dark { background: rgba(14, 14, 14, .6); }
html.g1 .chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g); margin-right: 9px; }
html.g1 .field:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(10, 113, 80, .16); }
html.g1 .check input { accent-color: var(--g); }
html.g1 input[type="range"]::-webkit-slider-thumb { background: var(--g); }
html.g1 input[type="range"]::-moz-range-thumb { background: var(--g); }
html.g1 .level__go, html.g1 .act .btn__ic { background: var(--g); color: #fff; }
html.g1 .act:hover .btn__ic, html.g1 .level:hover .level__go { background: #fff; color: var(--g); }
html.g1 .level--cta .level__go { background: #fff; color: var(--g); }
html.g1 .level:not(:hover) .level__num { color: var(--g); }
html.g1 .level--cta .level__num, html.g1 .level--cta:hover .level__num { color: #fff; }
html.g1 .steps3 em, html.g1 .pay__big, html.g1 .calc__lab output { color: var(--g); }
html.g1 .pay ul li::before, html.g1 .tech__pros li::before, html.g1 .level__list li::before { background: var(--g); }
html.g1 .near__item.is-active { border-bottom-color: var(--g); }
html.g1 .rev-rate i { color: var(--g); }
html.g1 .vcard:hover, html.g1 .vcard.is-hover, html.g1 .card:hover, html.g1 .card.is-hover { border-color: var(--g); }
html.g1 .vcard .dot, html.g1 .card .dot { background: var(--g); }
html.g1 .footer h4 { color: #6fd0a8; }
html.g1 .footer__soc a:hover, html.g1 .edge-btn:hover { background: var(--g); color: #fff; border-color: var(--g); }
html.g1 .edge-btn[aria-pressed="true"] { background: var(--g); color: #fff; border-color: var(--g); }
html.g1 .stage:hover em { color: var(--g); }

/* ---------- уровень 3: «зелёный + немного розового» = уровень 4, где розовых заливок меньше, а затемнения чёрные ---------- */
html.gp.soft .adv, html.gp.soft .final, html.gp.soft .celeb:nth-child(2), html.gp.soft .act:nth-child(2) { background: var(--paper); }
html.gp.soft .pills, html.gp.soft .burger { background: var(--paper); }
html.gp.soft .section--paper .pills { background: #fff; }
html.gp.soft .nav a:hover, html.gp.soft .nav a.is-current { background: var(--paper); color: var(--ink); }
html.gp.soft .header { border-bottom-color: var(--line); }
html.gp.soft .adv__item + .adv__item, html.gp.soft .final__addr { border-color: var(--line); }
html.gp.soft .pill.is-active, html.gp.soft .section--paper .pill.is-active, html.gp.soft #techTabs .pill.is-active, html.gp.soft .calc .pill.is-active { background: var(--ink); color: #fff; }
html.gp.soft #techTabs .pill:hover { background: var(--pink-l); }
html.gp.soft .tag { background: var(--ink); }
html.gp.soft .chip { border-color: var(--line); }
html.gp.soft .eyebrow, html.gp.soft .link-arrow svg { color: var(--green-m); }
html.gp.soft .num b, html.gp.soft .stage em, html.gp.soft .assoc__item b, html.gp.soft .pay__big, html.gp.soft .steps3 em, html.gp.soft .calc__lab output, html.gp.soft .rev-rate b { color: var(--ink); }
html.gp.soft .pay:nth-child(odd) { border-top-color: var(--ink); }
html.gp.soft .pay__n, html.gp.soft .near__item small, html.gp.soft .near__item.is-active small { color: var(--ink-3); }
html.gp.soft .near__item.is-active { border-bottom-color: var(--ink); }
html.gp.soft .soc:hover, html.gp.soft .header__tg:hover { background: var(--ink); }
html.gp.soft .level:not(:hover) .level__num { color: var(--ink); }
html.gp.soft .level--cta .level__num, html.gp.soft .level--cta:hover .level__num { color: #ff9ab9; }
html.gp.soft .footer h4 { color: #8fd8b8; }
html.gp.soft .footer__mark span { color: rgba(255, 255, 255, .07); }
html.gp.soft .footer__soc a:hover, html.gp.soft .edge-btn:hover, html.gp.soft .edge-btn[aria-pressed="true"] { background: var(--green-m); border-color: var(--green-m); }
html.gp.soft .vcard:hover, html.gp.soft .vcard.is-hover, html.gp.soft .card:hover, html.gp.soft .card.is-hover { border-color: var(--ink); }
html.gp.soft .field:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12, 75, 54, .15); }
html.gp.soft .check input { accent-color: var(--ink); }
html.gp.soft ::selection { background: var(--ink); }
html.gp.soft input[type="range"]::-webkit-slider-thumb { background: var(--ink); }
html.gp.soft input[type="range"]::-moz-range-thumb { background: var(--ink); }
html.gp.soft .vill__map-bg, html.gp.soft .big-map { background-image: url("../assets/opt/map-green2.webp"); }
html.gp.soft .vill__map, html.gp.soft .vill__stage, html.gp.soft .map-area { background-color: #dcebdd; }
html.gp.soft .pt i { border-color: var(--ink); background: rgba(12, 75, 54, .12); }
html.gp.soft .pt:hover i, html.gp.soft .pt.is-hover i { box-shadow: 0 0 0 6px rgba(12, 75, 54, .2); }
/* затемнения поверх фото — обычные чёрные (без зелёных градиентов) */
html.gp.soft .hero::before { background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.16) 42%, rgba(0,0,0,0) 62%), linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 55%); }
html.gp.soft .pcard::after { background: linear-gradient(0deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.18) 38%, rgba(0,0,0,0) 60%); }
html.gp.soft .built__item::after { background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.62) 100%); }
html.gp.soft .loc::after { background: linear-gradient(180deg, rgba(0,0,0,.04) 30%, rgba(0,0,0,.7)); }
html.gp.soft .person::after { background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0) 45%); }
html.gp.soft .tech::after { background: linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0) 55%), linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0) 40%); }
html.gp.soft .level::after { background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.72)); }
html.gp.soft .act--img::after { background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.68)); }
html.gp.soft .fix__bgs::after { background: rgba(8, 10, 8, .6); }
html.gp.soft .modal__bg { background: rgba(0, 0, 0, .55); }

@media (max-width: 900px) { .theme-pop { z-index: 500; } }
html.g1 .level--cta:not(:hover) .level__num { color: #fff; }
html.gp.soft .level--cta:not(:hover) .level__num { color: #ff9ab9; }

/* ---------- шапка: 7 пунктов меню (добавлен «Конструктор») ---------- */
@media (max-width: 1640px) { .header__phone { display: none; } }
@media (max-width: 1500px) { .nav a { padding: 9px 10px; font-size: 14px; } .header__in { gap: 18px; } }
@media (max-width: 1300px) { .nav { margin-left: 0; } .nav a { padding: 8px 8px; font-size: 13.5px; } .header__right { gap: 10px; } }
@media (max-width: 1100px) { .nav, .header__right { display: none; } .burger { display: block; } }

/* ---------- производительность ---------- */
/* бесконечные анимации на паузе, пока блок за пределами экрана */
.is-paused .marquee__row, .is-paused .bcol__in { animation-play-state: paused; }
/* «лёгкий» режим на слабых устройствах: без размытия фона (визуально почти то же) */
html.lite .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .985); }
html.lite .modal__bg, html.lite .lb__bg { backdrop-filter: none; -webkit-backdrop-filter: none; }
html.lite .cfg-ov--tl .seg, html.lite .cfg-hint, html.lite .quiz__card, html.lite .near__panel, html.lite .tag--dark { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* блоки ниже первого экрана не рисуются, пока до них не долистали */
.cv { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* на телефонах hidden превращал body в отдельную прокрутку и ломал «липкие» блоки; clip режет так же, но без этого */
@media (max-width: 900px) { html, body { overflow-x: clip; } }
body { overflow-x: clip; }

/* ---------- переключатель стиля «ТопДом Family»: вкл / выкл ---------- */
.tswitch { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 5px 0 13px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; flex: none; cursor: pointer; transition: background .3s, box-shadow .3s; }
.tswitch:hover { box-shadow: 0 0 0 2px rgba(0, 0, 0, .08); }
.tswitch__t { line-height: 1; letter-spacing: -.005em; }
.tswitch__k { position: relative; display: block; width: 40px; height: 26px; border-radius: 999px; background: #c5c5c0; transition: background .3s; flex: none; }
.tswitch__k::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .35s var(--ease); }
.tswitch[aria-checked="true"] .tswitch__k { background: var(--pink, #ee5f8a); }
.tswitch[aria-checked="true"] .tswitch__k::after { transform: translateX(14px); }
.tswitch:focus-visible { outline: 2px solid var(--pink, #ee5f8a); outline-offset: 2px; }
.header__soc--menu .tswitch { height: 44px; padding-left: 16px; font-size: 14px; }
.header__soc--menu .tswitch__k { width: 46px; height: 30px; }
.header__soc--menu .tswitch__k::after { width: 24px; height: 24px; }
.header__soc--menu .tswitch[aria-checked="true"] .tswitch__k::after { transform: translateX(16px); }
/* мобильное меню: ряд кнопок переносится, чтобы не вылезать за экран */
.header__soc--menu { flex-wrap: wrap; row-gap: 8px; }
