/* Display: высококонтрастная антиква (заголовки). Text/UI: гротеск.
 * Шрифты: не подключать через @import — блокирует парсинг CSS.
 * Добавьте в index.html:
 *   <link rel="preconnect" href="https://fonts.googleapis.com" />
 *   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
 *   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;1,6..96,400&family=Inter:wght@300;400;500&display=swap" />
 */

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
 */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */
  tab-size: 4; /* 3 */
  font-family: Inter, SF Pro Display, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.pointer-events-none {
  pointer-events: none;
}

.pointer-events-auto {
  pointer-events: auto;
}

.\!visible {
  visibility: visible !important;
}

.visible {
  visibility: visible;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.inset-0 {
  inset: 0px;
}

.top-0 {
  top: 0px;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.hidden {
  display: none;
}

.h-\[100dvh\] {
  height: 100dvh;
}

.h-full {
  height: 100%;
}

.min-h-\[100dvh\] {
  min-height: 100dvh;
}

.w-full {
  width: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-xs {
  max-width: 20rem;
}

.flex-grow {
  flex-grow: 1;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.resize {
  resize: both;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.overflow-hidden {
  overflow: hidden;
}

.text-balance {
  text-wrap: balance;
}

.border {
  border-width: 1px;
}

.object-cover {
  object-fit: cover;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.text-center {
  text-align: center;
}

.text-\[10px\] {
  font-size: 10px;
}

.text-\[11px\] {
  font-size: 11px;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-normal {
  font-weight: 400;
}

.uppercase {
  text-transform: uppercase;
}

.italic {
  font-style: italic;
}

.leading-\[0\.88\] {
  line-height: 0.88;
}

.leading-relaxed {
  line-height: 1.625;
}

.tracking-\[0\.28em\] {
  letter-spacing: 0.28em;
}

.tracking-\[0\.42em\] {
  letter-spacing: 0.42em;
}

.text-white\/45 {
  color: rgb(255 255 255 / 0.45);
}

.text-white\/95 {
  color: rgb(255 255 255 / 0.95);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

:root {
  --bg: #FFFFFF;
  --fg-strong: #1A1A1A;
  --fg-soft: rgba(26, 26, 26, 0.62);
  --fg-faint: rgba(26, 26, 26, 0.40);
  --hairline: rgba(26, 26, 26, 0.14);
  --accent: #1F3A2C;
  --accent-ink: #FFFFFF;
  --bg-warm: #F5F3EE;
  --font-display: "Bodoni Moda", "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body, #root { min-height: 100%; }

html, body {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg-strong);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.display { font-family: var(--font-display); font-optical-sizing: auto; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ── Site nav — прозрачный над hero → бумага при скролле ─ */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 0;
  padding: 16px 20px;
  min-height: 56px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.7s cubic-bezier(0.65, 0, 0.35, 1),
    border-color 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 640px) {
  .site-nav {
    padding: 20px 28px;
    min-height: 64px;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 56px;
    min-height: 72px;
  }
}

.site-nav.scrolled {
  background: var(--bg);
  border-bottom-color: var(--hairline);
}

.site-nav.menu-open {
  background: var(--bg);
  border-bottom-color: var(--hairline);
}

.site-nav.menu-open .site-nav__word,
.site-nav.menu-open .site-nav__burger,
.site-nav.menu-open .site-nav__cta {
  color: var(--fg-strong);
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  flex-shrink: 1;
}

@media (min-width: 640px) {
  .site-nav__logo { gap: 12px; }
}

.site-nav__mark {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .site-nav__mark { height: 30px; }
}

@media (min-width: 1024px) {
  .site-nav__mark { height: 32px; }
}

.site-nav__mark-full {
  height: 22px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .site-nav__mark-full { height: 26px; }
}

@media (min-width: 1024px) {
  .site-nav__mark-full { height: 30px; }
}

.site-nav__word {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .site-nav__word {
    font-size: 10px;
    letter-spacing: 0.32em;
  }
}

@media (min-width: 1024px) {
  .site-nav__word { font-size: 11px; }
}

.site-nav.scrolled .site-nav__word { color: var(--fg-strong); }

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

@media (min-width: 640px) {
  .site-nav__brand { gap: 16px; }
}

.site-nav__sep {
  display: none;
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.site-nav.scrolled .site-nav__sep {
  background: var(--hairline);
}

@media (min-width: 640px) {
  .site-nav--subpage .site-nav__sep { display: block; }
}

.site-nav__page {
  display: none;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  transition: color 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 640px) {
  .site-nav__page {
    display: block;
    font-size: 10px;
  }
}

.site-nav.scrolled .site-nav__page {
  color: var(--fg-faint);
}

.site-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: end;
}

.site-nav__back-arrow {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.site-nav__back:hover .site-nav__back-arrow {
  transform: translateX(-3px);
}

@media (min-width: 1024px) {
  .site-nav--subpage {
    display: flex;
    justify-content: space-between;
    gap: 24px;
  }
  .site-nav--subpage .site-nav__back {
    margin-left: auto;
  }
}

.site-nav__links {
  display: none;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .site-nav__links { display: flex; }
}

.site-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .site-nav__actions { gap: 16px; }
}

.site-nav__modes {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav__modes { display: block; }
}

.site-nav__cta {
  display: none;
  align-items: center;
  padding: 10px 28px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s, color 0.4s;
}

@media (min-width: 640px) {
  .site-nav__cta { display: inline-flex; }
}

.site-nav__cta:hover {
  background: #264a36;
  box-shadow: 0 4px 20px rgba(31, 58, 44, 0.4);
}

.site-nav.scrolled .site-nav__cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.site-nav.scrolled .site-nav__cta:hover {
  background: #264a36;
}

.site-nav__burger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.4s;
}

@media (min-width: 640px) {
  .site-nav__burger { font-size: 10px; }
}

.site-nav.scrolled .site-nav__burger { color: var(--fg-strong); }

@media (min-width: 1024px) {
  .site-nav__burger { display: none; }
}

.site-nav__burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 14px;
}

.site-nav__burger-icon span {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.4s;
}

.site-nav.menu-open .site-nav__burger-icon span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-nav.menu-open .site-nav__burger-icon span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.site-nav__drawer {
  position: fixed;
  inset: 56px 0 0 0;
  z-index: 199;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 32px 20px 48px;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.5s cubic-bezier(0.65, 0, 0.35, 1),
    transform 0.5s cubic-bezier(0.65, 0, 0.35, 1),
    visibility 0.5s;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .site-nav__drawer {
    inset: 64px 0 0 0;
    padding: 40px 28px 56px;
  }
}

.site-nav.menu-open .site-nav__drawer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .site-nav__drawer { display: none; }
}

.site-nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.site-nav__drawer-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.36em;
  color: var(--fg-strong);
  text-decoration: none;
  transition: color 0.4s;
}

.site-nav__drawer-link:hover {
  color: var(--accent);
}

.site-nav__drawer-modes {
  padding-top: 8px;
  border-top: 1px solid var(--hairline); display: none;
}

/* Текстовый CTA — анимированное подчёркивание */

.text-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--fg-strong);
  text-decoration: none;
  padding-bottom: 3px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0% 1px;
  transition: background-size 0.7s cubic-bezier(0.65, 0, 0.35, 1), color 0.4s;
}

.text-link:hover { background-size: 100% 1px; }

.site-nav .text-link {
  color: rgba(255, 255, 255, 0.88);
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
}

.site-nav .text-link:hover { color: rgba(255, 255, 255, 0.95); }

.site-nav.scrolled .text-link {
  color: var(--fg-strong);
  background-image: linear-gradient(var(--accent), var(--accent));
}

.site-nav.scrolled .text-link:hover { color: var(--fg-strong); }

/* ── Hero (full-bleed видео/фото) ───────────────────── */

.hero {
  position: relative; height: 78vh; min-height: 520px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}

.hero .ph { position: absolute; inset: 0; }

.hero .veil {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 50%, transparent 72%, rgba(0,0,0,.18) 100%);
}

.hero .eyebrow {
  position: relative; z-index: 2;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5em;
  color: rgba(255,255,255,.7); margin-bottom: 28px;
}

.hero h1 {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4rem, 13vw, 12rem); line-height: .9;
  letter-spacing: 0.02em; color: rgba(255,255,255,.96);
}

/* ── ConstructionCanvas — scroll-scrub стройки ───────── */

.cc { position: relative; height: calc(85vh - 103px); background: var(--bg); }

.cc-sticky {
  position: relative; height: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.cc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.cc-veil {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 80% at 50% 50%, transparent 60%, rgba(0,0,0,.34) 100%);
}

.cc-overlay {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; transition: opacity .2s linear;
}

.cc-overlay .eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5em;
  color: rgba(255,255,255,.7); margin-bottom: 28px;
}

