/* Цвета по референсу */
:root {
  --color-header-bg: #d2ccb6;
  --color-hero-bg: #fdfcf5;
  --color-accent: #e1ff26;
  --color-text: #0e2a22;
  --color-shadow: #0e2a22;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --container: min(1200px, calc(100% - 48px));
  /* На всю ширину экрана в пределах padding у .header */
  --header-container: none;
  --header-pad-x: 24px;
  --header-pad-y: 20px;
  /* Карусель проектов */
  --color-carousel-bg: #0a4725;
  --color-carousel-lime: #d4ff00;
}

html {
  scroll-behavior: smooth;
}

html.preloader-active {
  overflow: hidden;
}

/* ——— Прелоадер ——— */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 110% 85% at 50% 32%, #1a4a35 0%, #0f301c 45%, #060d0a 100%);
  transition:
    opacity 0.75s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.75s cubic-bezier(0.33, 1, 0.68, 1),
    visibility 0.75s step-end;
}

.preloader.preloader--done {
  opacity: 0;
  transform: scale(1.015);
  visibility: hidden;
  pointer-events: none;
}

.preloader__glow {
  position: absolute;
  width: min(92vmin, 560px);
  height: min(92vmin, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 255, 0, 0.14) 0%, rgba(15, 48, 28, 0) 68%);
  animation: preloader-pulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes preloader-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.preloader__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.preloader__rings {
  position: relative;
  width: 76px;
  height: 76px;
}

.preloader__ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
}

.preloader__ring--outer {
  inset: 0;
  border-top-color: #d4ff00;
  border-right-color: rgba(212, 255, 0, 0.22);
  animation: preloader-rotate 1.05s cubic-bezier(0.55, 0.1, 0.45, 0.9) infinite;
}

.preloader__ring--inner {
  inset: 11px;
  border-bottom-color: #d4ff00;
  border-left-color: rgba(212, 255, 0, 0.18);
  animation: preloader-rotate-reverse 0.88s cubic-bezier(0.55, 0.1, 0.45, 0.9) infinite;
}

@keyframes preloader-rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes preloader-rotate-reverse {
  to {
    transform: rotate(-360deg);
  }
}

.preloader__brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.preloader__logo-wrap {
  margin: 0;
  line-height: 0;
  opacity: 0;
  animation: preloader-line-in 0.85s cubic-bezier(0.34, 1.15, 0.64, 1) forwards;
}

.preloader__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: clamp(140px, 28vmin, 220px);
  filter: drop-shadow(0 0 32px rgba(212, 255, 0, 0.22));
}

.preloader__tagline {
  margin: 0;
  max-width: min(22rem, 90vw);
  font-family: var(--font-sans);
  font-size: clamp(0.8125rem, 2.2vw, 1rem);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: rgba(226, 255, 180, 0.92);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: preloader-tagline-in 0.8s cubic-bezier(0.34, 1.1, 0.64, 1) 0.38s forwards;
}

@keyframes preloader-tagline-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes preloader-line-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.preloader__bar {
  width: min(220px, 48vw);
  height: 3px;
  background: rgba(212, 255, 0, 0.14);
  border-radius: 3px;
  overflow: hidden;
}

.preloader__bar-fill {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 255, 0, 0.5) 25%,
    #e8ff5a 50%,
    rgba(212, 255, 0, 0.5) 75%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: preloader-shimmer 1.25s ease-in-out infinite;
}

