/* local-fonts */
@font-face {
  font-family: 'Alumni Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(f1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Alumni Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(f2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Alumni Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(f3.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Alumni Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(f4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Alumni Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(f5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(f6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(f7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(f8.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(f9.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(f10.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(f11.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(f12.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(f13.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(f8.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(f9.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(f10.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(f11.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(f12.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(f13.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(f8.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(f9.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(f10.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(f11.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(f12.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(f13.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(f8.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(f9.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(f10.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(f11.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(f12.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(f13.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ede7de;
  --ink: #1a1a1a;
  --muted: #6a645e;
  --yellow: #fdb008;
  --panel: #d8d0c3;
  --line: rgba(26, 26, 26, 0.12);
  --nav: 64px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Alumni Sans", "Bebas Neue", sans-serif;
  --logo: "Bebas Neue", sans-serif;
  --tariff-house: clamp(260px, min(22vw, 40vh, 360px), 360px);
  --hero-h: min(42vh, 400px);
  --page-photo: url("../img/hero-msk-5.jpg?v=4x");
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background-color: #d8cfc2;
  background-image:
    linear-gradient(
      180deg,
      rgba(237, 231, 222, 0.52) 0%,
      rgba(232, 224, 212, 0.58) 48%,
      rgba(220, 210, 196, 0.66) 100%
    ),
    var(--page-photo);
  background-size: cover;
  background-attachment: fixed;
  background-position: center 55%;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.track {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

/* Intro — frosted glass over the first slide (photo + titles + rail); fades out */
.intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(16, 14, 12, 0.12);
  -webkit-backdrop-filter: blur(6px) saturate(1.15);
  backdrop-filter: blur(6px) saturate(1.15);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(8, 8, 8, 0.12) 100%
  );
}
.intro.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro__row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  width: min(1100px, 92vw);
}
.intro__side {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 241, 238, 0.88);
  font-weight: 600;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}
