/* ============================================================
   АльфаМодуль — модульные дома в Москве
   Палитра из темы rsmcontainer (alfamodul-stroy.ru)
   ============================================================ */

:root {
  --primary: #7b61ff;
  --primary-light: #9e8bff;
  --primary-dark: #5b3fe0;
  --accent: #d1105a;
  --dark: #202020;
  --darker: #141414;
  --muted: #6b6b76;
  --line: #e6e4f0;
  --bg: #ffffff;
  --bg-soft: #f4f3fb;
  --bg-soft2: #eef0f6;
  --white: #ffffff;

  --grad: linear-gradient(135deg, #7b61ff 0%, #9e8bff 100%);
  --grad-dark: linear-gradient(135deg, #2a2440 0%, #181527 100%);

  --shadow-sm: 0 2px 10px rgba(32, 24, 64, .06);
  --shadow: 0 12px 34px rgba(54, 38, 120, .12);
  --shadow-lg: 0 26px 60px rgba(54, 38, 120, .20);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding: clamp(56px, 8vw, 100px) 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(34px, 5vw, 56px);
  text-align: center;
}

.section__head--left {
  margin-inline: 0;
  text-align: left;
  max-width: 820px;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(123, 97, 255, .1);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(28px, 4.4vw, 44px);
}

.section__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.section__cta-row {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  padding: 16px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 26px rgba(123, 97, 255, .38);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(123, 97, 255, .5);
}

.btn--ghost {
  background: transparent;
  color: var(--dark);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--white {
  background: #fff;
  color: var(--primary);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--lg {
  padding: 19px 36px;
  font-size: 17px;
}

.btn--sm {
  padding: 11px 18px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--primary);
}

.logo__mark {
  display: grid;
  place-items: center;
}

.logo__img {
  display: block;
  width: 42px;
  height: auto;
}

.logo__text strong {
  display: block;
  font-size: 21px;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.logo__text strong span {
  color: var(--primary);
}

.logo__text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .02em;
}

.site-nav {
  margin-inline: auto;
}

.site-nav__list {
  display: flex;
  gap: 18px;
}

.site-nav__list a {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--primary);
  transition: width .25s var(--ease);
}

.site-nav__list a:hover {
  color: var(--primary);
}

.site-nav__list a:hover::after {
  width: 100%;
}

.site-header__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.header-phone {
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  line-height: 1.1;
}

.header-phone:hover {
  color: var(--primary);
}

/* Кнопка в шапке — компактнее обычной (btn--sm не трогаем: он ещё в карточках) */
.site-header__cta .btn {
  padding: 8px 16px;
  font-size: 12.5px;
  border-width: 1.5px;
  box-shadow: 0 6px 16px rgba(123, 97, 255, .32);
}

.site-header__cta .btn:hover {
  box-shadow: 0 10px 22px rgba(123, 97, 255, .42);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}

.burger span {
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: .3s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-dark);
  color: #fff;
}

.hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(123, 97, 255, .55), transparent) -10% -20% / 60% 80% no-repeat,
    radial-gradient(closest-side, rgba(209, 16, 90, .30), transparent) 110% 120% / 55% 75% no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: 48px;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 22px;
}

.hero__eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(123, 97, 255, .14);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;

  @media (min-width: 860px) {
    font-size: 13px;
  }
}

.hero__title {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 900;
}

.hero__title span {
  color: var(--primary-light);
}

.hero__subtitle {
  margin-top: 20px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(255, 255, 255, .82);
  max-width: 560px;
}

.hero__usp {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.hero__usp li {
  position: relative;
  padding-left: 32px;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}

.hero__usp li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__actions .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

.hero__actions .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.hero__contact {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.hero__phone {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.hero__phone:hover {
  color: var(--primary-light);
}

.hero__contact span {
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  font-weight: 600;
}

/* Hero: слайдер изображений (вместо плиток статистики) */
.hero__slider {
  width: 100%;
  min-width: 0;
}

.hero-swiper {
  position: relative;
  height: clamp(340px, 44vw, 520px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(10, 6, 30, .5);
  border: 1px solid rgba(255, 255, 255, .12);
}

.hero-swiper .swiper-slide {
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(20, 12, 40, .35), rgba(20, 12, 40, 0) 40%);
}

.hero-swiper__pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-swiper .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0;
  background: #fff;
  opacity: .55;
  transition: .25s var(--ease);
}

.hero-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--primary-light);
  width: 28px;
  border-radius: 6px;
}

