@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c: #f9cdbb; /* персиковый — главный акцент */
  --c2: #f5bba5; /* светлее */
  --c3: #e8a890; /* темнее */
  --ink: #2d2d3a; /* почти чёрный (тёплый) */
  --ink2: #2d2d3a;
  --mid: #6b6158;
  --pale: #f7f4f0;
  --white: #fdfcfb;
  --border: #e8e2da;
  --hero-bg: #0a0807;
  --font-h: "Grafita", sans-serif;
  --font-b: "Steppe", sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0, 1.2);
  --ease2: cubic-bezier(0.16, 1, 0.3, 1);
}

@font-face {
  font-family: "Grafita";
  src: url("../fonts/Grafita-Normal.woff2") format("woff2"), url("../fonts/Grafita-Normal.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Steppe";
  src: url("../fonts/Steppe-Regular.woff2") format("woff2"), url("../fonts/Steppe-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Steppe";
  src: url("../fonts/Steppe-Medium.woff2") format("woff2"), url("../fonts/Steppe-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Steppe";
  src: url("../fonts/Steppe-Bold.woff2") format("woff2"), url("../fonts/Steppe-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue Pro";
  src: url("../fonts/BebasNeuePro-Regular.woff2") format("woff2"), url("../fonts/BebasNeuePro-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Proxima Nova";
  src: url("../fonts/ProximaNova-Regular.woff2") format("woff2"), url("../fonts/ProximaNova-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-margin-top: 100px;
}

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

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease2), transform 0.7s var(--ease2);
}
.reveal--balance {
  text-wrap: balance;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  transition: background 0.3s, box-shadow 0.3s, height 0.3s;
}
#nav.solid {
  background: rgba(253, 252, 251, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  height: 56px;
}
#nav.solid .nav-links a {
  color: var(--mid);
}
#nav.solid .nav-links a:hover {
  color: var(--ink);
}
#nav.solid .nav-address {
  color: var(--mid);
}
#nav.solid .nav-phone {
  background: var(--ink);
  color: var(--white);
}
#nav.solid .burger span {
  background: var(--ink);
}

.nav-logo {
  text-decoration: none;
  height: 24px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
@media (max-width: 576px) {
  .nav-logo {
    height: 20px;
  }
}
.nav-logo img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}
.nav-logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover {
  color: white;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-address {
  font-family: var(--font-b);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.3;
  max-width: 210px;
  transition: color 0.3s;
}
@media (max-width: 1024px) {
  .nav-address {
    display: none;
  }
}

.nav-phone {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.2s;
  background: var(--c);
  padding: 0 20px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-phone:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--hero-bg);
}
@media screen and (min-height: 900px) {
  #hero {
    height: 100vh;
  }
}
@media (max-width: 576px) {
  #hero {
    height: auto;
    min-height: 100svh;
    padding-top: 100px;
  }
}

.hero-photo {
  position: absolute;
  inset: 0;
  /* Использовано изображение с Unsplash вместо локального assets/bg1.jpg */
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center 40%;
  transform-origin: center center;
  will-change: transform;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(206.74deg, rgba(10, 8, 7, 0.2) 22.3%, rgba(10, 8, 7, 0.1) 49%, rgba(10, 8, 7, 0.65) 72.3%, rgba(10, 8, 7, 0.95) 88.9%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 80px 80px 160px;
  max-width: 1087px;
}
@media (max-width: 1024px) {
  .hero-content {
    padding-left: 80px;
    max-width: 100%;
  }
}
@media (max-width: 576px) {
  .hero-content {
    padding: 0 20px 48px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 8, 7, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(249, 205, 187, 0.5);
  color: var(--c);
  border-radius: 100px;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  margin-bottom: 48px;
  animation: fadeIn 0.8s 0.2s both;
}

.hero-title {
  font-family: var(--font-h);
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 48px;
  animation: fadeUp 0.9s 0.3s both;
}
.hero-title span {
  color: var(--c);
}

.hero-sub {
  font-family: var(--font-b);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 48px;
  max-width: 700px;
  line-height: 1.5;
  animation: fadeUp 0.9s 0.45s both;
}

.hero-actions {
  display: flex;
  gap: 24px;
  animation: fadeUp 0.9s 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 0 28px;
  height: 55px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--c2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249, 205, 187, 0.4);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

#hero .btn {
  height: 62px;
  padding: 0 32px;
  font-size: 18px;
}

.hero-stats {
  position: absolute;
  right: 80px;
  bottom: 72px;
  z-index: 2;
  display: flex;
  gap: clamp(32px, 9vw, 140px);
  animation: fadeIn 1s 0.8s both;
}

.hero-stat-val {
  font-family: var(--font-h);
  font-size: 36px;
  font-weight: 400;
  color: var(--c);
  line-height: 1;
}
.hero-stat-val em {
  color: var(--c);
  font-style: normal;
}

.hero-stat-label {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-top: 6px;
}

/* ── SECTIONS COMMON ── */
.section {
  padding: 96px 80px;
}

.section-sm {
  padding: 72px 80px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(45, 45, 58, 0.5);
  margin-bottom: 16px;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--c);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-h);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  opacity: 1;
}
.section-title em {
  color: var(--c);
  font-style: normal;
}

