/* ==========================================================================
   ЭЛИТМОДУЛЬ — основной стиль
   ========================================================================== */

/* Century Gothic — self-hosted (extracted from macOS system font) */
@font-face {
  font-family: "Century Gothic";
  src: url('../fonts/century-gothic-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Century Gothic";
  src: url('../fonts/century-gothic-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Century Gothic";
  src: url('../fonts/century-gothic-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Century Gothic";
  src: url('../fonts/century-gothic-bold-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Igra Sans — логотип (free, Sergei Godovalov) */
@font-face {
  font-family: "Igra Sans";
  src: url('../fonts/igra-sans-regular.woff2') format('woff2'),
       url('../fonts/igra-sans-regular.woff')  format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --green:        #365a43;
  --green-dark:   #2b4836;
  --green-accent: #0f7445;
  --ink:          #0b0b0b;
  --gray:         #686868;
  --gray-light:   #d9d9d9;
  --cream:        #f7f6f2;
  --cream-2:      #f4f0ed;
  --white:        #ffffff;

  --font-head: "Montserrat Alternates", system-ui, sans-serif;
  --font-body: "Century Gothic", system-ui, -apple-system, sans-serif;
  --font-logo: "Igra Sans", system-ui, sans-serif;
  --font-subtitle: "Century Gothic", "CenturyGothic", system-ui, -apple-system, sans-serif;

  --content:     1300px;
  --container:   var(--content);
  --grid-margin: max(16px, calc((100vw - min(var(--content), 100vw - 32px)) / 2));
  --nav-side-min: 210px;
  --nav-phone-min: 240px;
  --nav-menu-buffer: 24px;
  --grid-columns: 12;
  --grid-gutter: 20px;
  --radius:    25px;
  --radius-pill: 100px;
  --header-h:  98px;
  --section-gap: 100px;
  --sec-head-title-gap: clamp(14px, 1.75vw, 34px);
  --sec-head-gallery-subtitle-extra: clamp(8px, 0.833vw, 16px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body:not(.home) {
  background: var(--cream);
}
body > main { flex: 1 0 auto; }
body:not(.home) > .site-main { background: var(--cream); }
body > .site-footer { flex-shrink: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(var(--content), 100% - 32px);
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: 0;
}

.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;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  padding: 20px 34px;
  border: 0;
  border-radius: var(--radius-pill);
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline-green { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn--outline-green:hover { background: var(--green); color: var(--white); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-top: 16px;
}
.nav {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(var(--nav-side-min), 1fr)
    minmax(0, min(var(--content), calc(100vw - var(--nav-side-min) - var(--nav-phone-min))))
    minmax(var(--nav-phone-min), 1fr);
  align-items: center;
  width: 100%;
  background: var(--green);
  color: var(--white);
  border-radius: 15px;
  padding-block: 11px;
  min-height: 60px;
  overflow: hidden;
}
.nav__side {
  display: flex;
  align-items: center;
  min-width: 0;
}
.nav__side--left {
  grid-column: 1;
  justify-content: flex-start;
  justify-self: start;
  padding-left: clamp(16px, 2.7vw, 52px);
}
.nav__side--right {
  grid-column: 3;
  justify-content: flex-end;
  justify-self: end;
  gap: 8px;
  padding-right: clamp(16px, 2.7vw, 52px);
}
.nav__inner {
  grid-column: 2;
  position: relative;
  width: 100%;
  max-width: var(--content);
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  min-width: 0;
}
.nav__socials { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.soc {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .95);
  background: transparent;
  color: var(--white);
  transition: border-color .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
}
.soc:hover {
  background: transparent;
  border-color: #fff;
  opacity: .92;
  transform: translateY(-1px);
}
.soc svg { width: 24px; height: 24px; display: block; }

.brand {
  --brand-mark-size: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  line-height: 0;
}
.brand__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand__name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: var(--brand-mark-size);
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateY(0.08em);
}
.brand__line {
  display: block;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: calc(var(--brand-mark-size) / 2);
}

.nav__menu { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.nav__menu ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(2px, 0.45vw, 12px);
  width: 100%;
  max-width: 100%;
}
.nav__menu li:last-child { margin-left: 0; }
.nav__menu a {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__menu a:hover { background: rgba(255,255,255,.14); }
.nav__menu a.is-active {
  background: var(--white);
  color: var(--ink);
}

.nav__item--mobile-only,
.nav__menu-footer { display: none; }

.nav__phone {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}
.nav__phone:hover { opacity: .85; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  color: var(--white);
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.55) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 621px;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "headline headline"
    "headline headline"
    "tagline  aside";
  gap: 28px 48px;
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: 56px;
}
.hero__headline { grid-area: headline; align-self: start; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.1;
  letter-spacing: -.01em;
  max-width: 1151px;
}
.hero__subtitle {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(20px, 2.1vw, 32px);
  margin-top: 22px;
}
.hero__aside {
  grid-area: aside;
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}
.hero__desc { align-self: stretch; width: 100%; max-width: none; }
.hero__desc p {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.45;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.hero__tagline {
  grid-area: tagline;
  align-self: end;
  width: min(100%, 357px);
  max-width: 357px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero__tagline p { width: 100%; font-size: 18px; line-height: 1.45; margin-bottom: 22px; }
.hero__cta { align-self: flex-start; width: 277px; min-height: 60px; flex-shrink: 0; }

@media (min-width: 961px) {
  .hero__tagline {
    align-self: center;
    width: min(100%, 400px);
    max-width: 400px;
    margin-top: 48px;
  }

  .hero__tagline p {
    font-size: 22px;
    line-height: 1.4;
  }

  .hero__cta {
    width: 300px;
    min-height: 68px;
    font-size: 18px;
    padding: 22px 38px;
  }
}

.hero__stats {
  align-self: stretch;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.stat {
  position: relative;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  padding: 32px 18px 24px;
  min-height: 230px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  overflow: visible;
}
.stat__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,.55);
  display: inline-grid;
  place-items: center;
  color: var(--white);
  position: absolute;
  top: -20px;
  left: 18px;
  transform: none;
  z-index: 2;
}
.stat__icon svg { width: 20px; height: 20px; display: block; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  margin-top: 0;
  flex: 0 0 auto;
  width: 100%;
  text-align: left;
  font-variant-numeric: lining-nums;
}
.stat__label {
  font-size: 14px;
  line-height: 1.25;
  margin-top: 10px;
  flex: 1 1 auto;
  color: rgba(255,255,255,.7);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  align-self: stretch;
  text-align: left;
}

/* Hero stats @desktop — Figma card 187×200: num+label left-aligned, slightly lower in square */
@media (min-width: 961px) {
  .hero__stats .stat {
    min-height: 200px;
    padding: 44px 18px 32px;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
  }

  .hero__stats .stat__num {
    margin-top: 14px;
    text-align: left;
    align-self: flex-start;
  }

  .hero__stats .stat__label {
    margin-top: 8px;
    text-align: left;
    align-self: flex-start;
  }
}

/* ==========================================================================
   Section base / placeholders
   ========================================================================== */
.section { padding: 90px 0; }
.section--placeholder { min-height: 40vh; display: grid; place-items: center; text-align: center; }
.section__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 110px);
  line-height: 1;
  color: var(--green);
}
.section__subtitle { color: var(--gray); font-size: 22px; margin-top: 8px; }
.section--placeholder:nth-child(even) { background: var(--cream); }

/* ----- Section header (большой титул) ----- */
.sec-head { margin-bottom: 48px; }
.sec-head__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(52px, 11vw, 150px);
  line-height: .92;
  letter-spacing: 1px;
  color: var(--green);
  pointer-events: none;
}
.sec-head__subtitle {
  font-family: var(--font-subtitle);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 48px);
  letter-spacing: 4px;
  color: var(--green);
  margin-top: 4px;
  padding-left: clamp(0px, 2vw, 24px);
}
.sec-head__subtitle-mobile { display: none; }
.sec-head__subtitle-desktop { display: inline; }
.sec-head--light .sec-head__title,
.sec-head--light .sec-head__subtitle { color: var(--white); }

/* Подстраницы — sec-head как на главной, но компактнее */
.sec-head--subpage {
  margin-bottom: clamp(20px, 2.5vw, 40px);
}
.sec-head--subpage .sec-head__title {
  font-size: clamp(72px, 9vw, 160px);
  line-height: 0.88;
  letter-spacing: 1px;
  width: auto;
  position: static;
  left: auto;
  transform: none;
  max-width: none;
  text-align: left;
}
.sec-head--subpage .sec-head__subtitle {
  font-size: clamp(18px, 2vw, 36px);
  letter-spacing: 4px;
  padding-left: 0;
  margin-top: 4px;
}
.article__section-head,
.types-page__section-head,
.detail-page__section-head {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.types-page__section-head,
.detail-page__section-head {
  width: min(1465px, calc(100% - 40px));
  margin-bottom: clamp(12px, 2vw, 24px);
}
.article__section-head .article__back,
.types-page__section-head .article__back,
.detail-page__section-head .article__back {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}

/* ==========================================================================
   Credits
   ========================================================================== */
.section--credits { background: var(--white); }
.credits__grid {
  display: grid;
  grid-template-columns: 595px 110px 595px;
  align-items: stretch;
}
.credits__divider {
  align-self: stretch;
  justify-self: center;
  width: 60px;
  display: flex;
  justify-content: center;
}
.credits__divider img { width: 60px; height: 100%; display: block; object-fit: fill; }
.credit-card {
  background: #eeeeee;
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.credit-card__media { position: relative; aspect-ratio: 595 / 397; border-radius: 0; overflow: hidden; flex: 0 0 auto; }
.credit-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.credit-card__overlay {
  position: absolute; left: 35px; bottom: 28px; right: 35px;
  color: var(--white);
  display: flex; flex-direction: column;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.credit-card__overlay--top-right {
  top: 28px;
  right: 35px;
  bottom: auto;
  left: auto;
  max-width: calc(100% - 70px);
  text-align: right;
  align-items: flex-end;
}
.credit-card__over-top { font-family: var(--font-head); font-weight: 500; font-size: clamp(16px, 1.5vw, 24px); }
.credit-card__over-brand { font-family: "Alegreya", Georgia, serif; font-weight: 500; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.05; }

.credit-card__body {
  padding: 24px 35px 35px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 0;
}
.credit-card__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
  flex-shrink: 0;
}
.credit-card__desc {
  font-size: 16px;
  line-height: 1.45;
  color: var(--gray);
  margin: 0;
  text-align: justify;
  hyphens: auto;
  flex-shrink: 0;
}
.credit-card__conditions {
  display: grid;
  grid-template-columns: 76fr 153fr 210fr;
  column-gap: 8.19%;
  justify-items: center;
  align-items: end;
  width: 100%;
  text-align: center;
  flex-shrink: 0;
}
.credit-card__conditions li { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.credit-card__cond-value { font-family: var(--font-body); font-weight: 700; font-size: clamp(16px, 1.3vw, 20px); color: var(--ink); }
.credit-card__cond-label { font-size: 14px; color: var(--gray); }
.credit-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 7.3%, 37px);
  width: calc(100% - 20px);
  max-width: 505px;
  margin-inline: auto;
  margin-top: 0;
  padding-top: 0;
  flex-shrink: 0;
}
.credit-card__actions .btn {
  width: 100%;
  max-width: 234px;
  min-width: 0;
  margin-inline: auto;
  padding: 17px 14px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 1320px) {
  .credits__grid {
    grid-template-columns: 1fr 40px 1fr;
    gap: 0 clamp(24px, 4vw, 110px);
  }
}
@media (max-width: 860px) {
  .credits__grid { grid-template-columns: 1fr; gap: 40px; }
  .credits__divider { display: none; }
}
@media (max-width: 520px) {
  .credit-card__conditions { grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .credit-card__actions { width: 100%; max-width: none; grid-template-columns: 1fr; }
  .credit-card__actions .btn { max-width: none; }
  .credit-card__body { padding: 20px 24px 28px; }
}

/* ==========================================================================
   Projects (карусель категорий)
   ========================================================================== */
.section--projects {
  background: var(--white);
  overflow: visible;
}
.projects__viewport {
  margin-top: 10px;
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}
.projects__track {
  --pcard: min(860px, 80vw);
  display: flex;
  align-items: center;
  gap: 30px;
  contain: layout paint;
  overflow-x: auto;
  overflow-y: visible;
  padding: 30px calc(50% - var(--pcard) / 2);
  scrollbar-width: none;
}
.projects__track::-webkit-scrollbar { display: none; }

.project-card {
  flex: 0 0 var(--pcard);
  aspect-ratio: 860 / 608;
  border-radius: 50px;
  position: relative;
  color: var(--white);
  transform: scale(.86);
  transform-origin: center;
  transition: transform .5s var(--ease);
  will-change: transform;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  background-image: var(--p-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  /* W4: затемнение фото карточки — 10% */
  background: rgba(0, 0, 0, 0.10);
}
.project-card.is-active {
  transform: scale(1);
  z-index: 2;
}
.project-card.is-active + .project-card {
  transform: scale(.86) translateX(-36px);
}
.project-card:has(+ .project-card.is-active) {
  transform: scale(.86) translateX(36px);
}
.projects__track.carousel-jumping .project-card {
  transition: none;
}
.project-card__inner { position: absolute; inset: 0; z-index: 2; padding: 40px 45px; display: flex; flex-direction: column; }
.project-card__name {
  align-self: flex-end;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1;
  color: var(--white);
}
.project-card__name-base { color: var(--white); }
.project-card__name-accent { color: var(--green); }
.project-card__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.project-card__tagline {
  font-family: "Alegreya Sans SC", var(--font-head);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 64px);
  line-height: 1;
  margin: 0;
}
.project-card__meta {
  font-size: clamp(18px, 1.8vw, 32px);
  line-height: 1.1;
  margin: 0;
}
.project-card__meta .area-sup {
  font-size: 0.58em;
  line-height: 0;
  vertical-align: super;
  font-weight: 400;
}
.project-card__btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-pill);
  padding: 15px 26px;
  font-size: 16px;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.project-card__btn:hover { background: rgba(255,255,255,.28); transform: translateY(-2px); }

.projects__dots { display: none; }

/* Навигация карусели — Figma: две pill-кнопки + вертикальный разделитель */
.projects__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0;
  margin-bottom: clamp(16px, 2vw, 36px);
}

.projects__nav-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: transparent;
}

.projects__nav-sep {
  flex: 0 0 1px;
  width: 1px;
  height: 40px;
  margin: 0 14px;
  background: rgba(0, 0, 0, .85);
}

.projects__nav .carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 171px;
  min-width: 171px;
  height: 51px;
  padding: 0 20px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, .85);
  border-radius: 50px;
  color: #686868;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}

.projects__nav .carousel-btn:hover {
  border-color: rgba(0, 0, 0, .85);
  color: var(--ink);
  background: rgba(0, 0, 0, .04);
}

.carousel-btn__label { flex: 0 0 auto; }

@media (max-width: 600px) {
  .project-card { border-radius: 30px; flex-basis: 88%; }
  .project-card__inner { padding: 26px; }
}

/* ==========================================================================
   Quote bands (цитаты-баннеры)
   ========================================================================== */
.quote-band {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 0;
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 1920 / 1071;
}
.quote-band__inner {
  position: relative;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.quote-band__headline {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.08;
}
.quote-band__sub {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 36px);
  margin-top: 16px;
  margin-left: clamp(40px, 18vw, 320px);
}
.quote-band__brand {
  --brand-mark-size: 30px;
  position: absolute;
  left: 30px; bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 15px;
  opacity: .55;
}
.quote-band__brand svg {
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  display: block;
  flex-shrink: 0;
}
.quote-band__brand > span {
  display: block;
  height: var(--brand-mark-size);
  line-height: var(--brand-mark-size);
  transform: translateY(0.06em);
}
.quote-band__brand--tr { left: auto; right: 30px; top: 34px; bottom: auto; }

.quote-band--happy .quote-band__inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(48px, 5.2vw, 100px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.quote-band--happy .quote-band__headline {
  font-family: var(--font-subtitle);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.quote-band--happy .quote-band__sub {
  margin-top: 0;
  margin-left: clamp(40px, 17.6vw, 338px);
  font-family: var(--font-subtitle);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.quote-band--happy .quote-band__brand {
  position: static;
  margin-top: auto;
  align-self: flex-start;
  opacity: .35;
  gap: 14px;
  --brand-mark-size: clamp(36px, 3.65vw, 70px);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(22px, 2.1vw, 40px);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.quote-band--happy .quote-band__brand svg {
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
}

.quote-band--story .quote-band__inner { align-items: flex-end; }

/* Блок «Преимущества» — desktop в main.css @481px; mobile в mobile.css */
.advantages-band { display: none; }

.quote-band__panel {
  max-width: 560px;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(3px);
  border-radius: var(--radius);
  padding: 34px 38px;
}
.quote-band__panel p { font-size: 16px; line-height: 1.55; }
.quote-band__panel p + p { margin-top: 16px; }
.quote-band__author { margin-top: 24px; display: flex; flex-direction: column; gap: 2px; }
.quote-band__author strong { font-weight: 700; font-size: 17px; }
.quote-band__author span { font-size: 14px; opacity: .85; }

/* Мини-история (после «Обзор») */
.story-band {
  position: relative;
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 1920 / 1071;
  overflow: hidden;
  color: var(--white);
}
.story-band__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.story-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
}
.story-band__brand {
  --brand-mark-size: clamp(36px, 3.65vw, 70px);
  position: absolute;
  z-index: 2;
  top: 8.5%;
  right: 4.8%;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(22px, 2.1vw, 40px);
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .42;
}
.story-band__brand > span {
  display: block;
  height: var(--brand-mark-size);
  line-height: var(--brand-mark-size);
  transform: translateY(0.06em);
}
.story-band__logo {
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  display: block;
  flex-shrink: 0;
}
.story-band__panel {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  background: rgba(0, 0, 0, .2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.story-band__panel p {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.4;
  letter-spacing: 0.05em;
}
.story-band__panel--top {
  left: 0;
  right: auto;
  top: 19.42%;
  width: 75.21%;
  min-height: 18.11%;
  display: flex;
  align-items: center;
  padding: 55px 48px 55px 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: clamp(24px, 2.5vw, 40px);
  border-bottom-right-radius: clamp(24px, 2.5vw, 40px);
}
.story-band__panel--top p {
  margin-left: clamp(24px, 16.15vw, 310px);
  padding-left: 20px;
  border-left: 2px solid var(--white);
  max-width: 1114px;
}
.story-band__panel--bottom {
  left: 50%;
  right: 0;
  top: 57.61%;
  width: auto;
  max-width: none;
  display: flex;
  align-items: flex-start;
  padding: 32px clamp(24px, 4.2vw, 80px) clamp(28px, 4.5vw, 48px) clamp(24px, 2.3vw, 45px);
  border-top-left-radius: clamp(24px, 2.5vw, 40px);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: clamp(24px, 2.5vw, 40px);
}
.story-band__panel-body {
  border-left: 2px solid var(--white);
  padding-left: 18px;
  max-width: min(596px, 42vw);
}
.story-band__panel-body p {
  line-height: 1.45;
}
.story-band__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 36px;
  font-size: clamp(14px, .83vw, 16px);
  line-height: 1.3;
  opacity: .7;
}
.story-band__author strong {
  font-weight: 400;
}

@media (max-width: 900px) {
  .story-band {
    aspect-ratio: auto;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 72px 0 24px;
  }
  .story-band__bg { position: absolute; inset: 0; }
  .story-band__brand {
    top: 20px;
    right: 20px;
    font-size: 18px;
    --brand-mark-size: 36px;
  }
  .story-band__logo {
    width: var(--brand-mark-size);
    height: var(--brand-mark-size);
  }
  .story-band__panel {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    min-height: 0;
    margin-inline: 16px;
  }
  .story-band__panel--top {
    position: absolute;
    left: 0;
    right: 25%;
    top: 19.42%;
    width: auto;
    margin: 0;
    margin-inline: 0;
    padding: 24px 20px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
  }
  .story-band__panel--top p {
    margin-left: 0;
    padding-left: 16px;
  }
  .story-band__panel--bottom {
    position: absolute;
    left: 50%;
    right: 0;
    top: 57.61%;
    width: auto;
    max-width: none;
    margin: 0;
    margin-inline: 0;
    padding: 24px 20px;
    border-top-left-radius: var(--radius);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: var(--radius);
  }
  .story-band__panel-body {
    padding-left: 16px;
  }
  .story-band__author {
    margin-top: 20px;
  }
}

@media (max-width: 760px) {
  .quote-band { aspect-ratio: auto; min-height: 420px; }
  .quote-band__inner { min-height: 420px; height: auto; }
  .quote-band__sub { margin-left: 0; }
  .quote-band__panel { max-width: none; }
}

/* ==========================================================================
   Quality (слайдер + текст с индикатором)
   ========================================================================== */
.section--quality { background: var(--white); overflow: hidden; }
.quality__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
  margin-top: clamp(24px, 3vw, 40px);
}
.quality-row {
  --quality-media-h: clamp(360px, 20.3125vw, 420px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 30px;
  row-gap: 18px;
  align-items: start;
  max-width: calc(var(--content) + 2 * var(--grid-margin));
  margin-inline: auto;
  padding-inline: var(--grid-margin);
}

.quality-row__media {
  display: contents;
}

.quality-slider {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: calc(100% + var(--grid-margin));
  margin-left: calc(-1 * var(--grid-margin));
  height: var(--quality-media-h);
  align-self: start;
  overflow: hidden;
  border-radius: clamp(24px, 3vw, 40px);
}
.quality-row--reverse .quality-slider {
  grid-column: 2;
  margin-left: auto;
  margin-right: calc(-1 * var(--grid-margin));
}

.quality-row__features {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--quality-media-h);
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}
.quality-row--reverse .quality-row__features {
  grid-column: 1;
}
.quality-row--reverse .quality-slider__label {
  right: auto;
  left: clamp(16px, 2vw, 28px);
  text-align: left;
}

.quality-row__nav {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: calc(100% + var(--grid-margin));
  margin-left: calc(-1 * var(--grid-margin));
}
.quality-row--reverse .quality-row__nav {
  grid-column: 2;
  margin-left: auto;
  margin-right: calc(-1 * var(--grid-margin));
}

.quality-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity .55s var(--ease);
}
.quality-slider__img.is-outgoing { z-index: 1; }
.quality-slider__img.is-incoming { z-index: 2; opacity: 0; }
.quality-slider.is-crossfading .quality-slider__img.is-outgoing { opacity: 0; }
.quality-slider.is-crossfading .quality-slider__img.is-incoming { opacity: 1; }

.quality-slider__label {
  position: absolute;
  top: clamp(16px, 2vw, 28px);
  right: clamp(16px, 2vw, 28px);
  max-width: min(360px, calc(100% - 32px));
  margin: 0;
  padding: 0;
  background: none;
  backdrop-filter: none;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.25;
  text-align: right;
  z-index: 3;
}

.quality-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(72px, 5.5vw, 85px);
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--gray);
  color: var(--gray);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.quality-arrow__icon {
  display: block;
  width: 28px;
  height: 10px;
}
.quality-arrow:hover {
  border-color: var(--green);
  color: var(--green);
}

.qfeature {
  position: relative;
  padding-left: 18px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: border-color .35s var(--ease);
  outline: none;
}
.qfeature.is-active { border-left-color: var(--green); }
.qfeature:focus-visible { box-shadow: inset 0 0 0 2px rgba(54, 90, 67, .35); border-radius: 4px; }
.qfeature__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 20px);
  color: var(--green);
  transition: color .25s var(--ease);
}
.qfeature.is-active .qfeature__title { color: var(--green-dark); }
.qfeature__desc {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.5;
  color: var(--gray);
  margin-top: 8px;
  text-align: justify;
  hyphens: auto;
}

@media (max-width: 860px) {
  .quality-row,
  .quality-row--reverse {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
  }
  .quality-slider,
  .quality-row--reverse .quality-slider {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    height: auto;
    min-height: 240px;
    border-radius: clamp(20px, 5vw, 32px);
  }
  .quality-row__features,
  .quality-row--reverse .quality-row__features {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    justify-content: flex-start;
    gap: 20px;
  }
  .quality-row__nav,
  .quality-row--reverse .quality-row__nav {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
  }
}

/* ==========================================================================
   Overview
   ========================================================================== */
.section--overview { background: var(--white); }
.overview__list {
  margin: 0;
}
.ov-gap {
  position: relative;
  height: 100px;
  pointer-events: none;
}
.ov-gap__line {
  position: absolute;
  top: 0;
  left: 14.885%;
  width: 61.846%;
  height: 100px;
  object-fit: fill;
  transform: scaleX(-1);
}
.ov-gap--flip .ov-gap__line {
  left: 22.231%;
  transform: scale(-1, -1);
}
.ov-gap__leaf {
  position: absolute;
  bottom: 0;
  object-fit: contain;
}
.ov-gap__leaf--a {
  left: 21.769%;
  width: 12px;
  height: 6px;
  margin-left: 1px;
}
.ov-gap__leaf--b {
  left: 76.231%;
  width: 13px;
  height: 7px;
  margin-left: -1px;
}
.ov-card {
  position: relative;
  display: block;
  height: 400px;
  border-radius: 50px;
  overflow: hidden;
}
.ov-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ov-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ov-card__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 38.462%;
  max-width: 500px;
  background: var(--green);
  color: var(--white);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-radius: 50px;
  box-sizing: border-box;
}
.ov-card:not(.ov-card--reverse) .ov-card__panel {
  right: 0;
  left: auto;
}
.ov-card--reverse .ov-card__panel {
  left: 0;
  right: auto;
}
.ov-card__copy {
  width: calc(100% - 24px);
  max-width: 394px;
  margin-inline: 0;
  align-self: stretch;
}
.ov-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  line-height: normal;
  letter-spacing: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.35);
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  white-space: nowrap;
}
.ov-card__text {
  font-size: 16px;
  line-height: 1.55;
  margin-top: 18px;
  color: rgba(255,255,255,.92);
  width: 100%;
  box-sizing: border-box;
  text-align: justify;
  hyphens: auto;
}
.ov-card__btn {
  align-self: center;
  width: min(250px, 100%);
  margin-top: 28px;
  min-width: 0;
  min-height: 50px;
  padding: 16px 32px;
  font-weight: 700;
}