/* Hero: стрелки навигации */
.hero-swiper__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: rgba(20, 12, 40, .42);
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s;
}

.hero-swiper__nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.hero-swiper__nav:active {
  transform: translateY(-50%) scale(.96);
}

.hero-swiper__nav svg {
  width: 22px;
  height: 22px;
}

.hero-swiper__nav--prev {
  left: 14px;
}

.hero-swiper__nav--next {
  right: 14px;
}

/* ---------- Trustbar ---------- */
.trustbar {
  background: var(--darker);
  color: #fff;
}

.trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 20px 22px;
}

.trustbar__item {
  font-weight: 600;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .85);
  display: flex;
  align-items: center;
  gap: 10px;
}

.trustbar__ic {
  color: var(--primary-light);
  font-weight: 900;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature__ic {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 27px;
  background: linear-gradient(135deg, rgba(123, 97, 255, .18), rgba(158, 139, 255, .07));
  border: 1px solid rgba(123, 97, 255, .18);
  margin-bottom: 18px;
  transition: transform .3s var(--ease);
}

.feature:hover .feature__ic {
  transform: translateY(-2px) scale(1.06) rotate(-4deg);
}

.feature h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Projects grid / cards ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.pcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft2);
}

.pcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.pcard:hover .pcard__img {
  transform: scale(1.06);
}

.pcard__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pcard__area {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(20, 21, 39, .82);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.pcard__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pcard__title {
  font-size: 22px;
}

.pcard__title a:hover {
  color: var(--primary);
}

.pcard__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.pcard__specs li {
  background: var(--bg-soft);
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.pcard__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pcard__price span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.pcard__price strong {
  font-size: 22px;
  font-weight: 900;
}

/* ---------- Compare ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare__col {
  border-radius: var(--radius);
  padding: 32px 30px;
}

.compare__col h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.compare__col ul {
  display: grid;
  gap: 14px;
}

.compare__col li {
  position: relative;
  padding-left: 32px;
  font-weight: 600;
}

.compare__col--win {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow);
}

.compare__col--win li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fff;
  font-weight: 900;
  background: rgba(255, 255, 255, .22);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.compare__col--lose {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
}

.compare__col--lose h3 {
  color: var(--dark);
}

.compare__col--lose li::before {
  content: "—";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 900;
}

/* ---------- Stages ---------- */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: stage;
}

.stage {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}

.stage:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad);
}

.stage__num {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stage h3 {
  font-size: 19px;
  margin: 6px 0 8px;
}

.stage p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Production ---------- */
.production {
  display: grid;
  grid-template-columns: 1.2fr .85fr;
  gap: 48px;
  align-items: center;
}

.production__text .section__title {
  font-size: clamp(26px, 3.6vw, 38px);
}

.production__text>p {
  color: var(--muted);
  margin: 16px 0 22px;
}

.production__list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.production__list li {
  position: relative;
  padding-left: 28px;
}

.production__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--grad);
}

.production__list strong {
  color: var(--dark);
}

.production__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.production__card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}

.production__card strong {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--primary);
}

