/*
Theme Name: Кедровый
Theme URI: https://usadba-otradnoe.ru/
Author: Кедровый
Description: Тема главной страницы комплекса «Кедровый» с настройками ACF Pro.
Version: 1.2.6
Text Domain: kedrovy
Requires at least: 6.3
Requires PHP: 8.0
*/

:root {
  --paper: #f5f3ed;
  --paper-2: #f9f8f4;
  --ink: #171717;
  --muted: #737068;
  --gold: #ba9c78;
  --white: #f1f1f1;
  --radius: 16px;
  --container: 1206px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
body.preloader-active { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

.site-preloader { --loader-progress: 0; position: fixed; z-index: 999; inset: 0; overflow: hidden; background: #020303; color: rgba(255,255,255,.82); opacity: 1; transition: opacity .65s ease, visibility .65s ease; }
.site-preloader::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 44%, rgba(255,255,255,.035), transparent 34%), linear-gradient(120deg, rgba(255,255,255,.018), transparent 42%); pointer-events: none; }
.site-preloader.is-complete { visibility: hidden; opacity: 0; pointer-events: none; }
.preloader-track { position: absolute; top: 56%; right: 0; left: 0; height: 2px; background: rgba(255,255,255,.34); }
.preloader-track span { display: block; width: calc(var(--loader-progress) * 1%); height: 100%; background: rgba(255,255,255,.96); box-shadow: 0 0 18px rgba(255,255,255,.22); transition: width .12s linear; }
.preloader-marker { position: absolute; top: 0; bottom: 0; left: calc(var(--loader-progress) * 1%); width: 1px; transition: left .12s linear; }
.preloader-value { position: absolute; bottom: calc(44% + 150px); left: 0; display: flex; align-items: flex-end; color: rgba(255,255,255,.78); font-size: clamp(92px, 10.5vw, 164px); font-weight: 400; line-height: .8; letter-spacing: -.075em; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.site-preloader.is-starting .preloader-value { transform: translateX(16px); }
.site-preloader.is-ending .preloader-value { transform: translateX(calc(-100% - 16px)); }
.preloader-value small { margin: 0 0 -.02em .08em; font-size: .52em; font-weight: 400; letter-spacing: -.05em; }
.preloader-guide { position: absolute; bottom: 44%; left: 0; height: 128px; border-left: 2px dotted rgba(255,255,255,.7); transform: translateY(-1px); }
.preloader-dot { position: absolute; top: 56%; left: 0; width: 15px; height: 15px; border: 3px solid rgba(255,255,255,.96); border-radius: 50%; background: rgba(255,255,255,.2); box-shadow: 0 0 18px rgba(255,255,255,.18); transform: translate(-50%,-50%); }
.preloader-logo { position: absolute; top: calc(56% + 52px); left: 50%; width: min(217px, 52vw); height: auto; opacity: .82; filter: brightness(0) invert(1); transform: translateX(-50%); }

.hero-sequence { position: relative; height: 600vh; background: #171717; }
.hero-sticky { position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden; border-radius: 0 0 40px 40px; background: #171717; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,17,18,.55) 0%, rgba(15,17,18,.12) 56%, rgba(15,17,18,.34) 100%), linear-gradient(0deg, rgba(15,17,18,.42), transparent 45%); pointer-events: none; }
.site-header { position: absolute; z-index: 5; top: 0; left: 50%; display: flex; align-items: center; justify-content: space-between; width: min(var(--container), calc(100% - 48px)); height: 72px; transform: translateX(-50%); }
.logo img { width: 181px; height: 32px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.phone, .outline-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid rgba(255,255,255,.42); border-radius: 12px; background: radial-gradient(120% 140% at 10% 0%, rgba(255,255,255,.2), transparent 48%), rgba(23,23,23,.1); padding: 0 18px; color: var(--white); font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.08); backdrop-filter: blur(18px) saturate(155%); -webkit-backdrop-filter: blur(18px) saturate(155%); transition: background .25s, border-color .25s; }
.phone:hover, .outline-button:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); }
.hero-copy { position: absolute; z-index: 2; top: 20%; left: max(24px, calc((100% - var(--container)) / 2)); color: white; transition: opacity .4s ease, transform .45s ease; }
.hero-copy h1 { margin: 0; font-size: clamp(43px, 4.1vw, 56px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.hero-copy p { margin: 24px 0 0; font-size: 16px; line-height: 24px; }
.hero-fact { position: absolute; z-index: 2; top: 18%; right: max(24px, calc((100% - var(--container)) / 2)); width: 295px; min-height: 280px; border: 1px solid rgba(255,255,255,.3); border-radius: 32px; background: radial-gradient(130% 90% at 8% 0%, rgba(255,255,255,.2), transparent 48%), radial-gradient(85% 110% at 100% 100%, rgba(186,156,120,.16), transparent 55%), rgba(17,28,29,.26); padding: 32px; color: var(--white); opacity: 0; transform: translateY(18px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -1px 0 rgba(255,255,255,.08), 0 24px 65px rgba(0,0,0,.14); backdrop-filter: blur(24px) saturate(165%); -webkit-backdrop-filter: blur(24px) saturate(165%); transition: opacity .5s, transform .5s; pointer-events: none; }
.hero-fact.is-active { opacity: 1; transform: translateY(0); }
.hero-fact span { display: block; margin-bottom: 22px; font-size: 16px; line-height: 24px; }
.hero-fact h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 32px; }
.hero-fact p { margin: 72px 0 0; font-size: 16px; line-height: 24px; }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 88px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.82); font-size: 11px; transform: translateX(-50%) scale(1.2); transform-origin: center bottom; }
.scroll-hint span { width: 16px; height: 26px; border: 1px solid rgba(255,255,255,.45); border-radius: 20px; }
.scroll-hint span::after { content: ""; display: block; width: 2px; height: 5px; margin: 5px auto; border-radius: 2px; background: white; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80%,100% { transform: translateY(9px); opacity: 0; } }

.section { padding: 104px 0; }
.kicker { margin: 0; color: var(--gold); font-size: 14px; font-weight: 600; line-height: 24px; text-transform: uppercase; }
.section-heading { margin-top: 16px; }
.split-heading { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 48px; align-items: end; }
.section-heading h2, .video-copy h2, .gallery-header h2, .layouts-copy h2, .panorama-content h2, .lead-content h2, .lead-modal__panel h2 { margin: 0; font-size: clamp(34px, 3vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.section-heading p { max-width: 320px; margin: 0; color: var(--muted); font-size: 16px; line-height: 24px; }
.plan-section { padding-top: 64px; }
.plan-image { width: 100%; height: auto; aspect-ratio: 1500 / 1061; margin: 40px 0 0; overflow: hidden; border-radius: var(--radius); background: #ece9e0; }
.plan-image img { width: 100%; height: 100%; object-fit: contain; }

.video-section { position: relative; min-height: 704px; overflow: hidden; background: linear-gradient(135deg, #183944 0%, #254c53 50%, #162f37 100%); color: white; }
.video-section::before { content: ""; position: absolute; inset: 0; background: var(--video-palms, url('assets/img/palms.svg')) center bottom / cover no-repeat; opacity: .58; pointer-events: none; }
.video-overlay { position: absolute; inset: 0; width: 100%; height: 100%; background: radial-gradient(circle at 60% 45%, rgba(75,125,127,.2), transparent 38%), linear-gradient(90deg, rgba(8,28,34,.42), rgba(8,28,34,.08) 55%, rgba(8,28,34,.28)); }
.video-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: center; min-height: 704px; padding: 80px 0; }
.video-copy h2 { margin-top: 16px; }
.video-copy > p:last-child { margin: 56px 0 0; color: rgba(255,255,255,.78); font-size: 16px; line-height: 24px; }
.video-card { position: relative; aspect-ratio: 801 / 448; overflow: hidden; border: 1px solid rgba(255,255,255,.35); border-radius: 24px; background: #111; cursor: pointer; }
.video-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s, opacity .25s; }
.video-card:hover > img { transform: scale(1.02); }
.play-button { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.9); transform: translate(-50%,-50%); cursor: pointer; backdrop-filter: blur(10px); }
.play-button span { width: 0; height: 0; margin-left: 4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid #171717; }
.video-card iframe, .mini-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card.is-playing > img, .video-card.is-playing .play-button, .mini-video.is-playing > img, .mini-video.is-playing button { opacity: 0; pointer-events: none; }

.complex-section { background: var(--paper-2); }
.feature-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin-top: 56px; }
.feature-card { position: relative; min-height: 390px; overflow: hidden; border-radius: var(--radius); color: white; }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,19,18,.78), transparent 64%); }
.feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.feature-card:hover img { transform: scale(1.035); }
.feature-card > div { position: absolute; z-index: 2; right: 24px; bottom: 24px; left: 24px; }
.feature-card span { font-size: 12px; color: rgba(255,255,255,.65); }
.feature-card h3 { margin: 8px 0 0; font-size: 22px; font-weight: 600; line-height: 1.25; }
.feature-card p { max-width: 500px; margin: 10px 0 0; color: rgba(255,255,255,.76); font-size: 13px; line-height: 19px; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 56px; border-top: 1px solid rgba(23,23,23,.14); border-bottom: 1px solid rgba(23,23,23,.14); }
.stats div { padding: 28px 24px; border-right: 1px solid rgba(23,23,23,.14); }
.stats div:first-child { padding-left: 0; }
.stats div:last-child { border-right: 0; }
.stats strong, .stats span { display: block; }
.stats strong { font-size: 32px; font-weight: 500; letter-spacing: -.03em; }
.stats span { margin-top: 5px; color: var(--muted); font-size: 13px; }

.gallery-section { min-height: auto; padding: 72px 0 96px; overflow: hidden; background: var(--paper-2); color: var(--ink); }
.gallery-header { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 48px 0 28px; }
.gallery-header h2 { margin-top: 12px; }
.gallery-actions { display: flex; align-items: center; gap: 12px; }
.gallery-tabs { display: flex; gap: 4px; padding: 5px; border: 1px solid rgba(23,23,23,.08); border-radius: 12px; background: rgba(23,23,23,.045); }
.gallery-tabs button { border-radius: 8px; background: transparent; padding: 8px 14px; color: var(--muted); font-size: 12px; cursor: pointer; }
.gallery-tabs button.is-active { background: var(--ink); color: white; }
.gallery-controls { display: flex; gap: 6px; }
.gallery-controls button, .gallery-lightbox__arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(255,255,255,.08); color: white; font-size: 20px; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s, transform .2s; }
.gallery-controls button:hover, .gallery-lightbox__arrow:hover { border-color: rgba(255,255,255,.54); background: rgba(255,255,255,.16); transform: translateY(-1px); }
.gallery-controls button { border: 0; background: transparent; color: var(--ink); box-shadow: none; }
.gallery-controls button:hover { border-color: transparent; background: transparent; opacity: .55; }
.gallery-controls button:disabled { cursor: default; opacity: .28; transform: none; }
.gallery-stage { position: relative; overflow-x: auto; overflow-y: hidden; cursor: grab; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x proximity; overscroll-behavior-inline: contain; }
.gallery-stage::-webkit-scrollbar { display: none; }
.gallery-stage.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.gallery-track { display: flex; gap: 8px; width: max-content; padding: 0 max(24px, calc((100vw - var(--container))/2)); transform: none !important; }
.gallery-slide { width: clamp(320px, 44vw, 600px); aspect-ratio: 3 / 2; flex: 0 0 auto; margin: 0; overflow: hidden; border-radius: 12px; cursor: zoom-in; scroll-snap-align: start; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-slide:hover img { transform: scale(1.02); }

.construction-section { background: var(--paper); }
.construction-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 48px; }
.mini-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #111; cursor: pointer; }
.mini-video img { width: 100%; height: 100%; object-fit: contain; }
.mini-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,16,16,.7), transparent 65%); pointer-events: none; }
.mini-video button { position: absolute; z-index: 2; right: 18px; bottom: 18px; left: 18px; display: flex; align-items: center; gap: 8px; background: transparent; padding: 0; color: white; font-size: 13px; text-align: left; cursor: pointer; }
.mini-play { position: relative; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: white; }
.mini-play::after { content: ""; position: absolute; top: 9px; left: 11px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid #171717; }

.layouts-section { background: var(--paper-2); }
.layouts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.layouts-copy h2 { margin-top: 16px; }
.layouts-copy > p:not(.kicker) { max-width: 500px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 26px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.dark-button, .text-button, .light-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; padding: 0 20px; font-size: 13px; font-weight: 600; cursor: pointer; }
.dark-button { background: var(--ink); color: white; }
.text-button { border: 1px solid rgba(23,23,23,.2); background: transparent; color: var(--ink); }
.layouts-collage { position: relative; min-height: 470px; }
.collage-main { position: absolute; top: 0; right: 0; width: 82%; height: 76%; border-radius: var(--radius); object-fit: cover; }
.collage-small { position: absolute; bottom: 0; left: 0; width: 48%; height: 42%; border: 10px solid var(--paper-2); border-radius: 20px; object-fit: cover; }

.panorama-section { padding: 48px 0 64px; overflow: hidden; background: var(--paper); }
.panorama-frame { position: relative; display: grid; place-items: center; width: min(var(--container), calc(100% - 48px)); min-height: 640px; margin: 0 auto; overflow: hidden; border-radius: 16px; color: white; }
.panorama-frame > img, .panorama-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.panorama-frame > img { object-fit: cover; }
.panorama-shade { background: rgba(6,28,38,.26); }
.panorama-content { position: relative; z-index: 2; width: min(598px, calc(100% - 48px)); border: 1px solid rgba(255,255,255,.42); border-radius: 32px; background: radial-gradient(120% 100% at 10% 0%, rgba(255,255,255,.22), transparent 44%), radial-gradient(95% 120% at 100% 100%, rgba(186,156,120,.15), transparent 58%), rgba(12,30,32,.3); padding: 64px 48px 52px; text-align: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(255,255,255,.1), 0 28px 80px rgba(0,0,0,.15); backdrop-filter: blur(26px) saturate(175%); -webkit-backdrop-filter: blur(26px) saturate(175%); }
.panorama-content h2 { font-size: clamp(38px, 3.4vw, 48px); line-height: 1.15; }
.panorama-content p { margin: 28px 0 0; color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.55; }
.light-button { width: 295px; min-height: 64px; margin-top: 28px; border-radius: 16px; background: var(--gold); color: white; font-size: 16px; }

.lead-section { position: relative; min-height: 488px; display: grid; place-items: center; overflow: hidden; border-radius: 80px 80px 0 0; background: #171717; color: white; }
.lead-section > img, .lead-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.lead-section > img { object-fit: cover; }
.lead-shade { background: linear-gradient(rgba(23,23,23,.8), #171717); }
.lead-content { position: relative; z-index: 2; width: min(598px, calc(100% - 32px)); text-align: center; }
.lead-content > p { max-width: 430px; margin: 20px auto 0; color: rgba(255,255,255,.72); font-size: 15px; line-height: 23px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.lead-form input, .lead-modal input { width: 100%; height: 64px; border: 0; border-radius: 16px; outline: 0; padding: 0 24px; color: #171717; background: white; }
.lead-form button, .lead-modal form button { grid-column: 1/-1; height: 64px; border-radius: 16px; background: var(--gold); color: white; font-size: 14px; font-weight: 600; cursor: pointer; }
.lead-form--cf7 { display: block; }
.lead-form--cf7 .wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lead-form--cf7 .wpcf7-form > p, .lead-modal__cf7 .wpcf7-form > p { margin: 0; }
.lead-form--cf7 .wpcf7-form > p:nth-of-type(n+3), .lead-form--cf7 .wpcf7-response-output { grid-column: 1/-1; }
.lead-form--cf7 .wpcf7-form-control-wrap, .lead-modal__cf7 .wpcf7-form-control-wrap { display: block; }
.lead-form--cf7 input:not([type="submit"]), .lead-modal__cf7 input:not([type="submit"]) { width: 100%; }
.lead-form--cf7 input[type="submit"], .lead-modal__cf7 input[type="submit"] { width: 100%; border: 0; background: var(--gold); color: white; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity .2s ease; }
.lead-form--cf7 input[type="submit"]:disabled, .lead-modal__cf7 input[type="submit"]:disabled { opacity: .65; cursor: wait; }
.kedrovy-form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.lead-form--cf7 .kedrovy-form-grid { grid-column: 1/-1; }
.wpcf7-form:has(.kedrovy-form-grid) > p, .wpcf7-form:has(.kedrovy-form-grid) > br { display: none !important; }
.kedrovy-form-grid br { display: none !important; }
.kedrovy-form-grid p { margin: 0 !important; }
.kedrovy-form-field, .kedrovy-form-consent, .kedrovy-form-submit { min-width: 0; }
.kedrovy-form-consent, .kedrovy-form-submit { grid-column: 1/-1; }
.kedrovy-form-consent { padding: 3px 2px 1px; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.45; text-align: left; }
.kedrovy-form-consent .wpcf7-list-item { margin: 0; }
.kedrovy-form-consent label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.kedrovy-form-consent input[type="checkbox"] { width: 18px !important; height: 18px !important; min-width: 18px; margin: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; padding: 0; accent-color: var(--gold); }
.kedrovy-form-submit { position: relative; }
.kedrovy-form-submit input[type="submit"] { display: block; width: 100%; }
.kedrovy-form-submit .wpcf7-spinner { position: absolute; top: 50%; right: 18px; margin: 0; transform: translateY(-50%); }
.lead-modal__cf7 .kedrovy-form-consent { color: var(--muted); }
.lead-modal__cf7 .kedrovy-form-consent input[type="checkbox"] { border-color: rgba(23,23,23,.28); }
.wpcf7-spinner { margin: 4px auto 0; }
.wpcf7-not-valid-tip { margin-top: 6px; color: #ffb6aa; font-size: 11px; text-align: left; }
.wpcf7 form .wpcf7-response-output { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 12px; line-height: 1.45; }
.cf7-setup-notice { margin: 28px 0 0; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; padding: 14px; color: white; font-size: 13px; }
.lead-content small { display: block; max-width: 410px; margin: 10px auto 0; color: rgba(255,255,255,.4); font-size: 11px; line-height: 16px; }

.footer { padding: 64px 0 24px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .9fr 1fr; gap: 64px; }
.footer-about > img { width: 181px; height: 32px; }
.footer-about > p { margin: 32px 0 0; color: rgba(255,255,255,.78); font-size: 15px; line-height: 24px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.socials a { padding: 11px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; font-size: 12px; }
.contacts-list { display: grid; gap: 16px; margin: 0; }
.contacts-list div { display: grid; gap: 3px; }
.contacts-list dt { color: rgba(255,255,255,.42); font-size: 11px; }
.contacts-list dd { margin: 0; font-size: 15px; line-height: 23px; }
.map-shell { height: 248px; overflow: hidden; border-radius: var(--radius); background: #303030; }
.map-shell > ymaps { width: 100% !important; height: 100% !important; }
.footer-bottom { display: grid; grid-template-columns: 160px 1fr; gap: 60px; margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.4); font-size: 11px; line-height: 16px; }
.footer-bottom p { margin: 0; }

.bottom-nav { position: fixed; z-index: 30; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; max-width: calc(100% - 32px); visibility: hidden; opacity: 0; transform: translateX(-50%) translateY(12px); transition: opacity .3s ease, transform .3s ease, visibility .3s; pointer-events: none; }
body.floating-ui-visible .bottom-nav { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.bottom-nav > div { display: flex; gap: 3px; overflow-x: auto; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; background: radial-gradient(120% 180% at 10% 0%, rgba(255,255,255,.16), transparent 50%), rgba(18,28,28,.48); padding: 6px; scrollbar-width: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 38px rgba(0,0,0,.18); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); }
.bottom-nav > div::-webkit-scrollbar { display: none; }
.bottom-nav a { flex: 0 0 auto; border-radius: 11px; padding: 7px 10px; color: rgba(255,255,255,.76); font-size: 11px; font-weight: 500; transition: background .25s, color .25s; }
.bottom-nav a.is-active { background: var(--white); color: var(--ink); }
.agent-widget { position: fixed; z-index: 65; right: 24px; bottom: 24px; width: 310px; height: 390px; visibility: hidden; opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease, visibility .3s; pointer-events: none; }
body.floating-ui-visible .agent-widget { visibility: visible; opacity: 1; transform: translateY(0); }
.agent-card { position: absolute; right: 0; bottom: 0; width: 295px; min-height: 286px; visibility: hidden; border: 1px solid rgba(255,255,255,.46); border-radius: 42px; background: radial-gradient(125% 90% at 8% 0%, rgba(255,255,255,.22), transparent 45%), radial-gradient(90% 100% at 100% 100%, rgba(120,148,31,.25), transparent 58%), rgba(12,24,18,.48); padding: 78px 28px 16px; color: white; text-align: center; opacity: 0; transform: translateY(18px) scale(.96); box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px 0 rgba(255,255,255,.1), 0 24px 70px rgba(0,0,0,.24); backdrop-filter: blur(28px) saturate(175%); -webkit-backdrop-filter: blur(28px) saturate(175%); transition: opacity .3s, transform .35s, visibility .3s; pointer-events: none; }
.agent-card h2 { margin: 0 0 22px; font-size: 28px; font-weight: 600; line-height: 1.16; letter-spacing: -.03em; }
.agent-card > a { display: block; margin-top: 5px; font-size: 17px; line-height: 1.35; }
.agent-avatar { position: absolute; right: 0; bottom: 0; z-index: 2; width: 68px; height: 68px; overflow: visible; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: #f1f1f1; padding: 0; cursor: pointer; box-shadow: 0 12px 38px rgba(0,0,0,.22); transition: width .35s, height .35s, right .35s, bottom .35s, transform .35s; pointer-events: auto; }
.agent-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.agent-online { position: absolute; right: 0; bottom: 5px; width: 15px; height: 15px; border: 3px solid white; border-radius: 50%; background: #20cc39; }
.agent-close { position: absolute; top: -56px; right: 4px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(33,44,31,.42); color: white; font-size: 28px; font-weight: 300; line-height: 1; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 24px rgba(0,0,0,.16); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); pointer-events: auto; }
.agent-socials { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; color: #c6a986; }
.agent-socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background .2s, transform .2s; }
.agent-socials a:not(.is-disabled):hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.agent-socials a.is-disabled { cursor: default; opacity: .58; }
.agent-socials img { width: 32px; height: 32px; }
.agent-widget.is-open .agent-card { visibility: visible; opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.agent-widget.is-open .agent-avatar { right: 50%; bottom: 246px; width: 94px; height: 94px; transform: translateX(50%); }

.gallery-lightbox { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; visibility: hidden; background: rgba(9,9,9,.9); padding: 36px; opacity: 0; transition: opacity .25s, visibility .25s; }
.gallery-lightbox.is-open { visibility: visible; opacity: 1; }
.gallery-lightbox img { max-width: min(1200px, 95vw); max-height: 90vh; border-radius: 12px; }
.gallery-lightbox__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: white; font-size: 28px; cursor: pointer; }
.gallery-lightbox__arrow { position: absolute; z-index: 2; top: 50%; width: 52px; height: 52px; background: rgba(20,20,20,.48); transform: translateY(-50%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.gallery-lightbox__arrow:hover { transform: translateY(-50%) scale(1.04); }
.gallery-lightbox__arrow--prev { left: 24px; }
.gallery-lightbox__arrow--next { right: 24px; }

@media (min-width: 901px) {
  .bottom-nav > div { gap: 5px; border-radius: 20px; padding: 8px; }
  .bottom-nav a { border-radius: 13px; padding: 10px 15px; font-size: 13px; }
}
.lead-modal { position: fixed; z-index: 80; inset: 0; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.lead-modal.is-open { visibility: visible; opacity: 1; }
.lead-modal__backdrop { position: absolute; inset: 0; background: rgba(15,15,15,.65); backdrop-filter: blur(8px); }
.lead-modal__panel { position: absolute; top: 50%; left: 50%; width: min(500px, calc(100% - 32px)); border-radius: 28px; background: var(--paper); padding: 34px 36px; transform: translate(-50%,-46%); transition: transform .3s; }
.lead-modal.is-open .lead-modal__panel { transform: translate(-50%,-50%); }
.lead-modal__panel h2 { margin-top: 14px; }
.lead-modal__panel > p:not(.kicker) { color: var(--muted); font-size: 14px; line-height: 22px; }
.lead-modal__panel form { display: grid; gap: 8px; margin-top: 18px; }
.lead-modal input { border: 1px solid rgba(23,23,23,.1); }
.lead-modal__cf7 .wpcf7-response-output { color: var(--ink); }
.lead-modal__cf7 .wpcf7-not-valid-tip { color: #b42318; }
.lead-modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(23,23,23,.08); font-size: 24px; cursor: pointer; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .container { width: min(100% - 32px, var(--container)); }
  .site-header { width: calc(100% - 32px); }
  .logo img { width: 145px; height: auto; }
  .phone { display: none; }
  .hero-copy { left: 24px; top: 17%; }
  .hero-fact { top: auto; right: 16px; bottom: 24px; width: min(295px, calc(100% - 32px)); min-height: 200px; background: radial-gradient(130% 90% at 8% 0%, rgba(255,255,255,.18), transparent 48%), radial-gradient(85% 110% at 100% 100%, rgba(186,156,120,.15), transparent 55%), rgba(17,28,29,.72); padding: 24px; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-fact p { margin-top: 32px; }
  .scroll-hint { display: none; }
  .split-heading { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 80px 0; }
  .video-layout { grid-template-columns: 1fr; gap: 40px; }
  .video-copy > p:last-child { margin-top: 24px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--large { grid-column: 1/-1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(odd) { padding-left: 0; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(23,23,23,.14); }
  .gallery-section { min-height: auto; padding-bottom: 64px; }
  .gallery-header { position: relative; top: auto; display: grid; gap: 22px; }
  .gallery-actions { align-items: flex-start; justify-content: space-between; }
  .gallery-stage { position: relative; top: auto; overflow-x: auto; scrollbar-width: none; }
  .gallery-track { padding-left: 16px; transform: none !important; }
  .gallery-slide { width: min(78vw, 500px); }
  .construction-grid { grid-template-columns: 1fr; }
  .layouts-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map-shell { grid-column: 1/-1; }
  .agent-widget { right: 16px; bottom: 76px; }
  .bottom-nav > div { background: radial-gradient(120% 180% at 10% 0%, rgba(255,255,255,.14), transparent 50%), rgba(18,28,28,.92); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .agent-card { background: radial-gradient(125% 90% at 8% 0%, rgba(255,255,255,.18), transparent 45%), radial-gradient(90% 100% at 100% 100%, rgba(120,148,31,.22), transparent 58%), rgba(12,24,18,.88); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .outline-button, .play-button, .panorama-content, .agent-close, .lead-modal__backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .panorama-content { background: radial-gradient(120% 100% at 10% 0%, rgba(255,255,255,.18), transparent 44%), radial-gradient(95% 120% at 100% 100%, rgba(186,156,120,.14), transparent 58%), rgba(12,30,32,.76); }
}

@media (max-width: 640px) {
  .preloader-track { top: 54%; }
  .preloader-value { bottom: calc(46% + 108px); font-size: clamp(68px, 24vw, 104px); }
  .preloader-guide { bottom: 46%; height: 88px; }
  .preloader-dot { top: 54%; width: 13px; height: 13px; }
  .preloader-logo { top: calc(54% + 44px); width: min(192px, 58vw); }
  .hero-sequence { height: 600vh; height: 600lvh; }
  .hero-sticky { height: 100vh; height: 100lvh; min-height: 100vh; min-height: 100lvh; border-radius: 0 0 24px 24px; }
  .site-header { height: 64px; }
  .outline-button { min-height: 36px; padding: 0 12px; font-size: 10px; }
  .hero-copy { top: 15%; left: 16px; }
  .hero-copy.is-hidden { opacity: 0; transform: translateY(-18px); pointer-events: none; }
  .hero-copy h1 { font-size: clamp(37px, 11vw, 48px); }
  .hero-copy p { margin-top: 18px; font-size: 14px; line-height: 21px; }
  .hero-fact { right: 12px; bottom: max(16px, calc(16px + env(safe-area-inset-bottom) + 100lvh - 100dvh)); width: calc(100% - 24px); min-height: 142px; border-radius: 22px; padding: 16px 20px; }
  .hero-fact span { margin-bottom: 8px; font-size: 12px; }
  .hero-fact h2 { font-size: 20px; line-height: 26px; }
  .hero-fact p { margin-top: 16px; font-size: 13px; line-height: 18px; }
  .section { padding: 64px 0; }
  .section-heading h2, .video-copy h2, .gallery-header h2, .layouts-copy h2, .panorama-content h2, .lead-content h2, .lead-modal__panel h2 { font-size: 31px; }
  .plan-image { height: auto; aspect-ratio: 1500 / 1061; margin-top: 28px; }
  .video-section, .video-layout { min-height: 650px; }
  .video-layout { padding: 72px 0; }
  .video-card { border-radius: 16px; }
  .play-button { width: 56px; height: 56px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: auto; }
  .feature-card { min-height: 330px; }
  .stats strong { font-size: 26px; }
  .stats div { padding: 22px 12px; }
  .gallery-tabs { max-width: 100%; overflow-x: auto; }
  .gallery-actions { flex-wrap: wrap; }
  .gallery-slide { width: 84vw; }
  .gallery-lightbox { padding: 20px; }
  .gallery-lightbox__arrow { top: auto; bottom: max(22px, env(safe-area-inset-bottom)); width: 46px; height: 46px; transform: none; }
  .gallery-lightbox__arrow:hover { transform: none; }
  .gallery-lightbox__arrow--prev { left: calc(50% - 56px); }
  .gallery-lightbox__arrow--next { right: calc(50% - 56px); }
  .layouts-collage { min-height: 350px; }
  .panorama-section { padding: 24px 0 40px; }
  .panorama-frame { width: calc(100% - 32px); min-height: 560px; border-radius: 16px; }
  .panorama-content { width: calc(100% - 24px); border-radius: 24px; padding: 42px 18px 34px; }
  .panorama-content h2 { font-size: 30px; }
  .panorama-content p { margin-top: 22px; font-size: 15px; line-height: 1.5; }
  .panorama-content p br { display: none; }
  .light-button { width: min(100%, 295px); min-height: 58px; font-size: 14px; }
  .lead-section { min-height: 560px; border-radius: 42px 42px 0 0; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form button { grid-column: auto; }
  .lead-form--cf7 .wpcf7-form { grid-template-columns: 1fr; }
  .lead-form--cf7 .wpcf7-form > p { grid-column: auto; }
  .kedrovy-form-grid { grid-template-columns: 1fr; }
  .kedrovy-form-consent, .kedrovy-form-submit { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .map-shell { grid-column: auto; }
  .footer-bottom { grid-template-columns: 1fr; gap: 18px; margin-top: 48px; padding-bottom: 64px; }
  .bottom-nav { right: auto; bottom: max(10px, env(safe-area-inset-bottom)); left: 50%; width: min(352px, calc(100% - 32px)); max-width: none; transform: translateX(-50%) translateY(12px); }
  body.floating-ui-visible .bottom-nav { transform: translateX(-50%) translateY(0); }
  .bottom-nav > div { justify-content: flex-start; }
  .agent-widget { right: 10px; bottom: 74px; width: 290px; height: 360px; }
  .agent-card { width: 280px; min-height: 270px; border-radius: 36px; padding: 72px 20px 14px; }
  .agent-card h2 { margin-bottom: 18px; font-size: 25px; }
  .agent-card > a { font-size: 16px; }
  .agent-avatar { width: 62px; height: 62px; }
  .agent-widget.is-open .agent-avatar { bottom: 230px; width: 88px; height: 88px; }
  .agent-close { top: -50px; width: 38px; height: 38px; }
  .lead-modal__panel { padding: 34px 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