@media (max-width: 980px) and (min-width: 481px) {
  .ov-card { height: clamp(280px, 38vw, 400px); }
  .ov-card__panel { padding: 32px 28px; }
  .ov-gap { height: 60px; }
  .ov-gap__line { height: 60px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--cream);
  color: var(--white);
  padding: 0;
  margin-top: 0;
  border-radius: 0;
  overflow: visible;
  position: relative;
  z-index: 2;
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* «Уши» скруглённого nav-bar: фон = секция над подвалом, не white body */
body.home .site-footer {
  background: #e5e5e5;
}
.footer__nav-bar {
  background: var(--green);
  border-radius: clamp(24px, 3vw, 50px) clamp(24px, 3vw, 50px) 0 0;
  padding: clamp(20px, 2vw, 28px) 0 clamp(18px, 1.8vw, 26px);
}
.footer__nav-strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(4px, 0.8vw, 12px);
  width: 100%;
}
.footer__nav-strip a {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(15px, 1.15vw, 22px);
  line-height: 1.2;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  color: var(--white);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.footer__nav-strip a:hover {
  background: var(--white);
  color: var(--ink);
}
.footer__nav-strip a.is-active {
  background: var(--white);
  color: var(--ink);
}
.footer__body {
  background: var(--green);
  padding: clamp(10px, 1vw, 16px) 0 clamp(28px, 2.5vw, 40px);
}
.footer__meta {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--font-body);
  font-size: clamp(8px, 0.5vw, 10px);
  line-height: 1.35;
  color: rgba(255,255,255,.92);
}
.footer__meta-col {
  flex: 0 1 auto;
  min-width: 0;
}
.footer__meta-col p {
  margin: 0;
}
.footer__meta-col p + p {
  margin-top: 2px;
}
.footer__meta-co {
  font-weight: 400;
  text-transform: none;
}
.footer__meta-desc {
  color: rgba(255,255,255,.92);
}
.footer__meta-col--legal {
  flex-shrink: 0;
  text-align: right;
}
.footer__meta a {
  color: inherit;
  text-decoration: none;
}
.footer__meta-col--copy a {
  white-space: nowrap;
}
.footer__mobile-strip { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 1700px) {
  .nav__inner { padding-right: 0; }
  .nav__menu ul {
    justify-content: space-between;
    gap: 4px;
  }
}
@media (min-width: 961px) and (max-width: 1699px) {
  .nav__menu ul {
    justify-content: space-between;
    gap: 4px;
  }
}
@media (max-width: 1500px) {
  .nav__menu a { font-size: 15px; padding: 8px 16px; }
  .nav__phone { font-size: 16px; }
  .nav__inner { gap: clamp(10px, 1.6vw, 24px); }
}
@media (max-width: 1300px) {
  .nav__menu a { font-size: 14px; padding: 7px 12px; }
  .nav__phone { font-size: 15px; }
}
@media (max-width: 1200px) {
  .nav__menu a { font-size: 13px; padding: 7px 10px; }
  .nav__phone { font-size: 14px; }
}
@media (max-width: 1100px) {
  .nav__menu a { font-size: 12px; padding: 6px 8px; }
  .nav__phone { font-size: 13px; }
}
@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .nav {
    display: flex;
    align-items: center;
  }
  .nav__side--left { display: none; }
  .nav__side--right {
    flex: 0 0 auto;
    width: auto;
    padding-right: clamp(16px, 4vw, 24px);
    grid-column: auto;
    justify-self: auto;
  }
  .nav__inner {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: 0;
    gap: 12px;
    grid-column: auto;
    justify-self: auto;
    max-width: none;
    overflow: visible;
  }
  .brand { margin-right: auto; }
  .nav__phone { margin-left: 0; }
  .nav__toggle { display: flex; margin-left: 0; }
  .nav__menu {
    order: 3;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--green-dark);
    border-radius: 15px;
    padding: 14px 0; margin: 0;
    display: none;
  }
  .nav.is-open .nav__menu { display: block; }
  .nav__menu ul { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; width: auto; }

  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "headline" "tagline" "aside";
    gap: 26px;
  }
  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat { width: auto; }
  .footer__nav-strip { justify-content: space-between; }
  .footer__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    justify-content: stretch;
  }
  .footer__meta-col--legal {
    text-align: left;
  }
}