@keyframes preloader-shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__glow,
  .preloader__ring--outer,
  .preloader__ring--inner,
  .preloader__bar-fill {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .preloader__logo-wrap {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .preloader__logo {
    filter: drop-shadow(0 0 20px rgba(212, 255, 0, 0.15));
  }

  .preloader__tagline {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .preloader {
    transition-duration: 0.2s;
  }
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-hero-bg);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ——— Header ——— */
.header {
  background: var(--color-header-bg);
  padding: var(--header-pad-y) var(--header-pad-x) 18px;
}

.header__inner {
  max-width: var(--header-container);
  width: 100%;
  margin: 0 auto;
}

.header__row--top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.logo {
  display: block;
  line-height: 0;
}

.logo__img {
  display: block;
  width: auto;
  height: auto;
  max-width: clamp(120px, 14vw, 180px);
}

.header__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px 20px;
  padding-top: 4px;
}

.header__phone {
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
}

.header__phone:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header__nav {
  padding-bottom: 4px;
}

.header__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.header__menu a {
  font-size: 18px;
  font-weight: 400;
  color: #0a4725;
  text-transform: lowercase;
}

.header__menu a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-transform: lowercase;
  cursor: pointer;
  border: 2px solid var(--color-shadow);
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: 4px 4px 0 0 var(--color-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 0 var(--color-shadow);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 0 var(--color-shadow);
}

.btn--header {
  padding: 10px 18px;
  text-transform: none;
}

/* ——— Hero (референс: одна строка заголовок, абзац ~2 строки, воздух) ——— */
.hero {
  background: var(--color-hero-bg);
  padding: clamp(64px, 9vw, 104px) var(--header-pad-x) clamp(88px, 12vw, 140px);
}

.hero__inner {
  max-width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.hero__title {
  margin: 0 0 40px;
  max-width: 100%;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-transform: none;
  color: #0a4725;
}

.hero__text {
  margin: 0 0 2.75rem;
  max-width: 760px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 300;
  color: #0a4725;
}

.btn--hero {
  margin-top: 0;
  padding: 1rem 1.75rem;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
}

/* ——— Карусель проектов ——— */
.projects-carousel {
  background-color: var(--color-carousel-bg);
  padding-top: 90px;
  padding-bottom: 90px;
}

.projects-carousel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  max-width: min(1240px, calc(100% - 48px));
  margin: 0 auto clamp(1.75rem, 3vw, 2.25rem);
  padding: 0 var(--header-pad-x);
}

.projects-carousel__title {
  margin: 0;
  flex: 1 1 16rem;
  max-width: 52rem;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-carousel-lime);
}

@media (max-width: 640px) {
  .projects-carousel__title {
    font-size: clamp(24px, 7vw, 42px);
  }
}

.projects-carousel__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-carousel-lime);
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.carousel-btn:hover {
  filter: brightness(1.05);
}

.carousel-btn:active {
  transform: scale(0.96);
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--color-carousel-lime);
  outline-offset: 3px;
}

.carousel-btn__icon {
  display: block;
  color: var(--color-text);
}

.projects-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.projects-carousel__viewport:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(212, 255, 0, 0.35);
}

.projects-carousel__track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 var(--header-pad-x) 6px;
  align-items: flex-end;
}

.projects-carousel__item {
  flex: 0 0 auto;
  width: min(280px, 72vw);
  aspect-ratio: 360 / 520;
  max-height: min(520px, 58vh);
}

.projects-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Форма захвата (100vh, колонки) ——— */
.lead-form {
  --lead-bg: #f9f8f3;
  --lead-green: #0e2a22;
  --lead-muted: #6b6b6b;
  --lead-input-rule: #c8c8c8;
  --lead-btn-bg: #e9ff32;
  min-height: 100vh;
  display: flex;
}

.lead-form__inner {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: 100vh;
}

.lead-form__col {
  flex: 1 1 50%;
  min-width: 0;
}

.lead-form__col--content {
  background: var(--lead-bg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(48px, 8vw, 100px);
}

.lead-form__wrap {
  width: 100%;
  max-width: 420px;
}

.lead-form__title {
  margin: 0;
  padding-bottom: 20px;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0a4725;
}

.lead-form__descr {
  margin: 0;
  padding-bottom: 30px;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 300;
  color: #0a4725;
}

.lead-form__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lead-form__field {
  margin-bottom: 1.25rem;
}

.lead-form__input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 60px;
  padding: 0 1rem;
  font: inherit;
  font-size: 16px;
  line-height: 1.33;
  color: #0a4725;
  border: 1px solid #b3b3b3;
  background: transparent;
  border-radius: 0;
}