.section-desc {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 520px;
  margin-top: 16px;
}

/* ── ABOUT ── */
#about {
  background: white;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 1024px) {
  #about {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 40px;
  }
}
@media (max-width: 576px) {
  #about {
    padding: 48px 20px;
    gap: 32px;
  }
}

.about-media {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 340px auto;
  gap: 12px;
  height: 641px;
}
@media (max-width: 1024px) {
  .about-media {
    height: auto;
    grid-template-rows: 260px 200px;
  }
}
@media (max-width: 576px) {
  .about-media {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 160px;
  }
}

.about-photo {
  border-radius: 8px;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-photo--main {
  grid-row: 1/3;
}
.about-photo--main img {
  object-position: left;
}
@media (max-width: 576px) {
  .about-photo--main {
    grid-row: 1/2;
    grid-column: 1/3;
  }
}

.about-content {
  padding-top: 24px;
}
@media (max-width: 1024px) {
  .about-content {
    padding-top: 0;
  }
}

.about-p {
  font-family: var(--font-b);
  font-size: 16px;
  color: rgba(45, 45, 58, 0.6);
  line-height: 1.75;
  margin-top: 24px;
}
.about-p:first-of-type {
  margin-top: 32px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 16px;
  margin-top: 48px;
}
@media (max-width: 576px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 32px;
  }
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-stat-icon {
  width: 64px;
  height: 64px;
  display: block;
  flex-shrink: 0;
}

.about-stat-val {
  font-family: var(--font-h);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

/* ── ADVANTAGES / ПРЕИМУЩЕСТВА ── */
#advantages {
  background: white;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 1024px) {
  #advantages {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 40px;
  }
}
@media (max-width: 576px) {
  #advantages {
    padding: 48px 20px;
    gap: 32px;
  }
}

.advantages-photo {
  border-radius: 8px;
  overflow: hidden;
  height: 686px;
  position: sticky;
  top: 80px;
}
.advantages-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 1024px) {
  .advantages-photo {
    height: 480px;
    position: static;
  }
}
@media (max-width: 576px) {
  .advantages-photo {
    height: 280px;
  }
}

.adv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.adv-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.adv-item span {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}
@media (max-width: 576px) {
  .adv-item span {
    font-size: 14px;
  }
}

.adv-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.adv-icon--box {
  background: var(--c);
  border-radius: 12px;
}
.adv-icon--box img {
  width: 22px;
  height: 22px;
}

@keyframes quizFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes quizShake {
  0%, 100% {
    transform: translateX(0);
  }
  18% {
    transform: translateX(-7px);
  }
  36% {
    transform: translateX(7px);
  }
  54% {
    transform: translateX(-4px);
  }
  72% {
    transform: translateX(4px);
  }
}
/* ── QUIZ ── */
#quiz {
  background: var(--c);
  padding: 80px;
}
@media (max-width: 1024px) {
  #quiz {
    padding: 64px 40px;
  }
}
@media (max-width: 576px) {
  #quiz {
    padding: 48px 20px;
  }
}

.quiz-headline {
  font-family: var(--font-h);
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  max-width: 960px;
}

.quiz-card {
  background: white;
  border-radius: 24px;
  padding: 64px 80px 80px;
  position: relative;
}
@media (max-width: 1024px) {
  .quiz-card {
    padding: 48px 40px 56px;
  }
}
@media (max-width: 576px) {
  .quiz-card {
    padding: 32px 20px 40px;
    border-radius: 16px;
  }
}

.quiz-progress-track {
  height: 7px;
  background: rgba(249, 205, 187, 0.3);
  border-radius: 4px;
  margin-bottom: 64px;
  overflow: hidden;
}
@media (max-width: 576px) {
  .quiz-progress-track {
    margin-bottom: 40px;
  }
}

.quiz-progress-fill {
  height: 100%;
  background: var(--c);
  border-radius: 4px;
  width: 20%;
  transition: width 0.5s var(--ease2);
}

.quiz-question {
  font-family: var(--font-h);
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}
.quiz-question--center {
  text-align: center;
}
@media (max-width: 576px) {
  .quiz-question {
    margin-bottom: 28px;
  }
}

.quiz-photo-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}
@media (max-width: 576px) {
  .quiz-photo-options {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
  }
}