.cc-overlay h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4rem, 13vw, 12rem); line-height: .9;
  letter-spacing: 0.02em; color: rgba(255,255,255,.96);
}

.cc-loading {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  font-size: 11px; text-transform: uppercase; letter-spacing: .42em; color: var(--fg-faint);
}

.cc-hint {
  position: absolute; left: 50%; bottom: 32px; z-index: 2; transform: translateX(-50%);
  font-size: 10px; text-transform: uppercase; letter-spacing: .42em;
  color: rgba(255,255,255,.7);
  animation: cc-bob 2.4s ease-in-out infinite;
}

@keyframes cc-bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* Видео-баннер в стиле Hero (чуть ниже, заголовок h2) */

.banner { height: 70vh; min-height: 460px; }

.banner-title {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 6rem); line-height: .95;
  letter-spacing: 0.02em; color: rgba(255,255,255,.96);
}

/* ── Editorial ───────────────────────────────────────── */

.section { padding: 128px 56px; overflow-x: clip; }

.wrap { max-width: 1040px; margin: 0 auto; min-width: 0; }

.kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5em; color: var(--fg-faint); }

.kicker.season { letter-spacing: 0.42em; }

.section h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem); line-height: 1.0;
  letter-spacing: 0.12em; margin-top: 20px; max-width: 760px;
  text-transform: uppercase;
}

.section h2 .it { font-style: italic; color: var(--accent); text-transform: none; letter-spacing: 0.02em; }

.lede { margin-top: 24px; max-width: 460px; font-size: 15px; line-height: 1.7; color: var(--fg-soft); font-weight: 300; }

.section .text-link { margin-top: 36px; }

.editorial-ph {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--bg-warm);
  aspect-ratio: 3/4;
}

.editorial-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.editorial-split {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 80px;
  min-width: 0;
  margin-left: -56px;
  margin-right: -56px;
  width: calc(100% + 112px);
}

.editorial-split-item {
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.editorial-split-item .cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
}

.editorial-split-item .cap .l { color: rgba(255,255,255,0.7); }

.editorial-split-item .cap .num { color: rgba(255,255,255,0.5); }

.editorial-split-item .cap .ttl { color: #fff; }

.editorial-split-item .cap .desc { text-align: left; color: rgba(255,255,255,0.75); }

.cap { margin-top: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 40px; }

.cap .l { display: flex; align-items: baseline; gap: 16px; }

.cap .num { font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--fg-faint); }

.cap .ttl { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-strong); }

.cap .desc { max-width: 380px; font-size: 13px; line-height: 1.6; color: var(--fg-soft); text-align: right; }

.footer-line {
  max-width: 1040px; margin: 80px auto 0; padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--fg-faint);
}

/* ── Видео внутри плейсхолдеров (object-fit) ────────── */

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

/* ── DualVideo — full-bleed ─────────────────────────── */

.dual-video {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 78vh; min-height: 520px;
}

.dual-video--single {
  grid-template-columns: 1fr;
}

.dv-pane { position: relative; overflow: hidden; background: var(--bg-warm); height: 100%; min-height: 100%; }

.dv-pane .ph { position: absolute; inset: 0; }

.dv-pane-loading,
.banner-loading {
  background-color: var(--bg-warm);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(26, 22, 15, 0.05) 0 12px,
    transparent 12px 24px
  );
}

/* Canvas — фоновая загрузка оставшихся кадров */

.canvas-frames-progress {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  width: min(280px, calc(100% - 48px));
  transform: translateX(-50%);
}

.canvas-frames-progress-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

.canvas-frames-progress-track {
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.canvas-frames-progress-bar {
  height: 100%;
  background: var(--accent-ink);
  transition: width 0.4s linear;
}

.dv-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.28) 0%, transparent 50%);
}

.dv-cap { position: absolute; left: 40px; bottom: 36px; z-index: 2; display: flex; flex-direction: column; gap: 10px; }

.dv-cap--stack { gap: 8px; max-width: min(480px, calc(100% - 80px)); }

.dv-label { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 3.5vw, 3rem); color: rgba(255,255,255,.96); line-height: 1; }

.dv-caption { font-size: 11px; text-transform: uppercase; letter-spacing: .32em; color: rgba(255,255,255,.7); }

.dv-subline { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.78); font-weight: 300; }