@media (min-width: 481px) and (max-width: 960px) {
  /* Full-bleed header bar (tablet) */
  body.nav-open { overflow: hidden; }

  .site-header {
    padding-top: 0;
    z-index: 200;
  }

  .nav {
    border-radius: 0;
    overflow: visible;
    width: 100%;
    max-width: 100vw;
  }

  /* Open state — full-screen overlay (same UX as mobile) */
  .nav.is-open {
    position: fixed;
    inset: 0;
    z-index: 200;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.55);
  }

  .nav.is-open .nav__side--left { display: none; }

  .nav.is-open .nav__side--right {
    position: fixed;
    top: 26px;
    right: 60px;
    z-index: 202;
    padding: 0;
  }

  .nav.is-open .nav__phone { display: none; }

  .nav.is-open .nav__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }

  .nav.is-open .nav__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav.is-open .nav__inner {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: calc(100% - 56px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: none;
    height: 100dvh;
    min-height: 0;
    padding: 80px 20px 28px 16px;
    gap: 0;
    background: var(--green);
    border-radius: 0 20px 20px 0;
    overflow-y: auto;
    z-index: 201;
  }

  .nav.is-open .brand {
    --brand-mark-size: 60px;
    --brand-text-shift: 0.12em;
    position: fixed;
    top: 30px;
    left: 34px;
    z-index: 202;
    margin: 0;
  }

  .nav.is-open .brand__name {
    font-size: 32px;
    letter-spacing: .08em;
  }

  .nav.is-open .nav__menu {
    position: static;
    inset: auto;
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    z-index: 1;
    border-radius: 0;
    padding: 0;
    margin-top: 40px;
    overflow: visible;
    background: transparent;
    order: unset;
  }

  .nav.is-open .nav__menu ul {
    flex: 0 0 auto;
    gap: 8px;
    padding-left: 0;
    margin-left: 0;
    list-style: none;
  }

  .nav.is-open .nav__item--mobile-only,
  .nav.is-open .nav__menu-footer { display: block; }

  .nav.is-open .nav__item--mobile-hide { display: none; }

  .nav.is-open .nav__menu a {
    font-size: 18px;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 0;
    background: transparent;
    color: var(--white);
    text-decoration: none;
  }

  .nav.is-open .nav__menu a:hover { background: transparent; }

  .nav.is-open .nav__menu a.is-active {
    background: transparent;
    color: var(--white);
    padding: 10px 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
  }

  .nav.is-open .nav__menu-footer {
    margin-top: auto;
    padding-top: 20px;
  }

  .nav.is-open .nav__tagline {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--white);
    max-width: 229px;
  }

  .nav.is-open .nav__menu-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
  }

  .nav.is-open .nav__menu-socials .soc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50% !important;
    color: var(--white);
  }

  .nav.is-open .nav__menu-socials .soc svg {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
  }

  .nav.is-open .nav__menu-socials .soc:hover {
    background: transparent;
    opacity: .92;
    transform: none;
  }

  .nav.is-open .nav__menu-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 51px;
    margin-top: 16px;
    padding: 14px 24px;
    border: 1.5px solid var(--white);
    border-radius: 100px !important;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    text-decoration: none;
  }

  .nav.is-open .nav__menu-phone:hover { background: rgba(255, 255, 255, .1); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__stats { grid-template-columns: 1fr; }
  .stat { min-height: auto; }
  .footer__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.section--blog { background: var(--white); }
.section--blog .sec-head { text-align: left; margin-bottom: 40px; }
.section--blog .sec-head__subtitle { padding-left: 0; }
.blog__grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.blog-card {
  position: relative;
  display: block;
  aspect-ratio: 1300 / 625;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  isolation: isolate;
  transition: transform .3s var(--ease);
}
.blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.78) 100%);
  z-index: 1;
  transition: opacity .3s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card__panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  min-height: 180px;
  padding: 34px 40px;
  background: rgba(0,0,0,.5);
}
.blog-card__title { font-family: var(--font-body); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
.blog-card__excerpt {
  margin-top: 12px;
  font-size: 17px;
  opacity: .9;
  max-width: 760px;
  text-align: justify;
  hyphens: auto;
}
.blog-card__date { display: block; margin-top: 14px; font-size: 15px; opacity: .8; }
.blog-card__arrow {
  position: absolute; z-index: 2;
  right: 34px; bottom: 34px;
  display: grid; place-items: center;
  color: var(--white);
  transition: transform .2s var(--ease);
}
.blog-card__arrow svg {
  width: clamp(32px, 2.35vw, 45px);
  height: auto;
}
.blog-card:hover .blog-card__arrow { transform: translateX(4px); }
.blog__more { margin-top: 40px; text-align: center; }
.section--blog-archive .blog__more .btn {
  min-width: 310px;
  min-height: 70px;
  padding: 22px 32px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50px;
}
.blog__all-btn-label--mobile { display: none; }
.blog__all-btn-label--desktop { display: inline; }
.gallery__all-btn-label--mobile { display: none; }
.gallery__all-btn-label--desktop { display: inline; }

@media (max-width: 760px) {
  .blog-card { min-height: 300px; }
  .blog-card__panel { right: 0; padding: 24px; }
  .blog-card__arrow { right: 20px; bottom: 20px; }
}

/* ==========================================================================
   Gallery (бенто)
   ========================================================================== */
.section--gallery {
  background: var(--white);
  overflow-x: clip;
  --gallery-band-h: clamp(400px, 45.846vw, 596px);
  --gallery-tail-h: clamp(280px, 19.27vw, 370px);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows:
    auto
    var(--gallery-band-h)
    var(--gallery-band-h)
    var(--gallery-band-h)
    var(--gallery-tail-h);
  gap: 22px;
}
.g-item { border-radius: var(--radius); overflow: hidden; min-height: 0; min-width: 0; max-width: 100%; }
.g-photo { background-size: 100% 100%; background-position: center; background-repeat: no-repeat; position: relative; margin: 0; overflow: hidden; }
.section--gallery .g-photo { background-size: cover; }
.g-stack { display: flex; flex-direction: column; gap: 22px; }
.g-stack__item { flex: 1; border-radius: var(--radius); min-height: 0; }

/* Позиции сетки — как в макете Figma (12 кол.) */
.g-item--g01 {
  grid-column: 1 / 5;
  grid-row: 1;
  aspect-ratio: 1 / 1;
  height: auto;
  align-self: start;
}
.g-item--g02 {
  grid-column: 5 / 9;
  grid-row: 1;
  aspect-ratio: 1 / 1;
  height: auto;
  align-self: start;
}
.g-item--g03 {
  grid-column: 9 / 13;
  grid-row: 1;
  align-self: stretch;
}
.g-item--g04 {
  grid-column: 1 / 4;
  grid-row: 2;
  height: var(--gallery-band-h);
}
.g-item--g05 {
  grid-column: 4 / 13;
  grid-row: 2;
  height: var(--gallery-band-h);
}
.g-item--g06 {
  grid-column: 1 / 10;
  grid-row: 3;
  height: var(--gallery-band-h);
}
.g-item--g07 {
  grid-column: 10 / 13;
  grid-row: 3;
  height: var(--gallery-band-h);
}
.g-item--g08 {
  grid-column: 1 / 4;
  grid-row: 4;
  height: var(--gallery-band-h);
}
.g-item--g09 {
  grid-column: 4 / 13;
  grid-row: 4;
  height: var(--gallery-band-h);
}
.g-item--g10 {
  grid-column: 1 / 5;
  grid-row: 5;
  height: var(--gallery-tail-h);
}
.g-item--g11 {
  grid-column: 5 / 9;
  grid-row: 5;
  height: var(--gallery-tail-h);
}
.g-item--g12 {
  grid-column: 9 / 13;
  grid-row: 5;
  height: var(--gallery-tail-h);
}

.g-slider {
  position: relative;
}
.g-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.g-slider__nav--prev { left: clamp(12px, 1.4vw, 20px); }
.g-slider__nav--next { right: clamp(12px, 1.4vw, 20px); }
.g-slider .quality-arrow {
  width: clamp(82px, 6vw, 96px);
  height: 40px;
  background: rgba(255, 255, 255, .62);
  border-color: rgba(255, 255, 255, .95);
  backdrop-filter: none;
}
.g-slider .quality-arrow:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--green);
}
.g-slider__dots {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.g-slider__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45);
}
.g-slider__dot.is-active { background: var(--white); }

