/*
Theme Name: Кедровый — Живой горизонт
Theme URI: https://kedr.prichal82.ru/
Author: Prichal 82
Description: Независимая редакционная дизайн-версия сайта комплекса «Кедровый».
Version: 1.24.0
Text Domain: kedrovy-horizon
*/

:root {
    --sand: #e8dcc7;
    --oat: #d4b895;
    --sage: #8b9d83;
    --moss: #606c38;
    --deep: #2b352a;
    --browser-chrome: #2e372c;
    --deep-soft: #2d352a;
    --clay: #b08b6e;
    --paper: #f3eddf;
    --line: rgba(43, 53, 42, 0.24);
    --line-light: rgba(232, 220, 199, 0.3);
    --serif: "Literata", Georgia, serif;
    --sans: "Manrope", Arial, sans-serif;
    --page: min(100% - 64px, 1440px);
    --gutter: max(32px, calc((100vw - 1440px) / 2));
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hero-copy-size: clamp(15px, 1.22vw, 19px);
    --section-copy-size: 18px;
    --hero-title-shadow: 0 2px 16px rgba(10, 15, 11, 0.52), 0 1px 4px rgba(10, 15, 11, 0.48);
}

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

html {
    scroll-behavior: smooth;
    background: var(--browser-chrome);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    color: var(--deep);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    z-index: 10000;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

body.is-locked {
    overflow: hidden;
}

img,
svg,
canvas {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

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

p,
h1,
h2,
h3,
dl,
dd,
figure {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 5px;
}

::selection {
    color: var(--paper);
    background: var(--moss);
}

.kh-skip-link {
    position: fixed;
    z-index: 12000;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    color: var(--paper);
    background: var(--deep);
    transform: translateY(-150%);
}

.kh-skip-link:focus {
    transform: translateY(0);
}

.kh-main {
    position: relative;
    background: var(--paper);
}

main > section,
footer {
    scroll-margin-top: 86px;
}

.kh-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
}

.kh-display {
    max-width: 1050px;
    font-family: var(--serif);
    font-size: clamp(48px, 6.25vw, 112px);
    font-weight: 350;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.kh-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
}

.kh-section {
    position: relative;
    padding: 168px var(--gutter);
    background: var(--paper);
}

.kh-section__index {
    position: absolute;
    top: 76px;
    right: var(--gutter);
    color: var(--clay);
    font-family: var(--serif);
    font-size: 14px;
}

.kh-section__index::before {
    display: inline-block;
    width: 84px;
    height: 1px;
    margin: 0 14px 4px 0;
    content: "";
    background: currentColor;
}

.kh-section-head__label {
    grid-column: 1 / 4;
    padding-top: 10px;
}

.kh-section-head .kh-display {
    grid-column: 4 / 12;
}

.kh-section-head__copy {
    grid-column: 8 / 12;
    max-width: 520px;
    margin-top: 56px;
    color: var(--deep-soft);
    font-size: var(--section-copy-size);
}

/* Quiet page reveals: enabled only after JS is ready, so content never stays hidden. */
.kh-reveal-ready [data-content-reveal] {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.7s ease, transform 0.85s var(--ease);
}

.kh-reveal-ready [data-content-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.kh-reveal-ready [data-title-reveal] {
    opacity: 0;
    clip-path: none;
    transform: translate3d(0, 32px, 0);
    transition: opacity 0.42s ease 0.08s, transform 0.5s var(--ease) 0.04s;
}

.kh-reveal-ready [data-title-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Header and menu */
.kh-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 28px var(--gutter);
    color: var(--sand);
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: padding 0.45s var(--ease), color 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.kh-header.is-scrolled {
    padding-top: 16px;
    padding-bottom: 16px;
    color: var(--deep);
    border-color: rgba(43, 53, 42, 0.18);
    background: rgba(232, 220, 199, 0.97);
}

.kh-header.is-menu-open {
    color: var(--sand);
    border-color: transparent;
    background: transparent;
}

.kh-header__brand {
    display: block;
    width: clamp(180px, 16.8vw, 264px);
}

.kh-header__logo {
    width: 100%;
    height: auto;
}

.kh-header__actions {
    display: flex;
    align-items: center;
    gap: 34px;
}

.kh-header__phone,
.kh-text-button,
.kh-menu-toggle {
    font-size: 14.4px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kh-header__phone,
.kh-text-button {
    position: relative;
    padding-bottom: 5px;
}

.kh-header__phone::after,
.kh-text-button::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    content: "";
    background: currentColor;
    transform: scaleX(0.24);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.kh-header__phone:hover::after,
.kh-text-button:hover::after {
    transform: scaleX(1);
}

.kh-menu-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kh-menu-toggle__mark {
    position: relative;
    display: block;
    width: 36px;
    height: 17px;
}

.kh-menu-toggle__mark i {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}

.kh-menu-toggle__mark i:first-child { top: 2px; }
.kh-menu-toggle__mark i:last-child { top: 14px; }
.kh-menu-toggle[aria-expanded="true"] .kh-menu-toggle__mark i:first-child { top: 8px; transform: rotate(45deg); }
.kh-menu-toggle[aria-expanded="true"] .kh-menu-toggle__mark i:last-child { top: 8px; transform: rotate(-45deg); }

.kh-menu {
    position: fixed;
    z-index: 900;
    inset: 0;
    visibility: hidden;
    color: var(--sand);
    background: var(--deep);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.8s var(--ease), visibility 0.8s;
}

.kh-menu.is-open {
    visibility: visible;
    clip-path: inset(0);
}

.kh-menu__inner {
    display: grid;
    width: var(--page);
    height: 100%;
    margin: auto;
    grid-template-columns: 1fr 3fr;
    align-content: center;
    gap: 48px;
}

.kh-menu__inner > .kh-eyebrow {
    padding-top: 17px;
    color: var(--sage);
}

.kh-menu__list {
    margin: 0;
    padding: 0;
    counter-reset: kh-menu-item;
    list-style: none;
}

.kh-menu__list li {
    display: grid;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-light);
    grid-template-columns: 54px 1fr;
    align-items: baseline;
    counter-increment: kh-menu-item;
}

.kh-menu__list li::before {
    content: counter(kh-menu-item, decimal-leading-zero);
    color: var(--sage);
    font-size: 11px;
}

.kh-menu__list a {
    font-family: var(--serif);
    font-size: clamp(38px, 5vw, 78px);
    font-weight: 350;
    letter-spacing: -0.05em;
    line-height: 1;
    transition: color 0.3s ease, transform 0.45s var(--ease);
}

.kh-menu__list a:hover {
    color: var(--oat);
    transform: translateX(14px);
}

.kh-menu__phone {
    position: absolute;
    right: var(--gutter);
    bottom: 36px;
    font-family: var(--serif);
    font-size: 24px;
}

.kh-footer__menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Hero */
.kh-hero {
    position: relative;
    height: 660svh;
    color: var(--sand);
    background: var(--deep);
}

.kh-hero__sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100svh;
    overflow: hidden;
}

.kh-hero__fallback,
.kh-hero__canvas,
.kh-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.kh-hero__fallback {
    margin: 0;
    background: #56645c;
    transition: opacity 0.24s ease;
}

.kh-hero__fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kh-hero__canvas {
    opacity: 0;
    object-fit: cover;
    background: #56645c;
    transition: opacity 0.24s ease;
}

.kh-hero.is-canvas-ready .kh-hero__canvas {
    opacity: 1;
}

.kh-hero.is-canvas-ready .kh-hero__fallback {
    opacity: 0;
}

.kh-hero__shade {
    background:
        linear-gradient(180deg, rgba(43, 53, 42, 0.48) 0%, transparent 32%),
        linear-gradient(90deg, rgba(43, 53, 42, 0.44) 0%, transparent 58%),
        linear-gradient(0deg, rgba(43, 53, 42, 0.72) 0%, transparent 46%);
}

.kh-hero__intro {
    position: absolute;
    z-index: 2;
    right: var(--gutter);
    bottom: clamp(76px, 9vh, 96px);
    left: var(--gutter);
    display: grid;
    width: auto;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    grid-template-rows: auto auto;
    align-items: end;
    gap: 22px clamp(48px, 7vw, 128px);
    will-change: opacity, transform;
}

.kh-hero__place {
    grid-column: 1;
    grid-row: 1;
    color: var(--oat);
}

.kh-hero__intro h1 {
    grid-column: 1;
    grid-row: 2;
    font-family: var(--serif);
    font-size: clamp(46px, 6.56vw, 118px);
    font-weight: 350;
    letter-spacing: -0.067em;
    line-height: 0.84;
    text-shadow: var(--hero-title-shadow);
}

.kh-hero__lead {
    grid-column: 2;
    grid-row: 2;
    width: min(calc(100% - 64px), 590px);
    max-width: none;
    margin: 0 64px 0 0;
    justify-self: end;
    color: rgba(232, 220, 199, 0.84);
    font-size: var(--hero-copy-size);
}

@media (min-width: 701px) {
    .kh-hero__lead {
        transform: translateX(-20px);
    }
}

.kh-hero__facts {
    position: absolute;
    z-index: 5;
    right: var(--gutter);
    bottom: clamp(190px, 22vh, 250px);
    width: min(560px, 42vw);
    isolation: isolate;
    transform: translateZ(0);
}

.kh-hero-fact {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    filter: blur(10px);
    clip-path: inset(46% 0);
    transform: scaleY(0.94);
    transform-origin: 50% 50%;
    will-change: opacity, filter, clip-path, transform;
    transition:
        opacity 0.24s ease,
        filter 0.24s ease,
        clip-path 0.34s var(--ease),
        transform 0.34s var(--ease),
        visibility 0s linear 0.34s;
}

.kh-hero-fact.is-active {
    visibility: visible;
    opacity: 1;
    filter: blur(0);
    clip-path: inset(0);
    transform: scaleY(1);
    transition-delay: 0s;
}

.kh-hero-fact__horizon {
    width: 100%;
    height: 1px;
    margin-bottom: 25px;
    background: var(--sand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.48s var(--ease);
}

.kh-hero-fact.is-active .kh-hero-fact__horizon {
    transform: scaleX(1);
}

.kh-hero-fact__number {
    margin-bottom: 20px;
    color: var(--oat);
    font-family: var(--serif);
    font-size: 13px;
}

.kh-hero-fact h2 {
    margin-bottom: 18px;
    font-family: var(--serif);
    font-size: clamp(38px, 4.3vw, 68px);
    font-weight: 350;
    letter-spacing: -0.055em;
    line-height: 0.95;
    text-shadow: var(--hero-title-shadow);
}

.kh-hero-fact > p:last-child {
    max-width: 420px;
    color: rgba(232, 220, 199, 0.78);
    font-size: var(--hero-copy-size);
}

.kh-hero__progress {
    position: absolute;
    z-index: 4;
    right: var(--gutter);
    bottom: 34px;
    left: var(--gutter);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    color: rgba(232, 220, 199, 0.76);
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.kh-hero__progress i {
    position: relative;
    display: block;
    height: 1px;
    overflow: hidden;
    background: rgba(232, 220, 199, 0.32);
}

.kh-hero__progress i b {
    position: absolute;
    inset: 0;
    display: block;
    background: var(--sand);
    transform: scaleX(0);
    transform-origin: left;
}

.kh-hero__progress-count em {
    color: var(--sand);
    font-style: normal;
}

/* Plan */
.kh-plan {
    padding-right: 0;
    padding-bottom: 90px;
    padding-left: 0;
}

.kh-plan .kh-section-head {
    padding-right: var(--gutter);
    padding-left: var(--gutter);
}

.kh-plan__figure {
    position: relative;
    display: grid;
    width: calc(52vw + var(--plan-expand, 0) * 48vw);
    max-width: 100vw;
    height: auto;
    aspect-ratio: 1500 / 1061;
    margin: 130px auto 0;
    overflow: hidden;
    background: var(--deep);
    place-items: center;
}

.kh-plan__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(calc(1.06 - var(--plan-expand, 0) * 0.06));
    transition: transform 0.1s linear;
}

.kh-plan__figure figcaption {
    position: absolute;
    right: 26px;
    bottom: 22px;
    left: 26px;
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(232, 220, 199, 0.72);
    color: var(--sand);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.kh-horizon-frame {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.25s var(--ease);
}

.kh-horizon-frame.is-revealed {
    clip-path: inset(0);
}

.no-js .kh-horizon-frame {
    clip-path: inset(0);
}

/* Video */
.kh-video {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 160px;
    overflow: hidden;
}

.kh-video__copy {
    display: grid;
    width: var(--page);
    margin: 0 auto 80px;
    grid-template-columns: 2fr 5fr 3fr;
    gap: 36px;
    align-items: end;
}

.kh-video__copy h2 {
    font-family: var(--serif);
    font-size: clamp(48px, 7vw, 114px);
    font-weight: 350;
    letter-spacing: -0.06em;
    line-height: 0.85;
}

.kh-video__copy > p:last-child {
    max-width: 360px;
    padding-bottom: 6px;
    color: var(--deep-soft);
    font-size: var(--section-copy-size);
}

.kh-video__window {
    position: relative;
    width: var(--page);
    max-width: 1440px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    background: var(--deep);
}

.kh-video__picture {
    display: block;
    width: 100%;
    height: 100%;
}

.kh-video__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.kh-video__window::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background: rgba(16, 22, 17, 0.52);
}

.kh-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    color: var(--sand);
    transform: translate(-50%, -50%);
}

.kh-play span {
    display: grid;
    width: 136px;
    height: 136px;
    border: 1px solid currentColor;
    border-radius: 50%;
    place-items: center;
    transition: color 0.4s ease, background 0.4s ease, transform 0.5s var(--ease);
}

.kh-play svg {
    width: 54px;
    height: 54px;
}

.kh-play b {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.kh-play:hover span {
    color: var(--deep);
    background: var(--sand);
    transform: scale(1.08);
}

/* Complex dossier */
.kh-complex {
    padding-bottom: 80px;
}

.kh-complex__intro > .kh-eyebrow {
    grid-column: 1 / 4;
    padding-top: 10px;
}

.kh-complex__intro > .kh-display {
    grid-column: 4 / 12;
}

.kh-complex__intro > p:last-child {
    grid-column: 8 / 12;
    max-width: 480px;
    margin-top: 50px;
    color: var(--deep-soft);
    font-size: var(--section-copy-size);
}

.kh-complex__dossier {
    display: grid;
    margin-top: 150px;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
    gap: clamp(48px, 7vw, 130px);
}

.kh-complex__stage {
    position: sticky;
    top: 13vh;
    height: 74vh;
    overflow: hidden;
    background: var(--deep);
}

.kh-complex__image {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    clip-path: inset(48% 0 48% 0);
    transition: opacity 0.45s ease, clip-path 0.85s var(--ease), visibility 0.85s;
}

.kh-complex__image.is-active {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0);
}

.kh-complex__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kh-complex__stage-line {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 18px;
    left: 18px;
    height: 1px;
    background: var(--line-light);
}

.kh-complex__stage-line span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--sand);
    transform: scaleX(0.333);
    transform-origin: left;
    transition: transform 0.7s var(--ease);
}