.intro__side--right { text-align: right; }
.intro__mark {
  font-family: var(--logo);
  font-size: clamp(72px, 12vw, 140px);
  line-height: 0.85;
  text-align: center;
  font-weight: 400;
  color: #f3f1ee;
  filter: none;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
.intro__mark span { color: var(--yellow); }
.intro__hint {
  position: absolute;
  z-index: 1;
  bottom: 36px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(243, 241, 238, 0.62);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}
/* Header/menu stay hidden during frost; ease in after glass is mostly gone */
.top,
.note {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  transition:
    opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.52s,
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.52s;
}
body.is-intro-out .top,
body.is-intro-out .note,
body[data-skip-intro] .top,
body[data-skip-intro] .note {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
body[data-skip-intro] .top,
body[data-skip-intro] .note {
  transition-duration: 0.01s;
  transition-delay: 0s;
}

/* Header */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(12, 13, 14, 0.46);
  backdrop-filter: blur(22px) saturate(1.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top--over {
  background: rgba(12, 13, 14, 0.38);
}
.brand {
  font-family: var(--logo);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #f3f1ee;
  transition: color 0.5s ease;
}
.brand span {
  color: var(--yellow);
  transition: color 0.5s ease;
}
.brand:hover { color: var(--yellow); }
.brand:hover span { color: #fff; }
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: flex-end;
}
.nav a,
.nav__btn {
  color: rgba(243, 241, 238, 0.84);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.48s ease;
}
.nav > a,
.nav__btn {
  display: flex;
  align-items: center;
  height: var(--nav);
  padding: 0;
  border: 0;
  background: none;
  box-sizing: border-box;
}
.nav a:hover,
.nav a.is-on,
.nav__btn:hover,
.nav__btn.is-on { color: var(--yellow); }
.nav__tel { font-variant-numeric: tabular-nums; }
.nav__drop {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--nav);
}
.nav__btn { cursor: pointer; }
.nav__btn::after {
  content: "";
  width: 0;
  height: 0;
  margin: 1px 0 0 6px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.48s ease;
}
.nav__drop.is-open .nav__btn::after,
.nav__drop:hover .nav__btn::after {
  transform: rotate(180deg);
}
.nav__sub {
  display: block;
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  min-width: 220px;
  padding: 8px 0 10px;
  background: rgba(16, 16, 18, 0.52);
  backdrop-filter: blur(22px) saturate(1.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  z-index: 60;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.55s;
}
.nav__drop:hover .nav__sub,
.nav__drop:focus-within .nav__sub,
.nav__drop.is-open .nav__sub {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav__sub a {
  display: block;
  height: auto;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.burger {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  padding: 0;
}
.burger i,
.burger i::before,
.burger i::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #f3f1ee;
  position: relative;
  transition: transform 0.28s ease, top 0.28s ease, background-color 0.2s ease;
}
.burger.is-open i { background-color: transparent; }
.burger.is-open i::before { top: 0; transform: rotate(45deg); }
.burger.is-open i::after { top: 0; transform: rotate(-45deg); }
.burger i::before,
.burger i::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger i::before { top: -7px; }
.burger i::after { top: 7px; }

/* One full-bleed photo + centered NSK diagonal */
.deck {
  position: relative;
  height: calc(var(--n, 3) * var(--vh, 100vh));
  z-index: 1;
  --deck-skew: 17deg;
  --veil-a: 1;
  --pane-a: 0;
}
.deck__stage {
  position: sticky;
  top: 0;
  height: var(--vh, 100vh);
  overflow: hidden;
  background: #111;
}
.deck__stage::after {
  content: none;
}
.deck__photos {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.deck__shot {
  position: absolute;
  inset: 0;
  clip-path: none;
  overflow: hidden;
}
.deck__shot-full {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.deck__half {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  will-change: clip-path;
  clip-path: inset(100% 0 0);
  transform: none;
}
.deck__half img {
  will-change: transform;
}
.deck__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  max-width: none;
}
.deck__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: var(--veil-a);
  transition: opacity 0.4s ease;
}
.deck__veil::before,
.deck__veil::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transform: none;
}
.deck__veil::before {
  width: 100%;
  background-color: transparent;
  background-image:
    repeating-linear-gradient(-18deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(40, 38, 34, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(
      107deg,
      rgba(168, 166, 160, 0.78) 0%,
      rgba(168, 166, 160, 0.60) 24%,
      rgba(168, 166, 160, 0.30) 42%,
      rgba(168, 166, 160, 0.10) 52%,
      transparent 64%
    );
  -webkit-mask-image: linear-gradient(107deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.42) 52%, transparent 66%);
  mask-image: linear-gradient(107deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.42) 52%, transparent 66%);
}
.deck__veil::after {
  content: none;
  width: 0;
  background: none;
}
.deck__pane {
  position: absolute;
  inset: 0;
  width: auto;
  z-index: 10;
  background: none;
  clip-path: none;
  display: block;
  padding: 0;
}
.deck__pane::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.58) 0%,
    rgba(8, 8, 8, 0.12) 28%,
    rgba(8, 8, 8, 0.22) 55%,
    rgba(8, 8, 8, 0.82) 100%
  );
  opacity: var(--pane-a);
  transition: opacity 0.4s ease;
}
.deck__copy {
  position: absolute;
  left: clamp(52px, 4vw + 28px, 80px);
  right: calc(48% + tan(var(--deck-skew)) * 6vh);
  width: auto;
  max-width: min(36rem, 100%);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 1.2vw, 18px);
  container-type: inline-size;
  color: color-mix(in srgb, var(--ink) calc(var(--veil-a) * 100%), #ffffff);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease, color 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.deck__copy.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.deck__mark {
  font-family: var(--logo);
  font-size: clamp(20px, 1.2vw + 14px, 28px);
  margin: 0;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  line-height: 1;
}
.deck__mark span { color: var(--yellow); }
.deck__copy:not(.deck__copy--price) h2 {
  font-family: var(--display);
  font-size: clamp(26px, min(4.05vw, 10.2cqi), 68px);
  line-height: 0.92;
  height: auto;
  min-height: calc(2 * 0.92em);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 100%;
}
.deck__copy:not(.deck__copy--price) .deck__price {
  white-space: nowrap;
}
.deck__copy > p {
  margin: 0;
  max-width: min(380px, 100%);
  font-size: clamp(14px, 0.45vw + 12.5px, 17px);
  line-height: 1.45;
  color: inherit;
  flex-shrink: 0;
}
.deck__copy:not(.deck__copy--price) > p {
  min-height: calc(2 * 1.45em);
}
.deck__copy em {
  font-style: normal;
  font-family: var(--logo);
  font-size: clamp(28px, 2.4vw + 16px, 40px);
  color: var(--yellow);
  display: block;
  margin: 0;
}
.btn-nsk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(220px, 100%);
  height: clamp(44px, 3.6vw + 28px, 56px);
  padding: 0 clamp(18px, 2vw, 28px);
  border-radius: 28px;
  background: linear-gradient(to bottom, #eeba3d, #fdb008);
  color: #fff;
  font-size: clamp(15px, 0.7vw + 12px, 18px);
  font-weight: 600;
  box-shadow: 0 0 22px rgba(253, 176, 8, 0.55);
  margin-top: clamp(2px, 0.6vw, 8px);
  flex-shrink: 0;
}
.deck__dots {
  position: absolute;
  left: clamp(10px, 1.2vw, 22px);
  top: 50%;
  bottom: auto;
  z-index: 11;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 10px);
  transform: translateY(-50%);
}
.deck__dots button {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid var(--yellow);
  background: transparent;
  flex-shrink: 0;
}
.deck__dots button.is-on { background: var(--yellow); }

