/* НАСЛЕДИЕ — Архитектурно-строительная мастерская
   Общие стили (Gilroy — заголовки, Inter — текст) */

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f4f4;
  --white: #ffffff;
  --orange: #fd4d00;
  --orange-dark: #e04500;
  --orange-soft: #fff7f3;
  --orange-soft-2: #ffe2d5;
  --navy: #1c2440;
  --text: #1c274c;
  --gray: #5f626e;
  --gray-2: #8b8e99;
  --gray-3: #a6a8ae;
  --dark: #22242a;
  --dark-2: #262626;
  --dark-3: #353840;
  --blue-dark: #1b2236;
  /* синеватый тёмный для финального блока */
  --blue-dark-2: #232c45;
  --gold: #ffa600;
  --cyan: #2ab7e0;

  --radius-pill: 60px;
  --radius-xl: 40px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;

  --container: 1920px;

  /* Резиновая (fluid) шкала: интерполяция между ~901px и 1920px
     Значения подобраны так, чтобы на 1920px совпадать с макетом,
     а на узких десктопах/планшетах плавно уменьшаться. */
  --fs-hero: clamp(34px, 2.06vw + 15.4px, 55px);
  --fs-55: clamp(33px, 2.16vw + 13.5px, 55px);
  --fs-50: clamp(31px, 1.87vw + 14.1px, 50px);
  --fs-35: clamp(24px, 1.08vw + 14.3px, 35px);
  --fs-34: clamp(24px, 0.98vw + 15.2px, 34px);
  --fs-32: clamp(22px, 0.98vw + 13.2px, 32px);
  --fs-30: clamp(22px, 0.79vw + 14.9px, 30px);
  --fs-27: clamp(21px, 0.59vw + 15.7px, 27px);
  --fs-25: clamp(20px, 0.49vw + 15.6px, 25px);
  --fs-22: clamp(18px, 0.39vw + 14.5px, 22px);

  /* Резиновые отступы */
  --gutter: clamp(33px, 2.65vw, 51px);
  --section-gap: clamp(20px, 1.9vw, 36px);
  --card-pad: clamp(30px, 2.55vw, 49px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

body {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  margin-top: var(--section-gap);
}

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--card-pad);
}

/* нахлёст блоков: закруглённый тёмный блок лежит ПОВЕРХ белого каталога */
.attach-bottom {
  position: relative;
  z-index: 1;
  padding-bottom: 180px;
}

.attach-top {
  position: relative;
  z-index: 2;
}

/* Заголовки (Gilroy) */
.section-title {
  font-family: "Gilroy", sans-serif;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-title b {
  font-weight: 700;
}

.section-title .muted {
  color: var(--gray-3);
  font-weight: 600;
}

/* Иконка в круге */
.ic-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ic-circle img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Маркер «прозрачный круг 65 + оранжевый круг + белый плюс 19» */
.plus-mark {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(253, 77, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plus-mark::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 1v8M1 5h8' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
    center/10px 10px no-repeat;
}

/* Теги */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
}

.tag img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.tag--dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tag--dark img {
  filter: brightness(0) invert(1);
}

/* Кнопки */
.btn-primary {
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-pill);
  min-height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 8px 8px 34px;
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 16px 34px rgba(253, 77, 0, 0.26);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(253, 77, 0, 0.4);
}

.btn-primary--sm {
  font-size: 15px;
  padding-left: 28px;
  gap: 14px;
}

.btn-primary--sm .btn-circle {
  width: 50px;
  height: 50px;
}

.btn-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-circle img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.btn-circle svg {
  width: 22px;
  height: 22px;
  color: var(--orange);
}

.btn-outline {
  border: 1.5px solid var(--orange);
  color: var(--orange);
  border-radius: var(--radius-pill);
  min-height: 62px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-outline:hover {
  background: var(--orange);
  color: #fff;
}

.btn-outline img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.btn-light {
  background: #fff;
  color: var(--orange);
  border-radius: var(--radius-pill);
  min-height: 78px;
  padding: 0 14px 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s;
}

.btn-light:hover {
  transform: translateY(-2px);
}

.btn-light .ar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-light .ar img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* стрелочная круглая кнопка (слайдеры) */
.nav-arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.nav-arrow:hover {
  background: var(--orange-dark);
}

.nav-arrow img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ШАПКА */
.header {
  background: var(--white);
  border-radius: 24px;
  margin: 18px auto 0;
  max-width: var(--container);
  min-height: 100px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 44px;
  position: sticky;
  top: 12px;
  z-index: 90;
  transition:
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.35s ease;
}

.header.is-stuck {
  box-shadow: 0 14px 34px rgba(28, 36, 64, 0.14);
}

/* На планшете и телефоне у закреплённой шапки появляются внутренние боковые отступы */
@media (max-width: 900px) {
  .header.is-stuck {
    padding-left: 18px;
    padding-right: 18px;
  }
}

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

.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: 24px;
}

.nav__link {
  color: var(--navy);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--orange);
}

.nav__caret {
  width: 10px;
  height: 6px;
}

.header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.social:hover {
  transform: translateY(-2px);
}

.social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.header__phone {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  font-family: "Gilroy", sans-serif;
  text-decoration: none;
  transition: color 0.18s ease;
}

.header__phone:hover {
  color: var(--orange);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange);
  align-items: center;
  justify-content: center;
}

.burger svg {
  width: 24px;
  height: 24px;
}

/* ГЛАВНЫЙ ЭКРАН */
.hero {
  display: grid;
  grid-template-columns: 1fr clamp(440px, 42vw, 800px);
  gap: 24px;
  margin-top: 24px;
}

.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #cfd3d6;
  min-height: clamp(560px, 44vw, 846px);
}

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

.hero__card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__card .tag {
  align-self: flex-start;
}

.hero__title {
  font-family: "Gilroy", sans-serif;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--navy);
  margin-top: 30px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  color: var(--gray);
  font-size: 18px;
  font-weight: 500;
  margin-top: 26px;
 // max-width: 450px;
}

.hero__cta {
  margin-top: 34px;
  max-width: 330px;
}

.hero__mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: auto;
  padding-top: 54px;
}

.mini-card {
  background: var(--orange-soft);
  border-radius: var(--radius-md);
  padding: 26px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dots-pair {
  display: flex;
  align-items: center;
}

.dots-pair span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.dots-pair .dim {
  background: rgba(253, 77, 0, 0.32);
}

.dots-pair .solid {
  background: var(--orange);
  margin-left: -6px;
}

.mini-card__text {
  font-size: 18px;
  color: var(--navy);
  line-height: 1.3;
  font-family: "Gilroy", sans-serif;
}

.mini-card__text .light {
  font-weight: 500;
}

.mini-card__text .strong {
  font-weight: 800;
}

/* ГЛАВНЫЙ ЭКРАН — доп. элементы (рейтинг, слайдер, статы, CTA, оценка стоимости) */
.hero__image {
  position: relative;
}

.hero__rating {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(28, 36, 64, 0.35);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  color: #fff;
}

/* Тег «Индивидуальный подход» поверх картинки — только на планшете
   (601–900px), слева, на одной горизонтали с рейтингом справа.
   На десктопе живёт внутри .hero__card, на телефоне скрыт. */
.hero__image-tag {
  display: none;
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  background: #fff;
  border: 1.5px solid rgba(253, 77, 0, 0.4);
  box-shadow: 0 8px 22px rgba(28, 36, 64, 0.14);
}

.hero__rating-score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
}

.hero__rating-score svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