.quiz-photo-opt {
  cursor: pointer;
  user-select: none;
  position: relative;
}
.quiz-photo-opt input[type=radio] {
  display: none;
}
.quiz-photo-opt__img {
  height: 294px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.quiz-photo-opt__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease2);
}
@media (max-width: 576px) {
  .quiz-photo-opt__img {
    height: 200px;
    border-radius: 16px;
  }
}
.quiz-photo-opt__check {
  position: absolute;
  top: -10px;
  left: 0;
  width: 32px;
  height: 32px;
  background: var(--c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.quiz-photo-opt__label {
  display: block;
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 12px;
  letter-spacing: -0.02em;
}
.quiz-photo-opt.selected .quiz-photo-opt__img {
  border-color: var(--c);
}
.quiz-photo-opt.selected .quiz-photo-opt__img img {
  transform: scale(1.03);
}
.quiz-photo-opt.selected .quiz-photo-opt__check {
  opacity: 1;
  transform: scale(1);
  top: 12px;
  left: 12px;
}

.quiz-radio-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
@media (max-width: 576px) {
  .quiz-radio-options {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 32px;
  }
}

.quiz-radio-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.quiz-radio-opt input[type=radio] {
  display: none;
}
@media (max-width: 576px) {
  .quiz-radio-opt {
    padding: 16px 20px;
  }
}

.quiz-radio-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
}
.quiz-radio-btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--c);
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}

.quiz-radio-label {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
@media (max-width: 576px) {
  .quiz-radio-label {
    font-size: 16px;
  }
}

.quiz-radio-opt.selected {
  border-color: var(--c);
  background: rgba(249, 205, 187, 0.12);
}
.quiz-radio-opt.selected .quiz-radio-btn {
  border-color: var(--c);
}
.quiz-radio-opt.selected .quiz-radio-btn::after {
  transform: scale(1);
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.quiz-counter {
  font-family: var(--font-b);
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: -0.01em;
}

.quiz-nav-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-btn-back {
  width: 65px;
  height: 69px;
  border-radius: 30px;
  border: 1px solid rgba(26, 26, 26, 0.4);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  flex-shrink: 0;
}
@media (max-width: 576px) {
  .quiz-btn-back {
    width: 48px;
    height: 48px;
  }
}
.quiz-btn-back:disabled {
  opacity: 0.3;
  cursor: default;
}
.quiz-btn-back:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.05);
}

.quiz-btn-next {
  height: 69px;
  padding: 0 28px;
  border-radius: 30px;
  background: var(--c);
  border: none;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, opacity 0.2s;
}
@media (max-width: 576px) {
  .quiz-btn-next {
    height: 48px;
    padding-left: 16px;
    padding-right: 16px;
  }
}
.quiz-btn-next:hover {
  background: var(--c2);
}
.quiz-btn-next--disabled {
  opacity: 0.45;
  cursor: default;
}

.quiz-shake {
  animation: quizShake 0.45s ease;
  outline: 2px solid rgba(249, 205, 187, 0.7);
  border-radius: 12px;
}

.quiz-step {
  display: none;
}
.quiz-step.active {
  display: block;
  animation: quizFadeIn 0.35s var(--ease2) both;
}

.quiz-step--form.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-form-desc {
  text-align: center;
  font-family: var(--font-b);
  font-size: 16px;
  color: rgba(45, 45, 58, 0.6);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 36px;
}

.quiz-form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quiz-form input[type=text],
.quiz-form input[type=tel] {
  width: 100%;
  height: 60px;
  border: 1px solid rgba(45, 45, 58, 0.2);
  border-radius: 6px;
  background: rgba(45, 45, 58, 0.03);
  padding: 0 20px;
  font-family: var(--font-b);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.quiz-form input[type=text]::placeholder,
.quiz-form input[type=tel]::placeholder {
  color: rgba(45, 45, 58, 0.35);
}
.quiz-form input[type=text]:focus,
.quiz-form input[type=tel]:focus {
  border-color: var(--ink);
}

.quiz-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.quiz-checkbox input {
  display: none;
}
.quiz-checkbox__box {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(45, 45, 58, 0.35);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.quiz-checkbox__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 8px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
  opacity: 0;
}
input:checked + .quiz-checkbox__box {
  background: var(--ink);
  border-color: var(--ink);
}
input:checked + .quiz-checkbox__box::after {
  opacity: 1;
}
.quiz-checkbox--error .quiz-checkbox__box {
  border-color: #e03c3c;
  background: rgba(224, 60, 60, 0.07);
  animation: quizShake 0.4s ease;
}
.quiz-checkbox--error .quiz-checkbox__text {
  color: #e03c3c;
}
.quiz-checkbox__text {
  font-family: var(--font-b);
  font-size: 12px;
  color: rgba(45, 45, 58, 0.55);
  line-height: 1.4;
  transition: color 0.2s;
}
.quiz-checkbox__text a {
  color: inherit;
  text-decoration: underline;
}

.quiz-submit {
  width: 100%;
  height: 62px;
  background: var(--c);
  border: none;
  border-radius: 100px;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.2s;
}
.quiz-submit:hover {
  background: var(--c2);
  transform: translateY(-1px);
}

.quiz-gone {
  display: none !important;
}

.quiz-form-success {
  text-align: center;
  padding: 40px 0;
}
.quiz-form-success__icon {
  font-size: 40px;
  color: var(--ink);
  margin-bottom: 16px;
}
.quiz-form-success h3 {
  font-family: var(--font-h);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
.quiz-form-success p {
  font-family: var(--font-b);
  font-size: 16px;
  color: rgba(45, 45, 58, 0.6);
}

/* ── PERKS / АКЦИИ ── */
#perks {
  background: var(--white);
  padding: 80px 80px 0;
}

.section-inner {
  margin-bottom: 48px;
}
.section-inner .section-desc {
  font-size: 18px;
  color: rgba(45, 45, 58, 0.8);
  margin-top: 12px;
}

.perks-grid {
  display: flex;
  gap: 2px;
  padding-bottom: 80px;
  scrollbar-width: none;
}
@media (max-width: 1024px) {
  .perks-grid {
    overflow-x: auto;
  }
}
.perks-grid::-webkit-scrollbar {
  display: none;
}

.perk-card {
  background: var(--c);
  border-radius: 4px;
  flex-shrink: 0;
  width: 100%;
  max-width: 20%;
  min-height: 250px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}
@media (max-width: 1024px) {
  .perk-card {
    width: 286px;
    max-width: initial;
  }
}
.perk-card:hover {
  transform: translateY(-3px);
}

.perk-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  display: block;
}