.production__card span {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Included ---------- */
.included {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.included__col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}

.included__col h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.checklist {
  display: grid;
  gap: 13px;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
  font-size: 15.5px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(123, 97, 255, .14);
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.checklist--muted li::before {
  background: var(--bg-soft2);
  color: var(--muted);
  content: "+";
}

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.review__stars {
  color: #ffb800;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.review blockquote {
  font-size: 15.5px;
  color: var(--dark);
}

.review figcaption {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.review figcaption strong {
  display: block;
}

.review figcaption span {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 14px;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 24px;
  transition: border-color .2s;
}

.faq__item[open] {
  border-color: var(--primary-light);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 18px 36px 18px 0;
  position: relative;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 400;
  color: var(--primary);
  transition: transform .25s;
}

.faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq__item p {
  padding-bottom: 20px;
  color: var(--muted);
}

/* ---------- CTA bands ---------- */
.cta-final {
  background: var(--bg-soft);
}

.cta-final__inner {
  background: var(--grad-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.cta-final__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(123, 97, 255, .5), transparent) 110% -20% / 60% 100% no-repeat;
}

.cta-final__text {
  position: relative;
  z-index: 1;
}

.cta-final__text h2 {
  font-size: clamp(26px, 3.6vw, 38px);
}

.cta-final__text p {
  margin-top: 14px;
  color: rgba(255, 255, 255, .82);
}

.cta-final__perks {
  margin-top: 22px;
  display: grid;
  gap: 11px;
}

.cta-final__perks li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
}

.cta-final__perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 900;
}

.cta-final__or {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cta-final__or span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
}

.cta-final__phone {
  font-size: clamp(23px, 2.6vw, 30px);
  font-weight: 900;
  color: #fff;
  width: fit-content;
}

.cta-final__phone:hover {
  color: var(--primary-light);
}

.cta-final .lead-form {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: clamp(24px, 2.5vw, 34px);
  border-radius: var(--radius);
}

.cta-band {
  background: var(--grad-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 24px;
}

.cta-band__text h2 {
  font-size: clamp(24px, 3.2vw, 34px);
}

.cta-band__text p {
  margin-top: 12px;
  color: rgba(255, 255, 255, .82);
}

.cta-band .lead-form {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
}

/* ---------- Forms ---------- */
.lead-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.field__input {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--dark);
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color .2s, background .2s;
}

.field__input::placeholder {
  color: #a3a1b0;
}

.field__input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(123, 97, 255, .12);
}

textarea.field__input {
  resize: vertical;
  min-height: 84px;
}

.lead-form__policy {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.lead-form__policy a {
  color: var(--primary);
  text-decoration: underline;
}

.lead-form__success {
  background: rgba(0, 180, 90, .12);
  color: #0a7a45;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 15px;
}

.lead-form__error {
  background: rgba(209, 16, 90, .1);
  color: var(--accent);
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 14px;
}

/* Honeypot — скрыт от людей, доступен ботам */
.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.modal.is-open {
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 39, .6);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-lg);
  animation: pop .3s var(--ease);
}

@keyframes pop {
  from {
    transform: translateY(16px) scale(.97);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: 0;
  font-size: 30px;
  line-height: 1;
  color: var(--muted);
}

.modal__close:hover {
  color: var(--accent);
}

.modal__title {
  font-size: 26px;
}

.modal__subtitle {
  color: var(--muted);
  margin: 10px 0 22px;
  font-size: 15px;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span {
  color: var(--line);
}

.breadcrumbs span:last-child {
  color: var(--dark);
  font-weight: 600;
}

/* ---------- Project page ---------- */
.project {
  padding-top: 26px;
  padding-bottom: 80px;
}

.project__head {
  max-width: 820px;
  margin-bottom: 22px;
}

.project__eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(123, 97, 255, .1);
  padding: 7px 15px;
  border-radius: 999px;
}

.project__title {
  font-size: clamp(30px, 4.6vw, 48px);
  margin: 16px 0 0;
}

/* Витрина: слайдер + карточка цены */
.project__showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) .85fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 36px;
}

/* Интро под витриной: лид-описание + теги-факты */
.project__intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.project__lead {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  max-width: 680px;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project__tags li {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 999px;
}

.project__price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  align-self: start;
  position: sticky;
  top: 96px;
}

.project__price-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.project__price {
  font-size: 36px;
  font-weight: 900;
  margin: 4px 0;
  color: var(--dark);
}

.project__price-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.project__price-card .btn {
  margin-bottom: 10px;
}

.project__price-perks {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.project__price-perks li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  font-weight: 600;
}

.project__price-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

/* Галерея проекта (Swiper: главный слайдер + миниатюры) */
.pgallery {
  min-width: 0;
}

.pgallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pgallery__main .swiper-slide {
  height: 100%;
}

.pgallery__slide {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.pgallery__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.pgallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgallery__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(20, 12, 40, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
}

.pgallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: rgba(20, 12, 40, .42);
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s;
}

.pgallery__nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.pgallery__nav:active {
  transform: translateY(-50%) scale(.96);
}

.pgallery__nav svg {
  width: 22px;
  height: 22px;
}

.pgallery__nav--prev {
  left: 14px;
}

.pgallery__nav--next {
  right: 14px;
}

.pgallery__nav.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