.dv-vrezka {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.dv-vrezka li {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .dv-vrezka {
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
    margin-top: 0;
    padding-top: 0;
    transition:
      opacity 0.5s cubic-bezier(0.65, 0, 0.35, 1),
      transform 0.5s cubic-bezier(0.65, 0, 0.35, 1),
      max-height 0.55s cubic-bezier(0.65, 0, 0.35, 1),
      margin 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .dv-pane:hover .dv-vrezka {
    max-height: 160px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
  }
}

.vrezka {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vrezka li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-soft);
}

.vrezka li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.editorial-vrezka {
  margin-top: 28px;
  max-width: 520px;
}

.editorial-vrezka li {
  padding-left: 0;
}

.editorial-vrezka li::before {
  content: none;
}

.editorial-cta { margin-top: 36px; }

/* ── LeadModal — модальное окно заявки ──────────────── */

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: lm-fade 0.4s ease both;
}

.lead-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: var(--bg);
  border-top: 2px solid var(--accent);
  padding: 48px 40px 40px;
  animation: lm-pop 0.5s cubic-bezier(0.65, 0, 0.35, 1) both;
}

@keyframes lm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lm-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--fg-faint);
  cursor: pointer;
  transition: color 0.4s;
}

.lead-modal__close:hover { color: var(--fg-strong); }

.lead-modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-top: 16px;
}

.lead-modal__lede {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--fg-soft);
}

.lead-modal__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.lead-modal__form .btn-solid { margin-top: 4px; }

.lead-modal--sheet {
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0;
}

.lead-modal--sheet .lead-modal__title {
  margin-top: 4px;
}

.lead-modal--sheet .lead-modal__form {
  margin-top: 24px;
}

.lead-modal__done { padding: 16px 0; }

/* ── CaptionedVideo ─────────────────────────────────── */

.cv {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
}

.cv-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--cv-ratio, 16 / 9);
  overflow: hidden;
  line-height: 0;
}

.cv-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* ponytail: scale crops baked-in letterbox bars from video files */
  transform: scale(var(--cv-media-scale, 1.06));
  transform-origin: center center;
}

.cv-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.18) 38%,
    transparent 66%
  );
  pointer-events: none;
}

.cv-cap {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(28px, 6vh, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vh, 20px);
  max-width: 560px;
  line-height: normal;
}

.cv-eyebrow {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.cv-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.98);
  margin: 0;
}

.cv-vrezka {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-vrezka li {
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.55;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

/* ── Кнопки ─────────────────────────────────────────── */

.btn {
  display: inline-block;
  border: 1px solid var(--accent); color: var(--accent);
  padding: 16px 40px; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  text-decoration: none; transition: background .4s, color .4s; cursor: pointer; background: transparent;
  font-family: var(--font-sans);
}

.btn:hover { background: var(--accent); color: var(--accent-ink); }

.btn-solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.btn-solid:hover { background: transparent; color: var(--accent); }

/* Светлая кнопка — для тёмных подложек (видео) */

.btn-light { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }

.btn-light:hover { background: transparent; color: var(--accent-ink); border-color: rgba(255,255,255,0.7); }

.cv-cta { align-self: flex-start; margin-top: 4px; }

/* ── PhotoStrip — 4 квадратных фото в ряд ────────── */

.pstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  width: 100%;
}

.pstrip-fig {
  margin: 0;
  position: relative;
}

.pstrip-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

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

.pstrip-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.pstrip-cap {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--muted);
  padding: 14px 4px 18px;
}

/* ── LocationSection — curtain split ──────────────── */

.loc {
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  background: var(--accent);
  font-family: var(--font-sans);
  overflow: hidden;
}

/* ── Mobile fallback: обычный grid ── */

.loc-split {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  min-height: 100dvh;
}

.loc-glass {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2.5vh, 28px);
  padding: clamp(28px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  min-width: 0;
  overflow: hidden;
}

.loc-visual {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
  min-height: clamp(280px, 52dvh, 420px);
}

/* ── Desktop: curtain mode ── */

.loc--curtain {
  position: relative;
  overflow: hidden;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

/* Нижний слой — карта на 100% */

.loc-curtain__map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Щит поверх iframe — блокирует перехват событий при drag */

.loc-curtain__shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: ew-resize;
}

/* Верхний слой — зелёный блок, обрезается clip-path */

.loc-curtain__content {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--accent);
  pointer-events: none;
}

.loc-curtain__inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  width: 50vw;
  min-width: 480px;
  height: 100%;
  padding: clamp(48px, 6vw, 96px);
  pointer-events: auto;
  background:
    linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(31, 58, 44, 0.97) 30%,
      var(--accent) 100%
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Ползунок — линия */

.loc-curtain__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Ползунок — кнопка */

.loc-curtain__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 21;
  pointer-events: auto;
  width: 44px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.85);
  cursor: ew-resize;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
  padding: 0;
}

.loc-curtain__handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(31, 58, 44, 1);
  border-color: rgba(255, 255, 255, 0.45);
}

/* ── Общие элементы (текст, список, карта) ── */

.loc-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 22px;
}

.loc-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.98);
  margin: 0;
  max-width: 16ch;
}

.loc-title__accent {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  text-transform: none;
  letter-spacing: 0.01em;
}

.loc-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.loc-marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
}

.loc-marquee__track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: loc-scroll 28s linear infinite;
  width: max-content;
}

.loc-marquee__item {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 0 14px;
  flex-shrink: 0;
}

.loc-marquee__dot {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  padding: 0 4px;
  flex-shrink: 0;
}

@keyframes loc-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── YandexMap shared ── */

.ymap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ymap__canvas {
  width: 100%;
  height: 100%;
}

.ymap__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.loc-ymap {
  filter: grayscale(12%) contrast(0.98) saturate(0.9);
}

.loc-map-open {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 58, 44, 0.1);
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: background 0.3s, color 0.3s;
}

.loc-map-open:hover {
  background: var(--accent-ink);
  color: var(--accent);
}

/* ── ApplyForm — секция с формой заявки ─────────────── */

.apply { padding: 128px 56px; border-top: 1px solid var(--hairline); }

.apply-wrap {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start;
}

.apply-intro h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.02; letter-spacing: .01em; margin-top: 20px;
}

.apply-intro h2 .it { font-style: italic; color: var(--accent); }

.apply-intro .lede { margin-top: 24px; }

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

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

.field-label { font-size: 10px; text-transform: uppercase; letter-spacing: .42em; color: var(--fg-faint); }

.field-input {
  border: 0; border-bottom: 1px solid var(--hairline); background: transparent;
  padding: 8px 0; font-size: 16px; font-family: var(--font-sans); color: var(--fg-strong);
  transition: border-color .4s;
}

.field-input::placeholder { color: var(--fg-faint); }

.field-input:focus { outline: none; border-bottom-color: var(--accent); }

.field-textarea { resize: vertical; min-height: 64px; line-height: 1.6; }

.apply-form .btn { align-self: flex-start; margin-top: 8px; }

.apply-note { font-size: 11px; line-height: 1.6; color: var(--fg-faint); max-width: 380px; }

.apply-done { padding: 40px 0; }