.perk-title {
  font-family: var(--font-h);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 8px;
  max-width: 200px;
}

.perk-desc {
  font-family: var(--font-b);
  font-size: 14px;
  color: rgba(45, 45, 58, 0.5);
  line-height: 1.4;
  margin-top: auto;
  padding-top: 16px;
}

/* ── APARTMENTS ── */
#apartments {
  background: white;
}

.apt-tabs {
  display: flex;
  gap: 0;
  margin: 0;
  width: 100%;
  justify-content: center;
  position: relative;
}
.apt-tabs::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 7px;
  opacity: 0.2;
  background: #F9CDBB;
  left: 0;
}

.apt-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
  height: 64px;
  padding: 0 24px;
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 400;
  color: rgba(45, 45, 58, 0.5);
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  transition: color 0.2s, border-color 0.2s;
}
@media (max-width: 576px) {
  .apt-tab {
    width: auto;
    padding: 0 12px;
    font-size: 16px;
  }
}
.apt-tab.active {
  color: var(--ink);
  border-bottom: 7px solid var(--c);
}
.apt-tab:hover:not(.active) {
  color: var(--ink);
}

.apt-tab-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  opacity: 0.5;
  transition: opacity 0.2s;
}
@media (max-width: 576px) {
  .apt-tab-icon {
    width: 24px;
    height: 24px;
  }
}
.apt-tab.active .apt-tab-icon {
  opacity: 1;
}

.apt-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: start;
  margin-top: 24px;
}

.apt-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .apt-wrapper {
    grid-template-columns: 1fr;
    grid-gap: 24px 0;
  }
}

.apt-info {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 576px) {
  .apt-info .btn {
    display: none;
  }
}

.apt-footer {
  display: none;
}
@media (max-width: 576px) {
  .apt-footer {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

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

.apt-spec {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  height: 124px;
  padding: 0 31px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.apt-spec-label {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(45, 45, 58, 0.5);
}

.apt-spec-val {
  font-family: var(--font-h);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}

.apt-cta {
  align-self: flex-start;
}

.promo-box {
  background: white;
  border: 1px solid var(--border);
  border-left: 3px solid var(--c);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
}

.promo-box-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 10px;
}
@media (max-width: 576px) {
  .promo-box-title {
    font-size: 14px;
  }
}

.promo-box p {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.65;
}
@media (max-width: 576px) {
  .promo-box p {
    font-size: 15px;
  }
}

.apt-img {
  grid-column: 2;
  grid-row: 2;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f9f9f9;
}
@media (max-width: 576px) {
  .apt-img {
    aspect-ratio: 4/3 !important;
  }
}

.apt-img-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f9f9f9;
  overflow: hidden;
}
.apt-img-placeholder .apt-swiper {
  width: 100%;
  height: 100%;
  padding-bottom: 24px;
}
.apt-img-placeholder .apt-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.apt-img-placeholder .apt-swiper .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
}
.apt-img-placeholder .apt-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}
.apt-img-placeholder .apt-swiper .swiper-button-prev,
.apt-img-placeholder .apt-swiper .swiper-button-next {
  color: var(--accent);
}
.apt-img-placeholder .apt-swiper .swiper-button-prev::after,
.apt-img-placeholder .apt-swiper .swiper-button-next::after {
  font-size: 18px;
}
.apt-img-placeholder .apt-swiper .swiper-pagination-bullet-active {
  background: var(--c);
}
.apt-img-placeholder .swiper-pagination {
  display: none;
}
@media (max-width: 576px) {
  .apt-img-placeholder .swiper-pagination {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}
.apt-img-placeholder .swiper-button-next {
  right: 24px;
}
.apt-img-placeholder .swiper-button-prev {
  left: 24px;
}
.apt-img-placeholder .swiper-button-next,
.apt-img-placeholder .swiper-button-prev {
  width: 48px;
  height: 48px;
  background-color: #F9CDBB;
  border-radius: 12px;
  display: flex;
  place-content: center;
  padding: 12px;
}
@media (max-width: 576px) {
  .apt-img-placeholder .swiper-button-next,
  .apt-img-placeholder .swiper-button-prev {
    display: none;
  }
}
.apt-img-placeholder .swiper-button-next::after,
.apt-img-placeholder .swiper-button-prev::after {
  font-size: 16px;
  font-weight: bold;
}

/* ── MORTGAGE ── */
#mortgage {
  background: white;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  margin-top: 48px;
  align-items: start;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.prog-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.prog-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  color: var(--mid);
  background: none;
  font-family: var(--font-b);
  transition: all 0.15s;
}
.prog-btn.active {
  border-color: var(--c);
  color: var(--c);
  background: rgba(193, 97, 58, 0.06);
}
.prog-btn:hover:not(.active) {
  border-color: var(--ink2);
  color: var(--ink);
}