.pgallery__fraction {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: auto;
  background: rgba(20, 12, 40, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .03em;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
}

.pgallery__fraction .swiper-pagination-current {
  color: var(--primary-light);
}

.pgallery__thumbs {
  margin-top: 12px;
}

.pgallery__thumb {
  width: 96px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: .5;
  border: 2px solid transparent;
  transition: opacity .2s var(--ease), border-color .2s;
}

.pgallery__thumb:hover {
  opacity: .85;
}

.pgallery__thumb.swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--primary);
}

.pgallery__thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.pgallery__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Body */
.project__body {
  display: grid;
  grid-template-columns: 1.5fr .9fr;
  gap: 44px;
}

.project__section {
  margin-bottom: 36px;
}

.project__section h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.project__section p {
  color: var(--dark);
  margin-bottom: 12px;
}

.rooms {
  display: grid;
  gap: 10px;
}

.rooms li {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.rooms__area {
  color: var(--primary);
}

.project__specs {
  align-self: start;
}

.project__specs-title {
  font-size: 22px;
  margin-bottom: 16px;
}

.specs {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.specs th,
.specs td {
  text-align: left;
  padding: 14px 18px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.specs th {
  color: var(--muted);
  font-weight: 600;
  width: 48%;
}

.specs td {
  font-weight: 700;
}

.specs tr:last-child th,
.specs tr:last-child td {
  border-bottom: 0;
}

.project__cta {
  margin-top: 50px;
}

.other-projects {
  background: var(--bg-soft);
}

/* ---------- Contacts page ---------- */
.contacts {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 40px;
  align-items: start;
}

.contacts__list {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: grid;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform .2s var(--ease), box-shadow .2s;
}

a.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.contact-card__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  font-weight: 700;
}

.contact-card__value {
  font-size: 21px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-card__hint {
  font-size: 14px;
  color: var(--muted);
}

.contacts__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}

.contacts__form h2 {
  font-size: 24px;
}

.contacts__form>p {
  color: var(--muted);
  margin: 8px 0 20px;
}

/* ---------- Legal ---------- */
.legal h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 22px;
}

.legal h2 {
  font-size: 21px;
  margin: 28px 0 10px;
}

.legal p {
  color: var(--muted);
  margin-bottom: 12px;
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 14px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.legal a {
  color: var(--primary);
  text-decoration: underline;
}

/* ---------- Cookie-плашка ---------- */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  overflow-x: clip;
  background: rgba(20, 12, 40, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .9);
  transform: translateY(100%);
  transition: transform .45s var(--ease);
  box-shadow: 0 -10px 30px rgba(10, 6, 30, .35);
}

.cookie-bar.is-visible {
  transform: none;
}

.cookie-bar__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 16px 22px;
}

.cookie-bar__text {
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 720px;
  min-width: 0;
  overflow-wrap: break-word;
}

.cookie-bar__text a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-bar__btn {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 13px 16px;
  }

  .cookie-bar__text {
    max-width: none;
    font-size: 13px;
  }

  .cookie-bar__btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--darker);
  color: rgba(255, 255, 255, .72);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  padding: clamp(48px, 6vw, 72px) 22px;
}

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.logo--footer .logo__text strong {
  color: #fff;
}

.site-footer__desc {
  margin: 18px 0 12px;
  font-size: 14.5px;
}

.site-footer__note {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .5);
}

.site-footer__col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
}

.site-footer__menu {
  display: grid;
  gap: 11px;
}

.site-footer__menu a:hover,
.site-footer__contacts a:hover {
  color: var(--primary-light);
}

.site-footer__contacts {
  display: grid;
  gap: 11px;
  font-size: 15px;
}

.site-footer__phone {
  font-size: 21px;
  font-weight: 900;
  color: #fff !important;
}