.g-quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 32px;
}
.g-quote p { font-size: clamp(18px, 2vw, 24px); line-height: 1.35; }
.g-quote cite { margin-top: auto; font-style: normal; font-size: 15px; opacity: .85; }
.g-quote--green   { background: var(--green); color: var(--white); }
.g-item--g03.g-quote {
  position: relative;
  margin-right: calc(-1 * var(--grid-margin));
  padding: 28px calc(32px + var(--grid-margin)) 28px 32px;
  border-radius: var(--radius) 0 0 var(--radius);
  max-width: none;
}
.g-item--g03.g-quote cite {
  position: absolute;
  right: 32px;
  bottom: 28px;
  left: auto;
  margin-top: 0;
  text-align: right;
}
.g-item--g10.g-quote {
  margin-left: calc(-1 * var(--grid-margin));
  padding: 28px 32px 28px calc(32px + var(--grid-margin));
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: none;
}
.g-quote--gray    { background: var(--gray-light); color: var(--ink); }
.g-item--g07.g-quote {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.g-item--g07.g-quote p {
  font-size: clamp(14px, 0.83vw, 16px);
  line-height: 1.45;
  margin: 0;
  max-width: 92%;
}
.g-quote--black   { background: var(--ink); color: var(--white); text-align: center; justify-content: center; }
.g-quote--black p { font-size: clamp(16px, 1.8vw, 22px); line-height: 1.4; }
.g-quote--outline { background: var(--white); border: 2px solid var(--green); color: var(--ink); }
.g-item--g10.g-quote cite {
  align-self: flex-start;
  text-align: left;
}
.g-quote__gallery-btn {
  margin-top: auto;
  align-self: flex-start;
  font-size: 15px;
  padding: 14px 28px;
}
.gallery__more { margin-top: 40px; text-align: center; }

/* Архив галереи — bento-мозаика как на главной (12 фото на страницу) */
.section--gallery-archive {
  background: var(--white);
  overflow-x: clip;
  padding-bottom: 80px;
  --gallery-band-h: clamp(400px, 45.846vw, 596px);
  --gallery-tail-h: clamp(280px, 19.27vw, 370px);
}
.section--gallery-archive .gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows:
    auto
    var(--gallery-band-h)
    var(--gallery-band-h)
    var(--gallery-band-h)
    var(--gallery-tail-h);
  gap: 22px;
}
.section--gallery-archive .g-photo {
  background-size: cover;
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
  display: block;
}
.section--gallery-archive .g-photo:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.gallery-archive__pagination {
  margin-top: 60px;
  text-align: center;
}
.gallery-archive__empty {
  text-align: center;
  color: var(--gray);
  padding: 40px 0;
}

@media (max-width: 480px) {
  .g-stack { min-height: 380px; }
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.section--reviews { background: var(--white); }
.reviews__mosaic {
  position: relative;
  width: 100%;
  aspect-ratio: 1300 / 1260;
}
.reviews__connector {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 91.27%;
  pointer-events: none;
  z-index: 0;
  object-fit: fill;
}
.review-card,
.review-media {
  position: relative;
  z-index: 1;
}
.review-tile {
  position: absolute;
  z-index: 1;
  border-radius: 50px;
  overflow: hidden;
}
.review-tile--a { left: 0; top: 0; width: 30%; height: 43.65%; }
.review-tile--b { left: 33.85%; top: 0; width: 66.15%; height: 43.65%; }
.review-tile--c { left: 0; top: 47.62%; width: 66.15%; height: 43.65%; }
.review-tile--d { left: 70%; top: 47.62%; width: 30%; height: 43.65%; }

.review-tile__panel {
  background: var(--green);
  color: var(--white);
  height: 100%;
  padding: 36px 32px 24px;
  display: flex;
  flex-direction: column;
}
.review-tile__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.review-tile__head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.review-tile__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  font-weight: 400;
  flex-shrink: 0;
}
.review-tile__avatar--photo {
  display: block;
  object-fit: cover;
}
.review-tile__name { font-size: clamp(22px, 2.4vw, 36px); font-weight: 400; line-height: 1.1; }
.review-tile__city { font-size: 20px; opacity: .85; }
.review-tile__body {
  flex: 1 1 auto;
  min-height: 0;
}
.review-tile__quote {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.55;
  opacity: .75;
  text-align: justify;
  hyphens: auto;
}
.review-tile__foot {
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding-top: 8px;
}
.review-tile__note {
  margin-top: 0;
  max-width: 249px;
  font-size: 12px;
  opacity: .75;
  line-height: 1.25;
}
.review-tile__btn {
  margin-top: 0;
  margin-bottom: 4px;
  align-self: center;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.review-tile__media {
  position: relative;
  height: 100%;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.review-tile__play {
  position: absolute; inset: 0; margin: auto;
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(3px);
  border: 0;
  color: var(--white);
}
.review-tile__play svg {
  width: 38px;
  height: 38px;
}
.reviews__more {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
}
.reviews__all-btn {
  min-width: 310px;
  padding-block: 22px;
  font-size: 20px;
}

/* Архив отзывов */
.reviews__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.review--reverse .review__panel { order: 2; }
.review--reverse .review__media { order: 1; }

/* Архив отзывов — чередование: панель слева / фото справа и наоборот */
.section--reviews-archive .review__panel,
.section--reviews-archive .review__media {
  order: unset;
}
.section--reviews-archive .review:not(.review--reverse) .review__panel { grid-column: 1; grid-row: 1; }
.section--reviews-archive .review:not(.review--reverse) .review__media { grid-column: 2; grid-row: 1; }
.section--reviews-archive .review--reverse .review__panel { grid-column: 2; grid-row: 1; }
.section--reviews-archive .review--reverse .review__media { grid-column: 1; grid-row: 1; }

.review__panel {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.review__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.review__head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.review__name { font-size: clamp(22px, 2.4vw, 36px); font-weight: 400; line-height: 1.1; }
.review__city { font-size: 20px; opacity: .85; }
.review__quote {
  font-size: clamp(14px, 1.4vw, 20px);
  line-height: 1.45;
  margin: 16px 0 0;
  flex: 1;
}
.review__note { font-size: 13px; opacity: .85; margin: 0; max-width: 249px; line-height: 1.25; }
.review__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.review__btn { align-self: center; }
.review__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  font-weight: 400;
  flex-shrink: 0;
}
.review__avatar--photo {
  display: block;
  object-fit: cover;
}
.review__media {
  border-radius: var(--radius);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 320px;
  aspect-ratio: 860 / 550;
  overflow: hidden;
}

@media (max-width: 980px) {
  .reviews__mosaic {
    position: static;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 640px;
  }
  .reviews__connector { display: none; }
  .reviews__more {
    position: static;
    transform: none;
    margin-top: 8px;
  }
  .review-tile {
    position: static;
    width: 100%;
    height: auto;
  }
  .review-tile--a, .review-tile--b, .review-tile--c, .review-tile--d {
    left: auto; top: auto;
  }
  .review-tile__panel { min-height: 360px; }
  .review-tile__media { min-height: 280px; aspect-ratio: 860 / 550; }
  .reviews__all-btn { min-width: 0; width: 100%; max-width: 310px; }
  .review { grid-template-columns: 1fr; }
  .review--reverse .review__panel,
  .review--reverse .review__media { order: unset; }
}

@media (max-width: 980px) and (min-width: 769px) {
  .section--reviews-archive .review:not(.review--reverse) {
    grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
    gap: clamp(16px, 2.5vw, 32px);
    max-width: 100%;
  }

  .section--reviews-archive .review--reverse {
    grid-template-columns: minmax(0, 64fr) minmax(0, 36fr);
    gap: clamp(16px, 2.5vw, 32px);
    max-width: 100%;
  }

  .section--reviews-archive .review__panel,
  .section--reviews-archive .review__media {
    min-height: 0;
  }

  .section--reviews-archive .review__media {
    min-height: 280px;
    height: auto;
    aspect-ratio: 860 / 550;
  }
}

@media (max-width: 768px) {
  .section--reviews-archive .review {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 25px;
    overflow: hidden;
  }

  .section--reviews-archive .review:not(.review--reverse) .review__media { order: 1; }
  .section--reviews-archive .review:not(.review--reverse) .review__panel { order: 2; }
  .section--reviews-archive .review--reverse .review__panel { order: 1; }
  .section--reviews-archive .review--reverse .review__media { order: 2; }

  .section--reviews-archive .review:not(.review--reverse) .review__media {
    border-radius: 25px 25px 0 0;
  }

  .section--reviews-archive .review:not(.review--reverse) .review__panel {
    border-radius: 0 0 25px 25px;
  }

  .section--reviews-archive .review--reverse .review__panel {
    border-radius: 25px 25px 0 0;
  }

  .section--reviews-archive .review--reverse .review__media {
    border-radius: 0 0 25px 25px;
  }

  .section--reviews-archive .review__media {
    min-height: 200px;
    height: auto;
    width: 100%;
    aspect-ratio: 340 / 200;
  }
}

/* ==========================================================================
   Contacts + lead form
   ========================================================================== */
.section--contacts {
  background: var(--white);
  padding-bottom: 0;
}
.section--contacts .sec-head {
  margin-bottom: clamp(32px, 4vw, 48px);
  text-align: center;
}
.section--contacts .sec-head__title { text-align: center; }
.section--contacts .sec-head__subtitle {
  white-space: nowrap;
  overflow: hidden;
  padding-left: 0;
  text-align: right;
}
.section--contacts .sec-head__subtitle.sec-head__subtitle--leaves { overflow: visible; }

.contacts__panel {
  background: #e5e5e5;
  border-radius: clamp(24px, 3vw, 50px) clamp(24px, 3vw, 50px) 0 0;
  padding: clamp(36px, 4.5vw, 56px) 0 clamp(36px, 4.5vw, 56px);
  position: relative;
  z-index: 1;
}
.contacts__card {
  display: grid;
  grid-template-columns: minmax(0, 530fr) minmax(0, 641fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.contacts__map {
  height: clamp(240px, 18.75vw, 360px);
  border-radius: var(--radius);
  margin-bottom: clamp(20px, 2.5vw, 32px);
  overflow: hidden;
  position: relative;
  z-index: 0;
  background: #e8e8e8;
}
.contacts__map-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}
.contacts__list { display: flex; flex-direction: column; }
.contacts__list li {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 2px solid var(--green);
  padding: 9px 0 0;
  margin-top: 9px;
}
.contacts__list li:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.contacts__list li:last-child {
  border-bottom: 2px solid var(--green);
  padding-bottom: 9px;
}
.contacts__label {
  flex: 0 1 auto;
  font-size: 16px;
  line-height: 1.3;
  color: var(--green);
}
.contacts__value {
  flex: 0 1 auto;
  font-size: 14px;
  line-height: 1.35;
  color: var(--green);
  text-align: right;
}
a.contacts__value:hover { opacity: .75; }
.contacts__socials { display: none; }

.lead__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; color: var(--green); }
.lead__lead { margin-top: 14px; font-size: 14px; color: var(--ink); }
.lead__desc { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.lead-form { margin-top: 24px; }
.lead-form__field { margin-bottom: 16px; }
.lead-form__field input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 14px 4px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  outline: none;
  text-align: left;
  transition: border-color .2s var(--ease);
}
.lead-form__field input:focus { border-color: var(--green); }
.lead-form__field--phone {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--ink);
  transition: border-color .2s var(--ease);
}
.lead-form__field--phone:focus-within { border-color: var(--green); }
.lead-form__field--phone input { border-bottom: 0; text-align: left; }
.lead-form__country {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  padding: 0 4px 0 0;
  letter-spacing: .03em;
  background: transparent;
  border: 0;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.lead-form__field--phone input { flex: 1 1 auto; min-width: 0; }
.lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-form__note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--gray);
  text-align: left;
}
.lead-form__consent {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.lead-form__consent input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
  cursor: pointer;
}
.lead-form__consent span { flex: 1 1 auto; font-weight: 400; color: var(--ink); }
.lead-form__submit { margin-top: 18px; min-width: 200px; }
.lead-form__submit.is-loading { opacity: .6; pointer-events: none; }
.lead-form__result { margin-top: 14px; font-size: 15px; line-height: 1.4; min-height: 2.5em; }
.lead-form__result.is-success { color: var(--green-accent); }
.lead-form__result.is-error { color: #c0392b; }

@media (min-width: 481px) {
  .contacts__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 681px;
    box-sizing: border-box;
  }

  .contacts__panel > .container {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: auto;
    height: auto;
  }

  .contacts__card {
    width: 100%;
    align-items: stretch;
  }

  .contacts__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    text-align: center;
  }

  .contacts__form .lead-form__result {
    min-height: 0;
  }

  .contacts__form .lead__title,
  .contacts__form .lead__lead,
  .contacts__form .lead__desc {
    text-align: center;
    width: 100%;
    max-width: 520px;
    margin: 0;
  }

  .contacts__form .lead__lead,
  .contacts__form .lead__desc {
    margin-top: 16px;
  }

  .contacts__form .lead-form {
    width: 100%;
    max-width: 520px;
    margin-top: 16px;
    text-align: left;
  }

  .contacts__form .lead-form__field--phone {
    margin-bottom: 0;
    justify-content: flex-start;
  }

  .contacts__form .lead-form__note {
    margin-top: 2px;
    text-align: left;
  }

  .contacts__form .lead-form__consent {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .contacts__form .lead-form__submit {
    display: block;
    margin-inline: auto;
  }
}

@media (max-width: 860px) {
  .contacts__card { grid-template-columns: 1fr; gap: 36px; }
  .contacts__list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .contacts__value { text-align: left; }
}

/* ==========================================================================
   Article / page
   ========================================================================== */