.range-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.range-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.range-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
}

.range-val {
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.range-val em {
  color: var(--c);
  font-style: normal;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  border-radius: 2px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c);
  border: 3px solid white;
  box-shadow: 0 0 0 1.5px var(--c);
  cursor: pointer;
  transition: transform 0.15s;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-result {
  background: var(--ink);
  border-radius: 12px;
  padding: 40px;
  color: white;
  position: sticky;
  top: 80px;
}

.calc-result-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}

.calc-result-amount {
  font-family: var(--font-h);
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  color: white;
  margin-bottom: 4px;
}

.calc-result-per {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 32px;
}

.calc-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.calc-row span {
  color: rgba(255, 255, 255, 0.4);
}
.calc-row strong {
  color: white;
  font-weight: 600;
}

.calc-cta {
  margin-top: 28px;
  display: block;
  text-align: center;
  background: var(--c);
  color: white;
  padding: 16px;
  border-radius: 6px;
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.calc-cta:hover {
  background: var(--c2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(193, 97, 58, 0.4);
}

/* ── INFRA ── */
#infra {
  background: var(--pale);
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.infra-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: all 0.25s var(--ease2);
}
.infra-card:hover {
  border-color: var(--c);
  box-shadow: 0 8px 32px rgba(193, 97, 58, 0.1);
  transform: translateY(-4px);
}

.infra-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--c);
}

.infra-title {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
@media (max-width: 576px) {
  .infra-title {
    font-size: 6.25vw;
  }
}

.infra-desc {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
}
@media (max-width: 576px) {
  .infra-desc {
    font-size: 4.0625vw;
  }
}

/* ── CTA SECTION ── */
#cta-section {
  background: var(--ink);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 1024px) {
  #cta-section {
    gap: 48px;
    padding: 64px 40px;
  }
}
@media (max-width: 576px) {
  #cta-section {
    grid-template-columns: 1fr;
    padding: 48px 20px;
    gap: 32px;
  }
}

.cta-left {
  padding-top: 12px;
}

.cta-title {
  font-family: var(--font-h);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (max-width: 1024px) {
  .cta-title {
    font-size: clamp(28px, 8vw, 40px);
  }
}
@media (max-width: 576px) {
  .cta-title {
    font-size: 10vw;
  }
}

.cta-desc {
  font-family: var(--font-b);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 16px;
  line-height: 1.5;
  max-width: 420px;
}
@media (max-width: 1024px) {
  .cta-desc {
    font-size: 14px;
    margin-top: 12px;
    max-width: 100%;
  }
}
@media (max-width: 576px) {
  .cta-desc {
    font-size: 4.375vw;
  }
}

.cta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 576px) {
  .cta-list {
    margin-top: 24px;
  }
}

.cta-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cta-list-item span:last-child {
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 400;
  color: white;
  line-height: 1.2;
}

.cta-list-icon {
  width: 24px;
  height: 24px;
  background: var(--c);
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FORM ── */
.form-wrap {
  background: white;
  border-radius: 12px;
  padding: 36px;
}

.form-title {
  font-family: var(--font-h);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 24px;
}
@media (max-width: 1024px) {
  .form-title {
    font-size: 22px;
    margin-bottom: 18px;
  }
}
@media (max-width: 576px) {
  .form-title {
    font-size: 7.5vw;
  }
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(45, 45, 58, 0.55);
}
.form-field input,
.form-field select {
  background: white;
  border: 1px solid rgba(45, 45, 58, 0.2);
  color: var(--ink);
  padding: 13px 16px;
  font-family: var(--font-b);
  font-size: 15px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--ink);
}
.form-field input::placeholder {
  color: rgba(45, 45, 58, 0.35);
}
.form-field select option {
  background: white;
  color: var(--ink);
}