.lead-form__input::placeholder {
  color: #9a9a9a;
}

.lead-form__input:focus {
  outline: none;
  border-color: #0a4725;
}

.lead-form__input:focus-visible {
  outline: 2px solid #0a4725;
  outline-offset: 4px;
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.25rem 0 1.75rem;
  cursor: pointer;
}

.lead-form__checkbox {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--lead-green);
  cursor: pointer;
}

.lead-form__consent-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  color: #0a4725;
}

.lead-form__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-form__link:hover {
  color: #0e2a22;
}

.lead-form__submit {
  align-self: flex-start;
  padding: 1rem 1.75rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--lead-green);
  background: var(--lead-btn-bg);
  border: 2px solid var(--lead-green);
  border-radius: 0;
  box-shadow: 4px 4px 0 0 var(--lead-green);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lead-form__submit:hover {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 0 var(--lead-green);
}

.lead-form__submit:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 0 var(--lead-green);
}

.lead-form__submit:focus-visible {
  outline: 2px solid var(--lead-green);
  outline-offset: 3px;
}

.lead-form__success {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: #0a4725;
  background: rgba(233, 255, 50, 0.35);
  border: 1px solid #0a4725;
}

.lead-form__success[hidden] {
  display: none !important;
}

.lead-form__col--visual {
  background-color: #2a3428;
  background-image: url("../images/form-fon.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 50vh;
}

@media (max-width: 900px) {
  .lead-form__inner {
    flex-direction: column;
    min-height: 100vh;
  }

  .lead-form__col--visual {
    order: -1;
    min-height: 42vh;
    flex: 0 0 auto;
  }

  .lead-form__col--content {
    flex: 1 1 auto;
    padding: clamp(40px, 8vw, 72px) var(--header-pad-x);
  }

  .lead-form__wrap {
    max-width: none;
  }
}

/* ——— Секция «7 шагов» ——— */
.steps-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(48px, 8vh, 100px) var(--header-pad-x);
  background-color: #0a4725;
  color: #fff;
}

.steps-section__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.steps-section__title {
  margin: 0 0 105px;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.23;
  text-align: center;
  text-transform: lowercase;
  color: #ecff1e;
  letter-spacing: -0.02em;
}

.steps-section__board {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.75rem);
}

.steps-row {
  --step-circle: 48px;
  --step-line-y: calc(var(--step-circle) / 2);
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  position: relative;
  z-index: 0;
}

.steps-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.steps-row--4::before {
  content: "";
  position: absolute;
  top: var(--step-line-y);
  left: 12.5%;
  width: 75%;
  height: 1px;
  background: rgba(255, 255, 255, 0.92);
  z-index: 0;
  pointer-events: none;
}

.steps-row--3::before {
  content: "";
  position: absolute;
  top: var(--step-line-y);
  left: 12.5%;
  width: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.92);
  z-index: 0;
  pointer-events: none;
}

.step {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  text-transform: lowercase;
}

.step__top {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  min-height: var(--step-circle);
  align-items: center;
}