.deck__copy--price {
  left: 0;
  right: auto;
  width: clamp(240px, 42vw, 50%);
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  container-type: normal;
}
.deck__rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(240px, 46vw, 50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 8vw, 88px) clamp(20px, 3.2vw, 48px) clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
  color: #f3f1ee;
  background: linear-gradient(90deg, transparent 0%, rgba(10, 11, 12, 0.2) 22%, rgba(10, 11, 12, 0.52) 100%);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
  opacity: calc(0.35 + var(--veil-a) * 0.65);
  transition: opacity 0.4s ease;
}
.rail__item {
  display: block;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.rail__item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.rail__item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f3f1ee;
}
.rail__item span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(243, 241, 238, 0.68);
  line-height: 1.4;
}
.rail__item:hover strong { color: #fff; }
.rail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
}
.rail__links a {
  color: rgba(243, 241, 238, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 1px;
  font-size: 13px;
}
.rail__links a:hover { color: #fff; }
.deck__copy--price .projects__item_title {
  width: var(--tariff-house);
  min-height: 0;
  justify-content: center;
  text-align: center;
  margin-bottom: 12px;
}
.deck__copy--price .projects__item_img {
  width: var(--tariff-house);
  height: var(--tariff-house);
  margin: 0 auto 8px;
  left: auto;
}
.deck__copy--price em {
  text-align: center;
}
.deck__copy--price p {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.word {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.word img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  max-width: none;
}
.word h2 {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 8px;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 16vw, 180px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-transform: uppercase;
}

/* Packages */
.pack {
  padding: 100px 28px 80px;
  max-width: 1180px;
  margin: 0 auto;
}
.pack h2 {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.85;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.pack > p { max-width: 520px; color: var(--muted); margin: 0 0 48px; }
.pack__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pack__item {
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}
.pack__item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.pack__item em {
  font-style: normal;
  font-family: var(--logo);
  font-size: 36px;
  color: var(--yellow);
  display: block;
  margin: 0 0 14px;
}
.pack__item p { margin: 0; color: var(--muted); font-size: 15px; }

/* Process teaser */
.step {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.step__photo { overflow: hidden; min-height: 100vh; }
.step__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100vh;
  max-width: none;
}
.step__pane {
  background: var(--panel);
  min-height: 100vh;
  padding: 88px 48px 48px;
  display: flex;
  flex-direction: column;
}
.step__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.step__top h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}
.step__n {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.step__mid {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
}
.step__frame {
  width: min(220px, 46%);
  border: 8px solid var(--paper);
}
.step__frame img { width: 100%; height: 160px; object-fit: cover; max-width: none; }
.step__labels {
  display: flex;
  justify-content: space-between;
  width: min(280px, 70%);
  margin: 16px auto 0;
  color: var(--muted);
}
.step__pane p { margin: 0; color: var(--ink); max-width: 420px; }

/* Contact */
.talk {
  padding: 120px 28px 80px;
  text-align: center;
}
.talk h2 {
  font-family: var(--display);
  font-size: clamp(52px, 10vw, 120px);
  line-height: 0.85;
  margin: 0 0 28px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.talk__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.talk__links a { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.foot { flex-wrap: wrap; }
.foot-legal { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: none; text-align: left; padding-top: 8px; }
.foot-legal a { text-decoration: underline; }
.foot {
  position: relative;
  z-index: 3;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  max-width: 1180px;
  margin: 0 auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--ink);
  color: #fff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  align-self: flex-start;
}

.note {
  position: fixed;
  left: auto;
  right: 16px;
  top: 72px;
  bottom: auto;
  z-index: 30;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  padding: 6px 10px;
}

body[data-skip-intro] {
  position: relative;
  background-color: #d8cfc2;
  background-image:
    linear-gradient(
      180deg,
      rgba(237, 231, 222, 0.4) 0%,
      rgba(232, 224, 212, 0.48) 48%,
      rgba(220, 210, 196, 0.56) 100%
    ),
    var(--page-photo);
  background-size: cover;
  background-attachment: fixed;
  background-position: center 42%;
}

body[data-skip-intro]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background-color: transparent;
  background-image:
    repeating-linear-gradient(-18deg, rgba(255, 255, 255, 0.055) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(40, 38, 34, 0.04) 0 1px, transparent 1px 4px),
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(168, 166, 160, 0.22) 10%,
      rgba(247, 243, 236, 0.72) 24%,
      rgba(247, 243, 236, 0.88) 50%,
      rgba(247, 243, 236, 0.72) 76%,
      rgba(168, 166, 160, 0.22) 90%,
      transparent 100%
    );
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
body[data-skip-intro]:has(.page-hero)::before {
  top: var(--hero-h);
}
body[data-skip-intro]:has(.page-hero)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--hero-h);
  height: 36px;
  margin: 0;
  z-index: 2;
  pointer-events: none;
  background-color: rgba(247, 243, 236, 0.78);
  background-image:
    repeating-linear-gradient(-18deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(40, 38, 34, 0.06) 0 1px, transparent 1px 4px);
  -webkit-mask-image: none;
  mask-image: none;
}

/* Inner pages */
.page {
  position: relative;
  z-index: 3;
  padding: calc(var(--nav) + 36px) 28px 80px;
  max-width: 820px;
  margin: 0 auto;
}
.page:not(.page--planner) {
  background: transparent;
  box-shadow: none;
}
.page--wide { max-width: 1180px; }
.page--planner {
  max-width: min(1440px, 100%);
  width: 100%;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.crumb a { border-bottom: 1px solid var(--line); }
.page h1 {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.85;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.page .lead {
  font-size: 18px;
  margin: 0 0 28px;
  max-width: 640px;
}
.page--planner .lead {
  max-width: min(52rem, 100%);
}
.page h2 {
  font-size: 22px;
  margin: 32px 0 12px;
}
.page ul, .page ol { margin: 0 0 16px 20px; padding: 0; }
.page li { margin: 0 0 8px; }
.page p { margin: 0 0 14px; }
.page a:not(.btn-nsk):not(.cta):not(.band):not(.work__item):not(.work-plans a):not(.blog-card):not(.work__img):not(.work__data) { border-bottom: 1px solid var(--line); }
.page-hero {
  --deck-skew: 17deg;
  position: relative;
  z-index: 1;
  display: block;
  height: var(--hero-h);
  overflow: hidden;
  margin-top: 0;
  background: #111;
}
a.page-hero { cursor: zoom-in; }
.page-hero::after { content: none; }
.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  max-width: none;
}
.page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.page-hero__veil::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(-18deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(90deg, rgba(40, 38, 34, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(
      107deg,
      rgba(168, 166, 160, 0.78) 0%,
      rgba(168, 166, 160, 0.60) 24%,
      rgba(168, 166, 160, 0.30) 42%,
      rgba(168, 166, 160, 0.10) 52%,
      transparent 64%
    );
  -webkit-mask-image: linear-gradient(107deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.42) 52%, transparent 66%);
  mask-image: linear-gradient(107deg, #000 0%, #000 38%, rgba(0, 0, 0, 0.42) 52%, transparent 66%);
}
.page-hero__title {
  position: absolute;
  left: clamp(52px, 4vw + 28px, 80px);
  right: calc(42% + tan(var(--deck-skew)) * 4vh);
  top: calc(50% + (var(--nav) * 0.28));
  transform: translateY(-50%);
  z-index: 3;
  margin: 0;
  max-width: min(16ch, 100%);
  font-family: var(--display);
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  pointer-events: none;
}
.page-hero__echo {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.page--flush { padding-top: 36px; }
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 28px 0 8px;
  align-items: center;
}
.box-note {
  background: var(--panel);
  border-left: 4px solid var(--yellow);
  padding: 18px 22px;
  margin: 22px 0;
}
.price-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 8px;
}
.price-mini div {
  flex: 1 1 160px;
  background: var(--panel);
  padding: 14px 16px;
}
.price-mini strong {
  display: block;
  font-family: var(--logo);
  font-size: 28px;
  color: var(--yellow);
  margin-top: 4px;
}
.price-calc {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 28px 72px;
  background: rgba(247, 244, 238, 0.88);
}
.page .price-calc {
  max-width: none;
  padding: 28px 0 8px;
  background: transparent;
}
.price-calc h2 {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.9;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.price-calc > p {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 640px;
}
.price-calc__area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 280px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-calc__area input {
  width: 100%;
  height: 56px;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: #fff;
  padding: 0 22px;
  font-family: var(--logo);
  font-size: 28px;
  color: var(--ink);
  outline: none;
}
.price-calc__area input:focus {
  border-color: var(--yellow);
}
.price-calc__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.price-calc__grid article {
  background: none;
  box-shadow: none;
  padding: 18px 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto;
  row-gap: 6px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.price-calc__grid span,
.price-calc__grid b,
.price-calc__grid em {
  display: block;
  grid-column: 1;
  font-family: var(--font);
  font-style: normal;
  font-variant: normal;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  line-height: 1.25;
}
.price-calc__grid span { grid-row: 1; }
.price-calc__grid b,
.price-calc__grid em { grid-row: 2; }
.price-calc__grid strong {
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  margin-top: 10px;
  font-family: var(--logo);
  font-style: normal;
  font-size: clamp(26px, 2.4vw, 36px);
  color: #c48400;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}
.price-calc__grid a:not(.btn-nsk) {
  grid-column: 1;
  grid-row: 4;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid currentColor;
  justify-self: start;
  margin-top: 4px;
}
.price-calc__note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 640px;
}
.price-calc .btn-nsk { margin-top: 0; }
.foot__remote { font-size: 12px; }
body[data-skip-intro] .project,
body[data-skip-intro] .talk {
  padding-top: calc(var(--nav) + 40px);
}
.page .projects__item a { border-bottom: 0; }
.page .projects__item { padding-bottom: 24px; }
.page .bands { padding-left: 0; padding-right: 0; }
.page .plus__grid { margin-top: 36px; }
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 12px;
}
.foot-nav a { color: var(--ink); border-bottom: 1px solid var(--line); }
.compose {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 8px 0 36px;
}
.compose h2 { grid-column: 1 / -1; }
.compose article {
  background: var(--panel);
  padding: 18px 20px 20px;
}
.compose h3 { margin: 0 0 10px; font-size: 16px; }
.compose ul { margin: 0; padding: 0 0 0 18px; }
.works-hold {
  max-width: 640px;
}
.works-hold p { margin: 0 0 14px; }

/* NSK tariffs */
.project {
  padding: 88px 28px 40px;
  max-width: 1180px;
  margin: 0 auto;
}
.project__head h1 {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.85;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.project__head h1 b { font-weight: 700; }
.project__head p { max-width: 640px; color: var(--muted); margin: 0 0 48px; }
.project-price {
  --tariff-house: clamp(260px, min(20vw, 340px), 340px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.projects__item { text-align: center; }
.projects__item_title {
  font-size: 18px;
  font-weight: 700;
  width: var(--tariff-house);
  max-width: 100%;
  margin: 0 auto 18px;
  min-height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.projects__item_img {
  position: relative;
  width: var(--tariff-house);
  height: var(--tariff-house);
  margin: 0 auto 16px;
  left: auto;
  right: auto;
  overflow: visible;
}
.projects__item_img-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
  border: 22px solid #ffe2a8;
  background: #fdb008;
  animation: pulse 2s linear 1s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.2; }
  100% { transform: scale(1); opacity: 1; }
}
.projects__item_img img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: auto;
  max-width: 92%;
  max-height: 92%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.22));
}
@media (min-width: 761px) {
  .projects__item_img img {
    max-width: 120%;
    max-height: 120%;
  }
}
.projects__item em {
  font-style: normal;
  font-family: var(--logo);
  font-size: 36px;
  color: var(--yellow);
  display: block;
  margin: 8px 0 10px;
}
.projects__item p { margin: 0; color: var(--muted); font-size: 15px; }

.bands {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 28px 64px;
  display: grid;
  gap: 12px;
}
.band {
  display: block;
  padding: 22px 24px;
  background: var(--panel);
  border-left: 4px solid var(--yellow);
}
.band strong { display: block; margin-bottom: 4px; }
.band span { color: var(--muted); font-size: 15px; }

.plus {
  padding: 80px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.plus h2 {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.85;
  margin: 0 0 36px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.plus__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.plus__grid.plus__grid--4 {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 16px;
}
.plus__grid strong { display: block; margin-bottom: 6px; }
.plus__grid span { color: var(--muted); font-size: 15px; }

@media (max-width: 1100px) {
  .burger { display: grid; place-items: center; }
  .nav {
    display: flex;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    z-index: 45;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 28px 18px;
    background: rgba(16, 16, 18, 0.48);
    backdrop-filter: blur(32px) saturate(1.35);
    -webkit-backdrop-filter: blur(32px) saturate(1.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-22px);
    transition:
      opacity 0.55s ease,
      transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
      max-height 0.68s ease,
      visibility 0.55s;
  }
  .nav.is-open {
    visibility: visible;
    pointer-events: auto;
    max-height: min(78vh, 680px);
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
  }
  .nav.is-open::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(78%, 340px);
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      270deg,
      rgba(8, 8, 8, 0.42) 0%,
      rgba(8, 8, 8, 0.2) 62%,
      transparent 100%
    );
  }
  .top:has(.nav.is-open) {
    background: rgba(16, 16, 18, 0.48);
    backdrop-filter: blur(32px) saturate(1.35);
    -webkit-backdrop-filter: blur(32px) saturate(1.35);
  }
  .nav > a,
  .nav__btn {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: auto;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px;
    letter-spacing: 0.08em;
    color: rgba(243, 241, 238, 0.92);
    opacity: 0;
    transform: translateY(-18px);
    transition:
      opacity 0.5s ease,
      transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
      color 0.48s ease;
    justify-content: flex-end;
    text-align: right;
  }
  .nav__drop {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .nav__sub {
    display: block;
    position: static;
    left: auto;
    min-width: 0;
    padding: 0 0 0 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.45s ease,
      max-height 0.55s ease,
      visibility 0.45s,
      padding 0.45s ease;
  }
  .nav__drop:hover .nav__sub,
  .nav__drop:focus-within .nav__sub {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    padding-bottom: 0;
    transform: none;
  }
  .nav__drop.is-open .nav__sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 280px;
    padding-bottom: 6px;
    transform: none;
  }
  .nav__sub a {
    position: relative;
    z-index: 1;
    padding: 8px 18px 8px 0;
    border-bottom: 0;
    font-size: 14px;
    letter-spacing: 0.04em;
    opacity: 0;
    text-align: right;
  }
  .nav a:last-child { border-bottom: 0; }
  .nav.is-open > a,
  .nav.is-open .nav__btn,
  .nav.is-open .nav__sub a {
    opacity: 1;
    transform: translateY(0);
    color: #f3f1ee;
    text-shadow:
      0 1px 1px rgba(0, 0, 0, 0.9),
      0 2px 14px rgba(0, 0, 0, 0.8),
      0 0 22px rgba(0, 0, 0, 0.55);
  }
  .nav.is-open a.is-on,
  .nav.is-open .nav__btn.is-on { color: var(--yellow); }
  .nav.is-open > *:nth-child(1) { transition-delay: 0.08s; }
  .nav.is-open > *:nth-child(2) { transition-delay: 0.14s; }
  .nav.is-open > *:nth-child(3) { transition-delay: 0.2s; }
  .nav.is-open > *:nth-child(4) { transition-delay: 0.26s; }
  .nav.is-open > *:nth-child(5) { transition-delay: 0.32s; }
  .nav.is-open > *:nth-child(6) { transition-delay: 0.38s; }
  .nav.is-open > *:nth-child(7) { transition-delay: 0.44s; }
  body:has(.nav.is-open) .note { visibility: hidden; }
  body.nav-open { overflow: hidden; }
  body.nav-open .deck__copy.is-on,
  body.nav-open .deck__dots {
    opacity: 0;
    pointer-events: none;
  }
  .deck__dots { transition: opacity 0.28s ease; }
}
@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
  .nav,
  .nav a,
  .nav__btn { transition-duration: 0.01s; transition-delay: 0s; }
}

@media (max-width: 900px) {
  body { background-attachment: scroll; }
  .intro__row { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .intro__side, .intro__side--right { text-align: center; }
  .deck__dots button {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }
  .top--over .brand,
  .top--over .nav a,
  .top--over .nav__btn {
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  }
  .top--over .nav.is-open a,
  .top--over .nav.is-open .nav__btn {
    text-shadow:
      0 1px 1px rgba(0, 0, 0, 0.9),
      0 2px 14px rgba(0, 0, 0, 0.8),
      0 0 22px rgba(0, 0, 0, 0.55);
  }
  .top--over .brand span { color: var(--yellow); }
  .top--over .brand:hover { color: var(--yellow); }
  .top--over .brand:hover span { color: #fff; }
  .top--over .burger i,
  .top--over .burger i::before,
  .top--over .burger i::after { background: #fff; }
  .top--over { background: transparent; }
  .deck__stage::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 88px;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    opacity: var(--pane-a);
    transition: opacity 0.4s ease;
  }
  .step { grid-template-columns: 1fr; }
  .step__photo, .step__photo img { min-height: 42vh; }
  .step__pane { padding: 40px 24px 32px; min-height: auto; }
  .pack__grid { grid-template-columns: 1fr; }
  .project-price, .plus__grid, .compose, .price-calc__grid { grid-template-columns: 1fr; }
  .projects__item_title {
    width: 220px;
  }
  .projects__item_img {
    width: 220px;
    height: 220px;
    left: auto;
    margin-left: auto;
    margin-right: auto;
  }
  .projects__item_img-circle { border-width: 18px; }
  .foot { flex-direction: column; }
  .foot-legal { text-align: left; max-width: none; }
}

@media (max-width: 760px) {
  .page-hero__title {
    left: 24px;
    right: 22%;
    max-width: 14ch;
    font-size: clamp(34px, 10vw, 52px);
    color: #f3f1ee;
    text-shadow:
      0 1px 1px rgba(0, 0, 0, 0.65),
      0 2px 16px rgba(0, 0, 0, 0.5);
  }
  .deck__shot img { object-position: 50% 50%; }
  .deck__rail {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 52px;
    width: auto;
    padding: 0;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
    background: none;
    opacity: 1;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  }
  .rail__item {
    border: 0;
    padding: 0;
  }
  .rail__item:last-child { border: 0; }
  .rail__item span { display: none; }
  .rail__item strong {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
  }
  .rail__item--contacts strong { display: none; }
  .rail__links { margin-top: 0; }
  .rail__links a {
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .deck__pane {
    width: 100%;
    clip-path: none;
    padding: 0;
    background: none;
  }
  .deck__copy {
    left: clamp(48px, 14vw, 64px);
    right: 20px;
    width: auto;
    max-width: none;
    padding-bottom: 40px;
  }
  .deck__copy:not(.is-on) { display: none; }
  .deck__copy:not(.deck__copy--price) h2 {
    max-width: 100%;
    height: auto;
    min-height: calc(2 * 0.92em);
    font-size: clamp(26px, min(4.05vw, 10.5cqi), 44px);
  }
  .deck__copy--price {
    left: 50%;
    right: auto;
    width: min(280px, 86vw);
    max-width: none;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  .deck__copy--price .projects__item_title,
  .deck__copy--price .projects__item_img {
    width: 200px;
    margin-left: auto;
    margin-right: auto;
    left: auto;
  }
  .deck__copy--price .projects__item_img {
    height: 200px;
    margin: 0 auto 8px;
    left: auto;
  }
}

@media (max-width: 420px) {
  .deck__copy--price .projects__item_title,
  .deck__copy--price .projects__item_img {
    width: 168px;
  }
  .deck__copy--price .projects__item_img {
    height: 168px;
    margin: 0 auto 8px;
    left: auto;
  }
  .deck__copy em { font-size: 32px; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Prices page: three tariff slides. Do not affect homepage deck. */
.deck--prices {
  --tariff-house: clamp(300px, min(28vw, 46vh), 400px);
}
.deck--prices .deck__copy--price .projects__item_img {
  left: auto;
  margin-left: auto;
  margin-right: auto;
}
.deck--prices .deck__rail {
  transition: opacity 0.45s ease, visibility 0.45s ease;
  background: linear-gradient(90deg, transparent 0%, rgba(10, 11, 12, 0.28) 18%, rgba(10, 11, 12, 0.66) 100%);
}
.deck--prices .deck__rail:not(.is-on) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.deck--prices .deck__rail.is-on {
  opacity: calc(0.35 + var(--veil-a) * 0.65);
  visibility: visible;
  pointer-events: auto;
}
.deck--prices .rail__item span {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(243, 241, 238, 0.78);
}

@media (max-width: 760px) {
  .deck--prices .deck__copy--price {
    top: calc(var(--nav) + 10px);
    transform: translateX(-50%);
    width: min(260px, 88vw);
  }
  .deck--prices .deck__copy--price p {
    display: none;
  }
  .deck--prices .deck__copy--price .projects__item_title {
    min-height: 0;
    margin-bottom: 8px;
    color: #f3f1ee;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
  }
  .deck--prices .deck__copy--price .projects__item_title,
  .deck--prices .deck__copy--price .projects__item_img {
    width: 180px;
    margin-left: auto;
    margin-right: auto;
    left: auto;
  }
  .deck--prices .deck__copy--price .projects__item_img {
    height: 180px;
    margin: 0 auto 8px;
    left: auto;
  }
  .deck--prices .deck__rail {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 10px;
    width: auto;
    max-height: 44vh;
    overflow-y: auto;
    gap: 0;
    padding: 16px 14px 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 11, 12, 0.55) 16%, rgba(10, 11, 12, 0.78) 100%);
  }
  .deck--prices .deck__rail.is-on {
    opacity: 1;
  }
  .deck--prices .rail__item {
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
  .deck--prices .rail__item:last-child { border-bottom: 0; }
  .deck--prices .rail__item span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(243, 241, 238, 0.78);
  }
  .deck--prices .rail__item strong {
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: none;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .deck--prices .rail__item--contacts strong { display: block; }
  .deck--prices .rail__links {
    margin-top: 8px;
  }
  .deck--prices .rail__links a {
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
  }
}

@media (max-width: 420px) {
  .deck--prices .deck__copy--price .projects__item_title,
  .deck--prices .deck__copy--price .projects__item_img {
    width: 156px;
  }
  .deck--prices .deck__copy--price .projects__item_img {
    height: 156px;
    margin: 0 auto 8px;
    left: auto;
  }
}

/* Full local copy: works / blog / poleznoe / planner */
.work__items {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 28px 0 8px;
  align-items: stretch;
}
.work__item {
  display: flex;
  flex-direction: column;
  width: calc(50% - 11px);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease;
}
.work__item:hover { box-shadow: 0 0 18px rgba(26, 26, 26, 0.28); }
.work__img {
  display: block;
  height: 280px;
  overflow: hidden;
  background: #d8d0c3;
  cursor: zoom-in;
}
.work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}
.work__img:hover img { opacity: 0.92; }
.work__data {
  display: block;
  padding: 16px 16px 8px;
  color: inherit;
  flex: 1;
  background: rgba(237, 231, 222, 0.38);
}
.work__data__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 18px;
}
.work__data__title {
  width: 58%;
  font-weight: 700;
  line-height: 1.25;
}
.work__data__place {
  position: relative;
  width: 38%;
  padding-left: 36px;
  line-height: 1.15;
}
.work__data__place span { font-weight: 700; }
.work__data__place-word {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0 -36px;
  padding-left: 36px;
}
.work__data__middle {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 22px;
  margin-bottom: 8px;
  line-height: 1.1;
  font-size: 15px;
}
.work__data__middle > div {
  position: relative;
  min-width: 110px;
  width: 30%;
  padding: 6px 0 6px 36px;
}
.work__data__place:before,
.work__data__middle__bedroom:before,
.work__data__middle__toilet:before,
.work__data__middle__garage:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.work__data__place:before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M3 10.5 12 3l9 7.5V21H3z'/><path d='M9 21v-8h6v8'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M3 10.5 12 3l9 7.5V21H3z'/><path d='M9 21v-8h6v8'/></svg>");
}
.work__data__middle__bedroom:before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M3 18V12h18v6M3 18h18M3 21v-3M21 21v-3'/><path d='M5 12V8a2 2 0 0 1 2-2h5v6'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M3 18V12h18v6M3 18h18M3 21v-3M21 21v-3'/><path d='M5 12V8a2 2 0 0 1 2-2h5v6'/></svg>");
}
.work__data__middle__toilet:before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M4 12h16v3a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z'/><path d='M6 12V7a3 3 0 0 1 6 0M4 20v1M20 20v1'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M4 12h16v3a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z'/><path d='M6 12V7a3 3 0 0 1 6 0M4 20v1M20 20v1'/></svg>");
}
.work__data__middle__garage:before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M5 16 7 9h10l2 7M5 16h14v3H5z'/><circle cx='7.5' cy='19.5' r='1.4'/><circle cx='16.5' cy='19.5' r='1.4'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M5 16 7 9h10l2 7M5 16h14v3H5z'/><circle cx='7.5' cy='19.5' r='1.4'/><circle cx='16.5' cy='19.5' r='1.4'/></svg>");
}
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0 8px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.12);
  color: inherit;
  transition: box-shadow 0.28s ease, transform 0.4s ease;
}
.blog-card:hover {
  box-shadow: 0 14px 32px rgba(26, 26, 26, 0.2);
  transform: translateY(-4px);
}
.blog-card__img {
  display: block;
  height: 188px;
  overflow: hidden;
  background: #cfc6b8;
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease;
}
.blog-card:hover .blog-card__img img { opacity: 0.92; }
.blog-card__body {
  display: block;
  padding: 18px 20px 22px;
}
.blog-card strong { display: block; font-size: 20px; margin-bottom: 8px; }
.blog-card span { color: var(--muted); }
.article h2 { margin: 28px 0 10px; font-size: 22px; text-transform: none; letter-spacing: 0; }
.article h3 { margin: 18px 0 8px; font-size: 17px; text-transform: none; letter-spacing: 0; }
.article a { border-bottom: 1px solid var(--line); }
.faq { margin: 28px 0 8px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  font-weight: 500;
  color: var(--muted);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 4px; color: var(--muted); }