.form-submit {
  width: 100%;
  background: var(--c);
  color: var(--ink);
  border: none;
  padding: 0 16px;
  height: 55px;
  border-radius: 100px;
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.form-submit:hover {
  background: var(--c2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249, 205, 187, 0.4);
}
@media (max-width: 576px) {
  .form-submit {
    font-size: 5.625vw;
  }
}

.form-legal {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.form-field {
  position: relative;
}

.form-field__error {
  position: absolute;
  bottom: -18px;
  left: 0;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  color: #ff7070;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  background-color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ff7070;
}

.form-field--error input {
  border-color: #ff5252 !important;
}

.form-field--error .form-field__error {
  opacity: 1;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.form-checkbox input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(45, 45, 58, 0.35);
  border-radius: 4px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  margin-top: 1px;
}

.form-checkbox__box::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.15s;
}

.form-checkbox input[type=checkbox]:checked + .form-checkbox__box {
  background: var(--ink);
  border-color: var(--ink);
}

.form-checkbox input[type=checkbox]:checked + .form-checkbox__box::after {
  opacity: 1;
}

.form-checkbox:hover .form-checkbox__box {
  border-color: rgba(45, 45, 58, 0.7);
}

.form-checkbox__text {
  font-family: var(--font-b);
  font-size: 12px;
  color: rgba(45, 45, 58, 0.55);
  line-height: 1.4;
}
.form-checkbox__text a {
  color: inherit;
  text-decoration: underline;
}

.form-checkbox--error .form-checkbox__box {
  border-color: #ff5252;
  background: rgba(255, 82, 82, 0.12);
  animation: checkbox-shake 0.35s ease;
}

@keyframes checkbox-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.form-checkbox--error::before {
  content: "Чтобы продолжить, установите этот флажок";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid rgba(255, 82, 82, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.4;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
  animation: tooltip-in 0.2s ease;
}

.form-checkbox--error::after {
  content: "";
  position: absolute;
  bottom: calc(100% - 6px);
  left: 3px;
  border: 8px solid transparent;
  border-top-color: rgba(20, 20, 20, 0.96);
  pointer-events: none;
  z-index: 20;
}

@keyframes tooltip-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.form-success {
  text-align: center;
  padding: 40px 0;
  display: none;
}
.form-success.show {
  display: block;
}

.form-success-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.form-success h3 {
  font-family: var(--font-h);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
.form-success p {
  color: var(--mid);
  font-size: 14px;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 36px 80px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-row {
  display: flex;
  align-items: center;
}
.footer-row--top {
  justify-content: space-between;
}
@media (max-width: 576px) {
  .footer-row--top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.footer-row--bottom {
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 1024px) {
  .footer-row--bottom {
    flex-wrap: wrap;
    gap: 20px 32px;
  }
}
@media (max-width: 576px) {
  .footer-row--bottom {
    flex-direction: column;
    gap: 16px;
  }
}

.footer-brand {
  display: block;
  text-decoration: none;
  height: 28px;
  flex-shrink: 0;
}
.footer-brand img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer-marmax {
  display: block;
  text-decoration: none;
  height: 21px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.footer-marmax img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}
.footer-marmax:hover {
  opacity: 0.7;
}

.footer-disclaimer {
  font-family: var(--font-b);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  max-width: 388px;
  flex-shrink: 0;
}
@media (max-width: 576px) {
  .footer-disclaimer {
    max-width: 100%;
  }
}

.footer-nav {
  display: flex;
  gap: 40px;
}
@media (max-width: 576px) {
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

.footer-nav-link {
  font-family: var(--font-b);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
@media (max-width: 1024px) {
  .footer-nav-link {
    white-space: normal;
  }
}
.footer-nav-link:hover {
  color: var(--c);
}
.footer-nav-link--site {
  margin-left: auto;
}
@media (max-width: 1024px) {
  .footer-nav-link--site {
    margin-left: 0;
  }
}

/* ── FLOATING CTA ── */
#float-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 300;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s var(--ease2);
  pointer-events: none;
}
#float-cta.visible {
  opacity: 1;
  transform: none;
  pointer-events: all;
}
@media (max-width: 576px) {
  #float-cta {
    width: 100%;
    max-width: calc(100% - 48px);
  }
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c);
  color: var(--ink);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 100px;
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 400;
  box-shadow: 0 8px 32px rgba(193, 97, 58, 0.5);
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.float-btn:hover {
  background: var(--c2);
  transform: scale(1.04);
}
@media (max-width: 1024px) {
  .float-btn {
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 15px;
  }
}
@media (max-width: 576px) {
  .float-btn {
    font-size: 5.625vw;
  }
}

.float-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  animation: floatPulse 1.5s ease-in-out infinite;
}

@keyframes floatPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}
/* ── TWEAKS ── */
#tweaks-panel {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  width: 260px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
#tweaks-panel.open {
  display: block;
}

.tweaks-title {
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}

.tweak-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.tweak-item label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}
.tweak-item input[type=text] {
  background: var(--pale);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  font-family: var(--font-b);
  outline: none;
  transition: border-color 0.15s;
}
.tweak-item input[type=text]:focus {
  border-color: var(--c);
}

.tweak-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tweak-toggle-label {
  font-size: 13px;
  color: var(--ink2);
  font-weight: 500;
}