.apply-done-text { margin-top: 16px; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.2; color: var(--fg-strong); max-width: 420px; }

/* ── Footer — большой подробный ─────────────────────── */

/* ── Footer — curtain reveal ─────────────────────────── */

.footer-stage { overflow: hidden; position: relative; z-index: 0; background: var(--accent); }

.footer {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 100px 56px 40px;
  will-change: transform, opacity;
}

.footer-inner { will-change: transform, opacity; }

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(246, 244, 239, 0.18);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--accent-ink);
}

.footer-logo-mark {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer-tagline {
  margin-top: 24px;
  max-width: 300px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: rgba(246, 244, 239, 0.62);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: rgba(246, 244, 239, 0.5);
  font-weight: 500;
  margin-bottom: 4px;
}

.footer-col a,
.footer-static {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  line-height: 1.5;
  color: rgba(246, 244, 239, 0.86);
  text-decoration: none;
  transition: color 0.4s;
}

.footer-col a[href^="tel"],
.footer-col a[href^="mailto"] {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
}

.footer-col a:hover { color: var(--accent-ink); }

.footer-social { display: flex; align-items: center; gap: 14px; margin-top: 4px; }

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(246, 244, 239, 0.28);
  border-radius: 50%;
  color: rgba(246, 244, 239, 0.86);
  transition: color 0.4s, border-color 0.4s, background 0.4s;
}

.footer-col .footer-social-link:hover {
  color: var(--accent);
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.footer-social-icon { width: 20px; height: 20px; display: block; }

.footer-static {
  color: rgba(246, 244, 239, 0.55);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 13px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: rgba(246, 244, 239, 0.5);
}

.footer-copy {
  min-width: 0;
  line-height: 1.6;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  flex-shrink: 0;
}

.footer-legal a {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: rgba(246, 244, 239, 0.5);
  text-decoration: none;
  transition: color 0.4s;
}

.footer-legal a:hover { color: var(--accent-ink); }

/* ── Footer map ─────────────────────────────────────── */

.footer-map-wrap {
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-map {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(220px, 42vw, 420px);
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(246, 244, 239, 0.18);
}

.footer-map-canvas,
.footer-map-frame,
.footer-map-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

.footer-map-canvas {
  touch-action: pan-x pan-y;
}

.footer-map-frame {
  filter: grayscale(18%) contrast(0.98) saturate(0.88) brightness(0.92);
}

.footer-map-placeholder {
  background: linear-gradient(
    145deg,
    rgba(0, 0, 0, 0.14) 0%,
    rgba(246, 244, 239, 0.08) 100%
  );
}

.footer-map-open {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(246, 244, 239, 0.94);
  border: 1px solid rgba(31, 58, 44, 0.1);
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: background 0.3s, color 0.3s;
}

.footer-map-open:hover {
  background: var(--accent-ink);
  color: var(--accent);
}

.footer-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.footer-map-pin--geo {
  position: relative;
  left: auto;
  top: auto;
  width: max-content;
  transform: none;
  pointer-events: auto;
}

.footer-map-pin-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 20px 10px 12px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.footer-map-pin-logo {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer-map-pin-word {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-ink);
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 0.22em;
}

.footer-map-pin-stem {
  display: block;
  width: 2px;
  height: 16px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

@media (max-width: 720px) {
  .footer-map-wrap {
    margin-bottom: 32px;
  }
  .footer-map {
    height: clamp(200px, 56vw, 280px);
    border-radius: 6px;
  }
  .footer-map-pin-label {
    gap: 8px;
    padding: 8px 16px 8px 10px;
  }
  .footer-map-pin-logo {
    height: 20px;
  }
  .footer-map-pin-word {
    font-size: 8px;
    letter-spacing: 0.18em;
    padding-right: 0.18em;
  }
  .footer-map-pin-stem {
    height: 12px;
  }
}

@media (max-width: 480px) {
  .footer-map-wrap {
    margin-bottom: 28px;
  }
  .footer-map {
    border-radius: 6px;
  }
  .footer-map-pin-label {
    gap: 7px;
    padding: 7px 14px 7px 9px;
  }
  .footer-map-pin-logo {
    height: 18px;
  }
  .footer-map-pin-word {
    font-size: 7px;
    letter-spacing: 0.16em;
    padding-right: 0.16em;
  }
}

@media (max-width: 1024px) {
  .footer { padding: 80px 40px 36px; }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-bottom: 56px;
  }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
  .footer-tagline { max-width: 420px; }
}

@media (max-width: 720px) {
  .footer { padding: 64px 28px 28px; }
  .footer-top {
    gap: 44px;
    padding-bottom: 44px;
  }
  .footer-logo { gap: 12px; }
  .footer-logo-mark { height: 40px; }
  .footer-tagline {
    margin-top: 18px;
    font-size: 13px;
    max-width: none;
  }
  .footer-cols { gap: 36px 24px; }
  .footer-col { gap: 12px; }
  .footer-col-title {
    letter-spacing: 0.32em;
    margin-bottom: 2px;
  }
  .footer-col a { letter-spacing: 0.24em; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 28px;
    letter-spacing: 0.28em;
  }
  .footer-legal {
    flex-direction: column;
    gap: 12px;
  }
  .footer-legal a { letter-spacing: 0.28em; }
}

@media (max-width: 480px) {
  .footer { padding: 56px 20px 24px; }
  .footer-top {
    gap: 36px;
    padding-bottom: 36px;
  }
  .footer-logo {
    font-size: 9px;
    letter-spacing: 0.28em;
  }
  .footer-logo-mark { height: 34px; }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-col-title {
    font-size: 9px;
    letter-spacing: 0.28em;
  }
  .footer-col a {
    font-size: 10px;
    letter-spacing: 0.2em;
    padding: 2px 0;
  }
  .footer-col a[href^="tel"],
  .footer-col a[href^="mailto"] {
    font-size: 14px;
    letter-spacing: 0.01em;
  }
  .footer-static { font-size: 12px; line-height: 1.65; }
  .footer-bottom {
    font-size: 9px;
    letter-spacing: 0.22em;
    gap: 16px;
    margin-top: 24px;
  }
  .footer-legal a {
    font-size: 9px;
    letter-spacing: 0.22em;
    line-height: 1.5;
  }
}

/* ── SiteNav dark variant (flats page) ─────────────── */

.site-nav--dark {
  background: var(--accent) !important;
  border-bottom-color: rgba(246, 244, 239, 0.18) !important;
}

.site-nav--dark .site-nav__word,
.site-nav--dark .site-nav__burger,
.site-nav--dark .site-nav__cta {
  color: rgba(246, 244, 239, 0.88) !important;
}

.site-nav--dark .text-link {
  color: rgba(246, 244, 239, 0.88) !important;
  background-image: linear-gradient(rgba(246, 244, 239, 0.9), rgba(246, 244, 239, 0.9)) !important;
}

.site-nav--dark .text-link:hover {
  color: var(--accent-ink) !important;
}

/* ── Flats page ────────────────────────────────────── */

.flats-page {
  padding-top: 96px;
  min-height: 100vh;
}

.flats-header {
  padding: 40px 56px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.flats-header__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 12px;
}

.flats-header__tabs {
  display: flex;
  gap: 0;
  margin-top: 32px;
  border-bottom: 1px solid var(--hairline);
}

.flats-tab {
  padding: 14px 28px;
  border: 0;
  background: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--fg-faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.3s, border-color 0.3s;
}

.flats-tab--active {
  color: var(--fg-strong);
  border-bottom-color: var(--accent);
}

.flats-tab:disabled:not(.flats-tab--active) {
  opacity: 0.4;
  cursor: default;
}

.flats-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 56px 80px;
  align-items: start;
}

/* ── Sidebar ──────────────────────────────────────── */

.flats-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.flats-sidebar__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flats-sidebar__title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--fg-faint);
}