.site-footer__messengers {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.msg {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.msg--tg {
  background: #2aabee;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer__legal-links a {
  color: rgba(255, 255, 255, .6);
}

.site-footer__legal-links a:hover {
  color: var(--primary-light);
}

/* ============================================================
   Адаптив
   ============================================================ */
/* Планшеты и узкие ноутбуки: полное меню в шапку уже не помещается → бургер */
@media (max-width: 1100px) {

  .site-nav,
  .site-header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 22px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open .site-nav__list {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav.is-open a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
}

@media (max-width: 1024px) {

  .features,
  .projects-grid,
  .stages,
  .reviews {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .production {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project__showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project__price-card {
    position: static;
  }

  .project__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {

  .compare,
  .included,
  .cta-final__inner,
  .cta-band,
  .contacts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .features,
  .projects-grid,
  .stages,
  .reviews,
  .hero__stats,
  .production__cards {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .trustbar__inner {
    flex-direction: column;
    gap: 12px;
  }

  .btn--lg {
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero-swiper__nav {
    width: 40px;
    height: 40px;
  }

  .hero-swiper__nav--prev {
    left: 10px;
  }

  .hero-swiper__nav--next {
    right: 10px;
  }

  .modal__dialog {
    padding: 30px 22px;
  }
}

/* ============================================================
   Доп. оформление для визуального разнообразия
   ============================================================ */

/* Тёмная секция (контрастный ритм внутри светлой страницы) */
.section--dark {
  position: relative;
  overflow: hidden;
  background: var(--grad-dark);
  color: #fff;
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(123, 97, 255, .45), transparent) -5% -30% / 55% 90% no-repeat,
    radial-gradient(closest-side, rgba(209, 16, 90, .22), transparent) 108% 120% / 50% 80% no-repeat;
}

.section--dark>* {
  position: relative;
  z-index: 1;
}

.section--dark .section__title,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark .section__eyebrow {
  color: var(--primary-light);
  background: rgba(123, 97, 255, .2);
}

.section--dark .production__text>p {
  color: rgba(255, 255, 255, .82);
}

.section--dark .production__list li {
  color: rgba(255, 255, 255, .82);
}

.section--dark .production__list strong {
  color: #fff;
}

.section--dark .production__card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
}

.section--dark .production__card strong {
  color: var(--primary-light);
}

.section--dark .production__card span {
  color: rgba(255, 255, 255, .68);
}

/* Точечная текстура поверх светлой секции */
.section--pattern {
  background-color: var(--bg-soft);
  background-image: radial-gradient(rgba(123, 97, 255, .1) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
}

/* Декоративная кавычка в отзывах */
.review {
  position: relative;
  overflow: hidden;
}

.review::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  line-height: 1;
  color: rgba(123, 97, 255, .12);
  pointer-events: none;
}

/* Бегущая строка с географией работ */
.marquee {
  background: var(--darker);
  overflow: hidden;
  padding: 17px 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__group span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 800;
  font-size: 17px;
  color: rgba(255, 255, 255, .82);
  padding: 0 28px;
}

.marquee__group span::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-light);
  margin-left: 28px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Появление секций при скролле (прогрессивное улучшение) */
.js-reveal :where(.section__head, .feature, .pcard, .compare__col, .stage,
  .production__text, .production__cards, .included__col, .review, .faq__item,
  .cta-final__inner, .cta-band, .contact-card) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.js-reveal :where(.section__head, .feature, .pcard, .compare__col, .stage,
  .production__text, .production__cards, .included__col, .review, .faq__item,
  .cta-final__inner, .cta-band, .contact-card).is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }

  .js-reveal :where(.section__head, .feature, .pcard, .compare__col, .stage,
    .production__text, .production__cards, .included__col, .review, .faq__item,
    .cta-final__inner, .cta-band, .contact-card) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Галерея «Так выглядят наши дома» (мозаика + GLightbox)
   ============================================================ */
.gallery-grid {
  columns: 4;
  column-gap: 16px;
}

@media (max-width: 1024px) {
  .gallery-grid {
    columns: 3;
  }
}

@media (max-width: 680px) {
  .gallery-grid {
    columns: 2;
    column-gap: 12px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    columns: 1;
  }
}

.gallery-grid__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  break-inside: avoid;
  cursor: zoom-in;
  background: var(--bg-soft2);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.gallery-grid__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Разная форма плиток — «живая» мозаика */
.gallery-grid__item:not(.gallery-grid__cta) {
  aspect-ratio: 4 / 3;
}

.gallery-grid__item:not(.gallery-grid__cta):nth-child(3n+1) {
  aspect-ratio: 3 / 4;
}

.gallery-grid__item:not(.gallery-grid__cta):nth-child(5n+3) {
  aspect-ratio: 1 / 1;
}

.gallery-grid__item:not(.gallery-grid__cta):nth-child(7n) {
  aspect-ratio: 16 / 10;
}

.gallery-grid__item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.gallery-grid__item:hover .gallery-grid__img {
  transform: scale(1.07);
}

/* Затемнение, лупа и подпись при наведении */
.gallery-grid__item:not(.gallery-grid__cta)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 21, 39, .64), rgba(20, 21, 39, 0) 48%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.gallery-grid__item:not(.gallery-grid__cta):hover::after {
  opacity: 1;
}

.gallery-grid__item:not(.gallery-grid__cta)::before {
  content: "";
  position: absolute;
  z-index: 3;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b61ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center / 21px no-repeat;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(.8);
  transition: .3s var(--ease);
}

.gallery-grid__item:not(.gallery-grid__cta):hover::before {
  opacity: 1;
  transform: none;
}

.gallery-grid__cap {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(10px);
  transition: .3s var(--ease);
}

.gallery-grid__item:hover .gallery-grid__cap {
  opacity: 1;
  transform: none;
}

/* Плитка-CTA: открывает форму в лайтбоксе */
.gallery-grid__cta {
  aspect-ratio: 3 / 4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(22px, 2.2vw, 30px);
  background: var(--grad);
  color: #fff;
}

.gallery-grid__cta:hover {
  box-shadow: 0 22px 46px rgba(123, 97, 255, .42);
}

.gallery-grid__cta-title {
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 900;
  line-height: 1.15;
}

.gallery-grid__cta-text {
  font-size: 14.5px;
  color: rgba(255, 255, 255, .9);
}

.gallery-grid__cta-btn {
  margin-top: 6px;
  font-weight: 800;
  font-size: 15px;
}

/* Форма обратной связи внутри GLightbox */
.lb-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 38px);
  width: min(440px, 92vw);
}

.lb-form__title {
  font-size: 25px;
}

.lb-form__subtitle {
  color: var(--muted);
  margin: 10px 0 20px;
  font-size: 15px;
}

.gslide-inline {
  background: transparent;
  box-shadow: none;
}

.gslide-inline .ginlined-content {
  padding: 0;
  width: auto;
}

/* ============================================================
   Слайдер преимуществ «Готовый дом вместо долгой стройки»
   ============================================================ */
.adv {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.adv__aside {
  max-width: 470px;
}

.adv__aside .section__title {
  font-size: clamp(28px, 3.8vw, 42px);
}

.adv__aside .section__lead {
  margin-top: 16px;
}

.adv__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.adv__nav {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease);
}

.adv__nav svg {
  width: 22px;
  height: 22px;
}

.adv__nav:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(123, 97, 255, .06);
  transform: translateY(-2px);
}