.toggle {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: var(--border);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.toggle.on {
  background: var(--c);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
}
.toggle.on::after {
  transform: translateX(16px);
}

/* ── HAMBURGER ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  position: relative;
  z-index: 201;
  /* Поверх мобильного меню */
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s var(--ease2);
}
.burger.open span {
  background: var(--ink) !important;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(253, 252, 251, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--ease2);
  padding-top: 0;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
}
.mobile-menu a {
  font-family: var(--font-h);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  letter-spacing: -0.02em;
  transition: all 0.2s;
}
.mobile-menu a:hover {
  color: var(--c);
  transform: translateY(-2px);
}

.mobile-menu-phone {
  margin-top: 24px;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 700;
  color: white !important;
  background: var(--c);
  padding: 14px 32px !important;
  border-radius: 100px;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(193, 97, 58, 0.25);
}

/* ── PROGRESS SECTION CSS ── */
.progress-wrap {
  position: relative;
}

.progress-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s;
}
.progress-arrow:hover {
  border-color: var(--c);
}
.progress-arrow-left {
  left: -20px;
}
.progress-arrow-right {
  right: -20px;
}

.month-tabs-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.month-tabs-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
}

.progress-photos-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.4fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.prog-photo-main {
  grid-column: 1;
  grid-row: 1/3;
  border-radius: 8px;
  overflow: hidden;
  height: 360px;
}

.prog-photo-sm {
  grid-column: 2;
  border-radius: 8px;
  overflow: hidden;
  height: 174px;
}

.prog-photo-square {
  grid-column: 3;
  grid-row: 1/3;
  border-radius: 8px;
  overflow: hidden;
  height: 360px;
}

.prog-photo-main img,
.prog-photo-sm img,
.prog-photo-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.prog-photo-main img:hover,
.prog-photo-sm img:hover,
.prog-photo-square img:hover {
  transform: scale(1.04);
}

.progress-caption-wrap {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-caption-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}