.flats-sidebar__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flats-pill {
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  cursor: pointer;
  transition: all 0.25s;
}

.flats-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.flats-pill--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Tags / checkboxes */

.flats-sidebar__tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flats-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-soft);
  cursor: pointer;
  transition: color 0.25s;
}

.flats-tag:hover { color: var(--fg-strong); }

.flats-tag input { display: none; }

.flats-tag__box {
  width: 18px;
  height: 18px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.flats-tag input:checked + .flats-tag__box {
  background: var(--accent);
  border-color: var(--accent);
}

.flats-tag input:checked + .flats-tag__box::after {
  content: "✓";
  color: var(--accent-ink);
  font-size: 11px;
  line-height: 1;
}

.flats-sidebar__reset {
  padding: 0;
  border: 0;
  background: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
  align-self: flex-start;
}

.flats-sidebar__reset:hover { color: var(--fg-strong); }

/* ── Range slider ─────────────────────────────────── */

.range-slider__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.range-slider__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--fg-faint);
}

.range-slider__values {
  font-size: 12px;
  color: var(--fg-soft);
  letter-spacing: 0.02em;
}

.range-slider__track {
  position: relative;
  height: 3px;
  background: var(--hairline);
  border-radius: 2px;
}

.range-slider__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--accent);
  border-radius: 2px;
}

.range-slider__input {
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  height: 16px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
}

.range-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  cursor: pointer;
  pointer-events: auto;
}

.range-slider__input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  cursor: pointer;
  pointer-events: auto;
}

/* ── Sort bar ─────────────────────────────────────── */

.flats-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.flats-sort__count {
  font-size: 13px;
  color: var(--fg-soft);
}

.flats-sort__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-faint);
  cursor: pointer;
  transition: color 0.3s;
}

.flats-sort__btn:hover { color: var(--fg-strong); }

.flats-sort__arrow { font-size: 14px; }

/* ── Flat cards grid ──────────────────────────────── */

.flats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.flats-empty {
  padding: 64px 0;
  text-align: center;
  font-size: 14px;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
}

.flats-error {
  padding: 40px 24px;
  text-align: center;
  font-size: 14px;
  color: #b71c1c;
  background: #fce4ec;
  border-radius: 8px;
}

.flats-loading {
  padding: 40px 0;
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--fg-faint);
}

.flats-more {
  display: block;
  margin: 32px auto 0;
}

/* ── Flat card ────────────────────────────────────── */

.flat-card {
  border: 1px solid var(--hairline);
  background: var(--bg);
  transition: box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}

.flat-card:hover {
  border-color: rgba(26,26,26,.28);
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}

.flat-card__image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.flat-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.flat-card__noimg {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--fg-faint);
}

.flat-card__tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.flat-card__tag {
  padding: 4px 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 999px;
}

.flat-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flat-card__type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--fg-strong);
  font-weight: 500;
}

.flat-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flat-card__row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.flat-card__key { color: var(--fg-faint); }

.flat-card__val { color: var(--fg-strong); }

.flat-card__price {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--fg-strong);
  margin-top: 4px;
}

/* ── Flat detail modal / sheet ────────────────────── */

.flat-detail {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.flat-detail--sheet {
  align-items: flex-end;
  padding: 0;
}

.flat-detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: lm-fade 0.35s ease both;
}

.flat-detail__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: var(--bg);
  border-top: 2px solid var(--accent);
  padding: 28px 28px 32px;
  animation: lm-pop 0.45s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.flat-detail__panel--sheet {
  max-width: none;
  max-height: min(88dvh, 640px);
  border-radius: 16px 16px 0 0;
  border-top: 2px solid var(--accent);
  padding: 24px 20px max(24px, env(safe-area-inset-bottom));
  animation: sheet-in 0.28s ease both;
}

.flat-detail__panel--draggable {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(92dvh, 720px);
  padding: 0;
  overflow: hidden;
  animation: none;
  touch-action: none;
  will-change: transform;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.14);
}

.flat-detail__backdrop--sheet {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(10, 10, 10, 0.66);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: none;
}

.flat-detail__drag-zone {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 12px 16px 8px;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
          user-select: none;
}

.flat-detail__drag-zone:active {
  cursor: grabbing;
}

.flat-detail__handle {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.2);
}

.flat-detail__scroll {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px max(24px, env(safe-area-inset-bottom));
}

.flat-detail__panel--draggable .flat-detail__head {
  padding-right: 8px;
}

.flat-detail__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--fg-faint);
  cursor: pointer;
}

.flat-detail__close:hover { color: var(--fg-strong); }

.flat-detail__plan {
  margin: 0 -4px 20px;
  aspect-ratio: 4/3;
  background: var(--bg-warm);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.flat-detail__plan img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.flat-detail__head {
  margin-bottom: 20px;
  padding-right: 36px;
}

.flat-detail__status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}

.flat-detail__status--free {
  background: rgba(31, 58, 44, 0.12);
  color: var(--accent);
}

.flat-detail__status--busy {
  background: var(--bg-warm);
  color: var(--fg-faint);
}

.flat-detail__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.05;
  font-weight: 400;
}

.flat-detail__subtitle {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

.flat-detail__specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}

.flat-detail__spec {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.flat-detail__spec dt {
  color: var(--fg-faint);
  font-weight: 400;
}

.flat-detail__spec dd {
  margin: 0;
  color: var(--fg-strong);
  text-align: right;
}

.flat-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.flat-detail__tag {
  padding: 4px 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 999px;
}

.flat-detail__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.flat-detail__price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  letter-spacing: 0.02em;
  color: var(--fg-strong);
}

.flat-detail__cta {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1023px) {
  .flat-detail:not(.flat-detail--sheet) {
    align-items: flex-end;
    padding: 0;
  }
}