.hero__rating-count {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.hero__slidebar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.hero__slide-counter {
  color: #fff;
  font-family: "Roboto", sans-serif;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hero__slide-counter b {
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
}

.hero__slide-counter i {
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  opacity: 0.8;
}

.hero__slide-arrows {
  display: flex;
  gap: 10px;
}

.hero__slide-arrow {
  width: 59px;
  height: 59px;
  border-radius: 16px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.hero__slide-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

.hero__slide-arrow img {
  width: 19px;
  height: 15px;
}

.hero__title .accent {
  color: var(--orange);
}

.hero__stats {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  column-gap: 40px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(28, 36, 64, 0.08);
  width: 100%;
}

.hero__stats::-webkit-scrollbar {
  display: none;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.hero__stat .ic-circle {
  margin-bottom: 16px;
}

.hero__stat .ic-circle img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hero__stat-value {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 23px;
  color: var(--navy);
  margin-bottom: 10px;
}

.hero__stat-label {
  font-family: "Gilroy", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--gray);
  line-height: 1.35;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  width: 100%;
}

.hero__cta-row .hero__cta {
  flex: 1 1 260px;
  max-width: none;
  margin-top: 0;
}

@media (min-width: 901px) {
  .hero__cta-row .hero__cta {
    white-space: nowrap;
  }
}

.hero__cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}

.hero__cta-sub {
  font-weight: 500;
  font-size: 12px;
  opacity: 0.85;
}

.btn-white {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid rgba(28, 36, 64, 0.12);
  border-radius: var(--radius-pill);
  min-height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 8px 8px 34px;
  font-weight: 700;
  font-size: 17px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.btn-white:hover {
  transform: translateY(-2px);
  border-color: var(--navy);
}

.btn-circle--dark {
  background: transparent;
}

.btn-circle--dark img {
  filter: brightness(0);
}

.hero__estimate {
  position: relative;
  margin-top: 28px;
  width: 100%;
  min-height: 148px;
  background: #f3f5f7;
  border-radius: var(--radius-md);
  padding: 26px calc(clamp(140px, 32%, 280px) + 30px) 26px 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__estimate-body {
  max-width: 100%;
}

.hero__estimate-title {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.hero__estimate-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero__estimate-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
}

.hero__estimate-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__estimate-check img {
  width: 11px;
  height: 11px;
}

.hero__estimate-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  background-image: linear-gradient(to right, var(--orange) 50%, transparent 50%);
  background-size: 4px 1.5px;
  background-repeat: repeat-x;
  background-position: 0 100%;
  padding-bottom: 3px;
}

.hero__estimate-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(140px, 32%, 280px);
}

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

/* ВЫБОР ДИЗАЙНА ДОМА */
.picker__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.picker__stats {
  display: flex;
  gap: 56px;
  padding-top: 8px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat__value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  font-family: "Gilroy", sans-serif;
}

.stat__label {
  font-size: 14px;
  color: var(--gray);
}

.tabs {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.tab {
  background: var(--orange-soft);
  color: var(--gray);
  font-weight: 600;
  font-size: 16px;
  min-height: 64px;
  padding: 0 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  transition:
    background 0.2s,
    color 0.2s;
}

.tab:hover:not(.is-active) {
  background: var(--orange-soft-2);
}

.tab.is-active {
  background: var(--orange);
  color: #fff;
}

/* поиск по каталогу (поле + кнопка «Фильтры») — закомментировано в разметке */
.picker__search {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.search-field {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border-radius: var(--radius-pill);
  padding: 0 26px;
  min-height: 64px;
}

.search-field img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.search-field input {
  border: none;
  background: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  color: var(--navy);
}

.search-field input::placeholder {
  color: var(--gray-2);
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ededed;
  color: var(--gray);
  font-weight: 500;
  font-size: 16px;
  border-radius: var(--radius-pill);
  padding: 0 32px;
  min-height: 64px;
  transition: background 0.2s;
}

.filter-btn:hover {
  background: #e2e2e2;
}

.filter-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.project-card__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 560/360;
  background: #cfd3d6;
  position: relative;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-card__media img {
  transform: scale(1.05);
}

.project-card__price {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  border-radius: 30px;
  padding: 9px 16px 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.project-card__price .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
}

.project-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.project-card__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  font-family: "Gilroy", sans-serif;
}

.project-card__meta {
  display: flex;
  gap: 20px;
}

.project-card__meta span {
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}

.project-card__meta img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

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

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--orange);
  padding: 0 42px;
  min-height: 62px;
  transition: background 0.2s;
}

.btn-more:hover {
  background: var(--orange-soft-2);
}

.btn-more img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ТЁМНЫЙ БЛОК КОНСУЛЬТАЦИИ */
.consult {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 64px 70px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}

/* блок ипотеки заезжает вверх под белый каталог */
.consult.attach-top {
  margin-top: -120px;
}

.consult::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/ui/dots.png") center/cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
}

.consult__deco {
  position: absolute;
  top: -40px;
  left: 36px;
  width: 280px;
  z-index: 1;
  pointer-events: none;
}

.consult__deco--corner {
  top: -34px;
  left: -34px;
  width: 250px;
}

.consult__left,
.consult__right {
  position: relative;
  z-index: 2;
}

.consult__title {
  font-family: "Gilroy", sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.16;
  margin-top: 18px;
}

.consult__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 520px;
}

.consult__form-title {
  font-family: "Gilroy", sans-serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 24px;
}

.form-field {
  background: var(--dark-3);
  border: none;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  color: #fff;
  font-size: 16px;
  width: 100%;
}

.consult--blue .form-field {
  background: rgba(255, 255, 255, 0.08);
}

.form-field::placeholder {
  color: #8b8e96;
}

textarea.form-field {
  resize: none;
  min-height: 118px;
}

select.form-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b8e96' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 24px center;
}

.form-stack .form-field {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-submit {
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-pill);
  min-height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 8px 8px 36px;
  font-weight: 700;
  font-size: 17px;
  transition: transform 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
}

.btn-submit p {
  transform: translateX(-50%);
}

/* Стрелка-кружок всегда у правого края и не обрезается
   На узких экранах длинный текст раньше выталкивал кружок за пределы кнопки
   (overflow:hidden от блика обрезал его). Теперь кружок позиционируется
   абсолютно справа, а текст не залезает под него за счёт padding-right. */
.btn-primary > .btn-circle,
.btn-submit > .btn-circle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.btn-primary {
  padding-right: 78px;
}

.btn-submit {
  padding-right: 78px;
}

.policy {
  font-size: 13px;
  color: #9a9da5;
  max-width: 240px;
}

.policy a {
  color: var(--orange);
  text-decoration: underline;
}

.form-consent {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #9a9da5;
  max-width: 300px;
  cursor: pointer;
}

.form-consent input {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  float: left;
  margin: 2px 8px 0 0;
}

.form-consent a {
  color: var(--orange);
  text-decoration: underline;
}

/* ПОЧЕМУ НАМ ДОВЕРЯЮТ */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.trust__list .section-title {
  margin-bottom: 24px;
}

.trust-item {
  display: flex;
  gap: 22px;
  padding: 16px 0;
  align-items: center;
}

.trust-item__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: "Gilroy", sans-serif;
}

.trust-item__text {
  color: var(--gray);
  font-size: 15px;
}

.trust__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.trust__pill {
  position: absolute;
  top: 24px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}

.trust__pill-text {
  line-height: 1.25;
}

.trust__pill .pic {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust__pill .pic img {
  width: 18px;
  height: 18px;
}

/* НАШИ УСЛУГИ */
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 532/481;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

.service-card__body {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 2;
}

.service-card__title {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  font-family: "Gilroy", sans-serif;
  max-width: 75%;
}

.service-card__arrow {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.service-card__arrow img {
  position: static;
  inset: auto;
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ПОЧЕМУ ГАЗОБЕТОН */
.why-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 44px;
}

.why-note {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-top: 6px;
}

.why-note__text {
  color: var(--gray);
  font-size: 16px;
  font-weight: 400;
}

.why-note__text b {
  color: var(--navy);
  font-weight: 600;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 480px;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 24%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

.dots-row {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.dots-row span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(253, 77, 0, 0.35);
}

.dots-row span.on {
  background: var(--orange);
}

.feature-card__body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  z-index: 2;
}

.feature-card__title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.2;
  font-family: "Gilroy", sans-serif;
}

.feature-card__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

/* ПРИМЕРЫ ГОТОВЫХ ДОМОВ */
.examples-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.examples-head__lead {
  color: var(--gray);
  font-size: 16px;
  font-weight: 500;
  max-width: 560px;
  margin-top: 8px;
}

.examples-stats {
  display: flex;
  gap: 38px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.examples-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.examples-stat__value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  font-family: "Gilroy", sans-serif;
}

.examples-stat__label {
  font-size: 13px;
  color: var(--gray);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.example-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 350px;
}

.example-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.example-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

.example-card__chips {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.example-card__name {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  font-family: "Gilroy", sans-serif;
}

/* ИНДИВИДУАЛЬНОЕ ПРОЕКТИРОВАНИЕ */
.individual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.individual__card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 60px 56px;
}

.individual__lead {
  color: var(--gray);
  font-size: 16px;
  font-weight: 500;
  margin: 26px 0 30px;
  line-height: 1.65;
}

.individual__lead b {
  color: var(--navy);
  font-weight: 600;
}

.plus-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plus-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
}

.plus-list__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
}

.individual .btn-primary {
  margin-top: 40px;
}

.individual__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 560px;
}

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

/* ЭТАПЫ СТРОИТЕЛЬСТВА (серые карточки, текст снизу, картинка справа) */
.steps-slider {
  position: relative;
  overflow: hidden;
}

.steps-grid {
  display: flex;
  gap: 35px;
  overflow-x: auto;
  scrollbar-width: none;
}

.steps-grid::-webkit-scrollbar {
  display: none;
}