.step__circle {
  width: var(--step-circle);
  height: var(--step-circle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
}

.step__title {
  margin: 20px 0 0;
  overflow-wrap: break-word;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #ecff1e;
}

.step__descr {
  margin: 16px auto 0;
  overflow-wrap: break-word;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
  color: #ecff1e;
  max-width: 36ch;
}

@media (max-width: 960px) {
  .steps-row--4,
  .steps-row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-row--4::before,
  .steps-row--3::before {
    display: none;
  }

  .step {
    text-align: left;
  }

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

  .step__descr {
    margin-left: 0;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .steps-row--4,
  .steps-row--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ——— Контакты: карта + панель ——— */
.contacts-split {
  min-height: 100vh;
  display: flex;
}

.contacts-split__inner {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: 100vh;
}

.contacts-split__map {
  flex: 1 1 50%;
  min-width: 0;
  min-height: 50vh;
  background: #e5e5e1;
  position: relative;
}

.contacts-split__map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contacts-split__panel {
  flex: 1 1 50%;
  min-width: 0;
  background-color: #f9f7f2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(48px, 8vw, 96px) clamp(32px, 12%, 120px);
}

.contacts-split__wrap {
  width: 100%;
  max-width: 320px;
}

.contacts-split__title {
  margin: 0 0 45px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -0.02em;
  color: #0a4725;
}

.contacts-split__phone {
  margin: 0 0 30px;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 300;
  color: #0a4725;
}

.contacts-split__phone-link {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  text-decoration: none;
}

.contacts-split__phone-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contacts-split__address {
  margin: 32px 0 1rem;
  font-size: 16px;
  line-height: 1.55;
  font-style: normal;
  font-weight: 300;
  color: #0a4725;
}

.contacts-split__email {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  color: #0a4725;
}

.contacts-split__email-link {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contacts-split__email-link:hover {
  color: #0e2a22;
}

@media (max-width: 900px) {
  .contacts-split__inner {
    flex-direction: column;
    min-height: 100vh;
  }

  .contacts-split__map {
    flex: 0 0 auto;
    min-height: 42vh;
    order: -1;
  }

  .contacts-split__panel {
    flex: 1 1 auto;
    padding: clamp(40px, 8vw, 72px) var(--header-pad-x);
  }

  .contacts-split__wrap {
    max-width: none;
  }
}

/* ——— Юридические страницы ——— */
body.page-legal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-legal .legal-page {
  flex: 1 0 auto;
}

.legal-page {
  background: #fff;
  padding: clamp(56px, 10vw, 120px) var(--header-pad-x) clamp(64px, 12vw, 140px);
  box-sizing: border-box;
}

.legal-page__inner {
  max-width: min(42rem, 100%);
  margin: 0 auto;
}

.page-legal--policy .legal-page__inner {
  max-width: min(50rem, 100%);
}

.legal-page__title {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.23;
  text-align: center;
  text-transform: none;
  color: #000000;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .legal-page__title {
    font-size: clamp(1.5rem, 5.5vw, 38px);
  }
}

.legal-page__body {
  text-transform: none;
}

.legal-page__text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: #1a1a1a;
}

.legal-page__text--mt {
  margin-top: 1.25rem;
}

.legal-page__text--mt-sm {
  margin-top: 0.65rem;
}

.legal-page__text--label {
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.legal-page__text--label:first-child {
  margin-top: 0;
}

.legal-page__h2 {
  margin: 2.25rem 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: #000000;
}

.legal-page__h2:first-of-type {
  margin-top: 0.5rem;
}

.legal-page__purpose-block {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e8e6e1;
}

.legal-page__purpose-block:first-of-type {
  margin-top: 0.75rem;
}

.legal-page__list--dense {
  margin-top: 0.5rem;
}

.legal-page__list--dense li {
  margin-bottom: 0.2rem;
}

.legal-page__text a {
  color: #0a4725;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__text a:hover {
  color: #0e2a22;
}

.legal-page__list {
  margin: 1.35rem 0 0;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #1a1a1a;
  text-transform: lowercase;
  list-style: disc;
}

.legal-page__list + .legal-page__list {
  margin-top: 1rem;
}

.legal-page__list li {
  margin-bottom: 0.35rem;
  padding-left: 0.15rem;
}

.legal-page__list li::marker {
  color: #0a4725;
}

/* ——— Подвал ——— */
.site-footer {
  background-color: #0a4725;
  color: #ecff1e;
  padding: clamp(1.75rem, 4vw, 2.5rem) var(--header-pad-x);
  text-transform: lowercase;
  font-size: 0.9375rem;
}

.site-footer__inner {
  max-width: var(--header-container);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.site-footer__start {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.site-footer__logo.logo {
  line-height: 0;
}

.site-footer__logo .logo__img {
  max-width: clamp(100px, 12vw, 160px);
}

.site-footer__copy {
  margin: 0;
  font-weight: 500;
  color: #ecff1e;
}

.site-footer__brand {
  text-transform: none;
  font-weight: 600;
}

.site-footer__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  flex: 1 1 auto;
  justify-content: center;
  order: 0;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
}

.site-footer__link {
  font-weight: 600;
  color: #ecff1e;
  text-decoration: none;
}

.site-footer__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  margin-top: 20px;
}

.site-footer__legal-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #ecff1e;
  text-decoration: none;
  opacity: 0.95;
}

.site-footer__legal-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #ecff1e;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__top:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__top-icon {
  font-size: 1.1em;
  line-height: 1;
}

@media (max-width: 720px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .site-footer__start {
    align-items: center;
  }

  .site-footer__copy {
    text-align: center;
  }

  .site-footer__top {
    justify-content: center;
  }
}

/* ——— Mobile ——— */
@media (max-width: 768px) {
  .projects-carousel__head {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-carousel__nav {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .header__row--top {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 16px;
  }

  .header__aside {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }

  .btn--header {
    width: 100%;
    max-width: 280px;
  }

  .btn--hero {
    width: 100%;
    max-width: 360px;
  }
}

/* ——— Квиз (модальное окно) ——— */
.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 4vh, 48px) 20px 32px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.quiz-modal[hidden] {
  display: none !important;
}

.quiz-modal.is-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

body.quiz-modal-open {
  overflow: hidden;
}

.quiz-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 32, 22, 0.62);
  z-index: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.quiz-modal__shell {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.quiz-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #0a4725;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.quiz-modal__close:hover {
  opacity: 0.85;
  transform: scale(1.08);
}

.quiz-modal__close:focus-visible {
  outline: 2px solid #ecff1e;
  outline-offset: 3px;
}

.quiz-modal__panel {
  width: 100%;
  background: #fff;
  border-radius: 0;
  padding: clamp(28px, 5vw, 40px) clamp(22px, 4vw, 36px) clamp(22px, 4vw, 28px);
  box-sizing: border-box;
}

.quiz-modal__form {
  margin: 0;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

.quiz-step__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw + 0.5rem, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #0a4725;
  letter-spacing: -0.02em;
}

.quiz-step__subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 400;
  color: #6b6b6b;
  max-width: 48ch;
}