.progress-caption-text {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.5;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  /* Base */
  .section,
  .section-sm {
    padding: 56px 20px;
  }
  .section-title {
    font-size: clamp(28px, 7vw, 44px);
  }
  /* Nav */
  #nav {
    padding: 0 20px;
    height: 56px;
  }
  .nav-links {
    display: none;
  }
  .nav-right {
    display: none;
  }
  .burger {
    display: flex;
  }
  /* Hero */
  #hero {
    min-height: 100svh;
  }
  .hero-title {
    font-size: clamp(44px, 11vw, 72px);
  }
  .hero-sub {
    font-size: 15px;
    margin-bottom: 32px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    height: 54px;
    padding: 0 24px;
    font-size: 15px;
  }
  .hero-stats {
    display: none;
  }
  .hero-badge {
    font-size: 2.96875vw;
    padding: 6px 12px;
    letter-spacing: 0.08em;
  }
  /* Ticker */
  .ticker {
    padding: 10px 0;
  }
  /* About — handled by media mixins inside the component */
  /* Perks */
  /* Apartments */
  /* Mortgage */
  /* Infrastructure */
  /* Progress section */
  /* CTA Section */
  /* Footer */
  /* Float CTA */
  /* Tweaks panel */
}
@media (max-width: 900px) and (max-width: 576px) {
  .ticker-item {
    font-size: 4.375vw;
    gap: 20px;
    padding-left: 20px;
  }
}
@media (max-width: 900px) {
  #perks {
    padding: 56px 20px 0;
  }
  .perks-grid {
    padding-bottom: 56px;
  }
  .perk-card {
    width: 240px;
    min-height: 220px;
  }
  .apt-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    grid-column: auto;
    grid-row: auto;
  }
  .apt-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .apt-info {
    grid-column: auto;
    grid-row: auto;
  }
  .apt-img {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16/9;
  }
  .calc-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .calc-result {
    position: static;
    border-radius: 8px;
    padding: 28px 20px;
  }
  .calc-result-amount {
    font-size: 44px;
  }
  .prog-tabs {
    gap: 6px;
  }
  .prog-btn {
    padding: 7px 14px;
    font-size: 12px;
  }
  .range-val {
    font-size: 17px;
  }
  .infra-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .infra-card {
    padding: 22px 18px;
  }
  .infra-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
  }
  #progress .section-desc {
    font-size: 14px;
  }
  .progress-arrow {
    display: none !important;
  }
  .progress-photos-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto;
  }
  .prog-photo-main {
    grid-column: 1/3;
    height: 280px;
  }
  .prog-photo-sm {
    grid-column: auto;
    height: 180px;
  }
  .prog-photo-square {
    grid-column: 1/3;
    height: 280px;
  }
  #cta-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 20px;
  }
  #cta-section > div:first-child > div {
    gap: 10px !important;
  }
  #cta-section > div:first-child > div > div {
    font-size: 15px !important;
  }
  .form-wrap {
    padding: 24px 20px;
    border-radius: 8px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .form-field input,
  .form-field select {
    font-size: 16px;
    padding: 14px 14px;
  }
  footer {
    padding: 28px 20px;
  }
  #float-cta {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  #tweaks-panel {
    left: 12px;
    right: 12px;
    bottom: 80px;
    width: auto;
  }
}
@media (max-width: 480px) {
  .section,
  .section-sm {
    padding: 48px 16px;
  }
  .section-title {
    font-size: 10vw;
  }
  .hero-title {
    font-size: 13.125vw;
  }
  .hero-sub {
    font-size: 4.375vw;
    line-height: 1.5;
    margin-bottom: 24px;
  }
  .hero-actions .btn {
    font-size: 5.625vw;
    padding: 14px 20px;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
  .about-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .about-stat:last-child {
    grid-column: 1;
    border-bottom: none;
  }
  .perks-grid {
    grid-template-columns: 1fr;
  }
  .infra-grid {
    grid-template-columns: 1fr;
  }
  .apt-specs {
    grid-template-columns: 1fr;
  }
  .promo-box {
    border-radius: 8px;
    border-left: 1px solid var(--border);
    border-top: 3px solid var(--c);
    margin-top: 8px;
  }
  .progress-photos-grid {
    grid-template-columns: 1fr !important;
  }
  .prog-photo-main,
  .prog-photo-square {
    grid-column: 1/2 !important;
    height: 220px;
  }
  .prog-photo-sm {
    grid-column: 1/2 !important;
    height: 140px;
  }
  .calc-result {
    padding: 24px 16px;
  }
  .calc-result-amount {
    font-size: 36px;
  }
  .range-field-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .range-val {
    font-size: 16px;
  }
  #cta-section {
    padding: 48px 16px 108px;
  }
  .form-wrap {
    padding: 24px 16px;
  }
}
/* ── MODALS ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease2);
}
.modal.open {
  pointer-events: all;
  opacity: 1;
}
.modal.open .modal__panel {
  transform: none;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 11, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 1024px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 48px 52px;
  transform: translateY(28px);
  transition: transform 0.45s var(--ease2);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pale);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--mid);
  font-size: 18px;
  line-height: 1;
}
.modal__close:hover {
  background: var(--border);
  color: var(--ink);
}
.modal__header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.modal__title {
  font-family: var(--font-h);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 10px;
  line-height: 1.1;
}
@media (max-width: 600px) {
  .modal {
    padding: 12px;
    align-items: flex-end;
  }
  .modal__panel {
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    padding: 32px 24px 40px;
    transform: translateY(40px);
  }
}

/* ── MODAL TYPOGRAPHY ── */
.modal-content h2 {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 32px 0 12px;
  line-height: 1.2;
}
.modal-content h2:first-child {
  margin-top: 0;
}
.modal-content h3 {
  font-family: var(--font-h);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 8px;
  line-height: 1.3;
}
.modal-content h4 {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 20px 0 6px;
}
.modal-content p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 12px;
}
.modal-content p:last-child {
  margin-bottom: 0;
}
.modal-content ul,
.modal-content ol {
  padding-left: 0;
  margin: 0 0 16px;
  list-style: none;
}
.modal-content ul li,
.modal-content ol li {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
  padding: 6px 0 6px 20px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.modal-content ul li:last-child,
.modal-content ol li:last-child {
  border-bottom: none;
}
.modal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}
.modal-content ol {
  counter-reset: modal-list;
}
.modal-content ol li {
  counter-increment: modal-list;
}
.modal-content ol li::before {
  content: counter(modal-list);
  position: absolute;
  left: 0;
  top: 7px;
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 700;
  color: var(--c);
}
.modal-content strong {
  font-weight: 600;
  color: var(--ink);
}
.modal-content .modal-highlight {
  background: rgba(193, 97, 58, 0.06);
  border-left: 3px solid var(--c);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 16px 0;
}
.modal-content .modal-highlight p {
  margin: 0;
  font-size: 16px;
}
.modal-content .modal-highlight a {
  color: inherit;
}

.cookie-banner {
  position: fixed;
  bottom: calc(var(--disclaimer-offset, 0px) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ink2);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 20px;
  max-width: 960px;
  width: calc(100% - 32px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  opacity: 0;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-banner__text {
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}
@media (max-width: 576px) {
  .cookie-banner__text {
    font-size: 12px;
    text-wrap: balance;
  }
}
.cookie-banner__text a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__text a:hover {
  color: white;
}

.cookie-accept-btn {
  flex-shrink: 0;
  background: var(--c);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.cookie-accept-btn:hover {
  opacity: 0.85;
}

@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    bottom: 16px;
  }
  .cookie-accept-btn {
    width: 100%;
  }
}
.disclaimer-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 100;
  background: rgba(15, 13, 11, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  padding: 12px 20px;
}
@media screen and (max-width: 640px) {
  .disclaimer-banner {
    font-size: 3.75vw;
    padding-left: 10px;
    padding-right: 10px;
    line-height: 1.2;
  }
}
.disclaimer-banner a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.disclaimer-banner a:hover {
  color: rgba(255, 255, 255, 0.7);
}