@media (max-width: 1024px) {
  .flats-content {
    grid-template-columns: 240px 1fr;
    gap: 28px;
    padding: 32px 28px 64px;
  }
  .flats-header { padding: 32px 28px 0; }
}

@media (max-width: 720px) {
  .flats-content {
    grid-template-columns: 1fr;
    padding: 24px 20px 56px;
  }
  .flats-header { padding: 24px 20px 0; }
  .flats-sidebar {
    position: static;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 24px;
  }
  .flats-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }
}

/* ── Plan tab ──────────────────────────────────────── */

.plan-tab {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 56px 80px;
}

.plan-tab__sections {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.plan-tab__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .plan-tab__body {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 32px;
    align-items: start;
  }
}

.plan-loading {
  padding: 80px 0;
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--fg-faint);
}

/* ── Interactive floor plan ───────────────────────── */

.plan-view {
  position: relative;
  border: 1px solid var(--hairline);
  background: var(--bg-warm);
  min-height: 400px;
}

.plan-view__loading,
.plan-view__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--fg-faint);
}

.plan-view__image-wrap {
  position: relative;
}

.plan-view__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── SVG polygon overlay ── */

.plan-view__svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.plan-polygon {
  fill: transparent;
  stroke: transparent;
  stroke-width: 4;
  cursor: pointer;
  transition: fill 0.25s, stroke 0.25s;
}

.plan-polygon:hover,
.plan-polygon--active,
.plan-polygon--selected {
  fill: rgba(31, 58, 44, 0.35);
  stroke: var(--accent);
}

/* ── Tooltip ──────────────────────────────────────── */

.plan-tooltip {
  position: absolute;
  z-index: 100;
  min-width: 200px;
  padding: 18px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  animation: tooltip-in 0.2s ease both;
}

@keyframes tooltip-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.plan-tooltip__type {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(246, 244, 239, 0.6);
  margin-bottom: 12px;
}

.plan-tooltip__grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-tooltip__row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}

.plan-tooltip__key {
  color: rgba(246, 244, 239, 0.55);
}

.plan-tooltip__val {
  color: rgba(246, 244, 239, 0.92);
  text-align: right;
}

.plan-tooltip__tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.plan-tooltip__tag {
  padding: 3px 8px;
  background: rgba(246, 244, 239, 0.14);
  border-radius: 999px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(246, 244, 239, 0.72);
}

.plan-tooltip__price {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
}

.plan-tooltip--card {
  position: static;
  min-width: 0;
  width: 100%;
  pointer-events: auto;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  animation: none;
}

/* ── Mobile flat sheet ────────────────────────────── */

.plan-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  padding: 20px 20px max(20px, env(safe-area-inset-bottom));
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  animation: sheet-in 0.28s ease both;
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

.plan-sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 244, 239, 0.12);
  color: var(--accent-ink);
  cursor: pointer;
}

/* ── Floor selector (right sidebar) ───────────────── */

.plan-floors {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  .plan-floors {
    position: sticky;
    top: 96px;
  }
}

.plan-floors__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  text-align: center;
}

.plan-floors__section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--fg-strong);
}

.plan-floors__deadline {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
}

.plan-floors__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: transparent;
  color: var(--fg-soft);
  cursor: pointer;
  transition: all 0.25s;
  flex-shrink: 0;
}

.plan-floors__arrow:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.plan-floors__arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.plan-floors__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: none;
}

.plan-floors__list::-webkit-scrollbar { display: none; }

.plan-floors__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  background: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-faint);
  cursor: pointer;
  transition: all 0.2s;
}

.plan-floors__item:hover {
  color: var(--fg-strong);
}

.plan-floors__item--active {
  font-size: 22px;
  font-weight: 600;
  color: var(--fg-strong);
}

.plan-view--refreshing .plan-view__image-wrap {
  opacity: 0.55;
  transition: opacity 0.2s;
}

.plan-view__refresh {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

/* ── Plan tab: tablet & mobile (<1024px) ──────────── */

@media (max-width: 1023px) {
  .plan-tab {
    padding: 24px 20px 56px;
  }

  .plan-tab__body {
    gap: 16px;
  }

  .plan-floors {
    order: -1;
    width: 100%;
    align-items: stretch;
    gap: 10px;
  }

  .plan-floors__info {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    margin-bottom: 0;
    padding: 0 2px;
    text-align: left;
  }

  .plan-floors__arrow {
    display: none;
  }

  .plan-floors__list {
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-height: none;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 2px;
    padding: 4px 0;
  }

  .plan-floors__item {
    width: 36px;
    height: 40px;
    flex-shrink: 0;
  }

  .plan-floors__item--active {
    font-size: 18px;
    width: 44px;
  }

  .plan-view--mobile {
    min-height: clamp(260px, 50vh, 440px);
    overflow: hidden;
  }

  .plan-view__viewport {
    width: 100%;
    min-height: clamp(260px, 50vh, 440px);
    overflow: hidden;
    touch-action: none;
  }

  .plan-view__transform {
    width: 100% !important;
    height: 100% !important;
    min-height: clamp(260px, 50vh, 440px) !important;
  }

  .plan-view__transform-content {
    width: 100%;
  }

  .plan-view--mobile .plan-view__image {
    width: 100%;
    min-width: 480px;
    max-width: none;
  }

  .plan-polygon {
    stroke-width: 6;
  }
}

@media (max-width: 720px) {
  .plan-tab { padding: 24px 20px 56px; }
}

/* striped placeholder */

.ph {
  background-color: var(--bg-warm);
  background-image: repeating-linear-gradient(135deg, rgba(26,22,15,.05) 0 12px, transparent 12px 24px);
  display: flex; align-items: center; justify-content: center;
}

.ph span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-faint); }

.hero .ph { background-color: #2a2622; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px); }

.hero .ph span { color: rgba(255,255,255,.4); }

/* ── Hero home — типографика внизу, видео открыто ─────── */

.hero-home-veil-bottom {
  pointer-events: none;
  position: absolute;
  inset: auto 0 0 0;
  height: 52dvh;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.22) 42%,
    transparent 100%
  );
}

.hero-home-copy {
  pointer-events: none;
  position: absolute;
  z-index: 10;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 0 20px 36px;
  width: 100%;
  box-sizing: border-box;
}

.hero-home-logo {
  max-height: clamp(32px, 5vw, 56px);
  width: auto;
  object-fit: contain;
}

.hero-home-eyebrow {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.55);
  max-width: min(380px, 100%);
}