.article { padding: calc(var(--header-h) + 50px) 0 90px; background: var(--cream); }
.article__container { max-width: var(--content); }
.article__back { display: inline-block; margin-bottom: 24px; color: var(--green); font-weight: 600; }
.article__back:hover { text-decoration: underline; }
.section--reviews-archive .article__back,
.section--gallery-archive .article__back,
.section--blog-archive .article__back { position: static; display: inline-block; margin-top: 0; margin-bottom: 16px; }
.article__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 5vw, 52px); line-height: 1.1; color: var(--green); }
.article__date { color: var(--gray); margin-top: 28px; font-size: 15px; opacity: .85; }
.article__cover { margin: 28px 0; border-radius: var(--radius); overflow: hidden; }
.article__cover img { width: 100%; height: auto; }
.article__body { font-size: 18px; line-height: 1.7; }
.article__body p { margin: 0 0 1em; }
.article__body h2, .article__body h3 { font-family: var(--font-head); color: var(--green); margin: 1.2em 0 .5em; }
.article__body img { border-radius: var(--radius); margin: 1em 0; }
.article__cta { margin-top: 36px; }

/* Страница проекта */
.project-page__sub { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 14px; color: var(--gray); font-size: 18px; }
.project-page__badge { background: var(--green); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600; }

/* ==========================================================================
   ТИПЫ ДОМОВ / Подробное описание (страницы линеек)
   ========================================================================== */
.types-page,
.detail-page {
  padding: calc(var(--header-h) + 40px) 0 80px;
  background: var(--cream);
  min-height: 100vh;
}
.types-page__panel,
.detail-page__panel {
  width: min(1465px, calc(100% - 40px));
  margin-inline: auto;
  background: #eeeeee;
  border-radius: 50px;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 80px) clamp(40px, 6vw, 72px);
  position: relative;
}
.types-page__top,
.detail-page__top {
  position: relative;
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.types-page__back,
.detail-page__back {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: var(--gray);
  border-radius: 50%;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.types-page__back:hover,
.detail-page__back:hover {
  color: var(--green);
  background: rgba(255,255,255,.55);
}
.types-page__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--green);
}
/* Цена-«бабл»: фростед-капсула в стиле .project-card__btn */
.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  background: rgba(54, 90, 67, .12);
  border: 1px solid rgba(54, 90, 67, .32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--green);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1;
  white-space: nowrap;
}
.types-page__price {
  margin-top: 16px;
}
.variant-specs__price {
  margin: 2px 0 12px;
  text-align: left;
}
.variant-plan__price {
  margin: 0 0 12px;
}
.types-page__list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, var(--section-gap));
}
.types-page__empty {
  text-align: center;
  color: var(--gray);
  font-size: 18px;
  padding: 40px 0;
}
.variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.variant-row--reverse .variant-row__info { order: 2; }
.variant-row--reverse .variant-row__media { order: 1; }
@media (min-width: 901px) {
  .types-page__list > .variant-row:nth-child(even) .variant-row__info { order: 2; }
  .types-page__list > .variant-row:nth-child(even) .variant-row__media { order: 1; }
}
.variant-row__name {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  color: var(--green);
  margin-bottom: 22px;
  text-align: left;
}
@media (min-width: 901px) {
  .types-page__list > .variant-row:nth-child(even) .variant-row__name {
    text-align: right;
  }
}
.variant-specs {
  margin: 0 0 24px;
}
.variant-specs__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.12);
  font-size: 14px;
  color: var(--gray);
}
.variant-specs__row:last-child { border-bottom: none; }
.variant-specs__row dt { font-weight: 400; }
.variant-specs__row dd { margin: 0; text-align: right; color: var(--ink); }
.variant-row__desc { margin-bottom: 28px; }
.variant-row__desc-label {
  display: block;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 8px;
}
.variant-row__desc p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  text-align: left;
  hyphens: auto;
}
.variant-row__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  padding: 16px 28px;
  border: 1px solid rgba(0,0,0,.35);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.35);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.variant-row__btn:hover {
  background: var(--white);
  border-color: var(--green);
  color: var(--green);
}
.variant-row__media { min-width: 0; }
.variant-slider {
  aspect-ratio: 4 / 3;
  min-height: 280px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.variant-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .2s var(--ease);
}
.variant-slider__icon {
  display: block;
  width: 18px;
  height: auto;
  flex-shrink: 0;
}
.variant-slider__nav:hover { background: var(--white); }
.variant-slider__nav--prev { left: 14px; }
.variant-slider__nav--next { right: 14px; }

.detail-page__head {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,.15);
  max-width: 900px;
  margin-inline: auto;
}
.detail-page__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--green);
  margin-bottom: 10px;
}
.detail-page__subtitle {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.5;
}
.detail-page__body {
  max-width: 900px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.detail-page__body ol {
  padding-left: 1.2em;
  margin: 1em 0;
}
.detail-page__body li { margin-bottom: 1em; }
.detail-page__foot {
  max-width: 900px;
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}
.detail-page__link-back {
  font-weight: 400;
  color: var(--green);
}
.detail-page__link-back:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .types-page__panel,
  .detail-page__panel { border-radius: 28px; padding-inline: 20px; }
  .variant-row,
  .variant-row--reverse {
    grid-template-columns: 1fr;
  }
  .variant-row--reverse .variant-row__info,
  .variant-row--reverse .variant-row__media { order: unset; }
  .variant-row__btn { max-width: none; }
}

/* Страница отзыва */
.review-page__head { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.review-page__head .article__title { margin: 0; }
.review-page__city { color: var(--gray); margin-top: 6px; }

/* Пагинация WP */
.blog__more .nav-links,
.section--reviews-archive .reviews__more .nav-links,
.section--gallery-archive .gallery-archive__pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.blog__more .page-numbers,
.section--reviews-archive .reviews__more .page-numbers,
.section--gallery-archive .gallery-archive__pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: var(--radius-pill); background: var(--cream); color: var(--ink);
}
.blog__more .page-numbers.current,
.section--reviews-archive .reviews__more .page-numbers.current,
.section--gallery-archive .gallery-archive__pagination .page-numbers.current { background: var(--green); color: var(--white); }

/* ==========================================================================
   Модальные окна
   ========================================================================== */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: start center; padding: 20px; padding-top: max(20px, 10vh); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11, 11, 11, .55); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative; z-index: 1; width: 100%; max-width: 520px;
  background: var(--white); border-radius: var(--radius); padding: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3); max-height: 90vh; overflow-y: auto;
  animation: modal-in .25s var(--ease);
}
.modal__close {
  position: absolute; top: 14px; right: 18px; background: none; border: 0;
  font-size: 30px; line-height: 1; color: var(--gray); cursor: pointer;
}
.modal__close:hover { color: var(--ink); }
.modal__title { font-family: var(--font-head); color: var(--green); font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
.modal__text { color: var(--gray); margin-top: 10px; font-size: 14px; line-height: 1.45; }
.modal__text--desc { margin-top: 12px; color: var(--ink); }
.modal--lead .modal__dialog { max-width: 560px; text-align: center; }
.modal--lead .modal__title { font-size: clamp(22px, 3vw, 32px); }
.modal--lead .lead-form { margin-top: 22px; text-align: left; }
.modal--lead .lead-form__field:not(.lead-form__field--phone) input { text-align: left; }
.modal--lead .lead-form__submit { display: block; margin-inline: auto; min-width: 220px; }
.modal--lead .lead-form__result { min-height: 2.5em; }
.modal--thanks .modal__dialog { max-width: 460px; text-align: center; }
.modal__check {
  display: inline-grid; place-items: center; width: 72px; height: 72px;
  border-radius: 50%; background: var(--green); color: #fff; margin: 4px auto 18px;
}
.modal--thanks .btn { margin-top: 24px; min-width: 180px; }
.modal--viber {
  place-items: center;
  padding: 20px;
}
.modal--viber .modal__dialog {
  max-width: 440px;
  width: min(440px, calc(100vw - 40px));
  box-sizing: border-box;
  padding: 44px 40px 36px;
  text-align: center;
}
.modal--viber .modal__title {
  margin: 0;
  padding: 0 28px;
  text-align: center;
}
.viber-modal__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
.viber-modal__lead {
  margin-top: 12px;
  max-width: 32ch;
}
.viber-modal__phone {
  margin: 20px 0 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  color: var(--green);
  letter-spacing: 0.02em;
}
.viber-modal__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 24px;
}
.viber-modal__actions .btn {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 14px 24px;
}
.viber-modal__qr-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 28px 0 0;
  padding: 0;
}
.viber-modal__qr {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
}
.viber-modal__download {
  margin-top: 16px;
  margin-bottom: 0;
}
.viber-modal__download a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.modal--variant-detail .modal__dialog {
  max-width: min(720px, calc(100vw - 40px));
  background: #eeeeee;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
}
.variant-detail__head {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,.15);
  margin-bottom: 20px;
  padding-right: 36px;
}
.variant-detail__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--green);
  margin: 0;
}
.variant-detail__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.45;
}
.variant-detail__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  max-height: min(52vh, 480px);
  overflow-y: auto;
  padding-right: 4px;
}
.variant-detail__body ol { padding-left: 1.2em; margin: 1em 0; }
.variant-detail__body li { margin-bottom: .85em; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.modal--gallery-lightbox {
  padding: 0;
  place-items: stretch;
}
.modal--gallery-lightbox .modal__backdrop {
  background: rgba(0, 0, 0, .92);
  backdrop-filter: none;
}
.gallery-lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1002;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox__close:hover { background: rgba(255, 255, 255, .24); }
.gallery-lightbox__stage {
  position: relative;
  z-index: 1001;
  margin: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 56px 12px 24px;
}
.gallery-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-lightbox__brand {
  --brand-mark-size: 24px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1003;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  pointer-events: none;
}

.gallery-lightbox__brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  line-height: 0;
}

.gallery-lightbox__brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-lightbox__brand-name {
  display: block;
  height: var(--brand-mark-size);
  line-height: var(--brand-mark-size);
  font-family: "Alegreya", Georgia, serif;
  letter-spacing: .04em;
  transform: translateY(0.06em);
}

@media (max-width: 560px) { .modal__dialog { padding: 30px 20px; } }

@media (min-width: 1200px) {
  body.home .sec-head__title {
    /* Break out of container and span full viewport width */
    font-size: clamp(150px, 16.67vw, 320px);
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: none;
    margin-left: 0;
    text-align: center;
  }

  /* Contacts title: 280px @1920, full-bleed как Figma frame 2231px (не в колонке 1300) */
  body.home .section--contacts .sec-head__title {
    font-size: clamp(130px, 14.58vw, 280px);
    line-height: 0.97;
    text-align: center;
  }
}

/* ==========================================================================
   Desktop Figma «Сайт» @1920 — калибровка скролла (не трогает mobile.css)
   ========================================================================== */