.kh-complex-chapter {
    display: flex;
    min-height: 72vh;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--line);
    opacity: 0.35;
    transition: opacity 0.45s ease;
}

.kh-complex-chapter__mobile-image {
    display: none;
    background: var(--deep);
}

.kh-complex-chapter.is-active {
    opacity: 1;
}

.kh-complex-chapter__number {
    margin-bottom: 44px;
    color: var(--clay);
    font-family: var(--serif);
    font-size: 13px;
}

.kh-complex-chapter h3 {
    margin-bottom: 24px;
    font-family: var(--serif);
    font-size: clamp(32px, 3.35vw, 54px);
    font-weight: 350;
    letter-spacing: -0.055em;
    line-height: 0.98;
    overflow-wrap: anywhere;
}

.kh-complex-chapter > p:last-child {
    max-width: 440px;
    color: var(--deep-soft);
    font-size: var(--section-copy-size);
}

.kh-stats {
    display: grid;
    margin-top: 70px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kh-stats > div {
    min-height: 220px;
    padding: 38px 30px 30px 0;
    border-right: 1px solid var(--line);
}

.kh-stats > div:not(:first-child) {
    padding-left: 30px;
}

.kh-stats > div:last-child {
    border-right: 0;
}

.kh-stats dt {
    font-family: var(--serif);
    font-size: clamp(48px, 5vw, 82px);
    font-weight: 350;
    letter-spacing: -0.055em;
    line-height: 1;
}

.kh-stats dd {
    max-width: 180px;
    margin-top: 46px;
    color: var(--deep-soft);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Gallery */
.kh-gallery {
    padding-right: 0;
    padding-bottom: 78px;
    padding-left: 0;
    overflow: hidden;
}

.kh-gallery__head {
    padding-right: var(--gutter);
    padding-left: var(--gutter);
    align-items: end;
}

.kh-gallery__head > div:first-child {
    grid-column: 1 / 8;
}

.kh-gallery__head .kh-display {
    margin-top: 18px;
}

.kh-gallery__filters {
    display: flex;
    grid-column: 8 / 13;
    justify-content: flex-end;
    gap: 24px;
    padding-bottom: 6px;
}

.kh-gallery__filters button {
    position: relative;
    padding: 0 0 7px;
    color: rgba(43, 53, 42, 0.48);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.kh-gallery__filters button::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    content: "";
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.kh-gallery__filters button[aria-pressed="true"] {
    color: var(--deep);
}

.kh-gallery__filters button[aria-pressed="true"]::after {
    transform: scaleX(1);
}

.kh-gallery__rail {
    display: flex;
    margin-top: 84px;
    padding: 0 var(--gutter) 24px;
    overflow-x: auto;
    gap: 20px;
    align-items: center;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.kh-gallery__rail::-webkit-scrollbar { display: none; }

.kh-gallery-item {
    flex: 0 0 auto;
    height: auto;
    scroll-snap-align: start;
    background: var(--deep);
    transition: width 0.7s var(--ease), opacity 0.4s ease;
}

.kh-gallery-item--widescreen {
    width: min(62vw, 920px);
    aspect-ratio: 16 / 9;
}

.kh-gallery-item--panoramic {
    width: min(69.75vw, 1035px);
    aspect-ratio: 2 / 1;
}

.kh-gallery-item--square {
    width: min(34.875vw, 517.5px);
    aspect-ratio: 1;
}

.kh-gallery-item[hidden] {
    display: none;
}

.kh-gallery-item button {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.kh-gallery-item__empty {
    width: 100%;
    height: 100%;
    background: var(--deep);
}

.kh-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}

.kh-gallery-item button:hover img {
    transform: scale(1.035);
}

.kh-gallery-item button span {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    padding-top: 11px;
    border-top: 1px solid rgba(232, 220, 199, 0.72);
    color: var(--sand);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.kh-gallery__controls {
    display: grid;
    margin: 38px var(--gutter) 0;
    grid-template-columns: 48px minmax(100px, 280px) 48px;
    justify-content: end;
    align-items: center;
    gap: 18px;
}

@media (min-width: 701px) {
    .kh-gallery__controls {
        justify-content: start;
    }
}

.kh-gallery__controls button {
    width: 48px;
    height: 42px;
}

.kh-gallery__controls svg {
    width: 40px;
    margin: auto;
}

.kh-gallery__track {
    height: 1px;
    background: var(--line);
}

.kh-gallery__track span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--deep);
    transform: scaleX(0);
    transform-origin: left;
}

/* Layouts */
.kh-layouts {
    display: grid;
    padding-top: 150px;
    grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
    gap: clamp(70px, 9vw, 150px);
    align-items: start;
}

.kh-layouts__images {
    position: relative;
    min-height: 850px;
}

.kh-layouts__main {
    width: 82%;
    height: 700px;
    margin-left: 0;
    background: var(--deep);
}

.kh-layouts__small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    height: 390px;
    background: var(--deep);
    box-shadow: -22px -22px 0 var(--paper);
}

.kh-layouts__images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kh-layouts__content {
    position: sticky;
    top: 14vh;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.kh-layouts__content .kh-display {
    margin: 28px 0 48px;
    font-size: clamp(48px, 4.65vw, 78px);
}

.kh-layouts__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    color: var(--deep-soft);
    font-size: var(--section-copy-size);
}

.kh-layouts__actions {
    display: grid;
    margin-top: 54px;
    border-top: 1px solid var(--line);
}

.kh-arrow-link {
    display: grid;
    width: 100%;
    min-height: 64px;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1fr 40px;
    align-items: center;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kh-arrow-link svg {
    width: 36px;
    transition: transform 0.45s var(--ease);
}

.kh-arrow-link:hover svg {
    transform: translateX(5px);
}

/* Panorama */
.kh-panorama {
    position: relative;
    display: grid;
    min-height: 115svh;
    overflow: hidden;
    color: var(--sand);
    background: var(--deep);
    place-items: center;
}

.kh-panorama__media {
    position: absolute;
    inset: 0;
    clip-path: inset(calc(22% - var(--portal-open, 0) * 22%) calc(28% - var(--portal-open, 0) * 28%));
    will-change: clip-path;
}

.kh-panorama__media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(16, 24, 18, calc(0.62 - var(--portal-open, 0) * 0.22));
}

.kh-panorama__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(calc(1.13 - var(--portal-open, 0) * 0.13));
}

.kh-panorama__content {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 1000px;
    padding: 120px var(--gutter);
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kh-panorama__content .kh-eyebrow {
    margin-bottom: 34px;
    color: var(--oat);
}

.kh-panorama__content h2 {
    font-family: var(--serif);
    font-size: clamp(58px, 8.4vw, 138px);
    font-weight: 350;
    letter-spacing: -0.065em;
    line-height: 0.85;
}

.kh-panorama__content > p:not(.kh-eyebrow) {
    max-width: 520px;
    margin-top: 36px;
    color: rgba(232, 220, 199, 0.8);
    font-size: var(--section-copy-size);
}

.kh-panorama__link {
    margin-top: 54px;
}

.kh-panorama__link i {
    position: relative;
    display: grid;
    width: 64px;
    height: 64px;
    border: 1px solid currentColor;
    border-radius: 50%;
    place-items: center;
    transition: background 0.4s ease;
}

.kh-panorama__link svg {
    width: 30px;
    height: 30px;
}

.kh-panorama__link:hover i {
    color: var(--deep);
    background: var(--sand);
}

/* Lead form */
.kh-lead {
    display: grid;
    padding-top: 130px;
    padding-bottom: 130px;
    grid-template-columns: minmax(0, 0.78fr) minmax(430px, 1fr);
    gap: clamp(65px, 10vw, 160px);
    align-items: stretch;
    background: var(--sand);
}

.kh-lead__image {
    min-height: 780px;
    overflow: hidden;
    background: var(--deep);
}

.kh-lead__image img,
.kh-lead__image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kh-lead__image video {
    display: block;
    background: var(--deep);
}

.kh-lead__content {
    display: flex;
    max-width: 670px;
    flex-direction: column;
    justify-content: center;
}

.kh-lead__content .kh-display {
    margin: 26px 0 34px;
    font-size: clamp(56px, 6vw, 96px);
}

.kh-lead__text {
    max-width: 540px;
    color: var(--deep-soft);
    font-size: var(--section-copy-size);
}

.kh-form {
    margin-top: 48px;
}

.kh-form br { display: none; }
.kh-form p { margin: 0; }
.kh-form .wpcf7-form { display: grid; gap: 18px; }
.kh-form .wpcf7-form-control-wrap { display: block; }

.kh-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.kh-form textarea,
.kh-form select {
    width: 100%;
    min-height: 62px;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid rgba(43, 53, 42, 0.45);
    border-radius: 0;
    outline: none;
    background: transparent;
    transition: border-color 0.3s ease;
}

.kh-form input:focus,
.kh-form textarea:focus,
.kh-form select:focus {
    border-color: var(--moss);
}

.kh-form textarea {
    min-height: 90px;
    resize: vertical;
}

.kh-form input[type="submit"],
.kh-form button[type="submit"] {
    min-height: 62px;
    margin-top: 14px;
    padding: 16px 26px;
    border: 1px solid var(--deep);
    border-radius: 0;
    color: var(--sand);
    background: var(--deep);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.35s ease, background 0.35s ease;
}

.kh-form input[type="submit"]:hover,
.kh-form button[type="submit"]:hover {
    color: var(--deep);
    background: transparent;
}

.kh-form .wpcf7-spinner { display: none; }
.kh-form .wpcf7-not-valid-tip { margin-top: 6px; color: #8e4338; font-size: 11px; }
.kh-form .wpcf7-response-output { margin: 14px 0 0 !important; padding: 12px 0 !important; border-width: 1px 0 0 !important; font-size: 12px; }

.kh-form .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.kh-form .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.kh-form input[type="checkbox"],
.kh-form input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    border: 1px solid rgba(43, 53, 42, 0.52);
    border-radius: 2px;
    outline: none;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.kh-form input[type="checkbox"]:checked {
    border-color: var(--deep);
    background-color: var(--deep);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23e8dcc7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m5 10 3 3 7-7'/%3E%3C/svg%3E");
}

.kh-form input[type="radio"] {
    border-radius: 50%;
}

.kh-form input[type="radio"]:checked {
    border-color: var(--deep);
    background: radial-gradient(circle, var(--deep) 0 4px, transparent 5px);
}

.kh-form input[type="checkbox"]:focus-visible,
.kh-form input[type="radio"]:focus-visible {
    outline: 2px solid var(--moss);
    outline-offset: 3px;
}

.kh-form .wpcf7-list-item-label {
    color: rgba(43, 53, 42, 0.66);
    font-size: 11px;
    line-height: 1.45;
}

.kh-legal,
.kh-footer__legal {
    color: rgba(43, 53, 42, 0.58);
    font-size: 10px;
    line-height: 1.5;
}

.kh-legal {
    max-width: 500px;
    margin-top: 20px;
}

.kh-setup-notice {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

/* Footer */
.kh-footer {
    padding: 100px var(--gutter) 34px;
    color: var(--sand);
    background: var(--deep);
}

.kh-footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.7fr;
    gap: 80px;
}

.kh-footer__logo {
    width: min(360px, 100%);
}

.kh-footer__brand > p {
    max-width: 360px;
    margin-top: 32px;
    color: rgba(232, 220, 199, 0.6);
    font-size: 13px;
}

.kh-footer__contacts,
.kh-footer__index {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.kh-footer__contacts .kh-eyebrow,
.kh-footer__index .kh-eyebrow {
    margin-bottom: 30px;
    color: var(--sage);
}

.kh-footer__phone {
    margin-bottom: 8px;
    font-family: var(--serif);
    font-size: clamp(27px, 2.6vw, 42px);
    letter-spacing: -0.04em;
}

.kh-footer__contacts > a:not(.kh-footer__phone) {
    padding-bottom: 3px;
    border-bottom: 1px solid var(--line-light);
    font-size: 13px;
}

.kh-footer__contacts > p:last-child {
    margin-top: 28px;
    color: rgba(232, 220, 199, 0.6);
    font-size: 12px;
}

.kh-footer__index a {
    padding: 5px 0;
    color: rgba(232, 220, 199, 0.72);
    font-family: var(--serif);
    font-size: 20px;
    transition: color 0.25s ease, transform 0.4s var(--ease);
}

.kh-footer__index a:hover {
    color: var(--sand);
    transform: translateX(6px);
}

.kh-footer__map-section {
    position: relative;
    height: 420px;
    margin-top: 24px;
    overflow: hidden;
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    background: var(--deep);
}

.kh-footer__map-section::after {
    display: none;
    content: none;
}

.kh-footer__map {
    width: 100%;
    height: 100%;
    filter: saturate(0.72) sepia(0.08);
}

.kh-footer__map > ymaps { width: 100% !important; height: 100% !important; }

.kh-footer__address {
    position: absolute;
    z-index: 2;
    bottom: 28px;
    left: 28px;
    display: flex;
    max-width: 430px;
    padding: 24px 26px 22px;
    flex-direction: column;
    gap: 10px;
    color: var(--sand);
    background: var(--deep);
}

.kh-footer__address small {
    color: var(--sage);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.kh-footer__address b {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
}

.kh-footer__address > a {
    display: flex;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line-light);
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.kh-footer__address svg {
    width: 36px;
}

.kh-footer__pre-map {
    display: flex;
    margin-top: 72px;
    padding-top: 24px;
    border-top: 1px solid var(--line-light);
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.kh-footer__copyright {
    color: rgba(232, 220, 199, 0.52);
    font-size: 10px;
}

.kh-footer__bottom {
    display: flex;
    margin-top: 36px;
    flex-direction: column;
    gap: 24px;
    color: rgba(232, 220, 199, 0.52);
    font-size: 10px;
}

.kh-footer__socials {
    display: flex;
    gap: 24px;
}

.kh-footer__socials a {
    color: rgba(232, 220, 199, 0.78);
}

.kh-footer__legal {
    max-width: 1080px;
    color: rgba(232, 220, 199, 0.46);
    font-size: 10px;
    line-height: 1.65;
}

/* Sales agent */
.kh-agent {
    position: fixed;
    z-index: 850;
    right: 24px;
    bottom: 86px;
    width: 340px;
    height: 390px;
    pointer-events: none;
}

.kh-agent__avatar {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    width: 78px;
    height: 78px;
    padding: 0;
    overflow: visible;
    border: 1px solid rgba(232, 220, 199, 0.82);
    border-radius: 50%;
    background: var(--sand);
    box-shadow: 0 14px 36px rgba(13, 19, 14, 0.22);
    pointer-events: auto;
    transition: transform 0.4s var(--ease);
}

.kh-agent__avatar:hover { transform: translateY(-4px); }

.kh-agent__avatar::before,
.kh-agent__avatar::after {
    position: absolute;
    z-index: 0;
    inset: -1px;
    border: 1px solid rgba(232, 220, 199, 0.58);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    animation: kh-agent-halo 3.6s ease-out infinite;
}

.kh-agent__avatar::after {
    animation-delay: 1.8s;
}

@keyframes kh-agent-halo {
    0% {
        opacity: 0.42;
        transform: scale(0.96);
    }
    70%,
    100% {
        opacity: 0;
        transform: scale(1.55);
    }
}

.kh-agent__avatar img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.kh-agent__online {
    position: absolute;
    right: 1px;
    bottom: 6px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--sand);
    border-radius: 50%;
    background: #4b8b46;
    z-index: 2;
}

.kh-agent__card {
    position: absolute;
    right: 0;
    bottom: 98px;
    width: 330px;
    min-height: 266px;
    padding: 30px;
    visibility: hidden;
    border: 1px solid rgba(96, 108, 56, 0.48);
    border-radius: 28px 28px 8px 28px;
    color: var(--deep);
    background: var(--sand);
    opacity: 0;
    clip-path: inset(100% 0 0 0 round 28px);
    transform: translateY(12px);
    box-shadow: 0 24px 70px rgba(13, 19, 14, 0.2);
    pointer-events: none;
    transition: opacity 0.35s ease, clip-path 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}

.kh-agent.is-open .kh-agent__card {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0 round 28px);
    transform: translateY(0);
    pointer-events: auto;
}

.kh-agent__card .kh-eyebrow {
    color: var(--moss);
}

.kh-agent__card h2 {
    margin: 18px 0 24px;
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 350;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.kh-agent__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.kh-agent__contacts a:first-child {
    font-family: var(--serif);
    font-size: 23px;
}

.kh-agent__contacts a:last-child {
    padding-bottom: 2px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.kh-agent__socials {
    display: flex;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    align-items: center;
    gap: 12px;
}

.kh-agent__socials > a {
    display: grid;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    place-items: center;
}

.kh-agent__socials img { width: 25px; height: 25px; }

.kh-agent__socials button {
    margin-left: auto;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kh-agent__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
}

.kh-agent__close span {
    position: absolute;
    top: 50%;
    left: 8px;
    width: 18px;
    height: 1px;
    background: currentColor;
}

.kh-agent__close span:first-child { transform: rotate(45deg); }
.kh-agent__close span:last-child { transform: rotate(-45deg); }

/* Dialogs */
.kh-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--deep);
    background: var(--sand);
}

.kh-dialog::backdrop {
    background: rgba(15, 20, 16, 0.88);
}

.kh-dialog[open] {
    animation: kh-dialog-in 0.65s var(--ease) both;
}

@keyframes kh-dialog-in {
    from { opacity: 0; clip-path: inset(0 0 100% 0); }
    to { opacity: 1; clip-path: inset(0); }
}

.kh-dialog__close {
    position: absolute;
    z-index: 5;
    top: 28px;
    right: 30px;
    width: 46px;
    height: 46px;
    color: currentColor;
}

.kh-dialog__close span {
    position: absolute;
    top: 50%;
    left: 8px;
    width: 30px;
    height: 1px;
    background: currentColor;
}

.kh-dialog__close span:first-child { transform: rotate(45deg); }
.kh-dialog__close span:last-child { transform: rotate(-45deg); }

.kh-dialog--form {
    width: min(100%, 760px);
    margin-left: auto;
}

.kh-dialog__content {
    display: flex;
    min-height: 100%;
    padding: 12vh clamp(34px, 8vw, 100px) 8vh;
    flex-direction: column;
    justify-content: center;
}

.kh-dialog__content > h2 {
    margin: 26px 0;
    font-family: var(--serif);
    font-size: clamp(52px, 7vw, 88px);
    font-weight: 350;
    letter-spacing: -0.06em;
    line-height: 0.94;
}

.kh-dialog__content > p:not(.kh-eyebrow) {
    max-width: 480px;
    color: var(--deep-soft);
}

.kh-dialog--video,
.kh-dialog--lightbox {
    color: var(--sand);
    background: var(--deep);
}

.kh-dialog__video {
    width: 100%;
    height: 100%;
    padding: 7vh 4vw;
}

.kh-dialog__video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.kh-dialog--lightbox figure {
    display: grid;
    height: 100%;
    padding: 6vh clamp(78px, 7vw, 120px);
    grid-template-rows: minmax(0, 1fr);
}

.kh-dialog--lightbox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kh-lightbox__nav {
    position: absolute;
    z-index: 6;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(232, 220, 199, 0.42);
    border-radius: 50%;
    place-items: center;
    color: var(--sand);
    background: rgba(43, 53, 42, 0.5);
    transform: translateY(-50%);
    transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.kh-lightbox__nav:hover {
    border-color: var(--sand);
    color: var(--deep);
    background: var(--sand);
}

.kh-lightbox__nav svg {
    width: 30px;
}

.kh-lightbox__nav[hidden] {
    display: none;
}

.kh-lightbox__nav--prev { left: clamp(14px, 2.4vw, 42px); }
.kh-lightbox__nav--next { right: clamp(14px, 2.4vw, 42px); }

.kh-lightbox__count {
    position: absolute;
    z-index: 6;
    right: 0;
    bottom: 24px;
    left: 0;
    color: rgba(232, 220, 199, 0.72);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-align: center;
}

/* Generic content */
.kh-content-page {
    min-height: 70vh;
    padding: 180px var(--gutter) 120px;
    background: var(--paper);
}

.kh-content-page article {
    max-width: 980px;
    margin: auto;
}

.kh-content-page h1 {
    margin: 26px 0 54px;
    font-family: var(--serif);
    font-size: clamp(54px, 8vw, 116px);
    font-weight: 350;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.kh-entry-content { font-size: 18px; }
.kh-entry-content > * { max-width: 760px; }
.kh-entry-content img { max-width: 100%; height: auto; }

@media (max-width: 1180px) {
    :root { --page: min(100% - 48px, 1440px); --gutter: 24px; }
    .kh-section { padding-top: 130px; padding-bottom: 130px; }
    .kh-complex__dossier { gap: 54px; }
    .kh-layouts { gap: 64px; }
    .kh-layouts__main { height: 600px; }
    .kh-layouts__images { min-height: 760px; }
}

@media (max-width: 900px) {
    .kh-header__phone { display: none; }
    .kh-header__actions { gap: 22px; }
    .kh-section__index { top: 54px; }
    .kh-section-head__label { grid-column: 1 / 3; }
    .kh-section-head .kh-display { grid-column: 3 / 13; }
    .kh-section-head__copy { grid-column: 6 / 13; }
    .kh-hero__facts { width: min(560px, 54vw); }
    .kh-video__copy { grid-template-columns: 1fr 4fr; }
    .kh-video__copy > p:last-child { grid-column: 2; }
    .kh-complex__intro > .kh-eyebrow { grid-column: 1 / 3; }
    .kh-complex__intro > .kh-display { grid-column: 3 / 13; }
    .kh-complex__intro > p:last-child { grid-column: 6 / 13; }
    .kh-complex__dossier { grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); gap: 34px; }
    .kh-stats { grid-template-columns: repeat(2, 1fr); }
    .kh-stats > div:nth-child(2) { border-right: 0; }
    .kh-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .kh-gallery__filters { grid-column: 6 / 13; flex-wrap: wrap; }
    .kh-layouts { grid-template-columns: 1fr; }
    .kh-layouts__content { position: static; max-width: 760px; }
    .kh-layouts__images { min-height: 710px; }
    .kh-lead { grid-template-columns: 0.8fr 1fr; gap: 50px; }
    .kh-lead__image { min-height: 690px; }
    .kh-footer__top { grid-template-columns: 1fr 1fr; }
    .kh-footer__index { display: none; }
}

@media (max-width: 700px) {
    :root {
        --page: calc(100% - 36px);
        --gutter: 18px;
        --mobile-section-title: clamp(42px, 11.7vw, 46px);
        --hero-browser-inset: max(0px, calc(100lvh - 100svh));
        --hero-copy-size: 13px;
    }
    body { font-size: 15px; }
    .kh-display { font-size: clamp(43px, 13.5vw, 70px); line-height: 0.98; }
    .kh-grid { grid-template-columns: 1fr; }
    .kh-section { padding: 96px var(--gutter); }
    .kh-section__index { top: 28px; font-size: 11px; }
    .kh-section__index::before { width: 42px; }
    .kh-section-head__label,
    .kh-section-head .kh-display,
    .kh-section-head__copy { grid-column: 1; }
    .kh-section-head__label { margin-bottom: 28px; }
    .kh-section-head__copy { margin-top: 34px; font-size: var(--section-copy-size); }
    .kh-header { padding-top: 20px; padding-bottom: 20px; }
    .kh-header.is-scrolled { padding-top: 12px; padding-bottom: 12px; }
    .kh-header__brand { width: 154px; }
    .kh-header__cta { display: none; }
    .kh-menu-toggle__label { display: none; }
    .kh-menu { overflow-y: auto; overscroll-behavior: contain; }
    .kh-menu__inner {
        display: block;
        min-height: 100svh;
        height: auto;
        padding-top: max(150px, 18svh);
        padding-bottom: max(28px, env(safe-area-inset-bottom));
    }
    .kh-menu__inner > .kh-eyebrow { margin-bottom: 26px; }
    .kh-menu__list li { padding: 10px 0; grid-template-columns: 34px minmax(0, 1fr); }
    .kh-menu__list a { font-size: clamp(36px, 11vw, 44px); overflow-wrap: anywhere; }
    .kh-menu__phone {
        position: static;
        display: block;
        width: fit-content;
        margin: 28px 0 0 34px;
        font-size: clamp(18px, 5vw, 20px);
        white-space: nowrap;
    }
    .kh-hero { height: calc(620svh + var(--hero-browser-inset)); }
    .kh-hero__sticky { height: 100lvh; }
    .kh-hero__intro {
        right: var(--gutter);
        bottom: calc(86px + var(--hero-browser-inset));
        left: var(--gutter);
        display: block;
        width: auto;
    }
    .kh-hero__place { margin-bottom: 18px; }
    .kh-hero__intro h1 { font-size: clamp(39px, 11.4vw, 55px); line-height: 0.9; }
    .kh-hero__lead { width: auto; max-width: 86%; margin: 25px auto 0 0; justify-self: auto; font-size: var(--hero-copy-size); }
    .kh-hero__facts { right: var(--gutter); bottom: calc(190px + var(--hero-browser-inset)); left: var(--gutter); width: auto; }
    .kh-hero-fact h2 { max-width: 90%; font-size: clamp(39px, 13vw, 59px); }
    .kh-hero-fact > p:last-child { max-width: 90%; font-size: var(--hero-copy-size); }
    .kh-hero__progress { right: var(--gutter); bottom: calc(24px + var(--hero-browser-inset)); left: var(--gutter); grid-template-columns: 1fr auto; }
    .kh-hero__progress-label { display: none; }
    .kh-plan { padding-right: 0; padding-left: 0; }
    .kh-plan .kh-section-head { padding-right: var(--gutter); padding-left: var(--gutter); }
    .kh-plan__figure { width: calc(100% - 36px); height: auto; aspect-ratio: 1500 / 1061; margin-top: 74px; }
    .kh-plan__figure figcaption span:last-child { display: none; }
    .kh-video { min-height: auto; padding-top: 86px; padding-bottom: 96px; }
    .kh-video__copy { display: block; margin-bottom: 50px; }
    .kh-video__copy .kh-eyebrow { margin-bottom: 24px; }
    .kh-video__copy h2 {
        max-width: 100%;
        font-size: var(--mobile-section-title);
        letter-spacing: -0.055em;
        line-height: 0.98;
        overflow-wrap: anywhere;
    }
    .kh-video__copy > p:last-child { max-width: 88%; margin-top: 28px; }
    .kh-video__window { width: 100% !important; height: auto; aspect-ratio: 4 / 5; }
    .kh-play { top: 50%; left: 50%; transform: translate(-50%, -50%); }
    .kh-play span { width: 100px; height: 100px; }
    .kh-complex__intro > .kh-eyebrow,
    .kh-complex__intro > .kh-display,
    .kh-complex__intro > p:last-child { grid-column: 1; }
    .kh-complex__intro > .kh-eyebrow { margin-bottom: 28px; }
    .kh-complex__intro > p:last-child { margin-top: 32px; font-size: var(--section-copy-size); }
    .kh-complex__dossier { display: block; margin-top: 80px; }
    .kh-complex__stage { display: none; }
    .kh-complex-chapter { min-height: auto; padding: 64px 0; opacity: 1; }
    .kh-complex-chapter__mobile-image {
        display: block;
        width: 100%;
        height: 86vw;
        margin-bottom: 38px;
    }
    .kh-complex-chapter__mobile-image img { width: 100%; height: 100%; object-fit: cover; }
    .kh-complex-chapter__number { margin-bottom: 22px; }
    .kh-complex-chapter h3 { font-size: clamp(34px, 10.5vw, 46px); overflow-wrap: anywhere; }
    .kh-stats { margin-top: 30px; }
    .kh-stats > div { min-height: 170px; padding: 24px 18px 20px 0; }
    .kh-stats > div:nth-child(odd) { padding-left: 0; }
    .kh-stats > div:nth-child(even) { padding-left: 18px; }
    .kh-stats dt { font-size: 11vw; }
    .kh-stats dd { margin-top: 28px; font-size: 10px; }
    .kh-gallery { padding-right: 0; padding-left: 0; }
    .kh-gallery__head > div:first-child,
    .kh-gallery__filters { grid-column: 1; }
    .kh-gallery__filters { justify-content: flex-start; margin-top: 34px; gap: 16px 20px; }
    .kh-gallery__rail { margin-top: 52px; gap: 12px; }
    .kh-gallery-item { height: auto; }
    .kh-gallery-item--widescreen,
    .kh-gallery-item--panoramic { width: 94.5vw; aspect-ratio: 2 / 1; }
    .kh-gallery-item--square { width: 47.25vw; aspect-ratio: 1; }
    .kh-gallery__controls { grid-template-columns: 42px minmax(80px, 1fr) 42px; margin-top: 24px; }
    .kh-layouts { display: flex; padding-top: 76px; flex-direction: column; gap: 70px; }
    .kh-layouts__images { width: 100%; min-height: 520px; }
    .kh-layouts__main { width: 88%; height: 440px; }
    .kh-layouts__small { width: 48%; height: 230px; box-shadow: -12px -12px 0 var(--paper); }
    .kh-layouts__content .kh-display { font-size: 13vw; }
    .kh-layouts__columns { grid-template-columns: 1fr; }
    .kh-panorama { min-height: 100svh; }
    .kh-panorama__media { clip-path: inset(calc(17% - var(--portal-open, 0) * 17%) calc(12% - var(--portal-open, 0) * 12%)); }
    .kh-panorama__content h2 { font-size: 15vw; }
    .kh-panorama__content > p:not(.kh-eyebrow) { font-size: var(--section-copy-size); }
    .kh-lead { display: flex; padding-top: 96px; padding-bottom: 0; flex-direction: column; gap: 68px; }
    .kh-lead__image {
        order: 2;
        width: calc(100% + var(--gutter) + var(--gutter));
        min-height: 0;
        aspect-ratio: 3 / 4;
        margin-left: calc(0px - var(--gutter));
    }
    .kh-lead__content { order: 1; }
    .kh-lead__content .kh-display { font-size: 15vw; }
    .kh-footer { padding-top: 72px; }
    .kh-footer__top { grid-template-columns: 1fr; gap: 58px; }
    .kh-footer__logo { width: 230px; }
    .kh-footer__pre-map { margin-top: 54px; align-items: flex-start; flex-direction: column; justify-content: flex-start; gap: 20px; }
    .kh-footer__map-section { height: 340px; margin-top: 28px; }
    .kh-footer__address { right: 12px; bottom: 12px; left: 12px; max-width: none; padding: 18px; }
    .kh-footer__socials { flex-wrap: wrap; }
    .kh-dialog__close { top: 15px; right: 14px; }
    .kh-dialog__video { padding: 80px 0 30px; }
    .kh-dialog--lightbox figure { padding: 70px 14px 82px; }
    .kh-lightbox__nav { top: auto; bottom: 18px; width: 48px; height: 48px; transform: none; }
    .kh-lightbox__nav--prev { left: 14px; }
    .kh-lightbox__nav--next { right: 14px; }
    .kh-lightbox__count { bottom: 34px; }
    .kh-agent { right: 12px; bottom: 82px; width: calc(100vw - 24px); height: 356px; }
    .kh-agent__card { width: 100%; bottom: 84px; min-height: 252px; padding: 26px 22px; border-radius: 24px 24px 6px 24px; }
    .kh-agent__avatar { width: 68px; height: 68px; }
    .kh-agent__card h2 { font-size: 38px; }

    .kh-video__copy h2,
    .kh-section-head .kh-display,
    .kh-complex__intro .kh-display,
    .kh-complex-chapter h3,
    .kh-gallery__head .kh-display,
    .kh-layouts__content .kh-display,
    .kh-panorama__content h2,
    .kh-lead__content .kh-display {
        max-width: 100%;
        font-size: var(--mobile-section-title);
        font-weight: 350;
        letter-spacing: -0.055em;
        line-height: 0.98;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .kh-hero { height: 100svh; }
    .kh-hero__intro { opacity: 1 !important; transform: none !important; }
    .kh-hero__facts { display: none; }
    .kh-reveal-ready [data-content-reveal],
    .kh-reveal-ready [data-title-reveal] { opacity: 1 !important; transform: none !important; }
    .kh-plan__figure { width: var(--page); }
    .kh-panorama__media { clip-path: inset(0); }
    [data-parallax-image] { transform: none !important; }
    .kh-agent__avatar::before,
    .kh-agent__avatar::after { display: none; }
}