.adv__nav:active {
  transform: translateY(0);
}

.adv__fraction {
  margin-left: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--muted);
  white-space: nowrap;
}

.adv__fraction .swiper-pagination-current {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary);
}

.adv__slider {
  position: relative;
  min-width: 0;
}

.adv-swiper {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.adv-swiper .swiper-slide {
  height: auto;
}

.adv-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(150deg, #f3f0ff 0%, #e9eefb 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 3.4vw, 52px);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.adv-card__num {
  position: absolute;
  top: 4px;
  right: 22px;
  z-index: -1;
  font-size: clamp(110px, 16vw, 188px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .13;
}

.adv-card__ic {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 36px;
  background: var(--grad);
  box-shadow: 0 12px 26px rgba(123, 97, 255, .32);
  margin-bottom: 24px;
}

.adv-card__title {
  font-size: clamp(25px, 2.8vw, 36px);
  margin-bottom: 14px;
}

.adv-card__text {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 520px;
}

.adv-card__points {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.adv-card__points li {
  position: relative;
  padding-left: 32px;
  font-weight: 700;
  font-size: 15.5px;
}

.adv-card__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(123, 97, 255, .16);
  color: var(--primary);
  font-weight: 900;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.adv__progress {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  margin-top: 22px;
  overflow: hidden;
}

.adv__progress span {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--grad);
  border-radius: 4px;
}

@media (max-width: 900px) {
  .adv {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .adv__aside {
    max-width: none;
  }

  .adv__controls {
    margin-top: 24px;
  }

  .adv-card {
    min-height: 320px;
  }
}