@media (min-width: 481px) {
  .section {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Равный зазор 100px между всеми блоками главной */
  body.home main > * + * {
    margin-top: var(--section-gap);
  }

  body.home main > .section--contacts {
    margin-top: calc(var(--section-gap) + 383px);
  }

  .hero + .section,
  .section + .section,
  .section + .quote-band,
  .quote-band + .section,
  .section + .story-band,
  .story-band + .section,
  .section + .advantages-band,
  .advantages-band + .section {
    margin-top: var(--section-gap);
  }

  .sec-head--subpage .sec-head__title {
    font-size: clamp(96px, 10.42vw, 200px);
    line-height: 0.85;
  }

  .sec-head--subpage .sec-head__subtitle {
    font-size: clamp(20px, 2.083vw, 40px);
    line-height: 1.22;
    margin-top: var(--sec-head-title-gap);
  }

  /* Shared title → subtitle gap (desktop/tablet; mobile.css untouched) */
  .sec-head__subtitle,
  .sec-head__subtitle--composite {
    margin-top: var(--sec-head-title-gap);
  }

  body.home .sec-head__title {
    padding-bottom: 0;
  }

  /* Главная @1920 — sec-head как Figma «Сайт» (320/64, контакты 280/64) */
  body.home .sec-head {
    margin-bottom: 50px;
  }

  body.home .sec-head__title {
    font-size: clamp(160px, 16.667vw, 320px);
    line-height: 0.85;
    letter-spacing: 1px;
  }

  body.home .sec-head__subtitle {
    font-size: clamp(32px, 3.333vw, 64px);
    line-height: 1.22;
  }

  body.home .section--credits .sec-head__title {
    text-align: center;
  }
  body.home .section--credits .sec-head__subtitle {
    padding-left: 0;
  }
  body.home .section--projects .sec-head__subtitle { padding-left: clamp(340px, 35.729vw, 686px); }
  body.home .section--quality .sec-head__subtitle {
    padding-left: 0;
    width: calc(var(--content) / 2 + 15px);
    max-width: 100%;
    text-align: right;
    box-sizing: border-box;
  }
  body.home .section--overview .sec-head__subtitle {
    display: block;
    padding-left: 0;
    margin-left: auto;
    margin-right: 0;
    width: min(643px, 49.462%);
    max-width: 100%;
    text-align: right;
    white-space: nowrap;
    box-sizing: border-box;
  }
  body.home .section--blog .sec-head__subtitle { padding-left: 0; }
  body.home .section--gallery .sec-head__subtitle {
    padding-left: clamp(350px, 37.083vw, 712px);
  }
  body.home .section--gallery .sec-head { margin-bottom: clamp(26px, 2.76vw, 53px); }
  body.home .section--reviews .sec-head__subtitle {
    width: min(var(--content), calc(100% - 32px));
    margin-inline: auto;
    padding-left: 0;
    text-align: left;
  }

  body.home #gallery .gallery__more .btn,
  body.home #gallery .gallery__footer .btn {
    min-width: 310px;
    min-height: 70px;
    padding: 22px 48px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
  }

  body.home .g-quote cite { font-size: 16px; }

  body.home .g-item--g04 .g-quote p { font-size: 20px; }

  body.home .section--gallery .g-item,
  body.home .section--gallery .g-stack__item {
    border-radius: 50px;
  }

  body.home .g-item--g03.g-quote {
    margin-right: calc(-1 * var(--grid-margin));
    padding: 28px calc(32px + var(--grid-margin)) 28px 32px;
    border-radius: 50px;
    max-width: none;
  }

  body.home .g-item--g10.g-quote {
    position: relative;
    margin-left: calc(-1 * var(--grid-margin));
    padding: 28px 32px 28px calc(32px + var(--grid-margin));
    border-radius: 50px;
    max-width: none;
  }

  body.home .g-item--g10.g-quote p {
    align-self: flex-end;
    text-align: right;
    max-width: 210px;
    font-size: 24px;
    line-height: 1.2;
  }

  body.home .g-item--g03.g-quote cite {
    right: 28px;
    bottom: 28px;
    font-size: 16px;
    opacity: 0.75;
  }

  body.home .g-item--g10.g-quote cite {
    position: absolute;
    left: 28px;
    bottom: 28px;
    top: auto;
    font-size: 16px;
    text-align: left;
    opacity: 0.75;
  }

  .gallery__footer {
    margin-top: 40px;
    text-align: center;
  }

  .hero {
    min-height: 1071px;
    height: 1071px;
  }

  .quote-band,
  .story-band {
    aspect-ratio: auto;
    height: 1071px;
    min-height: 1071px;
  }

  .quote-band--happy { margin-bottom: 0; }

  .story-band { margin-bottom: 0; }

  .ov-card { height: 433px; }
  .ov-gap { height: 142px; }
  .ov-gap__line { height: 142px; }

  .section--blog {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Блог на главной — те же карточки, что в архиве (1300×625, panel 180, gap 50) */
  body.home .section--blog .blog__grid {
    gap: 50px;
    max-width: 1300px;
    margin-inline: auto;
  }

  body.home .section--blog .blog-card {
    border-radius: 50px;
  }

  body.home .section--blog .blog-card__panel {
    min-height: 180px;
    max-height: 180px;
    padding: 27px 40px 28px;
    box-sizing: border-box;
  }

  body.home .section--blog .blog-card__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
  }

  body.home .section--blog .blog-card__excerpt {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.25;
  }

  body.home .section--blog .blog-card__arrow {
    right: 34px;
    bottom: 84px;
  }

  body.home .section--blog .blog-card__arrow svg {
    width: 56px;
  }

  body.home .section--blog .blog-card__date {
    margin-top: 12px;
    font-size: 16px;
  }

  body.home #blog .blog__more .btn {
    min-width: 310px;
    min-height: 70px;
    padding: 22px 48px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
  }

  .section--gallery {
    --gallery-band-h: 703px;
    --gallery-tail-h: 430px;
  }

  .advantages-band {
    display: block;
    position: relative;
    width: 100vw;
    max-width: 100%;
    margin-left: calc(50% - 50vw);
    height: 1071px;
    min-height: 1071px;
    padding: 0;
    color: var(--white);
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .28) 100%),
      url("../img/story-bg.jpg") center / cover no-repeat;
  }

  .advantages-band__steps { display: none; }

  .advantages-band__inner {
    position: relative;
    width: min(var(--content), calc(100% - 32px));
    max-width: var(--content);
    height: 100%;
    margin-inline: auto;
    padding: 0;
  }

  .advantages-band .adv-block {
    position: absolute;
    margin: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(10px, 0.9vw, 16px);
    min-height: clamp(180px, 13.02vw, 250px);
    padding: 24px 28px;
    background: rgba(0, 0, 0, .26);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 0;
    box-sizing: border-box;
  }

  .advantages-band .adv-block--left {
    left: calc(-1 * var(--grid-margin));
    padding-left: calc(var(--grid-margin) + 28px);
    border-radius: 0 clamp(24px, 2.5vw, 40px) clamp(24px, 2.5vw, 40px) 0;
  }

  .advantages-band .adv-block--right {
    right: calc(-1 * var(--grid-margin));
    left: auto;
    padding-right: calc(var(--grid-margin) + 28px);
    border-radius: clamp(24px, 2.5vw, 40px) 0 0 clamp(24px, 2.5vw, 40px);
  }

  .advantages-band .adv-block__accent {
    display: block;
    position: absolute;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: rgba(255, 255, 255, .75);
  }

  .advantages-band .adv-block--left .adv-block__accent { left: calc(var(--grid-margin) + 9px); }
  .advantages-band .adv-block--right .adv-block__accent {
    right: calc(var(--grid-margin) + 9px);
    left: auto;
  }

  .advantages-band .adv-block__title {
    font-family: var(--font-body);
    font-size: clamp(18px, 1.667vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    flex: 0 0 auto;
    max-width: min(560px, calc(100% - 36px));
  }

  .advantages-band .adv-block--left .adv-block__title,
  .advantages-band .adv-block--left .adv-block__text { padding-left: 12px; }

  .advantages-band .adv-block--right .adv-block__title {
    text-align: right;
    padding-right: 12px;
    margin-left: auto;
  }

  .advantages-band .adv-block--right .adv-block__text {
    text-align: right;
    hyphens: auto;
    padding-right: 12px;
    margin-left: auto;
  }

  .advantages-band .adv-block__text {
    font-size: clamp(14px, 1.042vw, 20px);
    line-height: 1.45;
    margin: 0;
    opacity: .95;
    flex: 0 0 auto;
    align-self: stretch;
    max-width: min(560px, calc(100% - 36px));
    text-align: justify;
    hyphens: auto;
  }

  .advantages-band .adv-block--1 { top: 6%; width: calc(45.1% + var(--grid-margin)); }
  .advantages-band .adv-block--2 { top: 24%; width: calc(48.3% + var(--grid-margin)); }
  .advantages-band .adv-block--3 { top: 43%; width: calc(44.5% + var(--grid-margin)); }
  .advantages-band .adv-block--4 {
    top: calc(63% + clamp(130px, 9vw, 175px) + clamp(29px, 2.1vw, 34px));
    transform: translateY(-50%);
    width: calc(48% + var(--grid-margin));
  }

  .advantages-band__cta {
    position: absolute;
    left: 0;
    top: calc(63% + clamp(130px, 9vw, 175px));
    transform: none;
    bottom: auto;
    width: calc(45.1% - 8px);
    max-width: calc(45.1% - 8px);
    min-width: 0;
    min-height: clamp(58px, 4.2vw, 68px);
    padding: clamp(16px, 1.2vw, 20px) clamp(20px, 1.6vw, 28px);
    font-size: clamp(18px, 1.25vw, 20px);
    font-weight: 700;
    border-radius: 50px;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
  }

  .advantages-band .btn.advantages-band__cta.btn--light:hover {
    transform: none;
    background: #ececec;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  }

  .section--reviews {
    padding-top: 0;
    padding-bottom: 0;
  }

  .section--contacts {
    padding-top: 0;
    padding-bottom: 0;
  }

  body.home .section--contacts {
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    height: auto;
    min-height: 681px;
    max-height: none;
    margin-top: calc(var(--section-gap) + 383px);
    margin-bottom: 0;
    overflow: visible;
  }

  body.home .section--contacts > .container:first-of-type {
    position: absolute;
    top: -383px;
    left: 0;
    right: 0;
    z-index: 2;
  }

  body.home .section--contacts > .container:first-of-type .sec-head {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    margin-bottom: 39px;
    text-align: center;
  }

  body.home .section--contacts .sec-head__title {
    line-height: 0.97;
    text-align: center;
  }

  body.home .section--contacts .sec-head__subtitle {
    display: block;
    font-size: 64px;
    padding-left: 0;
    margin-top: clamp(6px, 0.85vw, 18px);
    margin-left: auto;
    margin-right: 0;
    width: min(913px, 70.231%);
    max-width: 100%;
    text-align: right;
    white-space: nowrap;
    overflow: visible;
    box-sizing: border-box;
  }

  .section--contacts .sec-head {
    margin-bottom: 24px;
  }

  .contacts__panel {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  body.home .contacts__panel {
    height: auto;
    min-height: 681px;
    max-height: none;
    padding-top: 56px;
    padding-bottom: 56px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  body.home .contacts__panel > .container {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    height: auto;
    display: flex;
    align-items: center;
  }

  body.home .contacts__card {
    align-items: stretch;
    align-self: center;
    width: 100%;
    min-height: 0;
    height: auto;
  }

  body.home .contacts__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body.home .contacts__form .lead-form {
    flex: 0 0 auto;
    display: block;
    width: 100%;
  }

  body.home .contacts__form .lead-form__submit {
    margin-top: 18px;
  }

  body.home .contacts__map {
    height: 360px;
  }

  body.home .lead__title {
    font-size: 32px;
  }

  body.home .lead__lead,
  body.home .lead__desc {
    font-size: 14px;
  }

  body.home .site-footer {
    padding-bottom: 0;
  }

  body.home .footer__nav-bar {
    padding: 26px 0 22px;
  }

  body.home .footer__nav-strip a {
    font-size: 22px;
    padding: 9px 20px;
  }

  body.home .footer__nav-strip a:hover,
  body.home .footer__nav-strip a.is-active {
    padding: 9px 20px;
  }

  body.home .footer__body {
    padding: 14px 0 36px;
  }

  body.home .footer__meta {
    font-size: 10px;
    line-height: 1.35;
  }

  /* ТИПЫ ДОМОВ — Figma «Элит - Mini» 1465×2408, stagger через reverse */
  .types-page {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 80px;
  }

  .types-page__panel {
    width: 1465px;
    max-width: calc(100% - 40px);
    min-height: 2408px;
    padding: 55px 175px 150px;
    border-radius: 50px;
  }

  .types-page__top {
    margin-bottom: 80px;
  }

  .types-page__title {
    font-family: var(--font-body);
    font-size: 55px;
    font-weight: 400;
    letter-spacing: .12em;
    line-height: 1.2;
  }

  .types-page__list {
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
  }

  .types-page .variant-row,
  .types-page .variant-row--reverse {
    grid-template-columns: minmax(0, 438px) minmax(0, 642px);
    gap: 35px;
    align-items: center;
  }

  .types-page .variant-row--reverse {
    grid-template-columns: minmax(0, 642px) minmax(0, 438px);
  }

  .types-page .variant-row--reverse .variant-row__info { order: 2; }
  .types-page .variant-row--reverse .variant-row__media { order: 1; }

  .types-page .variant-row__name {
    font-family: var(--font-body);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 25px;
    text-align: left;
  }

  .types-page .variant-row--reverse .variant-row__name {
    text-align: right;
  }

  /* Цена-капсула повторяет позицию названия (чередование лево/право) */
  .types-page .variant-row--reverse .variant-specs__price {
    text-align: right;
  }

  .types-page .variant-specs { margin-bottom: 0; }
  .types-page .variant-specs__row {
    padding: 8px 0;
    font-size: 14px;
  }
  .types-page .variant-specs__row:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, .12);
  }

  .types-page .variant-row__desc {
    margin-bottom: 16px;
    padding-top: 8px;
    padding-bottom: 16px;
    border-top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
  }

  .types-page .variant-row__desc-label,
  .types-page .variant-row__desc p {
    font-size: 14px;
    line-height: 1.45;
  }

  .types-page .variant-row--reverse .variant-row__desc,
  .types-page__list > .variant-row:nth-child(even) .variant-row__desc {
    text-align: right;
  }

  .types-page .variant-row--reverse .variant-row__desc-label,
  .types-page .variant-row--reverse .variant-row__desc p,
  .types-page__list > .variant-row:nth-child(even) .variant-row__desc-label,
  .types-page__list > .variant-row:nth-child(even) .variant-row__desc p {
    text-align: right;
    hyphens: none;
  }

  .types-page .variant-row__btn {
    width: 438px;
    max-width: 100%;
    height: 60px;
    min-height: 60px;
    padding: 0 28px;
    font-size: 16px;
  }

  .types-page .variant-slider {
    width: 642px;
    max-width: 100%;
    height: 454px;
    min-height: 454px;
    aspect-ratio: auto;
    border-radius: 50px;
  }

  /* Планировка /house/{slug}/ — desktop (intro только mobile) */
  .detail-page {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 80px;
    background: var(--cream);
  }

  .detail-page .variant-intro {
    display: none;
  }

  .detail-page__panel {
    width: 1465px;
    max-width: calc(100% - 40px);
    padding: 55px 175px 72px;
    border-radius: 50px;
    background: #eeeeee;
  }

  .detail-page__top {
    margin-bottom: 48px;
  }

  .detail-page__title {
    font-family: var(--font-body);
    font-size: 40px;
    letter-spacing: 0;
  }

  .variant-plan__heading,
  .variant-photos__heading {
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 32px;
  }

  .variant-plan__layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px 48px;
    align-items: start;
  }

  .variant-plan__figure {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .variant-plan__side { grid-column: 2; grid-row: 1; }

  .variant-plan__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
  }

  .variant-plan__spec dt {
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
  }

  .variant-plan__spec dd {
    font-size: 14px;
    color: var(--ink);
  }

  .variant-plan__desc {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 24px 28px;
    border-radius: var(--radius);
    background: var(--green);
    color: var(--white);
  }

  .variant-plan__desc p {
    font-size: 15px;
    line-height: 1.55;
    text-align: justify;
    hyphens: auto;
  }

  .variant-photos {
    margin-top: 56px;
  }

  .variant-photos__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
  }

  .variant-photos__item {
    aspect-ratio: 642 / 454;
    border-radius: 50px;
  }

  /* Архив блога — Figma «Блог» 2231×1809 */
  .section--blog-archive {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 100px;
  }

  .section--blog-archive .sec-head {
    margin-bottom: 50px;
  }

  .section--blog-archive .blog__grid {
    gap: 50px;
  }

  .section--blog-archive .blog-card {
    border-radius: 50px;
  }

  .section--blog-archive .blog-card__panel {
    min-height: 180px;
    padding: 27px 40px 28px;
  }

  .section--blog-archive .blog-card__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
  }

  .section--blog-archive .blog-card__excerpt {
    margin-top: 10px;
    font-size: 20px;
    line-height: 1.25;
  }

  .section--blog-archive .blog-card__date {
    margin-top: 12px;
    font-size: 16px;
  }

  .section--blog-archive .blog__more .btn {
    min-width: 310px;
    min-height: 70px;
    padding: 22px 32px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
  }

  .article__section-head {
    width: min(var(--content), calc(100% - 32px));
    max-width: var(--content);
    margin-inline: auto;
  }

  .article__section-head .sec-head {
    margin-bottom: 50px;
  }

  .article__section-head .article__back {
    position: static;
    display: inline-block;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
  }

  .article__section-head .article__back:hover {
    color: var(--ink);
    text-decoration: none;
  }

  /* Архив отзывов — Figma «Отзывы» */
  .section--reviews-archive {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 100px;
  }

  .section--reviews-archive .sec-head {
    margin-bottom: 50px;
    overflow: hidden;
  }

  .section--reviews-archive .reviews__more {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 60px;
    text-align: center;
  }

  .section--reviews-archive .reviews__list {
    gap: 50px;
  }

  .section--reviews-archive .review:not(.review--reverse) {
    grid-template-columns: minmax(0, 390px) minmax(0, 860px);
    gap: 50px;
    max-width: 1300px;
    margin-inline: auto;
  }

  .section--reviews-archive .review--reverse {
    grid-template-columns: minmax(0, 860px) minmax(0, 390px);
    gap: 50px;
    max-width: 1300px;
    margin-inline: auto;
  }

  .section--reviews-archive .review__panel {
    min-height: 550px;
    padding: 36px 32px 28px;
    border-radius: 50px;
  }

  .section--reviews-archive .review__name {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.1;
  }

  .section--reviews-archive .review__city {
    font-size: 20px;
  }

  .section--reviews-archive .review__quote {
    font-size: 16px;
    line-height: 1.55;
    opacity: .75;
  }

  .section--reviews-archive .review__note {
    font-size: 12px;
    max-width: 249px;
    line-height: 1.25;
    opacity: .75;
  }

  .section--reviews-archive .review__btn {
    min-width: 210px;
    min-height: 50px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    border-radius: 50px;
  }

  .section--reviews-archive .review__head {
    gap: 12px;
  }

  .section--reviews-archive .review__avatar {
    width: 84px;
    height: 84px;
    font-size: 28px;
  }

  .section--reviews-archive .review__avatar--photo {
    font-size: 0;
  }

  .section--reviews-archive .review__foot {
    justify-content: center;
  }

  .section--reviews-archive .review__media {
    min-height: 550px;
    height: 550px;
    aspect-ratio: auto;
    border-radius: 50px;
  }

  .section--reviews-archive .reviews__more .btn {
    min-width: 310px;
    min-height: 70px;
    padding: 22px 32px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
  }

  /* Архив галереи — bento-мозаика как на главной */
  .section--gallery-archive {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 100px;
  }

  .section--gallery-archive .sec-head {
    margin-bottom: 50px;
  }

  .section--gallery-archive .gallery__grid {
    max-width: var(--content);
    margin-inline: auto;
  }

  /* Статья / история отзыва @desktop — серая панель как mobile modal */
  .article {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 100px;
    background: var(--cream);
  }

  .article > .container.article__container {
    width: min(var(--content), calc(100% - 32px));
    max-width: var(--content);
    margin-inline: auto;
    padding: 44px 48px 48px;
    background: #eeeeee;
    border-radius: 50px;
    position: relative;
    box-sizing: border-box;
  }

  .article__container .article__back {
    position: absolute;
    top: 22px;
    left: 28px;
    right: auto;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .article__container .article__back:hover {
    color: var(--ink);
    text-decoration: none;
  }

  .article:not(.article--review) .article__title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--green);
    padding-right: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
    margin: 0;
  }

  .article:not(.article--review) .article__date {
    display: block;
    margin-top: 32px;
    font-size: 15px;
    color: var(--gray);
    opacity: .85;
  }

  .article__cover {
    margin: 28px 0;
    border-radius: 50px;
    overflow: hidden;
  }

  .article:not(.article--review) .article__cover {
    max-height: min(520px, 40vw);
  }

  .article__cover img {
    border-radius: 50px;
  }

  .article:not(.article--review) .article__cover img {
    width: 100%;
    height: 100%;
    max-height: min(520px, 40vw);
    object-fit: cover;
    object-position: center;
  }

  .article__body {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
  }

  .article__body strong,
  .article__body b {
    color: var(--green);
    font-weight: 700;
  }

  .article--review .review-page__head {
    padding-right: 140px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
    margin-bottom: 0;
  }

  .article--review .review-page__head .review__avatar {
    display: none;
  }

  .article--review .article__title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--green);
    padding-right: 0;
    border-bottom: 0;
    margin: 0;
  }

  .article--review .review-page__city {
    font-size: 16px;
    color: var(--gray);
    margin-top: 6px;
  }

  .article--review .article__cover {
    position: relative;
    margin: 28px 0 24px;
  }

  .article--review .article__cover::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    backdrop-filter: blur(3px);
    pointer-events: none;
    z-index: 1;
  }

  .article--review .article__cover::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-38%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--white);
    pointer-events: none;
    z-index: 2;
  }

  .article--review .article__body {
    font-size: 16px;
    max-height: min(480px, 52vh);
    overflow-y: auto;
    padding-right: 4px;
  }

  .article--review .article__body > p:first-child {
    font-weight: 700;
    color: var(--green);
  }

  .article--review .review__note {
    display: none;
  }

  /* Модалки @desktop — Figma «Заявка» 700×506, «Спасибо» 650×248 */
  .modal--lead .modal__dialog {
    max-width: 700px;
    width: min(700px, calc(100vw - 40px));
    box-sizing: border-box;
    background: #eeeeee;
    border-radius: 50px;
    padding: 26px 75px 30px;
    text-align: center;
  }

  .modal--lead .modal__title {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 0;
  }

  .modal--lead .modal__text {
    font-size: 14px;
    margin-top: 16px;
  }

  .modal--lead .modal__text--desc {
    font-size: 14px;
    line-height: 1.45;
    margin-top: 16px;
  }

  .modal--lead .lead-form {
    margin-top: 16px;
    text-align: left;
  }

  .modal--lead .lead-form__field input {
    font-size: 14px;
    padding: 10px 0;
  }

  .modal--lead .lead-form__field:not(.lead-form__field--phone) input {
    text-align: left;
  }

  .modal--lead .lead-form__country {
    display: inline-flex;
    font-size: 14px;
    color: var(--gray);
  }

  .modal--lead .lead-form__note {
    font-size: 12px;
  }

  .modal--lead .lead-form__consent {
    font-size: 12px;
    line-height: 1.45;
  }

  .modal--lead .lead-form__submit {
    min-width: 228px;
    min-height: 44px;
    font-size: 15px;
    border-radius: 50px;
  }

  .modal--thanks {
    place-items: center;
    padding-top: 20px;
  }

  .modal--thanks .modal__dialog {
    max-width: 650px;
    width: min(650px, calc(100vw - 40px));
    min-height: 248px;
    border-radius: 50px;
    padding: 64px 94px 57px;
    text-align: center;
    box-sizing: border-box;
  }

  .modal--thanks .modal__check,
  .modal--thanks .btn {
    display: none;
  }

  .modal--thanks .modal__title {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
  }

  .modal--thanks .modal__text {
    font-size: 24px;
    line-height: 1.35;
    color: var(--ink);
    margin-top: 24px;
  }

  .modal--viber {
    place-items: center;
    padding: 20px;
  }

  .modal--viber .modal__dialog {
    max-width: 480px;
    width: min(480px, calc(100vw - 40px));
    border-radius: 50px;
    padding: 48px 56px 40px;
  }

  .modal--viber .modal__title {
    font-size: 32px;
    line-height: 1.15;
  }

  .modal--viber .viber-modal__lead {
    font-size: 14px;
    margin-top: 16px;
  }

  .modal--viber .viber-modal__phone {
    margin-top: 24px;
    font-size: 28px;
  }

  .modal--viber .viber-modal__actions {
    margin-top: 28px;
    gap: 14px;
  }

  .modal--viber .viber-modal__qr-wrap {
    margin-top: 32px;
  }

  .modal--variant-card .modal__dialog {
    max-width: 720px;
    width: min(720px, calc(100vw - 40px));
    background: #eeeeee;
    border-radius: 50px;
    padding: 44px 48px 40px;
  }

  .modal--variant-card .variant-card__slider {
    aspect-ratio: 642 / 454;
    min-height: 0;
    margin-bottom: 24px;
    border-radius: 50px;
    cursor: default;
  }

  .modal--variant-card .variant-card__name {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 400;
    color: var(--green);
    margin: 0 0 16px;
    text-align: right;
  }

  .modal--variant-card .variant-specs__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
  }

  .modal--variant-card .variant-specs__row dt { color: var(--gray); }
  .modal--variant-card .variant-specs__row dd {
    margin: 0;
    text-align: right;
    color: var(--ink);
  }

  .modal--variant-card .variant-specs__row:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, .12);
  }

  .modal--variant-card .variant-card__desc {
    margin: 8px 0 16px;
    padding-top: 8px;
    padding-bottom: 16px;
    border-top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    font-size: 14px;
    line-height: 1.45;
    text-align: right;
  }

  .modal--variant-card .variant-card__desc p {
    text-align: right;
    hyphens: none;
  }

  .modal--variant-card .variant-card__detail-btn {
    width: 100%;
    max-width: 438px;
    min-height: 60px;
    margin-bottom: 16px;
  }

  .modal--variant-card .variant-card__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .modal--variant-card .variant-card__nav-btn {
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, .35);
    border-radius: 50px;
    background: rgba(255, 255, 255, .35);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
  }

  .modal--variant-detail .modal__dialog {
    max-width: 720px;
    width: min(720px, calc(100vw - 40px));
    max-height: min(90vh, 780px);
    background: #eeeeee;
    border-radius: 50px;
    padding: 44px 48px 40px;
    display: block;
    overflow: hidden;
  }

  .modal--variant-detail .variant-detail__subtitle {
    display: none;
  }

  .modal--variant-detail .variant-detail__title {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
    margin: 0;
  }

  .modal--variant-detail .variant-detail__head {
    padding-right: 36px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .modal--variant-detail .variant-detail__body {
    font-size: 15px;
    line-height: 1.65;
    max-height: min(52vh, 480px);
    margin-top: 20px;
    padding-right: 4px;
  }

  .modal--variant-detail .variant-detail__body ol li::marker {
    font-weight: 700;
    color: var(--green);
  }
}