.quiz-step__hint {
  margin: -0.75rem 0 1rem;
  font-size: 0.8125rem;
  color: #0a4725;
  opacity: 0.9;
}

.quiz-step__error {
  margin: 0.85rem 0 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #b42318;
}

.quiz-step__error[hidden] {
  display: none !important;
}

.quiz-step__choices--error {
  outline: 2px solid #b42318;
  outline-offset: 4px;
  border-radius: 10px;
}

.quiz-step__columns {
  display: flex;
  gap: 1rem 1.25rem;
}

.quiz-step__col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quiz-step__grid {
  display: grid;
  gap: 0.65rem;
}

.quiz-step__grid--budget {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* пятый пункт — в левой колонке под «7–10 млн ₽» */
.quiz-step__grid--budget .quiz-option:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
}

.quiz-step__grid--districts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .quiz-step__columns {
    flex-direction: column;
  }

  .quiz-step__grid--budget,
  .quiz-step__grid--districts {
    grid-template-columns: 1fr;
  }

  .quiz-step__grid--budget .quiz-option:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 1rem;
  background: #f5f0e8;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.35;
  font-weight: 500;
  color: #0a4725;
  text-transform: lowercase;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}

.quiz-option:hover {
  background: #ede8df;
}

.quiz-option:focus-within {
  outline: 2px solid #0a4725;
  outline-offset: 2px;
}