.hero-home-title {
  font-size: clamp(2.25rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  max-width: 100%;
}

.hero-home-lede {
  max-width: 340px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 639px) {
  .hero-home-copy {
    display: none;
  }
  .hero-home-eyebrow {
    font-size: 8px;
    letter-spacing: 0.28em;
    line-height: 1.45;
  }
  .hero-home-title {
    font-size: clamp(1.75rem, 11vw, 2.5rem);
    letter-spacing: 0.05em;
    line-height: 1;
  }
  .hero-home-lede {
    font-size: 12px;
    max-width: 100%;
  }
}

@media (min-width: 640px) {
  .hero-home-copy {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero-home-copy {
    display: flex;
    gap: 18px;
    padding: 0 56px 56px;
    width: calc(100% - 580px);
  }
  .hero-home-title {
    font-size: clamp(3rem, 5.5vw, 5.75rem);
    letter-spacing: 0.09em;
  }
  .hero-home-eyebrow {
    font-size: 10px;
    letter-spacing: 0.5em;
  }
  .hero-home-lede {
    font-size: 14px;
    max-width: 380px;
  }
}

/* ── Hero info bar — glass panel ─────── */

.hero-info-bar {
  pointer-events: auto;
  position: absolute;
  z-index: 12;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-width: 480px;
}

.hero-info-bar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-info-bar__tag {
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero-info-bar__tag--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-info-bar__stats {
  display: flex;
  gap: 48px;
}

.hero-info-bar__stat-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.hero-info-bar__stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
}

.hero-info-bar__actions {
  display: flex;
  gap: 12px;
}

.hero-info-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.hero-info-bar__btn--primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}

.hero-info-bar__btn--primary:hover {
  background: #264a36;
  box-shadow: 0 4px 20px rgba(31, 58, 44, 0.4);
}

.hero-info-bar__btn--glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-info-bar__btn--glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-info-bar__legal {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
}

@media (max-width: 639px) {
  .hero-info-bar {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
    padding: 20px 16px 16px;
    gap: 16px;
  }
  .hero-info-bar__tags { gap: 6px; }
  .hero-info-bar__tag { padding: 6px 12px; font-size: 10px; }
  .hero-info-bar__stats { gap: 32px; }
  .hero-info-bar__actions { flex-direction: column; }
  .hero-info-bar__btn { padding: 14px 16px; font-size: 12px; }
}

@media (min-width: 640px) {
  .hero-info-bar {
    left: auto;
  }
}

@media (min-width: 1024px) {
  .hero-info-bar {
    right: 56px;
    bottom: 56px;
    max-width: 520px;
    padding: 32px 36px 28px;
  }
  .hero-info-bar__tag { padding: 10px 20px; font-size: 11px; }
}

/* Hero — dvh вместо vh: на мобильных 100vh часто выше видимой области */

.hero-sticky { z-index: 0; }

.hero-scroll-video {
  height: 100vh;
  height: 100dvh;
}

.hero-scroll-canvas {
  height: 320dvh;
}

@media (min-width: 768px) {
  .hero-scroll-canvas { height: 500dvh; }
}

/* ── Location: tablet (JS переключает на мобильный layout при 1023px) ── */

@media (max-width: 1023px) {
  .editorial-split {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-left: -32px;
    margin-right: -32px;
    width: calc(100% + 64px);
  }
  .editorial-split-item .cap {
    padding: 14px 12px;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .editorial-split-item .cap .desc { font-size: 12px; line-height: 1.4; }

  .loc {
    height: auto;
    min-height: auto;
    overflow-x: hidden;
  }
  .loc-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .loc-glass {
    min-height: auto;
    padding: 48px 32px;
    gap: 18px;
  }
  .loc-visual {
    min-height: clamp(300px, 45dvh, 420px);
  }
  .loc-title {
    max-width: 100%;
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .pstrip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .pstrip { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .pstrip-overlay { font-size: 11px; padding: 10px 12px; }
  .pstrip-cap { font-size: 10px; padding: 8px 4px 12px; }
}

@media (max-width: 720px) {
  .section, .deep, .apply { padding: 80px 20px; }
  .section h2 {
    font-size: clamp(1.55rem, 7.5vw, 2.15rem);
    letter-spacing: 0.05em;
    line-height: 1.1;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .editorial-vrezka {
    max-width: 100%;
    margin-top: 20px;
  }
  .editorial-vrezka li {
    font-size: 13px;
    line-height: 1.55;
  }
  .section .text-link {
    margin-top: 28px;
    font-size: 10px;
    letter-spacing: 0.22em;
    max-width: 100%;
  }
  .editorial-split { grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; margin-left: -20px; margin-right: -20px; width: calc(100% + 40px); }
  .editorial-split-item .cap {
    padding: 12px 10px;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .editorial-split-item .cap .ttl { font-size: 10px; letter-spacing: 0.15em; }
  .editorial-split-item .cap .num { font-size: 8px; }
  .editorial-split-item .cap .desc { font-size: 11px; line-height: 1.4; }
  .cap { flex-direction: column; gap: 8px; align-items: flex-start; }
  .cap .l { flex-wrap: wrap; gap: 8px 12px; }
  .cap .ttl { letter-spacing: 0.18em; font-size: 11px; }
  .cap .num { letter-spacing: 0.24em; }
  .cap .desc { text-align: left; max-width: 100%; }

  .dual-video { grid-template-columns: 1fr; height: auto; }
  .dv-pane { height: 52dvh; min-height: 280px; }
  .dv-cap { left: 24px; bottom: 24px; }
  .dv-cap--stack { left: 24px; bottom: 24px; max-width: calc(100% - 48px); }
  .banner { min-height: 360px; height: 58dvh; }

  .apply-wrap { grid-template-columns: 1fr; gap: 48px; }

  /* CaptionedVideo — больше высоты и читаемая подпись */
  .cv-frame {
    aspect-ratio: auto;
    min-height: clamp(460px, 78dvh, 680px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .cv-media {
    z-index: 0;
  }
  .cv-veil {
    z-index: 1;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.45) 48%,
      rgba(0, 0, 0, 0.12) 72%,
      transparent 100%
    );
  }
  .cv-cap {
    position: relative;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: auto;
    max-width: none;
    width: 100%;
    padding: 20px 20px max(24px, env(safe-area-inset-bottom));
    gap: 10px;
    box-sizing: border-box;
  }
  .cv-eyebrow {
    font-size: 9px;
    letter-spacing: 0.24em;
    line-height: 1.45;
  }
  .cv-title {
    font-size: clamp(1.45rem, 7.2vw, 2rem);
    line-height: 1.08;
    max-width: 100%;
  }
  .cv-vrezka {
    gap: 6px;
  }
  .cv-vrezka li {
    font-size: 12px;
    line-height: 1.5;
  }

  /* LocationSection — вертикальный стек (мобилка) */
  .loc-glass {
    padding: 36px 20px 28px;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .loc-text {
    flex: 0 0 auto;
  }
  .loc-kicker {
    font-size: 10px;
    letter-spacing: 0.35em;
    margin-bottom: 16px;
  }
  .loc-title {
    font-size: clamp(1.4rem, 5.8vw, 2rem);
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .loc-marquee {
    padding: 14px 0;
  }
  .loc-marquee__item {
    font-size: 11px;
    padding: 0 10px;
  }
  .loc-visual {
    min-height: clamp(260px, 44dvh, 380px);
  }
  .loc-map-open {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* LocationSection — очень маленькие экраны */
  @media (max-width: 480px) {
    .loc-glass {
      padding: 28px 16px 20px;
      gap: 10px;
    }
    .loc-kicker {
      font-size: 9px;
      letter-spacing: 0.3em;
      margin-bottom: 12px;
    }
    .loc-title {
      font-size: clamp(1.2rem, 5.5vw, 1.6rem);
      line-height: 1.15;
    }
    .loc-marquee {
      padding: 10px 0;
    }
    .loc-marquee__item {
      font-size: 10px;
      letter-spacing: 0.1em;
      padding: 0 8px;
    }
    .loc-marquee__dot {
      font-size: 8px;
    }
    .loc-visual {
      min-height: clamp(220px, 40dvh, 300px);
    }
  }

  /* ImageAccordion → вертикальный стек карточек (перебиваем инлайн-стили) */
  .ia { padding: 28px 20px 80px !important; }
  .ia-head { margin: 0 auto 28px !important; }
  .ia-row {
    flex-direction: column !important;
    height: auto !important;
    gap: 10px !important;
    margin: 0 -20px !important;
  }
  .ia-fig {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: clamp(240px, 56vw, 360px) !important;
    cursor: default !important;
  }
  .ia-veil { opacity: 1 !important; }
  .ia-cap {
    opacity: 1 !important;
    left: 24px !important;
    right: 24px !important;
    bottom: 24px !important;
  }
}

/* ── Mortgage page ── */

.mortgage-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg-strong);
  padding: 160px 56px 80px;
}

.mortgage-header {
  margin-bottom: 16px;
}

.mortgage-header .kicker {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--fg-faint);
  margin-bottom: 20px;
}

.mortgage-header__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
}

.mortgage-header__sub {
  font-size: 1rem;
  color: var(--fg-soft);
  line-height: 1.6;
  max-width: 480px;
}

/* segmented control */

.mc-seg {
  display: flex;
  background: var(--hairline);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.mc-seg__btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--fg-soft);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mc-seg__btn:hover {
  color: var(--fg-strong);
}

.mc-seg__btn--active {
  background: var(--bg);
  color: var(--fg-strong);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.mc-mode-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* calculator shell */

.mc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 48px;
}

/* sliders column */

.mc__controls {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mc-slider__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.mc-slider__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-faint);
}

.mc-slider__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.mc-slider__track {
  position: relative;
  height: 4px;
  background: var(--hairline);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.mc-slider__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
}

.mc-slider__thumb {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s;
}

.mc-slider__track:active .mc-slider__thumb {
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  transform: translate(-50%, -50%) scale(1.15);
}

/* result card */

.mc__result {
  position: relative;
  background: rgb(32 38 43);
  color: var(--accent-ink);
  border-radius: 16px;
  padding: 40px;
  isolation: isolate;
  overflow: hidden;
}

/* переливающийся градиентный ореол по краю */

.mc__result::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--mc-angle, 0deg),
    transparent 0deg,
    rgba(200, 157, 92, 0.9) 60deg,
    rgba(255, 255, 255, 0.5) 120deg,
    transparent 200deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: mc-rotate 6s linear infinite;
  pointer-events: none;
  z-index: 2;
}

/* световой блик, проходящий по карточке */

.mc__result::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 55%;
  height: 220%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 60%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: mc-sheen 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@property --mc-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes mc-rotate {
  to { --mc-angle: 360deg; }
}

@keyframes mc-sheen {
  0%, 100% { left: -80%; opacity: 0; }
  35% { opacity: 1; }
  60% { left: 160%; opacity: 0; }
}

.mc__result > * {
  position: relative;
  z-index: 3;
}

.mc__stats {
  animation: mc-fadeIn 0.5s ease;
}

@keyframes mc-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.mc__stat--main {
  margin-bottom: 32px;
}

.mc__stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.55;
  margin-bottom: 6px;
}

.mc__stat-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.mc__stat-value--big {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #ffffff 35%,
    #e6c893 50%,
    #ffffff 65%,
    #ffffff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: mc-shine 4.5s ease-in-out infinite;
}

@keyframes mc-shine {
  0%, 100% { background-position: 130% 0; }
  50% { background-position: -30% 0; }
}

.mc__stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 16px;
}