@media (min-width: 481px) and (max-width: 1199px) {
  .types-page__panel {
    width: min(1465px, calc(100% - 40px));
    min-height: 0;
    padding: clamp(28px, 4vw, 55px) clamp(24px, 5vw, 48px) clamp(40px, 6vw, 72px);
  }

  .types-page__title {
    font-size: clamp(32px, 5vw, 55px);
  }

  .types-page__list {
    gap: clamp(48px, 8vw, var(--section-gap));
  }

  .types-page .variant-row,
  .types-page .variant-row--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(24px, 4vw, 35px);
    align-items: center;
  }

  .types-page .variant-row--reverse .variant-row__info { order: 2; }
  .types-page .variant-row--reverse .variant-row__media { order: 1; }

  .types-page .variant-slider {
    width: 100%;
    height: auto;
    min-height: 280px;
    aspect-ratio: 642 / 454;
  }

  .types-page .variant-row__btn {
    width: 100%;
    max-width: none;
  }

  .section--reviews-archive .review:not(.review--reverse) {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 40px);
    max-width: 100%;
  }

  .section--reviews-archive .review--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: clamp(24px, 4vw, 40px);
    max-width: 100%;
  }

  .section--reviews-archive .review__media {
    min-height: 280px;
    height: auto;
    aspect-ratio: 860 / 550;
  }

  /* Планировка /house/ — tablet между mobile и desktop @1920 */
  .detail-page__panel {
    width: min(1465px, calc(100% - 40px));
    padding: clamp(28px, 4vw, 55px) clamp(24px, 5vw, 48px) clamp(40px, 6vw, 72px);
  }

  .detail-page__title {
    font-size: clamp(28px, 4vw, 36px);
  }

  .variant-plan__heading,
  .variant-photos__heading {
    font-size: clamp(24px, 3.5vw, 32px);
  }

  .variant-plan__layout {
    grid-template-columns: minmax(120px, 28%) 1fr;
    gap: 20px 24px;
  }

  .variant-plan__figure {
    grid-row: 1 / span 2;
  }

  .variant-plan__desc {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 4px;
  }

  .variant-photos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 35px);
  }

  .variant-photos__item {
    aspect-ratio: 642 / 454;
    border-radius: clamp(24px, 4vw, 50px);
  }

  /* Статьи / отзывы — серая панель на tablet */
  .article > .container.article__container {
    width: min(var(--content), calc(100% - 40px));
    max-width: var(--content);
    padding: clamp(32px, 5vw, 55px) clamp(24px, 4vw, 48px);
    border-radius: clamp(28px, 4vw, 50px);
  }

  .article:not(.article--review) .article__title {
    font-size: clamp(22px, 3.5vw, 28px);
  }

  .article--review .article__title {
    font-size: clamp(22px, 3.5vw, 28px);
  }

  /* Модалки — tablet */
  .modal--lead .modal__dialog {
    width: min(700px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
  }

  .modal--thanks .modal__dialog {
    width: min(650px, calc(100vw - 32px));
  }

  .modal--variant-card .modal__dialog,
  .modal--variant-detail .modal__dialog {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
  }
}