.quiz-option__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.quiz-option__indicator {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #0a4725;
  border-radius: 50%;
  background: #fff;
  position: relative;
  box-sizing: border-box;
}

.quiz-option__input:checked + .quiz-option__indicator {
  background: #0a4725;
  box-shadow: inset 0 0 0 3px #fff;
}

.quiz-option__indicator--checkbox {
  border-radius: 4px;
}

.quiz-option__input:checked + .quiz-option__indicator--checkbox {
  background: #0a4725;
  box-shadow: none;
}

.quiz-option__input:checked + .quiz-option__indicator--checkbox::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.quiz-option__text {
  text-align: left;
}

.quiz-option:has(.quiz-option__input:checked) {
  border-color: rgba(10, 71, 37, 0.35);
  background: #ebe4d8;
}

.quiz-step__fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-field {
  box-sizing: border-box;
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: #0a4725;
  background: #f5f0e8;
  border: 1px solid rgba(10, 71, 37, 0.2);
  border-radius: 8px;
}

.quiz-field::placeholder {
  color: #8a8a8a;
  text-transform: lowercase;
}

.quiz-field:focus {
  outline: none;
  border-color: #0a4725;
}

.quiz-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.25rem;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #0a4725;
  font-weight: 400;
}

.quiz-consent__checkbox {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
  accent-color: #0a4725;
}

.quiz-consent__link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quiz-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}

.quiz-modal__footer.is-hidden {
  display: none;
}

.quiz-modal__counter {
  margin: 0;
  font-size: 0.8125rem;
  color: #8a8a8a;
  font-weight: 500;
}

.quiz-modal__counter-label {
  margin-right: 0.25rem;
}

.quiz-modal__nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.quiz-nav-btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Атрибут [hidden] слабее display у .quiz-nav-btn — явно скрываем «Далее» / «Получить подборку» */
.quiz-modal .quiz-nav-btn[hidden] {
  display: none !important;
}

.quiz-nav-btn:disabled {
  cursor: not-allowed;
}

.quiz-nav-btn--back {
  width: 48px;
  height: 48px;
  padding: 0;
  background: #ecff1e;
  color: #0a4725;
  font-size: 1.25rem;
  border-radius: 0;
  border: 2px solid #0a4725;
  box-shadow: 5px 5px 0 0 #0a4725;
}

.quiz-nav-btn--back:not(:disabled):hover {
  filter: brightness(1.02);
}

.quiz-nav-btn--back:disabled {
  opacity: 0.42;
  box-shadow: 3px 3px 0 0 rgba(10, 71, 37, 0.35);
  transform: none;
}

.quiz-nav-btn--next,
.quiz-nav-btn--submit {
  padding: 0.75rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: none;
  color: #0a4725;
  background: #ecff1e;
  border: 2px solid #0a4725;
  border-radius: 0;
  box-shadow: 5px 5px 0 0 #0a4725;
}

.quiz-nav-btn--next:hover:not(:disabled),
.quiz-nav-btn--submit:hover:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 4px 4px 0 0 #0a4725;
}

.quiz-nav-btn--next:active:not(:disabled),
.quiz-nav-btn--submit:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 0 #0a4725;
}

.quiz-nav-btn:focus-visible {
  outline: 2px solid #0a4725;
  outline-offset: 2px;
}

.quiz-step--success .quiz-step__title {
  margin-bottom: 0.75rem;
}

.quiz-modal__done {
  margin-top: 1.25rem;
}

/* ——— Простые внутренние страницы ——— */
.site-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  box-sizing: border-box;
}

.site-page__title {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a4725;
}

.site-page__content {
  line-height: 1.6;
}