.step-card {
  flex: 0 0 316px;
  height: 480px;
  position: relative;
  border-radius: var(--radius-md);
  padding: 28px 30px 34px;
  background: linear-gradient(180deg, #a2a3a6 0%, #5f626e 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.dots-row--dark span {
  background: rgba(253, 77, 0, 0.5);
}

.dots-row--dark span.on {
  background: var(--orange);
}

.step-card .dots-row {
  position: absolute;
  top: 26px;
  left: 30px;
  z-index: 2;
}

.step-card__icon {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.step-card__icon img {
  height: 100%;
  width: auto;
  display: block;
}

.step-card__title {
  font-family: "Gilroy", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.step-card__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.45;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.step-card__icon--cta {
  position: static;
  height: auto;
  width: 100%;
  margin-top: 14px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.step-card__icon--cta img {
  height: 150px;
  width: auto;
}

.step-card__cta-body {
  position: relative;
  z-index: 2;
}

.step-card__cta-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.step-card__cta-btn:hover {
  background: var(--orange-dark);
}

/* ОСНОВАТЕЛЬ */
.founder {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  min-height: 890px;
}

.founder__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  z-index: 1;
}

.founder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      115deg,
      rgba(236, 236, 236, 1) 0%,
      rgba(25, 25, 25, 1) 100%
    )
    center/cover no-repeat;
  z-index: 1;
  pointer-events: none;
}

.founder__content {
  padding: 54px 60px;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.founder__role {
  color: var(--orange);
  font-size: 32px;
  font-weight: 600;
}

.founder__name {
  font-family: "Gilroy", sans-serif;
  font-size: 50px;
  font-weight: 700;
  margin: 10px 0 22px;
}

.founder__text {
  font-size: 20px;
  line-height: 1.6;
  max-width: 686px;
}

.founder__text strong {
  font-weight: 600;
}

.founder__blog {
  font-family: "Gilroy", sans-serif;
  font-size: 21px;
  font-weight: 600;
  margin: 28px 0 16px;
  max-width: 280px;
  line-height: 1.3;
}

.founder__content .btn-light {
  align-self: flex-start;
}

.founder__photo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: start;
}

.founder__photo img {
  max-height: 890px;
  width: auto;
  object-fit: contain;
  object-position: bottom;
}

/* ГЛАВНОЕ О ПОДХОДЕ */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.approach__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 730px;
}

.approach__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.approach__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.approach__stats {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  gap: 26px;
}

.approach__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 26px;
  flex: 1;
}

.approach__stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.approach__stat:first-child {
  padding-left: 0;
}

.approach__stat:first-child::before {
  display: none;
}

.approach__stat-title {
  font-family: "Gilroy", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.approach__stat-text {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
}

.approach__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
}

.approach__title {
  margin-bottom: 20px;
}

.approach__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.approach-item {
  display: flex;
  align-items: center;
  gap: 22px;
}

.approach-item__bullet {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(253, 77, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.approach-item__bullet::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 1v8M1 5h8' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
    center/10px 10px no-repeat;
}

.approach-item__title {
  font-family: "Gilroy", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
}

.approach-item__text {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.5;
}

/* ПОЧЕМУ ВЫБИРАЮТ НАС */
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}

/* на десктопе обёртка прозрачна — карточки остаются элементами grid */
.advantages-track {
  display: contents;
}

.adv-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(253, 77, 0, 0.3);
  background: linear-gradient(
    to top right,
    #ffffff 0%,
    rgba(255, 255, 255, 0.26) 44%,
    rgba(253, 77, 0, 0.13) 230%
  );
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 183px;
  cursor: pointer;
}

.adv-card__icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.adv-card__icon img {
  width: 22px;
  height: 22px;
  /* приводим иконки к белому, чтобы они читались на оранжевом круге */
  filter: brightness(0) invert(1);
}

.adv-card__title {
  font-family: "Gilroy", sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  position: relative;
  z-index: 2;
}

.adv-card__text {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 16px;
  position: relative;
  z-index: 2;
  max-width: 80%;
}

.adv-card__wm {
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
  height: auto;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

/* на свёрнутых (закрытых) карточках водяной знак меньше */
.adv-card:not(.is-active) .adv-card__wm {
  width: 320px;
  height: auto;
}

/* ВОПРОСЫ (тёмный, без формы) */
.faq {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 64px 70px;
  color: #fff;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.faq__aside,
.faq__list {
  position: relative;
  z-index: 2;
}

.faq__aside {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.faq__ask {
  margin-top: auto;
}

.faq__title {
  font-family: "Gilroy", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.14;
  margin-bottom: 26px;
  color: #fff;
}

.faq__ask {
  background: var(--dark-3);
  border-radius: var(--radius-md);
  padding: 32px;
}

.faq__ask-title {
  font-family: "Gilroy", sans-serif;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
}

.faq__ask-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.faq__ask .btn-submit {
  align-self: flex-start;
}

.faq__ask form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--dark-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  font-family: "Gilroy", sans-serif;
}

.faq-item__sign {
  color: var(--orange);
  font-size: 28px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s;
  line-height: 1;
}

.faq-item.is-open .faq-item__sign {
  transform: rotate(45deg);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.is-open .faq-item__a {
  max-height: 600px;
}

.faq-item__a-inner {
  padding: 0 30px 26px;
}

/* СТРОЙКА БЕЗ ФИЛЬТРОВ (слайдер с затуханием) */
.reels__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.reels__title {
  font-weight: 600;
}

.reels__nav {
  display: flex;
  gap: 14px;
}

.reels-slider {
  position: relative;
  overflow: hidden;
}

.reels-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.reels-track::-webkit-scrollbar {
  display: none;
}

.reel {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 300/440;
  background: #222;
  flex: 0 0 calc((100% - 96px) / 5);
}

.reel img,
.reel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel {
  cursor: pointer;
}

/* во время воспроизведения убираем затемнение и кнопку play */
.reel.is-playing::after {
  opacity: 0;
}

.reel.is-playing .reel__play {
  display: none;
}

.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.reel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px;
  height: 64px;
}

.reel__play img {
  width: 100%;
  height: 100%;
}

/* Pop-up с видео */
.reel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 14, 18, 0.82);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;
}

.reel-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