@media (min-width: 481px) and (max-width: 1199px) {
  body.home .section--quality .sec-head {
    text-align: right;
  }

  body.home .section--contacts .sec-head {
    text-align: center;
  }

  body.home .section--quality .sec-head__title,
  body.home .section--contacts .sec-head__title {
    width: 100%;
    max-width: calc(100vw - 32px);
    margin-inline: auto;
    font-size: clamp(92px, 13.2vw, 150px);
    line-height: .88;
    letter-spacing: 0;
  }

  body.home .section--contacts .sec-head__title {
    text-align: center;
  }

  body.home .section--quality .sec-head__subtitle {
    display: inline-block;
    padding-left: 0;
    text-align: left;
    font-size: clamp(26px, 4vw, 44px);
    margin-left: auto;
    margin-right: 0;
  }

  body.home .section--contacts .sec-head__subtitle {
    display: block;
    padding-left: 0;
    margin-left: auto;
    margin-right: 0;
    width: min(913px, 70.231%);
    max-width: 100%;
    text-align: right;
    font-size: clamp(26px, 4vw, 44px);
    box-sizing: border-box;
  }

  body.home .section--overview .sec-head__subtitle {
    display: block;
    padding-left: 0;
    margin-left: auto;
    margin-right: 0;
    width: min(643px, 52%);
    max-width: 100%;
    text-align: right;
    box-sizing: border-box;
  }

  .contacts__map {
    isolation: isolate;
    -webkit-transform: translateZ(0);
    min-height: 240px;
    height: clamp(240px, 18.75vw, 360px);
  }
  .contacts__map-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: block;
    border: 0;
  }

  /* ----- Fix 1: hidden buttons (overview, gallery, contacts, advantages) ----- */
  .ov-card {
    height: auto;
    min-height: clamp(280px, 38vw, 433px);
    overflow: hidden;
    border-radius: 50px;
  }

  .ov-card__panel {
    overflow: visible;
  }

  .ov-card__btn {
    flex-shrink: 0;
  }

  .section--gallery {
    --gallery-band-h: clamp(280px, 45.846vw, 596px);
    --gallery-tail-h: clamp(200px, 19.27vw, 370px);
  }

  .g-photo {
    background-size: cover;
    background-position: center;
  }

  body.home .g-item--g03.g-quote {
    margin-right: 0;
    padding: 28px 32px;
  }

  body.home .g-item--g10.g-quote {
    margin-left: 0;
    padding: 28px 32px;
  }

  #gallery .g-item--g07,
  #gallery .g-item--g08,
  #gallery .g-item--g09,
  #gallery .g-item--g12 {
    display: none;
  }

  #gallery .gallery__footer {
    margin-top: clamp(24px, 3vw, 40px);
    text-align: center;
  }

  #gallery .gallery__footer .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: clamp(200px, 28vw, 310px);
    min-height: clamp(48px, 5vw, 70px);
    padding: clamp(14px, 1.6vw, 22px) clamp(28px, 3.5vw, 48px);
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 700;
    border-radius: 50px;
    margin-inline: auto;
  }

  body.home main > .section--contacts,
  body.home .section--contacts {
    margin-top: var(--section-gap);
    min-height: 0;
    padding-bottom: 0;
  }

  body.home .section--contacts > .container:first-of-type {
    position: static;
    top: auto;
  }

  body.home .section--contacts > .container:first-of-type .sec-head {
    margin-bottom: clamp(32px, 4vw, 48px);
  }

  body.home .contacts__panel {
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 56px;
    padding-bottom: 56px;
    z-index: 2;
    overflow: visible;
  }

  body.home .contacts__panel > .container {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    height: auto;
    display: flex;
    align-items: center;
  }

  body.home .contacts__card {
    align-items: stretch;
    align-self: center;
    width: 100%;
    min-height: 0;
    height: auto;
  }

  body.home .contacts__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    height: 100%;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body.home .contacts__form .lead-form {
    flex: 0 0 auto;
    display: block;
    width: 100%;
  }

  body.home .contacts__form .lead-form__submit {
    display: block;
    margin-inline: auto;
    margin-top: 18px;
  }

  .advantages-band {
    height: auto;
    min-height: clamp(560px, 75vw, 900px);
    overflow: visible;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .advantages-band__inner {
    height: auto;
    min-height: inherit;
    padding-bottom: clamp(72px, 8vw, 96px);
  }

  .advantages-band__cta {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    max-width: min(420px, calc(100% - 32px));
    margin: 24px auto 0;
    z-index: 5;
  }

  /* ----- Fix 2: white line on right edge (100vw full-bleed reset) ----- */
  .quote-band,
  .story-band,
  .projects__viewport,
  .advantages-band,
  .site-footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .quote-band,
  .story-band {
    min-height: auto;
    height: auto;
  }

  .quality-slider {
    width: 100%;
    margin-left: 0;
  }

  .quality-row--reverse .quality-slider {
    margin-right: 0;
  }

  .advantages-band .adv-block--left {
    left: 0;
    width: calc(45.1% + 0px);
    padding-left: calc(var(--grid-margin) + 28px);
  }

  .advantages-band .adv-block--right {
    right: 0;
    width: calc(48% + 0px);
    padding-right: calc(var(--grid-margin) + 28px);
  }

  .advantages-band .adv-block--1,
  .advantages-band .adv-block--2,
  .advantages-band .adv-block--3 {
    width: calc(45.1% + 0px);
  }

  .advantages-band .adv-block--4 {
    width: calc(48% + 0px);
  }
}

/* ==========================================================================
   Site loader (first paint)
   ========================================================================== */
.site-loader {
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loader__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(92vw, 420px);
  padding: 0 16px;
  box-sizing: border-box;
}
.site-loader__fall {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.site-loader__fall-leaf {
  position: absolute;
  top: 0;
  left: 50%;
  display: inline-flex;
  color: var(--green);
  opacity: 0;
  will-change: transform, opacity;
  animation: site-loader-leaf-fall linear forwards;
}
.site-loader__fall-leaf svg {
  display: block;
  width: 100%;
  height: auto;
}
.site-loader__fall-leaf svg [fill]:not([fill="none"]) { fill: currentColor; }
.site-loader__fall-leaf svg [stroke] { stroke: currentColor; }
.site-loader__fall-leaf--1 { aspect-ratio: 10.67 / 15.62; }
.site-loader__fall-leaf--2 { aspect-ratio: 12.39 / 9.07; }
.site-loader__fall-leaf--3 { aspect-ratio: 8.28 / 7.29; }
.site-loader__fall-leaf--4 { aspect-ratio: 7.2 / 11.01; }
@keyframes site-loader-leaf-fall {
  0% {
    transform: translate(calc(-50% + var(--leaf-x-start, 0px)), 0) rotate(var(--leaf-rot-start, 0deg));
    opacity: 0.88;
  }
  55% {
    opacity: 0.55;
  }
  100% {
    transform: translate(calc(-50% + var(--leaf-x-end, 0px)), var(--leaf-drop, 140px)) rotate(var(--leaf-rot-end, 12deg));
    opacity: 0;
  }
}
.site-loader__mark {
  position: relative;
  z-index: 2;
  display: inline-flex;
  color: var(--green);
  opacity: 0.85;
}
.site-loader__mark svg {
  width: 44px;
  height: 44px;
  display: block;
}
.site-loader__mark svg path { fill: currentColor; }
.site-loader__message {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px 28px 8px;
  font-family: var(--font-subtitle);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.05em;
  color: var(--green);
  text-align: center;
}
.site-loader__text {
  position: relative;
  z-index: 1;
  display: inline-block;
}
.site-loader__progress {
  position: relative;
  z-index: 2;
  width: min(100%, 280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.site-loader__percent {
  font-family: var(--font-subtitle);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.site-loader__bar {
  width: 100%;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(54, 90, 67, 0.12);
  overflow: hidden;
}
.site-loader__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-accent) 100%);
}
@media (max-width: 480px) {
  .site-loader__inner { gap: 22px; width: min(94vw, 320px); }
  .site-loader__message {
    font-size: 16px;
    padding-inline: 22px;
    letter-spacing: 0.04em;
  }
  .site-loader__percent { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader { transition-duration: 0.01ms; }
  .site-loader__bar-fill { transition: none; }
  .site-loader__fall { display: none; }
}

/* ==========================================================================
   FAQ — вопросы и ответы (аккордеон на <details>)
   ========================================================================== */
.section--faq { background: var(--white); }
body.home .section--faq .sec-head__subtitle { padding-left: 0; text-align: left; }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: clamp(28px, 3vw, 50px);
}
.faq__item {
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  background: var(--cream);
  overflow: hidden;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.faq__item:has(.faq__details[open]) {
  border-color: var(--green);
  background: var(--white);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  cursor: pointer;
  padding: clamp(20px, 2vw, 30px) clamp(24px, 2.4vw, 40px);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(18px, 1.55vw, 26px);
  line-height: 1.28;
  color: var(--ink);
  transition: color .25s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--green); }
.faq__details[open] > .faq__q { color: var(--green); }
.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--green);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.faq__icon::before { top: 50%; left: 0; width: 100%; height: 3px; transform: translateY(-50%); }
.faq__icon::after  { left: 50%; top: 0; width: 3px; height: 100%; transform: translateX(-50%); }
.faq__details[open] .faq__icon::after { opacity: 0; transform: translateX(-50%) scaleY(0); }
.faq__a {
  padding: 0 clamp(24px, 2.4vw, 40px) clamp(22px, 2vw, 30px);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.6;
  color: var(--gray);
}
.faq__a p { margin: 0; }

/* SEO-блок на страницах линеек (текст + FAQ) */
/* Фон не задаём — наследуем кремовый фон страницы (.types-page на десктопе кремовая).
   На мобилке .types-page белая, поэтому там секции задаётся белый фон (mobile.css). */
.section--project-seo { padding-bottom: clamp(64px, 8vw, 130px); }
.section--project-seo .container { width: min(820px, calc(100% - 40px)); }
.project-seo__text {
  text-align: center;
  color: var(--ink);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.75;
}
.project-seo__text p { margin: 0 0 1.1em; }
.project-seo__text p:last-child { margin-bottom: 0; }
.project-seo__text h2 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
  margin: 1.4em 0 .6em;
}
.project-seo__text h2:first-child { margin-top: 0; }
.project-seo__faq { margin-top: clamp(44px, 5vw, 72px); text-align: left; }

/* Модалка карточки типа дома (веб): прижата к верху страницы,
   кнопка «Подробнее» по центру, аккуратный тонкий скролл вместо системного. */
@media (min-width: 481px) {
  .modal--variant-card { align-items: start; padding-top: 24px; padding-bottom: 24px; }
  .modal--variant-card .modal__dialog {
    max-height: calc(100vh - 48px);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .28) transparent;
  }
  .modal--variant-card .modal__dialog::-webkit-scrollbar { width: 6px; }
  .modal--variant-card .modal__dialog::-webkit-scrollbar-track { background: transparent; }
  .modal--variant-card .modal__dialog::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .22);
    border-radius: 999px;
  }
  .modal--variant-card .modal__dialog::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .35); }
  /* Кнопка «Подробнее» — по центру диалога. */
  .modal--variant-card .variant-card__detail-btn { margin-left: auto; margin-right: auto; }
}