.mc__rate {
  font-size: 0.82rem;
  opacity: 0.45;
}

.mc__divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 32px 0;
}

.mc__form-title {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}

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

.mc__input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--accent-ink);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}

.mc__input::placeholder {
  color: rgba(255,255,255,0.4);
}

.mc__input:focus {
  border-color: rgba(255,255,255,0.5);
}

.mc__submit {
  background: var(--accent-ink);
  color: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.mc__submit:hover { opacity: 0.9; }

.mc__submit:active { transform: scale(0.98); }

.mc__note {
  font-size: 0.7rem;
  opacity: 0.45;
  text-align: center;
}

/* success state */

.mc__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  gap: 16px;
  animation: mc-fadeIn 0.5s ease;
}

.mc__success-icon {
  margin-bottom: 8px;
}

.mc__success .kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  opacity: 0.5;
}

.mc__success-text {
  font-size: 1rem;
  opacity: 0.6;
  max-width: 320px;
  line-height: 1.6;
}

/* bank strip */

.mc-banks {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1100px;
}

.mc-banks__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
  white-space: nowrap;
}

.mc-banks__list {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.mc-banks__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-soft);
}

.mc-banks__logo {
  height: 28px;
  width: auto;
}

.mc-banks__name {
  font-size: 0.9rem;
  font-weight: 500;
}

.mc-banks__rate {
  font-size: 0.82rem;
  color: var(--fg-faint);
}

.mortgage-page ~ .footer-stage,
.mortgage-page ~ .footer-stage .footer {
  background: var(--accent);
}

/* mobile */

@media (max-width: 768px) {
  .mortgage-page {
    padding: 120px 20px 48px;
  }
  .mc {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mc__result {
    padding: 28px 20px;
  }
  .mc-banks {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (min-width: 640px) {

  .sm\:mb-8 {
    margin-bottom: 2rem;
  }

  .sm\:max-w-none {
    max-width: none;
  }

  .sm\:text-\[11px\] {
    font-size: 11px;
  }

  .sm\:tracking-\[0\.5em\] {
    letter-spacing: 0.5em;
  }
}