.planner-stage {
  height: min(82vh, 920px);
  min-height: 640px;
  margin: 8px 0 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(40, 32, 22, 0.12);
}
.poleznoe__tabs { display: flex; gap: 8px; margin: 18px 0; flex-wrap: wrap; }
.poleznoe__tab {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.poleznoe__tab.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
}
.poleznoe__frame {
  display: block;
  width: 100%;
  height: 820px;
  border: 1px solid var(--line);
  background: #fff;
}
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  margin: 8px 0 20px;
}
.work-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 28px;
}
.work-plans--one { grid-template-columns: minmax(0, 1fr); }
.work-plans a {
  display: block;
  border-bottom: 0;
  background: #fff;
  cursor: zoom-in;
}
.work-plans img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 72px 64px;
  background: rgba(8, 8, 8, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s ease, visibility 0.38s;
}
.lb.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lb__img {
  max-width: min(92vw, 1320px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.lb__close,
.lb__prev,
.lb__next {
  position: absolute;
  border: 0;
  background: none;
  color: #fff;
  padding: 0;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.lb__close {
  top: 14px;
  right: 22px;
  width: 44px;
  height: 44px;
  font-size: 36px;
}
.lb__prev,
.lb__next {
  top: 50%;
  margin-top: -32px;
  width: 48px;
  height: 64px;
  font-size: 52px;
}
.lb__prev { left: 10px; }
.lb__next { right: 10px; }
.lb__cap {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .work__item { width: 100%; }
  .work__img { height: 220px; }
  .blog-list { grid-template-columns: 1fr; }
  .lb { padding: 64px 52px 56px; }
  .lb__prev, .lb__next { font-size: 40px; }
}
@media (max-width: 700px) {
  body[data-skip-intro]::before {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  }
  .plus__grid.plus__grid--4 { grid-template-columns: 1fr; }
  .poleznoe__frame { height: 1100px; }
  .planner-stage { min-height: 480px; height: 70vh; }
  .work__data__top { flex-direction: column; }
  .work__data__title,
  .work__data__place { width: 100%; }
  .work-plans { grid-template-columns: 1fr; }
}
