:root {
  --green: #587349;
  --green-d: #4C6440;
  --green-dd: #3A5030;
  --olive: #6B8558;
  --sage: #DCE7CF;
  --dark: #2F3A2B;
  --ink: #1D1D1B;
  --text2: #4A4A46;
  --text3: #3A3A36;
  --muted: #6E6E68;
  --muted2: #8C8C86;
  --line: #E6E4DF;
  --line2: #DEDCD6;
  --soft: #F3F4EF;
  --soft2: #C9CFC0;
  --on-dark: #F3F4EF;
  --on-dark2: #D5DCCD;
  --on-dark3: #B7C9A6;
  --on-dark4: #B7C2AE;
  --err: #B5452F;
  --off: #B9C2B2;
  --pad: clamp(14px, 2vw, 28px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-d); }
img { display: block; }
input::placeholder { color: var(--muted2); }
.is-hidden { display: none !important; }
.shell { max-width: 1760px; margin: 0 auto; background: #FFFFFF; overflow-x: clip; }
.jost { font-family: Jost, sans-serif; font-weight: 300; }
.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--green-d); }
.label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: Jost, sans-serif; font-weight: 300; margin: 0; }
h2 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.1; }
p { margin: 0; }
section { padding: clamp(56px, 7vw, 120px) var(--pad) 0; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 17px 34px; border: 0; cursor: pointer; white-space: nowrap;
}
.btn-green { background: var(--green); color: #FFFFFF; }
.btn-green:hover { background: var(--green-d); color: #FFFFFF; }
.btn-out { background: #FFFFFF; color: var(--green-d); border: 1px solid var(--olive); }
.btn-out:hover { background: var(--soft); color: var(--green-d); }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-ghost { background: transparent; color: var(--on-dark); border: 1px solid rgba(243,244,239,.5); }
.btn-ghost:hover { background: var(--on-dark); color: var(--dark); }
.btn[disabled], .btn.is-off { background: var(--off); cursor: not-allowed; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 20px; padding: 16px clamp(14px, 3vw, 48px);
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo-row { display: flex; align-items: center; gap: 16px; }
.logo { font-family: Jost, sans-serif; font-weight: 400; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.badge-out { padding: 5px 11px; border: 1px solid var(--olive); color: var(--green-d); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.main-nav { display: flex; flex-wrap: wrap; flex: 1 1 auto; gap: 10px clamp(10px, 1.4vw, 26px); font-size: 14px; color: var(--text2); }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-phone { text-align: right; line-height: 1.3; }
.header-phone a { display: block; font-size: 16px; white-space: nowrap; }
.header-phone span { font-size: 11px; color: var(--muted2); }
.btn-call { position: relative; overflow: hidden; display: inline-flex; align-items: center; padding: 13px 24px; background: var(--green); color: #FFFFFF; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; }
.btn-call:hover { background: var(--green-d); color: #FFFFFF; }
.btn-call::after {
  content: ''; position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.38) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-160%) skewX(-20deg); animation: shine 3.2s ease-in-out infinite; pointer-events: none;
}
@keyframes shine { 0% { transform: translateX(-160%) skewX(-20deg); } 55%, 100% { transform: translateX(330%) skewX(-20deg); } }
.call-icon, .burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; padding: 0; }
.call-icon { background: var(--green); color: #FFFFFF; position: relative; overflow: hidden; }
.call-icon::after { content: ''; position: absolute; top: 0; left: 0; width: 60%; height: 100%; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 50%, rgba(255,255,255,0) 100%); transform: translateX(-160%) skewX(-20deg); animation: shine 3.2s ease-in-out infinite; pointer-events: none; }
.burger i { display: block; height: 2px; width: 24px; background: var(--ink); }
.burger span { display: grid; gap: 5px; width: 24px; }

/* Мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 99; background: #FFFFFF; display: flex; flex-direction: column; overflow-y: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.drawer-head span { font-family: Jost, sans-serif; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; }
.drawer nav { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 24px; font-size: 20px; }
.drawer nav a { padding: 10px 16px; }
.drawer-foot { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 24px 40px; }
.drawer-foot hr { width: 100%; max-width: 320px; height: 1px; background: var(--line); border: 0; margin: 0 0 12px; }
.drawer-foot .phone-lg { font-family: Jost, sans-serif; font-size: 22px; }
.drawer-foot .hours { font-size: 12px; color: var(--muted2); margin-top: -8px; }
.drawer-foot .btn { width: 100%; max-width: 320px; padding: 18px 24px; }
.icon-btn { width: 44px; height: 44px; background: transparent; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); }

/* Первый экран */
.hero { padding: var(--pad) var(--pad) 0; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); min-height: min(84vh, 820px); }
.hero-text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(32px, 4.5vw, 80px) clamp(22px, 4vw, 68px); background: var(--soft); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-line { padding: 7px 14px; border: 1px solid var(--olive); color: var(--green-d); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.badge-fill { padding: 7px 14px; border: 1px solid var(--sage); background: var(--sage); color: var(--green-dd); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.counter-row { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.counter-num { font-family: Jost, sans-serif; font-weight: 300; font-size: clamp(92px, 13vw, 180px); line-height: .8; color: var(--olive); font-variant-numeric: tabular-nums; min-width: 2ch; }
.counter-cap { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); max-width: 190px; line-height: 1.8; padding-bottom: 12px; }
.hero h1 { margin: 0 0 20px; max-width: 20ch; font-size: clamp(30px, 3.8vw, 56px); line-height: 1.08; text-wrap: balance; }
.hero-lead { max-width: 48ch; font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--text2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-actions .from { font-size: 15px; color: var(--text2); }
.hero-img { position: relative; min-height: 420px; overflow: hidden; background: var(--soft2); }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }

/* Акция */
.promo-section { padding: var(--pad) var(--pad) 0; }
.promo {
  background: var(--dark); color: var(--on-dark);
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: 'text timer btn'; align-items: center;
  gap: 24px clamp(24px, 4vw, 64px); padding: clamp(24px, 3vw, 40px) clamp(22px, 4vw, 68px);
}
.promo-text { grid-area: text; display: flex; flex-direction: column; gap: 8px; }
.promo-kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark3); }
.promo-title { font-family: Jost, sans-serif; font-weight: 300; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; text-wrap: balance; }
.promo-timer { grid-area: timer; display: flex; align-items: flex-start; gap: clamp(10px, 1.4vw, 20px); justify-self: center; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cd-num { font-family: Jost, sans-serif; font-weight: 300; font-size: clamp(36px, 3.6vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-num.sec { color: var(--on-dark3); }
.cd-lab { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark4); }
.cd-sep { font-family: Jost, sans-serif; font-weight: 300; font-size: clamp(30px, 3vw, 44px); line-height: 1; color: var(--olive); }
.promo .btn { grid-area: btn; justify-self: end; }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1px; padding: clamp(28px, 4vw, 64px) var(--pad); }
.stat { padding: clamp(20px, 2.4vw, 34px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--olive); }
.stat-v { font-family: Jost, sans-serif; font-weight: 300; font-size: clamp(30px, 2.8vw, 44px); line-height: 1; margin-bottom: 12px; }
.stat-l { font-size: 13px; line-height: 1.65; color: var(--muted); }

/* Общие сетки секций */
.sec-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 96px); padding: 0 clamp(8px, 2vw, 40px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head .eyebrow { display: block; margin-bottom: 20px; }
.sec-head h2 { max-width: 18ch; text-wrap: balance; }
.sec-text { display: flex; flex-direction: column; gap: 16px; font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--text2); max-width: 56ch; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(8px, 1vw, 16px); }
.photos-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.photos figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ph { overflow: hidden; background: var(--line); aspect-ratio: 4/5; }
.photos-4 .ph { aspect-ratio: 3/4; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.ph img:hover { transform: scale(1.045); }
.photos figcaption { font-size: 13px; color: var(--muted); }

/* Виды */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); background: var(--soft); }
.split-img { position: relative; min-height: 460px; overflow: hidden; background: var(--soft2); }
.split-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-text { padding: clamp(32px, 4.5vw, 80px) clamp(22px, 4vw, 68px); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.split-text h2 { max-width: 16ch; text-wrap: balance; }
.split-text p { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--text2); max-width: 48ch; }
.two-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 8px; }
.two-nums > div { padding: 4px 0 4px 20px; border-left: 1px solid var(--olive); }
.two-nums b { display: block; font-family: Jost, sans-serif; font-weight: 300; font-size: clamp(22px, 6.4vw, 32px); line-height: 1.1; white-space: nowrap; }
.two-nums span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Каталог */
.flats-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 clamp(8px, 2vw, 40px); margin-bottom: clamp(28px, 3.5vw, 48px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { cursor: pointer; font: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 0 18px; min-height: 44px; border: 1px solid var(--line2); background: #FFFFFF; color: var(--text2); }
.filters button.is-active { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.filters .f-short { display: none; }
.pricebox { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 20px clamp(16px, 2vw, 32px); margin-bottom: 16px; background: var(--soft); }
.pricebox .pb-left { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.pricebox .pb-val { font-family: Jost, sans-serif; font-weight: 400; font-size: 20px; white-space: nowrap; }
.pricebox input[type=range] { flex: 1 1 280px; accent-color: var(--green); cursor: pointer; }
.pricebox .found { font-size: 13px; color: var(--muted); white-space: nowrap; }
.empty { padding: 48px 24px; text-align: center; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty span { font-family: Jost, sans-serif; font-weight: 300; font-size: 24px; }
.flats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { background: #FFFFFF; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(20px, 2vw, 32px); display: flex; flex-direction: column; gap: 22px; }
.card-badge { align-self: flex-start; margin-bottom: -8px; padding: 6px 11px; background: var(--sage); color: var(--green-dd); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title { font-family: Jost, sans-serif; font-weight: 400; font-size: 20px; }
.card-floor { font-size: 13px; color: var(--muted); white-space: nowrap; }
.card-fin { margin-top: -14px; font-size: 13px; color: var(--green-d); }
.card-plan { position: relative; aspect-ratio: 4/3; cursor: zoom-in; }
.card-plan img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.card-price-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: auto; }
.card-price { font-family: Jost, sans-serif; font-weight: 300; font-size: 28px; line-height: 1; }
.card-old { font-size: 13px; color: var(--muted2); margin-top: 8px; }
.card-old s { text-decoration: line-through; }
.card-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: -6px; }
.card-actions button { cursor: pointer; font: inherit; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 14px 8px; white-space: nowrap; }
.btn-book { border: 1px solid var(--green); background: var(--green); color: #FFFFFF; }
.btn-book:hover { background: var(--green-d); }
.btn-more { border: 1px solid var(--line2); background: #FFFFFF; color: var(--ink); }
.btn-more:hover { border-color: var(--olive); color: var(--green-d); }
.more-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Расположение */
.poi { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.poi-row { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.poi-row b { font-family: Jost, sans-serif; font-weight: 300; font-size: 20px; min-width: 72px; white-space: nowrap; color: var(--green-d); }
.poi-row span { font-size: 14px; color: var(--text3); }
.location-text { padding: clamp(32px, 4.5vw, 80px) clamp(22px, 4vw, 68px); display: flex; flex-direction: column; gap: 36px; }
.location-text h2 { margin-bottom: 20px; max-width: 16ch; }
.location-text p { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--text2); max-width: 48ch; }
.map { min-height: 480px; background: var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; filter: grayscale(.6); }

/* Оплата */
.pay-head { padding: 0 clamp(8px, 2vw, 40px); margin-bottom: clamp(28px, 3.5vw, 48px); }
.pay-head h2 { max-width: 20ch; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pay-card { background: #FFFFFF; padding: clamp(24px, 2.4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.pay-card b { font-family: Jost, sans-serif; font-weight: 300; font-size: 26px; line-height: 1.15; }
.pay-card span { font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--text2); }

/* Заявка */
.request { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); background: var(--dark); color: var(--on-dark); }
.request-text { padding: clamp(32px, 4.5vw, 80px) clamp(22px, 4vw, 68px); display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.request-text .eyebrow { color: var(--on-dark3); }
.request-text h2 { max-width: 16ch; }
.request-text p { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--on-dark2); max-width: 46ch; }
.request-form { padding: clamp(32px, 4.5vw, 80px) clamp(22px, 4vw, 68px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.request-form input[type=text], .request-form input[type=tel] {
  font: inherit; font-size: 16px; padding: 18px 0; background: transparent; border: 0;
  border-bottom: 1px solid rgba(243,244,239,.35); color: var(--on-dark); outline: none;
}
.request-form input[type=text]:focus, .request-form input[type=tel]:focus { border-bottom-color: var(--on-dark3); }
.request-form input::placeholder { color: var(--on-dark2); opacity: .75; }
.agree { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.55; cursor: pointer; margin-top: 10px; color: var(--on-dark2); }
.agree input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--on-dark3); cursor: pointer; }
.agree a { text-decoration: underline; }
.request-form .btn { margin-top: 6px; align-self: flex-start; }
.request-done .title { font-family: Jost, sans-serif; font-weight: 300; font-size: 30px; }
.request-done p { font-size: 15px; color: var(--on-dark2); line-height: 1.7; margin-top: 12px; }
.form-err { font-size: 13px; color: #FFB4A2; margin-top: -4px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Подвал */
.site-footer { padding: clamp(56px, 7vw, 100px) clamp(22px, 4vw, 68px) 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.footer-brand { font-family: Jost, sans-serif; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.footer-addr { font-size: 14px; color: var(--muted); line-height: 1.7; }
.footer-cap { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted2); margin-bottom: 12px; }
.footer-phone { font-family: Jost, sans-serif; font-size: 22px; }
.footer-hours { font-size: 13px; color: var(--muted); margin-top: 6px; }
.footer-office { font-size: 14px; color: var(--text2); line-height: 1.7; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text2); }
.footer-col .footer-cap { margin-bottom: 2px; }
.footer-legal { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 10px; font-size: 11px; color: var(--muted2); line-height: 1.8; }
.footer-legal a { color: var(--muted); text-decoration: underline; }

/* Попапы */
.overlay { position: fixed; inset: 0; z-index: 110; background: rgba(29,29,27,.55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.popup { background: #FFFFFF; width: 100%; max-width: 520px; padding: clamp(28px, 4vw, 52px); position: relative; display: flex; flex-direction: column; gap: 22px; margin: auto; }
.popup .icon-btn { position: absolute; top: 10px; right: 10px; }
.popup-head { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; }
.popup-head h3 { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; text-wrap: balance; }
.popup-head p { font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--text2); max-width: 38ch; }
.popup-flat { font-size: 14px; color: var(--green-d); line-height: 1.5; }
.hr { height: 1px; background: var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.field input { font: inherit; font-size: 16px; color: var(--ink); padding: 16px 18px; border: 1px solid var(--line2); background: #FFFFFF; outline: none; }
.field input:focus { border-color: var(--olive); }
.popup .agree { color: var(--text2); margin-top: 0; }
.popup .agree input { accent-color: var(--green); }
.popup .err { font-size: 13px; color: var(--err); margin-top: -12px; }
.popup .btn-submit { border: 0; background: var(--green); color: #FFFFFF; font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 19px 28px; cursor: pointer; }
.popup .btn-submit:hover { background: var(--green-d); }
.popup .btn-submit.is-off { background: var(--off); cursor: not-allowed; }
.popup-done { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; padding: 24px 0; }
.popup-done h3 { font-size: 32px; }
.popup-done p { font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--text2); max-width: 34ch; }
.popup-done button { margin-top: 12px; cursor: pointer; border: 1px solid var(--line2); background: #FFFFFF; color: var(--ink); font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 15px 28px; }

/* Карточка квартиры */
.flat-overlay { z-index: 100; padding: clamp(12px, 3vw, 40px); }
.flat-card { background: #FFFFFF; width: 100%; max-width: 1080px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); position: relative; margin: auto; }
.flat-card .icon-btn { position: absolute; top: 12px; right: 12px; z-index: 2; }
.flat-plan { background: var(--soft); padding: clamp(20px, 3vw, 48px); display: grid; place-items: center; min-height: 360px; }
.flat-plan img { max-width: 100%; max-height: 560px; object-fit: contain; mix-blend-mode: multiply; cursor: zoom-in; }
.flat-body { padding: clamp(24px, 3.5vw, 56px); display: flex; flex-direction: column; gap: 24px; }
.flat-body h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.flat-badge { align-self: flex-start; padding: 6px 11px; background: var(--sage); color: var(--green-dd); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.flat-rows { display: flex; flex-direction: column; }
.flat-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.flat-rows span:first-child { color: var(--muted); }
.flat-price { font-family: Jost, sans-serif; font-weight: 300; font-size: 40px; line-height: 1; }
.flat-save { font-size: 14px; color: var(--muted2); margin-top: 8px; }
.flat-save s { text-decoration: line-through; }
.flat-buttons { display: flex; flex-direction: column; gap: 8px; }
.flat-buttons button { cursor: pointer; font: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 18px 28px; }
.flat-note { font-size: 12px; color: var(--muted2); line-height: 1.6; margin-top: -12px; }

/* Политика */
.page { padding: clamp(40px, 5vw, 72px) var(--pad) 0; }
.doc { max-width: 900px; margin: 0 auto; }
.crumbs { font-size: 13px; color: var(--muted); }
.doc h1 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; margin: 20px 0 32px; }
.doc h2 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; margin: 36px 0 0; }
.doc p, .doc li { font-size: 15px; font-weight: 300; line-height: 1.75; color: var(--text2); margin-top: 14px; }
.doc ul { margin: 0; padding-left: 20px; }

/* Планшет и телефон */
@media (max-width: 1240px) {
  .promo { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'text timer' 'btn timer'; }
  .promo .btn { justify-self: start; }
}
@media (max-width: 900px) {
  .m-hide { display: none !important; }
  .call-icon, .burger { display: inline-flex; }
  .promo { grid-template-columns: 1fr; grid-template-areas: 'text' 'timer' 'btn'; }
  .promo-timer { justify-self: stretch; justify-content: space-between; }
  .promo .btn { justify-self: stretch; width: 100%; background: var(--on-dark); color: var(--dark); border: 0; }
  .filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: 100%; }
  .filters button { padding: 6px 2px; min-height: 48px; font-size: 11px; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; }
  .filters .f-long { display: none; }
  .filters .f-short { display: flex; flex-direction: column; align-items: center; line-height: 1.2; gap: 2px; }
  .filters .f-short small { font-size: 10px; opacity: .7; }
  .pricebox { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; padding: 14px 16px; }
  .pricebox input[type=range] { grid-column: 1 / -1; width: 100%; }
  .pricebox .found { grid-row: 1; grid-column: 2; }
  .photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .photos::-webkit-scrollbar { display: none; }
  .photos > * { flex: 0 0 78%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