.reel-lightbox__inner {
  position: relative;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.reel-lightbox.is-open .reel-lightbox__inner {
  transform: none;
}

.reel-lightbox__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.reel-lightbox__media video {
  display: block;
  width: auto;
  height: min(86vh, 780px);
  max-width: 90vw;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}

.reel-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

@media (max-width: 640px) {
  .reel-lightbox {
    padding: 16px;
  }
  .reel-lightbox__media video {
    height: auto;
    width: 100%;
    max-height: 84vh;
  }
  .reel-lightbox__close {
    top: 8px;
    right: 8px;
  }
}

/* ПОДВАЛ */
.footer {
  background: var(--dark);
  border-radius: 0;
  color: #fff;
  /* Фон тянем до краёв body (гасим его боковой padding), контент возвращаем
     по сетке тем же var(--gutter). Без vw — иначе ломается под zoom-хаком 1300–1920px. */
  padding: 64px var(--gutter) 40px;
  margin-top: 36px;
  position: relative;
  overflow: hidden;
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
}

/* На экранах ≥1920px (zoom-хак уже не активен) фон футера тянем до краёв
   вьюпорта через vw, контент остаётся по сетке. */
@media (min-width: 1920px) {
  .footer {
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .hero__card {
    padding: 50px 48px;
  }
}

.footer::before {
  display: none;
}

.footer > * {
  position: relative;
  z-index: 2;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__col-title {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  text-transform: none;
  letter-spacing: 0;
}

.footer__addr {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__links a {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  color: #fff;
  font-size: 15px;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--orange);
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1.6fr 2fr 1.1fr;
  gap: 40px;
  padding-top: 40px;
  align-items: start;
}

.footer__bottom-left {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.footer__logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer__bottom-mid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__legal {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer__legal a {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  color: #fff;
  font-size: 15px;
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: var(--orange);
}

.footer__disclaimer {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  color: #808080;
  font-size: 15px;
  line-height: 1.5;
  max-width: 560px;
}

.footer__copy {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  color: #a2a3a6;
  font-size: 15px;
}

.footer__bottom-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.footer__socials {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.footer__socials .social {
  background: var(--white);
}

.footer__socials .social img {
  filter: none;
}

.footer__socials .social:hover {
  background: rgba(255, 255, 255, 0.85);
}

.footer__contacts-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  flex-shrink: 0;
}

.footer__contact {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: flex-start;
  white-space: nowrap;
}

.footer__contact span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.footer__contact a {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: "Gilroy", sans-serif;
  white-space: nowrap;
}

/* МОДАЛЬНОЕ ОКНО */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 22, 28, 0.6);
  backdrop-filter: blur(4px);
}

.modal.is-open {
  display: flex;
}

.modal__box {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 520px;
  color: #fff;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.modal__title {
  font-family: "Gilroy", sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.modal__text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  margin-bottom: 26px;
}

.modal .form-field {
  margin-bottom: 16px;
}

/* АДАПТИВ */
@media (min-width: 601px) and (max-width: 1500px) {
  html:not(.zoomfit) .reel {
    flex-basis: calc((100% - 72px) / 4);
  }
}

@media (max-width: 1400px) {
  html:not(.zoomfit) .header {
    gap: 20px;
  }

  html:not(.zoomfit) .nav {
    gap: 20px;
  }

  html:not(.zoomfit) .nav__link {
    font-size: 15px;
  }

  html:not(.zoomfit) .header__right {
    gap: 14px;
  }

  html:not(.zoomfit) .header__phone {
    font-size: 17px;
  }

  html:not(.zoomfit) .btn-outline {
    padding: 0 18px;
    font-size: 12px;
  }

  html:not(.zoomfit) .socials {
    gap: 8px;
  }
}

/* Планшеты и узкие ноутбуки: меню прячется в «бургер», чтобы шапка
   гарантированно помещалась по ширине (раньше навигация переполняла экран). */
@media (max-width: 1300px) {
  .header {
    gap: 18px;
    padding: 0 44px;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* второстепенная PDF-кнопка убирается, чтобы контакты помещались */
  .header__right .btn-outline {
    display: none;
  }

  /* выпадающее меню по клику на бургер */
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0;
    background: var(--white);
    border-radius: 22px;
    padding: 12px 22px;
    box-shadow: 0 18px 44px rgba(28, 36, 64, 0.14);
    z-index: 50;
  }

  .nav.is-open .nav__link {
    padding: 14px 4px;
    font-size: 17px;
    border-bottom: 1px solid rgba(28, 36, 64, 0.07);
  }

  .nav.is-open .nav__link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__image {
    min-height: 440px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ПОЧЕМУ ГАЗОБЕТОН: карточки в строку со скроллом уже на планшетах */
  .why-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .why-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    flex: 0 0 calc((100% - 32px) / 3);
    scroll-snap-align: start;
  }

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

  .reel {
    flex-basis: calc((100% - 48px) / 3);
  }
}

/* На планшетах главная картинка в hero растягивалась ровно по своим
   пропорциям (object-fit:cover ничего не обрезал) и показывала тёмный
   край исходника слева/снизу. Задаём боксу свои пропорции — тогда
   картинка обрезается с боков и тёмная кромка не видна. */
@media (min-width: 601px) and (max-width: 1200px) {
  .hero__image {
    min-height: 0;
    aspect-ratio: 1.14;
  }
}

@media (max-width: 900px) {
  .header {
    flex-wrap: wrap;
    min-height: auto;
    padding: 18px 22px;
    gap: 16px;
    border-radius: 28px;
  }

  .nav {
    display: none;
  }

  .burger {
    display: flex;
    margin-left: auto;
    order: 3;
  }

  .header__right {
    margin-left: 0;
    gap: 14px;
    order: 2;
  }

  .header__phone {
    font-size: 16px;
  }

  .card {
    padding: 34px 0px;
  }

  .trust,
  .services,
  .individual,
  .consult,
  .examples-grid,
  .why-grid,
  .steps-grid,
  .advantages-grid,
  .faq,
  .founder,
  .projects-grid,
  .examples-head,
  .why-head {
    grid-template-columns: 1fr;
  }

  .advantages-grid .advantage:nth-child(odd) {
    border-right: none;
    padding-right: 0;
  }

  .consult,
  .faq {
    padding: 40px 26px;
  }

  .hero__title {
    font-size: 34px;
  }

  .section-title,
  .consult__title,
  .faq__title {
    font-size: 30px;
  }

  .footer {
    padding: 40px 24px 30px;
  }

  /* порядок на мобильном: логотип + копирайт сверху, затем колонки, затем низ */
  .footer .container {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .footer__bottom {
    display: contents;
  }

  .footer__bottom-left {
    order: 1;
    gap: 14px;
  }

  .footer__top {
    order: 2;
    grid-template-columns: 1fr 1fr;
    gap: 26px 24px;
    padding-bottom: 0;
    border-bottom: none;
  }

  /* Застройщик и Компания — на всю ширину, Наши объекты | Способы покупки — в ряд */
  .footer__top .footer__col:first-child,
  .footer__top .footer__col:last-child {
    grid-column: 1 / -1;
  }

  .footer__bottom-mid {
    order: 3;
  }

  .footer__bottom-right {
    order: 4;
    justify-content: flex-start;
  }

  .footer__contacts-bottom {
    align-items: flex-start;
    text-align: left;
  }

  .footer__contact {
    justify-content: flex-start;
  }

  .tab {
    flex: none;
    width: 100%;
  }

  .reel {
    flex-basis: calc((100% - 24px) / 2);
  }
}

/* МОБИЛЬНАЯ ВЕРСИЯ — точное соответствие макету*/
@media (max-width: 900px) {
  /* единый белый фон */
  body {
    background: #fff;
    padding: 0 10px;
  }

  .section {
    margin-top: 20px;
  }

  /* блоки во всю ширину экрана (full-bleed): консультация, FAQ, основатель, подвал */
  .consult,
  .faq,
  .founder,
  .footer {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  /* последняя консультация и подвал сливаются в один тёмный блок */
  .consult--blue {
    margin-bottom: 0 !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .footer {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  /* grid/flex-элементы должны уметь сжиматься уже своего контента */
  .hero__card,
  .trust__list,
  .trust__media,
  .consult__left,
  .consult__right,
  .individual__card,
  .individual__media,
  .founder__content,
  .founder__photo,
  .faq__aside,
  .faq__list,
  .adv-card,
  .examples-head > div,
  .why-head > * {
    min-width: 0;
  }

  /* убираем «нахлёст» блоков — всё стыкуется ровно */
  .attach-bottom {
    padding-bottom: 26px;
  }

  .consult.attach-top {
    margin-top: 20px;
  }

  /* ШАПКА: слева бургер (2 полоски), по центру лого, справа Max */
  .header {
    position: sticky;
    top: 12px;
    flex-wrap: nowrap;
    justify-content: space-between;
    min-height: 70px;
    padding: 12px 0px;
    gap: 8px;
    border-radius: 26px;
  }

  .burger {
    display: flex;
    order: 0;
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: none;
    margin: 0;
    padding: 0;
  }

  .burger svg {
    width: 28px;
    height: 28px;
  }

  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* увеличенная область нажатия + поверх соседних элементов шапки */
    z-index: 5;
    padding: 10px;
  }

  .logo img {
    height: 32px;
  }

  .nav {
    display: none;
  }

  .header__right {
    margin-left: auto;
    gap: 10px;
  }

  /* в шапке остаётся только Max (первый в списке — VK — скрыт) */
  .header .socials .social:first-child,
  .header__phone,
  .header .btn-outline {
    display: none;
  }

  /* выпадающее мобильное меню по клику на бургер */
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0;
    background: var(--white);
    border-radius: 22px;
    padding: 12px 22px;
    box-shadow: 0 18px 44px rgba(28, 36, 64, 0.14);
    z-index: 50;
  }

  .nav.is-open .nav__link {
    padding: 14px 4px;
    font-size: 17px;
    border-bottom: 1px solid rgba(28, 36, 64, 0.07);
  }

  .nav.is-open .nav__link:last-child {
    border-bottom: none;
  }

  /* HERO */
  .hero__card .tag {
    display: none;
  }

  .hero__title {
    margin-top: 0;
  }

  .hero__cta {
    max-width: none;
    width: 100%;
  }

  .hero__rating {
    top: 14px;
    right: 14px;
    padding: 8px 14px;
  }

  .hero__slidebar {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .hero__stats {
    column-gap: 28px;
    margin-top: 24px;
    padding-top: 22px;
  }

  .hero__stat {
    flex: 0 0 auto;
    align-items: center;
    text-align: center;
  }

  .hero__cta-row {
    flex-direction: column;
    margin-top: 24px;
  }

  .hero__cta-row .hero__cta {
    flex: 0 0 auto;
  }

  .hero__estimate {
    margin-top: 20px;
  }

  .hero__mini {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 30px;
  }

  .mini-card {
    background: transparent;
    padding: 18px;
    min-height: 150px;
  }

  .mini-card__text {
    font-size: 15px;
  }

  /* ПИКЕР */
  /* заголовок без принудительных переносов — сплошным текстом */
  .picker__head .section-title br {
    display: none;
  }

  .picker__head {
    gap: 22px;
  }

  /* статистика — в строчку */
  .picker__stats {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0px;
    width: 100%;
    padding-top: 0;
  }

  .stat {
    flex: 1;
    gap: 5px;
    align-items: flex-start;
  }

  .stat .ic-circle {
    width: 38px;
    height: 38px;
  }

  .stat .ic-circle img {
    width: 17px;
    height: 17px;
  }

  .stat__value {
    line-height: 1.2;
  }

  .stat__label {
    font-size: 11px;
  }

  /* вкладки — в строчку со скроллом */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-top: 26px;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    width: auto;
    min-height: 54px;
    padding: 0 26px;
    font-size: 15px;
  }

  /* поиск + фильтр — в строчку, у фильтра только иконка */
  .picker__search {
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 14px;
  }

  .search-field {
    flex: 1;
    min-width: 0;
    min-height: 56px;
    padding: 0 18px;
  }

  .filter-btn {
    flex: 0 0 auto;
    width: 56px;
    min-height: 56px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }

  .filter-btn__label {
    display: none;
  }

  /* карточки проектов — название слева, параметры справа в строку */
  .projects-grid {
    margin-top: 26px;
  }

  .project-card__foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .project-card__meta {
    gap: 12px;
  }

  .project-card__meta span {
    font-size: 13px;
    gap: 5px;
    white-space: nowrap;
  }

  /* КОНСУЛЬТАЦИЯ */
  /* тег «Консультация» — справа */
  .consult__left .tag--dark {
    display: flex;
    width: max-content;
    margin-left: auto;
  }

  /* декор-картинка видна */
  .consult__deco {
    width: 150px;
    top: -16px;
    left: 10px;
  }

  .consult__deco--corner {
    width: 140px;
    top: -12px;
    left: -10px;
  }

  /* НАШИ УСЛУГИ: заголовок в строку, карточки ниже */
  .block-head {
    margin-bottom: 22px;
  }

  .services {
    gap: 14px;
  }

  .service-card {
    aspect-ratio: auto;
    height: 188px;
  }

  /* ПОЧЕМУ ГАЗОБЕТОН: карточки в строку со скроллом */
  .why-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .why-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    flex: 0 0 80%;
    min-height: 420px;
    scroll-snap-align: start;
  }

  /* ПРИМЕРЫ ГОТОВЫХ ДОМОВ */
  .examples-head {
    margin-bottom: 26px;
  }

  /* статистика без иконок, в строчку */
  .examples-stats {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .examples-stat {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .examples-stat .ic-circle {
    display: none;
  }

  .examples-stat__value {
    font-size: 16px;
  }

  .examples-stat__label {
    font-size: 11px;
  }

  /* чипы в одну строку, без жирного */
  .example-card__chips {
    flex-wrap: nowrap;
    gap: 6px;
    left: 16px;
    right: 16px;
  }

  .chip {
    font-weight: 500;
    font-size: 11px;
    padding: 6px 10px;
    gap: 5px;
    white-space: nowrap;
  }

  /* ИНДИВИДУАЛЬНОЕ ПРОЕКТИРОВАНИЕ */
  .individual .btn-primary {
    width: 100%;
    min-height: 89px;
    white-space: nowrap;
    font-size: 13px;
    padding-left: 24px;
    gap: 10px;
  }

  .individual .btn-primary .btn-circle {
    width: 54px;
    height: 54px;
  }

  .individual__media {
    min-height: 280px;
  }

  /* СЛАЙДЕРЫ: докрутка к следующему, без стрелок */
  .reels__nav {
    display: none;
  }

  .steps-grid,
  .reels-track {
    scroll-snap-type: x mandatory;
  }

  .step-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
    height: 406px;
  }

  .reel {
    flex-basis: 74%;
    scroll-snap-align: start;
  }

  /* ОСНОВАТЕЛЬ: текст слева, фото справа снизу */
  .founder {
    display: block;
    position: relative;
    min-height: auto;
    grid-template-columns: none;
  }

  .founder__content {
    position: relative;
    z-index: 2;
    padding: 34px 22px;
    padding-bottom: 183px;
  }

  .founder__role {
    font-size: 23px;
  }

  .founder__name {
    font-size: 38px;
    margin: 8px 0 18px;
  }

  .founder__text {
    font-size: 15px;
  }

  .founder__blog {
    font-size: 16px;
    max-width: 58%;
  }

  .founder__content .btn-light {
    position: relative;
    z-index: 3;
    min-height: 55px;
    font-size: 14px;
    padding: 0 8px 0 22px;
    gap: 10px;
  }

  .founder__content .btn-light .ar {
    width: 42px;
    height: 42px;
  }

  .founder__content .btn-light .ar img {
    width: 14px;
    height: 14px;
  }

  /* фото мужчины — абсолютно, в правом нижнем углу */
  .founder__photo {
    position: absolute;
    right: -40px;
    bottom: -20px;
    max-width: 312px;
    z-index: 1;
    display: block;
  }

  .founder__photo img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
  }

  /* ГЛАВНОЕ О ПОДХОДЕ */
  /* порядок: сначала плюсы, затем картинка, затем подписи */
  .approach {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .approach__body {
    order: 1;
    min-width: 0;
    padding: 28px 0px;
  }

  .approach__media {
    order: 2;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: visible;
    border-radius: 0;
  }

  /* картинка в обычном потоке + подписи под ней */
  .approach__media img {
    position: static;
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
  }

  .approach__media::after {
    display: none;
  }

  .approach__stats {
    position: static;
    flex-direction: column;
    left: auto;
    right: auto;
    bottom: auto;
    gap: 12px;
  }

  .approach__stat {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 7px;
    padding-left: 0;
  }

  .approach__stat::before {
    display: none;
  }

  .approach__stat:nth-child(1) .approach__stat-title::after,
  .approach__stat:nth-child(3) .approach__stat-title::after {
    content: ":";
  }

  .approach__stat-title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--navy);
  }

  .approach__stat-text {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--gray);
  }

  .approach__title {
    margin-bottom: 22px;
  }

  .approach__list {
    gap: 20px;
  }

  /* ПОЧЕМУ ВЫБИРАЮТ НАС: вертикальный аккордеон, тап раскрывает карточку */
  .advantages-grid {
    display: block;
    margin-top: 20px;
  }

  .advantages-track {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* общий вид карточки на мобильных */
  .adv-card,
  .adv-card.is-active {
    width: 100%;
    max-width: 100%;
    min-height: 86px;
  }

  /* свёрнутая карточка — «кирпичик» */
  .adv-card:not(.is-active) {
    height: 86px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
  }

  /* раскрытая карточка — иконка сверху, заголовок и текст */
  .adv-card.is-active {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 22px 18px;
  }

  /* убираем фоновые картинки на карточках */
  .adv-card__wm {
    display: none;
  }

  .adv-card__title {
    font-size: 16px;
  }

  .adv-card__icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
  }

  .adv-card:not(.is-active) .adv-card__icon {
    margin-bottom: 0;
  }

  .adv-card.is-active .adv-card__icon {
    margin-bottom: 14px;
  }

  .adv-card__icon img {
    width: 18px;
    height: 18px;
  }

  .adv-card__text {
    display: none;
  }

  .adv-card.is-active .adv-card__text {
    display: block;
    margin-top: 10px;
    max-width: 100%;
  }

  /* FAQ: вопросы сверху, форма снизу без фона */
  .faq {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .faq__aside {
    display: contents;
  }

  .faq__title {
    order: 1;
  }

  .faq__list {
    order: 2;
  }

  .faq__ask {
    order: 3;
    background: none;
    padding: 0;
    margin-top: 0;
  }

  .faq__ask .btn-submit {
    width: 100%;
  }

  /* ФОРМЫ: кнопка на всю ширину, политика по центру */
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .form-foot .btn-submit {
    width: 100%;
  }

  .form-foot .policy {
    max-width: none;
    text-align: center;
  }

  .hero__subtitle {
    max-width: none;
    font-size: 16px;
  }
}

/* ПЛАНШЕТ (601–900px): переработанный HERO и блок «этапов».
   Стоит ПОСЛЕ мобильных правил (max-width:900px), чтобы перебивать их
   в этом диапазоне (планшеты вроде iPad 768px). Телефон (≤600px)
   сохраняет свой мобильный вид, ширины выше 900px — прежнюю раскладку.
   - HERO: заголовок, подпись и кнопка сверху, картинка снизу,
   поверх неё — тег «Индивидуальный подход» и две карточки.
   - ЭТАПЫ: ровно две карточки на экран. */
@media (min-width: 601px) and (max-width: 900px) {
  /* HERO: картинка сверху, дальше карточка в своём естественном порядке
     (тег, заголовок, статы, кнопки, блок оценки стоимости) — как на телефоне.
     Тег «Индивидуальный подход» на этой ширине скрыт (см. .hero__card .tag
     в общем мобильном блоке) — вместо него показывается .hero__image-tag,
     наложенный на картинку слева, на одной линии с рейтингом справа. */
  .hero__title {
    margin-top: 0;
  }

  .hero__subtitle {
    margin-top: 18px;
    max-width: 560px;
  }

  .hero__stat-value {
    font-size: 20px;
  }

  .hero__stat-label {
    font-size: 15px;
  }

  .hero__estimate-title {
    font-size: 17px;
  }

  .hero__rating-score {
    font-size: 15px;
  }

  .hero__rating-count {
    font-size: 13px;
  }

  .hero__cta-row {
    flex-direction: column;
    margin-top: 24px;
    margin-bottom: 30px;
  }

  .hero__cta-row .hero__cta {
    flex: 0 0 auto;
    width: 100%;
    min-height: 64px;
    font-size: 15px;
    padding-left: 24px;
  }

  .hero__cta-row .hero__cta-sub {
    display: none;
  }

  .hero__cta-row .btn-circle {
    width: 46px;
    height: 46px;
  }

  .hero__image-tag {
    display: inline-flex;
  }

  /* рейтинг справа — на той же горизонтали (top/right 24px), что и тег слева */
  .hero__rating {
    top: 24px;
    right: 24px;
    padding: 10px 18px;
  }

  .hero__image {
    min-height: 0;
    aspect-ratio: 1.5;
  }

  .hero__estimate {
    margin-top: 24px;
  }

  /* две карточки заходят на нижний край картинки */
  .hero__mini {
    order: 6;
    margin-top: -120px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    gap: 18px;
  }

  /* возвращаем кремовый фон карточкам (на мобильном он прозрачный) */
  .mini-card {
    background: var(--orange-soft);
    padding: 26px;
    min-height: 178px;
    box-shadow: 0 18px 40px rgba(28, 36, 64, 0.16);
  }

  /* ЭТАПЫ СТРОИТЕЛЬСТВА */
  .steps-grid {
    gap: 24px;
  }

  .step-card {
    flex: 0 0 calc((100% - 24px) / 2);
    height: 420px;
  }

  /* КАТАЛОГ ДОМОВ: по две карточки в ряд */
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
  }
}

/* Блок «Узнайте стоимость вашего дома»: на ноутбуках и планшетах картинка
   остаётся боковой панелью (ширина резиновая — clamp 140–280px). Вниз,
   на всю ширину, она уезжает только на узких телефонах, где текста
   уже не хватает места и без того. */
@media (max-width: 480px) {
  .hero__estimate {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 20px;
    min-height: 0;
  }

  .hero__estimate-media {
    position: static;
    width: 100%;
    height: 160px;
    margin-top: 16px;
  }

  .hero__estimate-media img {
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 600px) {
  .card {
    padding: 26px 0px;
  }

  .stat__value {
    font-size: 12px;
  }

  /* Видео-ролики: один большой ролик в кадре + небольшой «выглядывающий»
     край следующего, шаг прокрутки — ровно одно видео */
  .reels-track {
    gap: 14px;
  }

  .reel {
    flex: 0 0 86%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .hero__card {
    padding: 32px 0px;
  }

  .consult,
  .faq {
    padding: 34px 20px;
  }

  .individual__card {
    padding: 34px 20px;
  }

  .hero__image {
    min-height: 360px;
  }

  .hero__slide-counter b {
    font-size: 34px;
  }

  .hero__slide-counter i {
    font-size: 16px;
  }

  .hero__slide-arrow {
    width: 44px;
    height: 44px;
  }

  .hero__slide-arrow img {
    width: 14px;
    height: 11px;
  }

  .hero__stats {
    column-gap: 24px;
  }

  .hero__stat {
    flex: 0 0 auto;
    min-width: 130px;
  }

  .hero__stat-value {
    font-size: 19px;
  }

  .hero__stat-label {
    font-size: 14px;
  }

  .hero__rating {
    padding: 7px 14px;
    gap: 8px;
  }

  .hero__rating-score {
    font-size: 14px;
  }

  .hero__rating-count {
    font-size: 12px;
  }

  .hero__estimate {
    display: none;
  }

  .section-title,
  .consult__title,
  .faq__title {
    font-size: 27px;
  }

  .hero__title {
    font-size: 31px;
  }

  .consult__form-title {
    font-size: 20px;
  }

  /* УЗКИЕ ЭКРАНЫ: кнопки, карточки и модалка не «разъезжаются» */

  /* CTA-кнопки: длинный текст переносится и не залезает под кружок-стрелку */
  .btn-primary,
  .btn-submit {
    max-width: 100%;
    padding-left: 22px;
    padding-right: 64px;
    gap: 10px;
    font-size: 15px;
    white-space: normal;
    text-align: left;
  }

  .btn-primary--sm {
    padding-right: 60px;
  }

  /* кнопка «Обсудить ваш новый дом» — выше по специфичности, переопределяем явно */
  .individual .btn-primary {
    padding-left: 22px;
    white-space: normal;
  }

  .btn-circle {
    width: 50px;
    height: 50px;
  }

  .btn-primary--sm .btn-circle,
  .individual .btn-primary .btn-circle {
    width: 46px;
    height: 46px;
  }

  /* Карточки услуг: заголовок не перекрывает стрелку в углу */
  .service-card__title {
    font-size: 18px;
    max-width: calc(100% - 64px);
  }

  /* Модальное окно: компактные отступы, чтобы форма помещалась на 320px */
  .modal {
    padding: 16px;
  }

  .modal__box {
    padding: 32px 22px;
  }

  .modal__title {
    font-size: 23px;
  }
}

/* ТИПОГРАФИКА — ДЕСКТОП (размеры и начертания по макету)
   Gilroy / Inter; применяется только на десктопе (>900px) */
@media (min-width: 901px) {
  /* ШАПКА */
  .nav__link {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 18px;
  }

  .header__phone {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 18px;
  }

  .btn-outline {
    font-family: "Gilroy", sans-serif;
    font-weight: 700;
    font-size: 19px;
    text-transform: none;
    letter-spacing: 0;
  }

  /* HERO */
  .hero__card .tag {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 14px;
  }

  .hero__title {
    font-family: "Gilroy", sans-serif;
    font-weight: 700;
    font-size: var(--fs-hero);
  }

  .hero__subtitle {
    font-family: "Gilroy", sans-serif;
    font-weight: 500;
    font-size: 18px;
  }

  .hero__cta {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
  }

  .mini-card__text {
    font-family: "Gilroy", sans-serif;
    font-size: 18px;
  }

  .mini-card__text .light {
    font-weight: 400;
  }

  .mini-card__text .strong {
    font-weight: 700;
  }

  .stat__value {
    font-family: "Gilroy", sans-serif;
    font-size: 18px;
  }

  .stat__label {
    font-family: "Gilroy", sans-serif;
    font-size: 18px;
  }

  /* ПИКЕР */
  .section-title {
    font-weight: 500;
    font-size: var(--fs-50);
  }

  .tab {
    font-family: "Gilroy", sans-serif;
    font-weight: 600;
    font-size: 20px;
  }

  .search-field input {
    font-family: "Inter", sans-serif;
    font-size: 18px;
  }

  .filter-btn {
    font-family: "Inter", sans-serif;
    font-size: 18px;
  }

  .project-card__name {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: var(--fs-30);
  }

  .btn-more {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 18px;
  }

  /* КОНСУЛЬТАЦИЯ (ипотека) */
  .consult:not(.consult--blue) .consult__title {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: var(--fs-55);
  }

  .consult__text {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: var(--fs-22);
  }

  .consult__form-title {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: var(--fs-34);
  }

  .form-field {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
  }

  .btn-submit {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
  }

  .policy {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
  }

  /* ПОЧЕМУ НАМ ДОВЕРЯЮТ */
  .trust-item__title {
    font-family: "Gilroy", sans-serif;
    font-weight: 600;
    font-size: 20px;
  }

  .trust-item__text {
    font-family: "Gilroy", sans-serif;
    font-weight: 400;
    font-size: 16px;
  }

  .trust__pill {
    font-family: "Gilroy", sans-serif;
    font-weight: 700;
    font-size: 18px;
  }

  .trust__pill-light {
    font-weight: 400;
  }

  /* НАШИ УСЛУГИ */
  .service-card__title {
    font-family: "Gilroy", sans-serif;
    font-weight: 600;
    font-size: var(--fs-35);
  }

  /* ПОЧЕМУ ГАЗОБЕТОН */
  .why-note__text {
    font-family: "Gilroy", sans-serif;
    font-weight: 400;
    font-size: 18px;
  }

  .feature-card__title {
    font-family: "Gilroy", sans-serif;
    font-weight: 600;
    font-size: var(--fs-25);
  }

  .feature-card__text {
    font-family: "Gilroy", sans-serif;
    font-weight: 500;
    font-size: 15px;
  }

  /* ПРИМЕРЫ ГОТОВЫХ ДОМОВ */
  .examples-head__lead {
    font-family: "Gilroy", sans-serif;
    font-weight: 400;
    font-size: 18px;
  }

  .examples-stat__value {
    font-family: "Gilroy", sans-serif;
    font-size: 18px;
  }

  .examples-stat__label {
    font-family: "Gilroy", sans-serif;
    font-weight: 400;
    font-size: 18px;
  }

  .chip {
    font-family: "Gilroy", sans-serif;
    font-weight: 600;
    font-size: 18px;
  }

  .example-card__name {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: var(--fs-30);
  }

  /* ИНДИВИДУАЛЬНОЕ ПРОЕКТИРОВАНИЕ */
  .individual__lead {
    font-family: "Gilroy", sans-serif;
    font-weight: 500;
    font-size: 20px;
  }

  .plus-list li {
    font-family: "Gilroy", sans-serif;
    font-weight: 400;
    font-size: 20px;
  }

  /* ЭТАПЫ СТРОИТЕЛЬСТВА */
  .step-card__title {
    font-family: "Gilroy", sans-serif;
    font-weight: 600;
    font-size: var(--fs-25);
  }

  .step-card__text {
    font-family: "Gilroy", sans-serif;
    font-weight: 500;
    font-size: 15px;
  }

  /* СОБСТВЕННИК И ОСНОВАТЕЛЬ */
  .founder__role {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: var(--fs-32);
  }

  .founder__name {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: var(--fs-50);
  }

  .founder__text {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 20px;
  }

  .founder__blog {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 21px;
    color: #1a1a1a;
  }

  .founder__content .btn-light {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
  }

  /* ГЛАВНОЕ О ПОДХОДЕ */
  .approach__title {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: var(--fs-50);
  }

  .approach-item__title {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 20px;
  }

  .approach-item__text {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
  }

  .approach__stat-title {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 20px;
  }

  .approach__stat-text {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 18px;
  }

  /* ПОЧЕМУ ВЫБИРАЮТ НАС */
  .advantages-title {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: var(--fs-50);
  }

  .adv-card__title {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: var(--fs-30);
  }

  .adv-card__text {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 20px;
  }

  /* Аккордеон преимуществ: активная карточка справа, остальные свёрнуты слева */
  .adv-card.is-active {
    grid-column: 2;
    grid-row: 1 / 4;
    height: 100%;
    transition: background 0.3s ease;
  }

  .adv-card:not(.is-active) {
    grid-column: 1;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .adv-card:not(.is-active) .adv-card__icon {
    margin-bottom: 0;
  }

  .adv-card:not(.is-active) .adv-card__text {
    display: none;
  }

  .adv-card.is-active .adv-card__wm {
    top: auto;
    bottom: 0;
  }

  /* FAQ */
  .faq__title {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: var(--fs-50);
  }

  .faq-item__q {
    font-family: "Gilroy", sans-serif;
    font-weight: 500;
    font-size: 22px;
  }

  .faq__ask-title {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: var(--fs-27);
  }

  .faq__ask-text {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
  }

  /* СТРОЙКА БЕЗ ФИЛЬТРОВ */
  .reels__title {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: var(--fs-50);
  }

  /* ФИНАЛЬНАЯ КОНСУЛЬТАЦИЯ */
  .consult--blue .consult__title {
    font-family: "Gilroy", sans-serif;
    font-weight: 600;
    font-size: var(--fs-55);
  }

  .consult--blue .consult__text {
    font-family: "Gilroy", sans-serif;
    font-weight: 600;
    font-size: var(--fs-34);
  }

  .consult--blue .btn-submit {
    font-family: "Gilroy", sans-serif;
    font-weight: 700;
    font-size: 16px;
  }
}

/* РЕЖИМ «КАК НА 1920, НО В МАСШТАБЕ» (эмуляция zoom браузера)
   Класс .zoomfit вешается скриптом для ширин 1301–1919px.
   Страница верстается ровно как на 1920px (все «резиновые» токены
   зафиксированы в значениях макета), а затем пропорционально
   ужимается через CSS-zoom — точно как Ctrl+«−» в браузере. */
html.zoomfit {
  --fs-hero: 55px;
  --fs-55: 55px;
  --fs-50: 50px;
  --fs-35: 35px;
  --fs-34: 34px;
  --fs-32: 32px;
  --fs-30: 30px;
  --fs-27: 27px;
  --fs-25: 25px;
  --fs-22: 22px;
  --gutter: 51px;
  --section-gap: 36px;
  --card-pad: 49px;
}

html.zoomfit body {
  width: 1920px;
  max-width: 1920px;
  margin: 0;
}

/* возвращаем фиксированные «макетные» значения там, где была vw-резина */
html.zoomfit .hero {
  grid-template-columns: 1fr 800px;
}

html.zoomfit .hero__image {
  min-height: 846px;
}

html.zoomfit .hero__card {
  padding: 50px 48px;
}

html.zoomfit .project-layout {
  grid-template-columns: 1fr 460px;
}

/* АНИМАЦИИ */

/* Блик, пробегающий по кнопкам */
.btn-primary,
.btn-submit,
.step-card__cta-btn {
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
.btn-submit::after,
.step-card__cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-220%) skewX(-20deg);
  animation: btn-shine 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes btn-shine {
  0% {
    transform: translateX(-220%) skewX(-20deg);
  }

  22% {
    transform: translateX(320%) skewX(-20deg);
  }

  100% {
    transform: translateX(320%) skewX(-20deg);
  }
}

/* 3D-наклон карточек при наведении (Наши услуги, Примеры) */
.service-card,
.example-card {
  transition:
    transform 0.18s ease-out,
    box-shadow 0.25s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.service-card.is-tilting,
.example-card.is-tilting {
  box-shadow: 0 26px 50px rgba(28, 36, 64, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary::after,
  .btn-submit::after,
  .step-card__cta-btn::after {
    animation: none;
  }

  .service-card,
  .example-card {
    transition: none;
  }
}

/* ОПРОС (квиз) — плавающая кнопка + модальное окно */

/* Плавающая кнопка */
.quiz-fab {
  position: fixed;
  right: 0px;
  top: 58%;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--orange-soft);
  border: 1px solid var(--orange);
  border-radius: 14px 0 0 14px;
  padding: 13px 19px 13px 13px;
  box-shadow: 0 12px 28px rgba(28, 36, 64, 0.22);
  text-align: left;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.quiz-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(28, 36, 64, 0.32);
}

.quiz-fab__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-fab__icon svg {
  width: 21px;
  height: 21px;
}

.quiz-fab__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.quiz-fab__label {
  color: #000;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-fab__title {
  color: var(--orange);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
}

/* крестик «скрыть опрос» — появляется при наведении, работает на всех экранах */
.quiz-fab__close {
  position: absolute;
  top: -9px;
  left: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--gray);
  border: 1px solid rgba(28, 36, 64, 0.12);
  box-shadow: 0 4px 10px rgba(28, 36, 64, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transform: scale(0.8);
  transition:
    opacity 0.18s,
    transform 0.18s,
    background 0.18s,
    color 0.18s;
  z-index: 2;
}

.quiz-fab:hover .quiz-fab__close,
.quiz-fab__close:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.quiz-fab__close:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* свёрнутый опрос — торчит только иконка (на любой ширине), клик возвращает */
.quiz-fab.is-collapsed {
  transform: translateX(calc(100% - 54px));
}

.quiz-fab.is-collapsed .quiz-fab__close {
  display: none;
}

/* Мобильная панель (опрос + мессенджеры) и кнопка «наверх»
   На ПК скрыты — там обычная плавающая кнопка «Опрос». Стили самой панели
   и её элементов лежат ниже, в медиа-запросе @media (max-width: 600px). */
.fab-row,
.fab-totop {
  display: none;
}

/* Оверлей и окно */
.quiz {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 22, 28, 0.6);
  backdrop-filter: blur(4px);
}

.quiz.is-open {
  display: flex;
}

.quiz__box {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 40px;
  position: relative;
}

/* Прогресс */
.quiz__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 10px;
}

.quiz__pct {
  color: var(--navy);
}

.quiz__progress {
  height: 6px;
  border-radius: 6px;
  background: #ececec;
  overflow: hidden;
  margin-bottom: 24px;
}

.quiz__progress span {
  display: block;
  height: 100%;
  width: 17%;
  border-radius: 6px;
  background: var(--orange);
  transition: width 0.4s ease;
}

/* Панели */
.quiz-panel {
  display: none;
}

.quiz-panel.is-active {
  display: block;
  animation: quizFade 0.35s ease;
}

@keyframes quizFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.quiz-panel__q {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--navy);
  line-height: 1.25;
}

.quiz-panel__hint {
  font-size: 13px;
  color: var(--orange);
  margin-top: 8px;
}

/* Варианты ответов */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.quiz-options--grid {
  grid-template-columns: 1fr 1fr;
}

.quiz-opt {
  background: var(--orange-soft);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 18px 22px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.quiz-opt:hover {
  background: var(--orange-soft-2);
}

.quiz-opt.is-selected {
  background: #fff;
  border-color: var(--orange);
}

.quiz-options--shake {
  animation: quizShake 0.4s ease;
}

@keyframes quizShake {
  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-7px);
  }

  40%,
  80% {
    transform: translateX(7px);
  }
}

/* Кнопка «Далее» */
.quiz-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.quiz-next {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-pill);
  min-height: 54px;
  padding: 6px 6px 6px 28px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 14px 30px rgba(253, 77, 0, 0.26);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.quiz-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(253, 77, 0, 0.38);
}

.quiz-next .btn-circle {
  width: 44px;
  height: 44px;
}

/* Шаг контактов */
.quiz-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

/* Канал связи — выбор «один из двух»: невыбранный приглушён,
   выбранный подсвечивается фирменным цветом */
.quiz-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  min-height: 52px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  background: #fff;
  color: var(--gray-3);
  border: 2px solid #e4e6eb;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

/* иконка невыбранного канала слегка приглушена */
.quiz-channel:not(.is-selected) img {
  opacity: 0.55;
}

.quiz-channel img {
  width: 20px;
  height: 20px;
}

.quiz-channel-tg.is-selected {
  background: #eff8fb;
  color: #2796b8;
  border-color: var(--cyan);
}

.quiz-channel-max.is-selected {
  background: #f1f6ff;
  color: #0061fd;
  border-color: #0061fd;
}

.quiz-final {
  max-width: 1100px;
  margin: 0 auto;
}

.quiz-final__title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 30px;
  color: var(--navy);
  text-align: center;
}

