:root {
  --forest: #27483a; --forest-dark: #173126; --forest-soft: #456656;
  --sand: #cdbb98; --sand-light: #eee5d4; --ivory: #f9f8f3; --paper: #fff;
  --ink: #18231d; --muted: #69766f; --line: rgba(24,35,29,.16);
  --shadow: 0 24px 70px rgba(21,42,32,.16); --container: 1180px;
  --font: Inter, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--ivory); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.center { text-align: center; }
.skip-link { position: fixed; z-index: 2147483647; top: 10px; left: 10px; padding: 12px 16px; color: #fff; background: var(--forest-dark); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 26px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5.1vw, 72px); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
h3 { font-size: clamp(23px, 2.1vw, 31px); line-height: 1.08; }
p { line-height: 1.62; }
.section-kicker { margin: 0 0 18px; color: var(--forest-soft); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.section-kicker-light { color: var(--sand-light); }
.section-lead { max-width: 660px; margin: 0 auto 50px; color: var(--muted); font-size: 17px; }
.button { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 15px 30px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, filter .2s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.04); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-accent { color: #fff; background: var(--forest); }
.button-light { color: var(--forest-dark); background: var(--sand-light); }
.button-outline { border: 1px solid var(--forest); color: var(--forest); background: transparent; }
.button-wide { min-width: min(420px, calc(100vw - 32px)); }

.site-header { position: absolute; z-index: 100; top: 0; right: 0; left: 0; color: #fff; }
.header-inner { min-height: 92px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand img, .footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.brand span, .footer-brand span { display: grid; font-size: 17px; font-weight: 800; letter-spacing: .12em; line-height: 1; }
.brand small, .footer-brand small { margin-top: 5px; font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.site-nav { display: flex; justify-content: center; gap: clamp(14px, 2vw, 28px); }
.site-nav a { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.header-phone { color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-cta { min-height: 42px; border: 1px solid rgba(255,255,255,.62); border-radius: 999px; padding: 0 18px; color: #fff; background: rgba(22,46,35,.34); font-size: 11px; font-weight: 800; cursor: pointer; backdrop-filter: blur(10px); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; padding: 10px; background: none; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #fff; }

.hero { position: relative; min-height: 720px; height: 100svh; max-height: 980px; overflow: hidden; color: #fff; background: var(--forest-dark); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,23,15,.45) 0%, rgba(8,31,20,.1) 42%, rgba(7,26,17,.72) 100%); }
.hero-inner { position: relative; z-index: 2; min-height: inherit; height: 100%; display: flex; align-items: end; padding-top: 130px; padding-bottom: 86px; }
.hero-copy { max-width: 880px; }
.hero-kicker { margin-bottom: 20px; font-size: 12px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(57px, 7.5vw, 112px); font-weight: 400; line-height: .86; letter-spacing: -.055em; text-shadow: 0 5px 26px rgba(0,0,0,.3); }
.hero h1 span { display: block; margin-bottom: 14px; font-family: var(--font); font-size: .29em; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-lead { max-width: 690px; margin: 30px 0 0; color: rgba(255,255,255,.9); font-size: clamp(17px, 1.7vw, 23px); }
.hero-action { display: flex; justify-content: center; padding: 28px 24px; background: var(--sand-light); }

.about-section, .rooms-section, .plans-section, .installment-section, .contacts-section, .buy-section, .faq-section { padding: 112px 0; }
.about-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 76px; }
.about-copy p:not(.section-kicker), .rooms-copy p { max-width: 560px; color: var(--muted); font-size: 17px; }
.check-list { margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 12px 0; padding-left: 28px; line-height: 1.45; }
.check-list li::before { content: ""; position: absolute; top: .5em; left: 0; width: 13px; height: 7px; border-bottom: 2px solid var(--forest); border-left: 2px solid var(--forest); transform: rotate(-45deg); }
.about-collage { position: relative; min-height: 590px; }
.about-collage img { position: absolute; object-fit: cover; box-shadow: var(--shadow); }
.about-main { top: 0; left: 0; width: 76%; height: 78%; }
.about-collage img:last-child { right: 0; bottom: 0; width: 55%; height: 46%; border: 12px solid var(--ivory); }

.lead-section { padding: 96px 0; color: #fff; background: var(--forest); }
.lead-shell, .viewing-shell, .offer-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: start; gap: 72px; }
.lead-shell h2, .viewing-shell h2, .offer-grid h2 { font-size: clamp(42px, 5.2vw, 70px); }
.lead-shell > div > p:last-child, .viewing-shell > div > p:last-child, .offer-grid > div > p:last-child { color: rgba(255,255,255,.72); font-size: 17px; }
.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; color: #fff; }
.lead-form > label:not(.consent):not(.honeypot) { display: grid; gap: 8px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lead-form input:not([type="checkbox"]) { width: 100%; min-height: 58px; border: 1px solid rgba(255,255,255,.4); border-radius: 10px; padding: 0 18px; color: #fff; background: rgba(255,255,255,.08); outline: 0; font-size: 16px; }
.lead-form input:not([type="checkbox"]):focus { border-color: var(--sand-light); box-shadow: 0 0 0 2px rgba(238,229,212,.2); }
.lead-form input::placeholder { color: rgba(255,255,255,.5); }
.lead-form .button { align-self: end; }
.form-status, .consents { grid-column: 1 / -1; }
.form-status { display: none; padding: 12px 14px; border-radius: 8px; color: var(--forest-dark); background: var(--sand-light); }
.form-status.is-visible { display: block; }
.form-status.is-error { color: #fff; background: #8d3832; }
.consents { display: grid; gap: 9px; margin-top: 4px; }
.consent { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--sand); }
.consent a { color: inherit; text-underline-offset: 2px; }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

.rooms-section { background: var(--paper); }
.rooms-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 72px; }
.rooms-gallery { height: 700px; display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2,1fr); gap: 14px; }
.rooms-gallery img { width: 100%; height: 100%; object-fit: cover; }
.rooms-gallery img:first-child { grid-row: 1 / span 2; }
.rooms-gallery img:nth-child(4) { display: none; }
.text-button { border: 0; padding: 0; color: var(--forest); background: none; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }

.plans-section { background: var(--sand-light); }
.plans-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.plan-card { min-width: 0; overflow: hidden; background: #fff; box-shadow: 0 15px 40px rgba(24,35,29,.07); }
.plan-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.plan-card > div { padding: 28px; }
.plan-card h3 { margin: 0 0 18px; }
.plan-card ul { min-height: 112px; margin: 0 0 24px; padding-left: 20px; color: var(--muted); line-height: 1.6; }
.plan-card button { border: 0; padding: 0; color: var(--forest); background: none; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.gallery-section { padding: 100px 0; overflow: hidden; color: #fff; background: var(--forest-dark); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.gallery-heading h2 { margin: 0; }
.gallery-controls { display: flex; gap: 10px; }
.gallery-controls button { width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; color: #fff; background: transparent; font-size: 23px; cursor: pointer; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(63vw,760px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 max(24px, calc((100vw - var(--container))/2)) 18px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { width: 100%; aspect-ratio: 4/3; object-fit: cover; scroll-snap-align: start; }

.installment-grid { display: grid; grid-template-columns: .62fr 1fr; align-items: center; gap: 80px; }
.installment-badge { width: min(430px,100%); aspect-ratio: 1; display: grid; place-content: center; border-radius: 50%; color: #fff; background: var(--forest); text-align: center; }
.installment-badge span { font-family: Georgia, "Times New Roman", serif; font-size: clamp(90px,11vw,150px); line-height: .8; }
.installment-badge small { margin-top: 18px; font-size: 15px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.installment-grid > div:last-child > p:not(.section-kicker) { color: var(--muted); font-size: 17px; }
.promo-strip { padding: 88px 0; color: #fff; background: var(--forest); }
.promo-strip h2 { max-width: 900px; margin-inline: auto; }

.mortgage-section { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.mortgage-image img { width: 100%; height: 100%; min-height: 720px; object-fit: cover; }
.mortgage-copy { align-self: center; padding: clamp(48px,7vw,110px); }
.mortgage-copy > p:not(.section-kicker) { color: var(--muted); }
.light-form { color: var(--ink); }
.light-form > label:not(.consent):not(.honeypot), .light-form .consent { color: var(--muted); }
.light-form input:not([type="checkbox"]) { border-color: var(--line); color: var(--ink); background: #fff; }
.light-form input::placeholder { color: rgba(24,35,29,.42); }

.viewing-section, .offer-section { padding: 96px 0; color: #fff; background: var(--forest-soft); }
.offer-section { background: #647067; }
.contacts-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; }
.contacts-copy dl { margin: 34px 0; }
.contacts-copy dl div { padding: 18px 0; border-top: 1px solid var(--line); }
.contacts-copy dt { margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contacts-copy dd { margin: 0; font-size: 20px; line-height: 1.5; }
.contacts-copy dd a { font-size: clamp(27px,3.2vw,42px); font-weight: 800; text-decoration: none; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-visual { position: relative; min-height: 620px; overflow: hidden; }
.contact-visual img { width: 100%; height: 620px; object-fit: cover; }
.contact-visual span { position: absolute; right: 20px; bottom: 20px; padding: 12px 17px; color: #fff; background: rgba(23,49,38,.9); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.buy-section { background: var(--paper); }
.buy-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 46px; text-align: left; }
.buy-grid article { min-height: 245px; display: grid; align-content: space-between; padding: 32px; color: #fff; background: var(--forest); }
.buy-grid article:nth-child(2) { color: var(--ink); background: var(--sand-light); }
.buy-grid article:nth-child(3) { background: var(--forest-soft); }
.buy-grid span { font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.buy-grid h3 { margin: 40px 0 12px; }
.buy-grid p { margin: 0; opacity: .76; }
.faq-section { background: var(--ivory); }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 72px; }
.faq-list details { padding: 24px 0; border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { padding-right: 35px; font-size: 18px; font-weight: 800; cursor: pointer; }
.faq-list p { margin: 15px 0 0; color: var(--muted); }

.site-footer { padding: 48px 0; color: #fff; background: var(--forest-dark); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr 1fr; gap: 54px; }
.footer-grid p { color: rgba(255,255,255,.64); font-size: 13px; }
.footer-grid > div:last-child { display: grid; align-content: start; justify-items: start; gap: 8px; }
.footer-grid a { color: rgba(255,255,255,.76); font-size: 12px; text-decoration: none; }
.footer-phone { margin-bottom: 9px; color: #fff !important; font-size: 22px !important; font-weight: 800; }

.legal-page { background: var(--ivory); }
.legal-header { color: #fff; background: var(--forest-dark); }
.legal-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-back { color: #fff; font-size: 14px; text-decoration: none; }
.legal-main { padding: 72px 0 96px; }
.legal-document { max-width: 920px; padding: 58px; background: #fff; box-shadow: var(--shadow); }
.legal-document .eyebrow { color: var(--forest-soft); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-document h1 { margin: 0 0 34px; font-family: Georgia,serif; font-size: clamp(34px,5vw,58px); line-height: 1.02; }
.legal-document h2 { margin: 42px 0 18px; font-size: 27px; }
.legal-document p, .legal-document li { color: #35423b; font-size: 16px; line-height: 1.65; }
.legal-document a { color: var(--forest); }
.legal-document ul, .legal-document ol { padding-left: 24px; }
.legal-document table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.legal-document th, .legal-document td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.legal-document th { background: var(--sand-light); }
.legal-page .site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.modal { position: fixed; z-index: 2147482500; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(7,25,16,.78); backdrop-filter: blur(6px); }
.modal-dialog { position: relative; width: min(610px,100%); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; padding: 46px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.modal-dialog h2 { margin-bottom: 12px; font-size: clamp(36px,5vw,54px); }
.modal-dialog > p:not(.section-kicker) { color: var(--muted); }
.modal-close { position: sticky; z-index: 2; top: 0; float: right; width: 44px; height: 44px; margin: -24px -24px 0 16px; border: 0; border-radius: 50%; display: grid; place-items: center; padding: 0 0 3px; color: #fff; background: var(--forest); font-size: 31px; line-height: 1; cursor: pointer; }
.modal-form { clear: both; }

@media (max-width: 1120px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-cta { display: none; }
  .site-nav { justify-content: end; }
}
@media (max-width: 900px) {
  .container { width: min(calc(100% - 36px),var(--container)); }
  .header-inner { min-height: 76px; grid-template-columns: 1fr auto auto; }
  .header-phone { font-size: 12px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 70px; right: 18px; left: 18px; display: none; padding: 16px; border-radius: 16px; background: rgba(23,49,38,.98); box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 10px; font-size: 14px; }
  .about-grid, .rooms-grid, .lead-shell, .viewing-shell, .offer-grid, .contacts-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-collage { min-height: 540px; }
  .rooms-grid { gap: 50px; }
  .rooms-gallery { height: 620px; }
  .plans-grid { gap: 14px; }
  .installment-grid { gap: 48px; }
  .mortgage-copy { padding: 54px 30px; }
  .buy-grid { gap: 10px; }
  .contact-visual, .contact-visual img { min-height: 500px; height: 500px; }
}
@media (max-width: 680px) {
  .container { width: min(calc(100% - 32px),var(--container)); }
  h2 { font-size: clamp(38px,11vw,54px); }
  .header-inner { width: calc(100% - 28px); min-height: 72px; gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 13px; }
  .brand small { font-size: 5.5px; }
  .header-phone { font-size: 0; }
  .header-phone::after { content: "Позвонить"; font-size: 11px; }
  .hero { min-height: 670px; height: 100svh; max-height: 840px; }
  .hero-image { object-position: 59% center; }
  .hero-inner { min-height: 670px; padding-top: 100px; padding-bottom: 52px; }
  .hero-copy { width: 100%; }
  .hero-kicker { font-size: 10px; }
  .hero h1 { font-size: clamp(52px,16.5vw,76px); line-height: .88; }
  .hero h1 span { font-size: .27em; line-height: 1.15; }
  .hero-lead { max-width: 330px; margin-top: 22px; font-size: 16px; }
  .hero-action { padding: 18px 16px; }
  .button-wide { width: 100%; min-width: 0; }
  .about-section, .rooms-section, .plans-section, .installment-section, .contacts-section, .buy-section, .faq-section { padding: 72px 0; }
  .about-grid { gap: 36px; }
  .about-collage { min-height: 440px; }
  .about-main { width: 88%; height: 68%; }
  .about-collage img:last-child { width: 68%; height: 44%; border-width: 8px; }
  .lead-section, .viewing-section, .offer-section, .gallery-section { padding: 70px 0; }
  .lead-shell, .viewing-shell, .offer-grid { gap: 30px; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form .button, .lead-form > label:not(.consent):not(.honeypot) { grid-column: 1 / -1; }
  .rooms-gallery { height: auto; grid-template-columns: repeat(2,1fr); grid-template-rows: 280px 210px; gap: 8px; }
  .rooms-gallery img:first-child { grid-row: 1 / span 2; }
  .rooms-gallery img:nth-child(4) { display: block; grid-column: 1 / -1; height: 210px; }
  .plans-grid { grid-template-columns: 1fr; gap: 16px; }
  .plan-card ul { min-height: 0; }
  .gallery-heading { align-items: start; }
  .gallery-controls { display: none; }
  .gallery-track { grid-auto-columns: 86vw; padding-inline: 16px; gap: 10px; }
  .installment-grid { grid-template-columns: 1fr; gap: 38px; }
  .installment-badge { width: 270px; margin-inline: auto; }
  .installment-badge span { font-size: 95px; }
  .promo-strip { padding: 66px 0; }
  .mortgage-section { grid-template-columns: 1fr; }
  .mortgage-image img { min-height: 0; height: 430px; }
  .mortgage-copy { padding: 60px 16px; }
  .contact-visual, .contact-visual img { min-height: 410px; height: 410px; }
  .contact-actions .button { width: 100%; }
  .buy-grid { grid-template-columns: 1fr; }
  .buy-grid article { min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .legal-main { padding: 28px 0 68px; }
  .legal-document { width: 100%; padding: 32px 18px; overflow-wrap: anywhere; }
  .legal-document table { display: block; max-width: 100%; overflow-x: auto; }
  .legal-page .site-footer .container { align-items: flex-start; flex-direction: column; }
  .modal { padding: 8px; }
  .modal-dialog { max-height: calc(100dvh - 16px); padding: 28px 20px; border-radius: 20px; }
  .modal-close { margin: -14px -8px 0 10px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 24px); }
  .brand small { display: none; }
  .hero h1 { font-size: 51px; }
  .button { width: 100%; padding-inline: 14px; }
  .rooms-gallery { grid-template-rows: 240px 180px; }
  .contact-visual, .contact-visual img { min-height: 350px; height: 350px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