.quiz-final__text {
  text-align: center;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.5;
  margin: 12px auto 26px;
  max-width: 800px;
}

.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quiz-form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* строка может скрываться через атрибут hidden (поле ника при выборе МАКС) —
   класс с display:flex перебивал [hidden], поэтому возвращаем скрытие */
.quiz-form__row[hidden] {
  display: none;
}

.quiz-form__label {
  font-size: 13px;
  color: var(--gray);
}

/* Краткое уведомление после отправки заявки (перед переходом на главную) */
.quiz-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 1000;
  max-width: calc(100% - 32px);
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  padding: 16px 22px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.quiz-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.quiz-form__label em {
  font-style: normal;
  color: var(--gray-3);
}

.quiz-field {
  border: none;
  border-bottom: 1px solid #d9d9de;
  background: transparent;
  padding: 10px 2px;
  font-size: 16px;
  color: var(--navy);
  width: 100%;
}

.quiz-field::placeholder {
  color: var(--gray-2);
}

.quiz-field:focus {
  outline: none;
  border-bottom-color: var(--orange);
}

.quiz-form .btn-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  padding-left: 50%;
}

.quiz-form .btn-submit .btn-circle {
  width: 44px;
  height: 44px;
}

.quiz-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
}

.quiz-consent input {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.quiz-consent a {
  color: var(--orange);
  text-decoration: underline;
}

/* Адаптив опроса */
@media (max-width: 600px) {
  .quiz {
    padding: 0;
    align-items: stretch;
  }

  .quiz__box {
    border-radius: 0;
    max-width: none;
    max-height: 100vh;
    height: 100%;
    padding: 30px 20px;
  }

  .quiz-options--grid,
  .quiz-channels {
    grid-template-columns: 1fr;
  }

  .quiz-panel__q {
    font-size: 20px;
  }

  .quiz-final__title {
    font-size: 26px;
  }

  /* на мобайле обычная кнопка опроса скрыта — вместо неё тёмная панель снизу */
  .quiz-fab {
    display: none;
  }

  /* тёмная панель снизу: иконка опроса + мессенджеры + кнопка-призыв.
     Ширину ограничиваем, оставляя справа место под кнопку «наверх» (54px). */
  .fab-row {
    display: flex;
    position: fixed;
    left: 10px;
    bottom: 0px;
    z-index: 80;
    max-width: calc(100vw - 70px);
    align-items: center;
    gap: 6px;
    background: #20242e;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
    transition:
      gap 0.28s ease,
      opacity 0.4s ease,
      transform 0.4s ease;
  }

  /* скрытое состояние — панель и кнопка «наверх» растворены */
  .fab-row.is-hidden,
  .fab-totop.is-hidden {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
  }

  .fab-row__quiz,
  .social-fab__btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
  }

  .fab-row__quiz {
    background: var(--orange);
    border: none;
    padding: 0;
    cursor: pointer;
  }

  /* сворачиваемая часть панели (мессенджеры + кнопка) */
  .fab-row__rest {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    max-width: 400px;
    transition:
      max-width 0.32s ease,
      opacity 0.25s ease;
  }

  /* свёрнутое состояние: остаётся только квадрат, остальное уезжает влево */
  .fab-row.is-collapsed {
    gap: 0;
  }

  .fab-row.is-collapsed .fab-row__rest {
    max-width: 0;
    opacity: 0;
    pointer-events: none;
  }

  .social-fab__btn {
    background: #fff;
  }

  .fab-row__quiz img,
  .social-fab__btn img {
    width: 22px;
    height: 22px;
  }

  /* контурная кнопка «рассчитать проект» — при нехватке места текст усекается */
  .fab-cta {
    min-width: 0;
    height: 38px;
    line-height: 36px;
    padding: 0 9px;
    border: 1px solid var(--orange);
    border-radius: 11px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* круглая кнопка «наверх» справа */
  .fab-totop {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 10px;
    bottom: 7px;
    z-index: 80;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition:
      opacity 0.4s ease,
      transform 0.4s ease;
  }

  .fab-totop svg {
    width: 21px;
    height: 21px;
  }
}
/* Квиз как отдельная страница (/quiz) */
.quiz-page {
  display: flex;
  justify-content: center;
  padding: 36px 0 64px;
}

.quiz-page .quiz__box {
  max-height: none;
  overflow: visible;
}

@media (max-width: 600px) {
  .quiz-page {
    padding: 16px 0 40px;
  }

  .quiz-page .quiz__box {
    background: transparent;
    border-radius: var(--radius-lg);
    height: auto;
    max-height: none;
    padding: 28px 0px;
  }
}

/* Окно «Спасибо за заявку» (после отправки любой формы-заявки) */
.lead-thanks {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 22, 28, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lead-thanks.is-open {
  opacity: 1;
}

.lead-thanks__box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.lead-thanks.is-open .lead-thanks__box {
  transform: none;
}

.lead-thanks__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.lead-thanks__ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.lead-thanks__ic svg {
  width: 30px;
  height: 30px;
}

.lead-thanks__title {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--navy);
}

.lead-thanks__text {
  margin-top: 10px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.5;
}

/* Версия окна «Спасибо» с соцсетями */
.lead-thanks__box--social {
  max-width: 760px;
}

.lead-thanks__socials {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lt-soc {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.lt-soc:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 22, 28, 0.18);
}

.lt-soc__ic {
  position: absolute;
  left: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lt-soc__ic img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.lt-soc__label {
  flex: 1;
  text-align: center;
  font-family: "Gilroy", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 0 24px;
}

.lt-soc--site {
  background: #ff4d00;
}
.lt-soc--zen {
  background: #2b2b2b;
}
.lt-soc--vk {
  background: #0077ff;
}
.lt-soc--tg {
  background: #29a9eb;
}
.lt-soc--max {
  background: #0c4cff;
}
.lt-soc--inst {
  background: linear-gradient(90deg, #d6276e, #e1306c);
}

.lead-thanks__note {
  margin-top: 24px;
  color: var(--gray);
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .lead-thanks__socials {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lead-thanks__box--social {
    padding: 36px 20px;
  }
}

/* Отдельная страница «Спасибо за заявку» */
.thanks-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 96px;
  min-height: 60vh;
}

.thanks {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.thanks__title {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 34px;
  color: var(--navy);
}

.thanks__text {
  margin: 12px auto 0;
  max-width: 520px;
  color: var(--gray);
  font-size: 16px;
  line-height: 1.5;
}

.thanks__socials {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.thanks__note {
  margin-top: 36px;
  color: var(--gray);
  font-size: 11px;
  line-height: 1.5;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .thanks-page {
    padding: 56px 18px 72px;
  }
  .thanks__title {
    font-size: 26px;
  }
  .thanks__socials {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Уведомление об использовании cookies */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  margin: 0 auto;
  max-width: 1080px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: var(--white);
  border: 1px solid var(--orange-soft-2);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(28, 36, 64, 0.16);
  transform: translateY(140%);
  opacity: 0;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__text {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray);
}

.cookie-banner__text a {
  color: var(--orange);
  text-decoration: underline;
}

.cookie-banner__btn {
  flex: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--white);
  font-family: "Gilroy", sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s ease;
}

.cookie-banner__btn:hover {
  background: var(--orange-dark);
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px;
  }

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