/* ==========================================================================
   Местные люди — localpeople.shop
   дерево, лён и наличник
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Fet';
  src: url('../fonts/Fet.woff2') format('woff2'), url('../fonts/Fet.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-wght-normal.woff2') format('woff2-variations'),
    url('../fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations'),
    url('../fonts/inter-latin-wght-normal.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;
}

/* ---------- Tokens ---------- */
:root {
  --linen: #faf8f5;
  --sand: #e8e4de;
  --pine: #efe3cc;
  --oat: #c4a574;
  --oat-deep: #b39464;
  --oat-light: #e8c99a; /* hero accent line, as on the current site */
  --oat-ink: #9a7a45; /* oat for informative text on linen (≥3:1) */
  --sage: #8b9a7d;
  --sage-deep: #7a896c;
  --sage-ink: #6e7d61;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --muted-pine: #5c564e;
  --bark: #2c2420;
  --night: #141210;
  --pin: #d2352b;
  --line-dark: rgba(255, 255, 255, 0.12);
  --white-72: rgba(255, 255, 255, 0.72);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Fet', 'Segoe Script', cursive;

  --fs-body: clamp(17px, 0.2vw + 16.2px, 18px);
  --fs-script: clamp(28px, 1.2vw + 22px, 40px);
  --fs-display: clamp(32px, 3.4vw + 20px, 64px);
  --fs-h3: clamp(19px, 0.25vw + 18px, 22px);

  --gutter: clamp(20px, 5vw, 64px);
  /* Side padding that also clears the notch / Dynamic Island in landscape (viewport-fit=cover) */
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --focus: var(--ink);
  --max: 1320px;
  --nav-h: 64px;
  --section-y: clamp(96px, 11vw, 176px);
  --block-gap: clamp(64px, 8vw, 128px);

  --r-lg: 20px;
  --r-sm: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 1024px) {
  :root {
    --nav-h: 76px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--linen);
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: no-preference) {
  html.no-js {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.is-locked,
html.is-locked body {
  overflow: hidden;
}
img,
video,
svg,
picture,
iframe {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}
h1,
h2,
h3,
p,
figure,
ul,
blockquote {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
strong {
  font-weight: 600;
}
::selection {
  background: var(--oat);
  color: var(--ink);
}
/* Focus ring: ink on light surfaces, oat on dark ones (≥3:1 either way) */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero,
.menu,
.topbar,
.section--dark,
.features,
.gallery,
.footer {
  --focus: var(--oat);
}
.topbar.is-solid:not(.is-menu) {
  --focus: var(--ink);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus-visible {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-l) var(--pad-r);
}
.section {
  padding-block: var(--section-y);
}
.section--dark {
  background: var(--bark);
  color: #fff;
}

/* ---------- Type ---------- */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--fs-script);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--oat);
  margin-bottom: clamp(12px, 1.2vw, 18px);
}
.script--sm {
  font-size: clamp(26px, 0.6vw + 22px, 32px);
  margin-bottom: 8px;
}
.script--sage {
  color: var(--sage);
}
.display {
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display--md {
  font-size: clamp(30px, 2.2vw + 18px, 48px);
  line-height: 1.12;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lead {
  color: var(--muted);
  max-width: 62ch;
}
.display + .lead {
  margin-top: clamp(24px, 2.2vw, 36px);
}
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: rgba(26, 26, 26, 0.3);
  transition: text-decoration-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link:hover {
  text-decoration-color: currentColor;
}
.link--arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease),
    translate 0.25s var(--ease);
}
.btn:active {
  translate: 0 1px;
}
.btn .icon {
  transition: translate 0.35s var(--ease-out);
}
.btn:hover .icon {
  translate: 2px -2px;
}
.hero__btn:hover .icon {
  translate: 0 2px;
}
/* Oat / sage fills stay; the label is ink so it passes AA (7.4:1 / 5.8:1) */
.btn--oat {
  background: var(--oat);
  color: var(--ink);
}
.btn--oat:hover {
  background: var(--oat-deep);
}
.btn--sage {
  background: var(--sage);
  color: var(--ink);
}
.btn--sage:hover {
  background: var(--sage-deep);
}
.btn--light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}
.btn--light:hover {
  background: #fff;
}
.btn--ghost {
  border-color: currentColor;
  background: transparent;
}
.btn--ghost:hover {
  background: rgba(26, 26, 26, 0.04);
}
.btn--sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 12px;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  color: #fff;
  transition: color 0.45s var(--ease), transform 0.6s var(--ease-out);
}
.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 245, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.topbar.is-solid {
  color: var(--ink);
}
.topbar.is-solid::before {
  opacity: 1;
}
.topbar.is-hidden {
  transform: translateY(-100%);
}
/* A keyboard user tabbing into the hidden bar brings it back */
.topbar.is-hidden:focus-within {
  transform: none;
}
.topbar.is-menu {
  color: #fff;
  transform: none;
}
.topbar.is-menu::before {
  opacity: 0;
}
.topbar__bar {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.topbar__logo {
  font-family: var(--font-script);
  font-size: clamp(26px, 0.8vw + 20px, 30px);
  line-height: 1;
  white-space: nowrap;
  padding-block: 9px;
  margin-right: auto;
}
.topbar__nav {
  display: none;
}
.topbar__nav ul {
  display: flex;
  gap: clamp(18px, 1.8vw, 32px);
}
.topbar__nav a {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  padding-block: 10px;
  font-size: 15px;
  opacity: 0.88;
  transition: opacity 0.3s var(--ease);
}
.topbar__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.topbar__nav a:hover {
  opacity: 1;
}
.topbar__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.topbar__cta {
  display: none;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}
.topbar__cta:hover {
  background: #fff;
}
.topbar.is-solid .topbar__cta {
  background: var(--oat);
  color: var(--ink);
}
.topbar.is-solid .topbar__cta:hover {
  background: var(--oat-deep);
}
.topbar__burger {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.topbar__burger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out);
}
.topbar__burger span:first-child {
  top: 17px;
}
.topbar__burger span:last-child {
  top: 25px;
}
.topbar__burger[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.topbar__burger[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
@media (min-width: 1200px) {
  .topbar__logo {
    margin-right: 0;
  }
  .topbar__nav {
    display: block;
    margin-left: auto;
  }
  .topbar__cta {
    display: inline-flex;
  }
  .topbar__burger {
    display: none;
  }
}
/* Without JS the bar never turns solid, so it scrolls away with the dark hero instead of
   floating (white) over linen; below 1200px the links wrap in place of a burger that can't open. */
.no-js .topbar {
  position: absolute;
}
@media (max-width: 1199px) {
  .no-js .topbar {
    height: auto;
  }
  .no-js .topbar__bar {
    flex-wrap: wrap;
    row-gap: 0;
    padding-block: 8px;
  }
  .no-js .topbar__burger {
    display: none;
  }
  .no-js .topbar__nav {
    display: block;
    width: 100%;
  }
  .no-js .topbar__nav ul {
    flex-wrap: wrap;
    gap: 0 20px;
  }
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--bark);
  color: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.menu[hidden] {
  display: none;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease);
}
.menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.menu__nav li {
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease-out);
}
.menu.is-open .menu__nav li {
  opacity: 1;
  transform: none;
}
.menu.is-open .menu__nav li:nth-child(2) { transition-delay: 0.04s; }
.menu.is-open .menu__nav li:nth-child(3) { transition-delay: 0.08s; }
.menu.is-open .menu__nav li:nth-child(4) { transition-delay: 0.12s; }
.menu.is-open .menu__nav li:nth-child(5) { transition-delay: 0.16s; }
.menu.is-open .menu__nav li:nth-child(6) { transition-delay: 0.2s; }
.menu__nav a {
  display: block;
  padding-block: 12px;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.menu__meta {
  display: grid;
  gap: 16px;
  justify-items: start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--white-72);
}
.menu__phone {
  font-size: 20px;
  color: #fff;
  padding-block: 8px;
}
.menu__meta .btn {
  margin-top: 8px;
}
.menu__tg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  font-size: 16px;
}
.menu__tg-icon {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  /* One screen tall, but it grows instead of clipping when the content needs more room
     (short phones, phones in landscape) — nothing in the hero is ever hidden. */
  min-height: 560px;
  min-height: max(560px, 100vh);
  min-height: max(560px, 100svh);
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video {
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero__video.is-playing {
  opacity: 1;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.5) 0%, rgba(20, 18, 16, 0.12) 22%, rgba(20, 18, 16, 0.5) 44%, rgba(20, 18, 16, 0.86) 100%);
}
@media (min-width: 1024px) {
  .hero__shade {
    background: linear-gradient(180deg, rgba(20, 18, 16, 0.55) 0%, rgba(20, 18, 16, 0) 36%, rgba(20, 18, 16, 0.3) 60%, rgba(20, 18, 16, 0.78) 100%),
      radial-gradient(90% 80% at 0% 100%, rgba(20, 18, 16, 0.55) 0%, rgba(20, 18, 16, 0) 70%);
  }
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: clamp(24px, 5.5vh, 72px);
}
.hero__content {
  min-width: 0;
  max-width: 900px;
}
/* The wordmark is the first line of the h1 (brand name + claim) */
.hero__mark {
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  /* 14vw as designed; on phones as large as fits the text column (the line is ≈5.45em wide) */
  font-size: clamp(44px, max(14vw, min(64px, (100vw - var(--pad-l) - var(--pad-r)) / 5.6)), 220px);
  line-height: 0.95;
  letter-spacing: 0;
  white-space: nowrap;
  margin-left: -0.03em;
  margin-bottom: clamp(6px, 1.4vw, 22px);
  text-shadow: 0 2px 28px rgba(20, 18, 16, 0.4);
}
.hero__title {
  font-weight: 300;
  font-size: clamp(28px, max(5.2vw, min(34px, 8.6vw)), 84px);
  line-height: 1.04;
  letter-spacing: -0.028em;
}
.hero__line {
  display: block;
}
.hero__line--accent {
  color: var(--oat-light);
  text-shadow: 0 0 22px rgba(196, 165, 116, 0.38);
}
.hero__lead {
  max-width: 38ch;
  margin-top: clamp(16px, 1.8vw, 28px);
  font-size: clamp(16px, 0.35vw + 15px, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}
.hero__btn {
  margin-top: clamp(22px, 2.6vw, 40px);
}
.hero__visit {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  max-width: 100%;
  padding: 8px 8px 8px 16px;
  border-radius: var(--r-sm);
  background: rgba(20, 18, 16, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  line-height: 1.4;
}
.hero__pin {
  width: 14px;
  height: 18px;
  flex: none;
}
.hero__visit-text span {
  display: block;
}
.hero__visit-text span + span {
  color: var(--white-72);
}
.hero__visit-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 4px;
  padding: 0 12px 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 0.3s var(--ease);
}
.hero__visit-link:hover {
  text-decoration-color: #fff;
}
@media (max-width: 1023px) {
  .hero__visit {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    padding: 12px 16px 4px;
  }
  .hero__pin {
    grid-row: 1 / span 2;
    align-self: start;
    margin-top: 2px;
  }
  .hero__visit-link {
    grid-column: 2;
    justify-self: start;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border-left: 0;
  }
}
/* Short screens: tighten the rhythm instead of dropping copy */
@media (max-height: 640px) and (max-width: 1023px) {
  .hero__inner {
    gap: 20px;
    padding-top: calc(var(--nav-h) + 12px);
  }
  .hero__lead {
    margin-top: 12px;
    font-size: 15px;
  }
  .hero__btn {
    margin-top: 18px;
  }
}
/* Phones held sideways */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }
  .hero__inner {
    gap: 16px;
    padding-top: calc(var(--nav-h) + 8px);
    padding-bottom: 20px;
  }
  .hero__mark {
    font-size: min(12vw, 20vh);
    margin-bottom: 4px;
  }
  .hero__title {
    font-size: min(5.2vw, 8.6vh);
  }
}
@media (min-width: 1024px), (orientation: landscape) and (max-height: 500px) and (min-width: 700px) {
  .hero__visit {
    position: absolute;
    right: var(--pad-r);
    bottom: calc(clamp(24px, 5.5vh, 72px) + 4px);
    display: flex;
    padding: 8px 8px 8px 16px;
  }
  .hero__pin {
    grid-row: auto;
    align-self: center;
    margin-top: 0;
  }
  .hero__visit-link {
    grid-column: auto;
    min-height: 44px;
    margin-left: 4px;
    padding: 0 12px 0 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }
}

/* ==========================================================================
   Shared media pieces
   ========================================================================== */
.clip {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: #2a241f;
}
.clip img,
.clip video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
video[data-src] {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
video[data-src].is-playing {
  opacity: 1;
}

/* Наличник — outline ornament around a photo */
.framed {
  position: relative;
  width: 100%;
  aspect-ratio: 176 / 278;
}
.framed__photo {
  position: absolute;
  left: 21.59%;
  top: 14.39%;
  width: 56.82%;
  height: 59.71%;
  overflow: hidden;
  background: var(--pine);
}
.framed__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.framed__trim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.framed__trim path {
  fill: none;
  stroke: var(--oat);
  stroke-width: 0.55;
  stroke-linejoin: round;
}
.motion .framed[data-draw] path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--ease);
}
.motion .framed[data-draw].is-drawn path {
  stroke-dashoffset: 0;
}

/* ==========================================================================
   2. КТО МЫ
   ========================================================================== */
.about__grid {
  display: grid;
  gap: clamp(56px, 8vw, 96px);
}
.pillars {
  display: grid;
  gap: 28px;
  margin-top: clamp(40px, 4vw, 56px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--sand);
}
.pillar p:not(.script) {
  max-width: 40ch;
}
/* A sentence-length H2: a step below the other display headings so it sets in ~4 even lines */
.about .display {
  font-size: clamp(30px, 2.4vw + 18px, 52px);
}
.about__media {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .pillar:first-child {
    padding-right: 32px;
  }
  .pillar + .pillar {
    padding-left: 32px;
    border-left: 1px solid var(--sand);
  }
}
@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
  }
  .about__text {
    grid-column: 1 / span 7;
  }
  .about__media {
    grid-column: 9 / span 4;
    width: 100%;
    max-width: 440px;
    margin-inline: auto 0;
  }
}

.values {
  display: grid;
  margin-top: var(--block-gap);
  border-top: 1px solid var(--sand);
}
.value {
  display: grid;
  align-content: start;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-block: 24px;
  border-bottom: 1px solid var(--sand);
}
.value__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: var(--pine);
}
.value__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.value__title {
  font-size: var(--fs-h3);
}
.value__text p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--sand);
  }
  .value {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 28px 40px;
    border-bottom: 0;
  }
  .value:first-child {
    padding-left: 0;
  }
  .value:last-child {
    padding-right: 0;
  }
  .value + .value {
    border-left: 1px solid var(--sand);
  }
  .value__img {
    width: min(100%, 176px);
    border-radius: var(--r-sm);
  }
}

/* ==========================================================================
   4. МАГАЗИН — наличник scene
   ========================================================================== */
.store {
  position: relative;
  background: var(--night);
}

/* Static layout (no JS / reduced motion) */
.store__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
  padding-block: var(--section-y);
  background: var(--linen);
}
.store__scene {
  display: none;
}
.store__intro {
  order: 1;
}
.store__static {
  order: 2;
}
.store__overlay {
  order: 3;
}
.store__intro-inner {
  max-width: 760px;
}
.motion .store__intro-inner,
.motion .store__overlay {
  will-change: opacity, transform;
}
.store__text {
  max-width: 44ch;
  font-size: clamp(19px, 0.8vw + 15px, 26px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.nal-window {
  position: relative;
  width: min(360px, 68vw);
  aspect-ratio: 176 / 278;
  margin-inline: auto;
}
.nal-window__photo {
  position: absolute;
  left: 21.59%;
  top: 14.39%;
  width: 56.82%;
  height: 59.71%;
  object-fit: cover;
  background: var(--night);
}
.nal-window__trim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.nal-window__board,
.store__trim {
  fill: #fff;
  stroke: #cbbfad;
  stroke-width: 0.6;
  stroke-linejoin: round;
}
/* A firmer cast shadow so the white trim reads as carved boards standing off the linen wall */
.nal-window__shadow,
.store__trim-shadow {
  fill: rgba(44, 36, 32, 0.24);
}

/* Scene layout */
.motion .store__stage {
  display: block;
  /* lvh: when the mobile address bar collapses mid-pin there is no strip below the stage */
  height: 100vh;
  height: 100lvh;
  padding: 0;
  overflow: hidden;
}
.motion .store__scene {
  display: block;
  position: absolute;
  inset: 0;
}
.motion .store__static {
  display: none;
}
.store__media {
  position: absolute;
  inset: 0;
  background: var(--night);
  transform-origin: 50% 45%;
}
.store__media img,
.store__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store__video {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.store__video.is-ready {
  opacity: 1;
}
.store__wall {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.store__linen {
  fill: var(--linen);
}
.store__groove {
  fill: none;
  stroke: rgba(44, 36, 32, 0.1);
  stroke-width: 0.6;
  stroke-linecap: round;
}
.store__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0) 30%, rgba(20, 18, 16, 0.7) 70%, rgba(20, 18, 16, 0.96) 100%),
    radial-gradient(90% 60% at 0% 100%, rgba(20, 18, 16, 0.45) 0%, rgba(20, 18, 16, 0) 70%);
  opacity: 0;
}
.motion .store__intro {
  position: absolute;
  inset: 0;
  bottom: calc(100lvh - 100svh); /* centre within the always-visible viewport */
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.motion .store__intro .display {
  font-size: clamp(32px, 2.6vw + 14px, 54px);
}
.motion .store__intro-inner {
  max-width: min(36vw, 520px);
}
.motion .store__overlay {
  position: absolute;
  inset: auto 0 clamp(28px, 9vh, 104px) 0;
  /* anchor to the always-visible (small) viewport, not to the lvh-tall stage */
  bottom: calc(100lvh - 100svh + clamp(28px, 9svh, 104px));
  z-index: 3;
  opacity: 0;
}
.motion .store__text {
  max-width: 34ch;
  font-size: clamp(22px, 1.4vw + 14px, 36px);
  line-height: 1.35;
  color: #fff;
}
/* Phones held sideways: intro beside the window, a size that fits a ~390px-tall screen */
@media (orientation: landscape) and (max-height: 500px) {
  .motion .store__intro-inner {
    max-width: 42vw;
  }
  .motion .store__intro .display {
    font-size: clamp(24px, 3.4vw, 34px);
  }
  .motion .store__text {
    font-size: clamp(18px, 2.4vw, 22px);
  }
}
@media (max-width: 1023px) and (orientation: portrait) {
  .motion .store__intro {
    align-items: flex-start;
    padding-top: calc(var(--nav-h) + 12px);
  }
  .motion .store__intro-inner {
    max-width: none;
  }
}

/* Features on night */
.features {
  background: var(--night);
  color: #fff;
  padding-block: clamp(64px, 8vw, 128px) clamp(56px, 7vw, 112px);
}
.features__list {
  display: grid;
  border-top: 1px solid var(--line-dark);
}
.feature {
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding-block: 24px;
  border-bottom: 1px solid var(--line-dark);
}
.feature__clip {
  aspect-ratio: 3 / 4;
  width: 100%;
}
.feature__title {
  color: #fff;
}
.feature__text p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white-72);
}
@media (min-width: 768px) {
  .features__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(16px, 2vw, 32px);
    border-top: 0;
  }
  .feature {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding: 0;
    border-bottom: 0;
  }
  .feature__clip {
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
  }
  .feature__text {
    padding-top: 20px;
    border-top: 1px solid var(--line-dark);
  }
}

/* ==========================================================================
   5. GALLERY
   ========================================================================== */
.gallery {
  position: relative;
  background: var(--night);
  color: #fff;
  padding-bottom: var(--section-y);
  --tile-w: min(78vw, 420px);
}
.gallery__track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(56px, 8vw, 96px);
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-top: clamp(32px, 4vw, 56px);
  padding-inline: var(--pad-l) var(--pad-r);
}
.chapter {
  min-width: 0;
}
.chapter__word {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(44px, 2vw + 34px, 64px);
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}
.chapter__sub {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white-72);
}
.chapter__tiles {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  margin-inline: calc(var(--pad-l) * -1) calc(var(--pad-r) * -1);
  padding-inline: var(--pad-l) var(--pad-r);
  scroll-padding-inline: var(--pad-l) var(--pad-r);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chapter__tiles::-webkit-scrollbar {
  display: none;
}
.tile {
  position: relative;
  flex: 0 0 var(--tile-w);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: #221d19;
  scroll-snap-align: start;
}
.tile__media {
  position: absolute;
  inset: 0;
}
.tile__media img,
.tile__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__progress {
  display: none;
}

@media (min-width: 1024px) {
  .motion .gallery {
    height: 100vh;
    padding: 0;
    overflow: hidden;
  }
  .motion .gallery__track {
    display: flex;
    align-items: stretch;
    gap: 7vw;
    width: max-content;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0 var(--pad-r) 0 var(--pad-l);
    will-change: transform;
  }
  .motion .chapter {
    display: flex;
    align-items: center;
    gap: 3vw;
    height: 100%;
  }
  .motion .chapter__cap {
    flex: none;
    align-self: flex-start;
    /* at least the usual column width, but never narrower than the script word («ассортимент») */
    width: min-content;
    min-width: clamp(220px, 16vw, 290px);
    margin-top: 17vh;
  }
  .motion .chapter__tiles {
    align-items: center;
    gap: 2.6vw;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .motion .tile {
    flex: none;
    aspect-ratio: auto;
  }
  .motion .tile__media {
    inset: 0 -6%;
  }
  .motion .tile--l {
    height: 66vh;
    width: 99vh;
    border-radius: var(--r-lg);
  }
  .motion .tile--v {
    align-self: flex-start;
    height: 58vh;
    width: 32.625vh;
    margin-top: 10vh;
  }
  .motion .tile--p {
    align-self: flex-end;
    height: 48vh;
    width: 32vh;
    margin-bottom: 9vh;
  }
  .motion .tile--m {
    align-self: flex-start;
    height: 38vh;
    width: 57vh;
    margin-top: 14vh;
  }
  .motion .gallery__progress {
    display: block;
    position: absolute;
    left: var(--pad-l);
    right: var(--pad-r);
    bottom: 5vh;
    height: 1px;
    background: var(--line-dark);
  }
  .gallery__progress span {
    display: block;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    transform: scaleX(0);
    transform-origin: 0 50%;
  }
  /* No pinned filmstrip (reduced motion / no JS): tiles wrap instead of hiding off to the side */
  html:not(.motion) .chapter__tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
}

/* ==========================================================================
   6. АССОРТИМЕНТ
   ========================================================================== */
.products__head {
  display: grid;
  gap: 48px;
}
.stats {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--sand);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
}
.stat + .stat {
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--sand);
}
.stat__num {
  font-family: var(--font-script);
  font-size: clamp(48px, 3.2vw + 34px, 92px);
  font-size: clamp(36px, 19cqw, 92px);
  line-height: 1;
  color: var(--oat-ink);
  white-space: nowrap;
}
.stat__num--sage {
  color: var(--sage-ink);
}
.stat .sr-only {
  /* screen-reader twin of the count-up number: keep it out of copy/paste */
  -webkit-user-select: none;
  user-select: none;
}
.stat__label {
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}
@media (min-width: 1024px) {
  .products__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: end;
  }
  .products__intro {
    grid-column: 1 / span 7;
  }
  .products__head .stats {
    grid-column: 9 / span 4;
  }
}

.catalog {
  margin-top: var(--block-gap);
}
.catalog__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 16px;
}
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
}
.cat:focus-visible {
  outline-offset: 6px;
}
.cat__thumb {
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--pine);
}
.cat__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat__name {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}
.cat__desc {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.catalog__preview {
  display: none;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .catalog__list {
    gap: 44px 24px;
  }
  .cat__name {
    font-size: 19px;
  }
  .cat__desc {
    font-size: 15px;
  }
}
@media (min-width: 1024px) {
  .catalog {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
  }
  .catalog__list {
    grid-column: 1 / span 6;
    display: block;
    border-bottom: 1px solid var(--sand);
  }
  .cat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 32px;
    align-items: baseline;
    padding-block: 24px;
    border-top: 1px solid var(--sand);
    border-radius: 0;
    cursor: default;
  }
  .cat::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: var(--oat);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.8s var(--ease-out);
  }
  .cat.is-active::before {
    transform: scaleX(1);
  }
  .cat__thumb {
    display: none;
  }
  .cat__name {
    font-size: clamp(22px, 0.8vw + 14px, 28px);
    font-weight: 300;
    letter-spacing: -0.015em;
    transition: translate 0.6s var(--ease-out), color 0.4s var(--ease);
  }
  .cat.is-active .cat__name {
    translate: 10px 0;
  }
  .cat__desc {
    margin-top: 0;
    font-size: 15px;
  }
  .catalog__preview {
    display: block;
    grid-column: 8 / span 5;
  }
  .catalog__frame {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--pine);
  }
  .catalog__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s var(--ease), transform 1.3s var(--ease-out);
  }
  .catalog__frame img.is-active {
    opacity: 1;
    transform: scale(1);
  }
  /* Not laid out (so not fetched) until the visitor points at / tabs into the list */
  .catalog__frame img:not(.is-active) {
    display: none;
  }
  .catalog.is-primed .catalog__frame img {
    display: block;
  }
}

.callout {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: var(--block-gap);
  padding: clamp(24px, 4vw, 64px);
  border-radius: var(--r-lg);
  background: var(--pine);
}
.callout__title {
  font-size: clamp(28px, 1.6vw + 18px, 44px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.callout__text p {
  max-width: 52ch;
  margin-top: 20px;
  color: var(--muted-pine);
}
.callout__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.callout__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 768px) {
  .callout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 48px;
  }
  .callout__media {
    aspect-ratio: 4 / 5;
  }
}
@media (min-width: 1024px) {
  .callout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .callout__text {
    grid-column: 1 / span 7;
    padding-left: clamp(0px, 2vw, 32px);
  }
  .callout__media {
    grid-column: 9 / span 4;
    aspect-ratio: 1 / 1;
  }
}

/* ==========================================================================
   7. ФЕРМЕРАМ
   ========================================================================== */
.farmers {
  border-top: 1px solid var(--sand);
}
.farmers__grid {
  display: grid;
  gap: clamp(56px, 8vw, 96px);
}
.farmers__media {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  padding-bottom: 14%;
}
.farmers__photo {
  aspect-ratio: 4 / 5;
  width: 88%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--pine);
}
.farmers__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.farmers__clip {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  aspect-ratio: 9 / 16;
  box-shadow: 0 30px 60px -30px rgba(44, 36, 32, 0.45);
}
.rows {
  margin-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--sand);
}
.row {
  display: grid;
  gap: 6px;
  padding-block: 22px;
  border-bottom: 1px solid var(--sand);
}
.row__title {
  font-size: 19px;
  font-weight: 500;
}
.row__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.farmers__cta {
  margin-top: 36px;
}
@media (min-width: 768px) {
  .row {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 32px;
    align-items: baseline;
  }
}
@media (min-width: 1024px) {
  .farmers__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
  }
  .farmers__media {
    grid-column: 1 / span 5;
    max-width: none;
  }
  .farmers__text {
    grid-column: 7 / span 6;
  }
}

/* ==========================================================================
   8. АРЕНДОДАТЕЛЯМ
   ========================================================================== */
.landlords .lead {
  color: var(--white-72);
}
.landlords__head {
  display: grid;
  gap: 28px;
}
.landlords__intro .btn {
  margin-top: 28px;
}
.landlords__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(48px, 6vw, 88px);
}
.landlords__main {
  position: relative;
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #3a302a;
}
.landlords__main-media {
  position: absolute;
  inset: 0;
}
.landlords__main-media img,
.landlords__main-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.landlords__side {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: #3a302a;
}
.landlords__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.landlords__grid {
  grid-column: 1 / -1;
  display: grid;
  margin-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line-dark);
}
.landlords__item {
  padding-block: 22px;
  border-bottom: 1px solid var(--line-dark);
}
.landlords__item p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white-72);
}
@media (min-width: 640px) {
  .landlords__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
  .landlords__item {
    padding-block: 28px 32px;
  }
}
@media (min-width: 768px) {
  .landlords__main {
    aspect-ratio: 16 / 9;
  }
}
@media (min-width: 1024px) {
  .landlords__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: end;
  }
  .landlords__heading {
    grid-column: 1 / span 6;
  }
  .landlords__intro {
    grid-column: 8 / span 5;
  }
  .landlords__body {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
    align-items: start;
  }
  .landlords__main {
    aspect-ratio: 21 / 9;
  }
  .landlords__side--a {
    grid-column: 1 / span 3;
    margin-top: 24px;
  }
  .landlords__side--b {
    grid-column: 4 / span 3;
    margin-top: 96px;
  }
  .landlords__grid {
    grid-column: 7 / span 6;
    grid-row: 2;
    margin-top: 24px;
  }
}

/* ==========================================================================
   9. КАК ДОБРАТЬСЯ + ОТЗЫВЫ
   ========================================================================== */
.visit__grid {
  display: grid;
  gap: 48px;
}
.visit__lines {
  margin-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--sand);
}
.visit__line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--sand);
}
.visit__line--muted {
  font-size: 16px;
  color: var(--muted);
}
.visit__line .link {
  display: inline-block;
  padding-block: 8px;
  margin-block: -8px;
}
.visit__pin {
  width: 13px;
  height: 17px;
  flex: none;
  transform: translateY(2px);
}
.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.map {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--pine);
}
.map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.75) sepia(0.12);
}
.map__guard {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  /* top-left: Yandex keeps its own controls in the right column and along the bottom */
  align-items: flex-start;
  justify-content: flex-start;
  padding: 12px 0 0 12px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.map__hint {
  max-width: calc(100% - 96px);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(20, 18, 16, 0.72);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.map__guard:hover .map__hint,
.map__guard:focus-visible .map__hint {
  opacity: 1;
}
@media (hover: none) {
  .map__hint {
    opacity: 1;
  }
}
.map.is-active .map__guard {
  pointer-events: none;
}
.map.is-active .map__hint {
  opacity: 0;
}
.map__pin {
  position: absolute;
  left: calc(50% - 9.5px);
  top: calc(50% - 11px);
  z-index: 1;
  width: 30px;
  height: 38px;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 4px 6px rgba(20, 18, 16, 0.3));
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.map.is-touched .map__pin {
  opacity: 0;
}
.map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-decoration: underline;
}
@media (min-width: 768px) {
  .map {
    aspect-ratio: 4 / 3;
  }
}
@media (min-width: 1024px) {
  .visit__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
  }
  .visit__info {
    grid-column: 1 / span 5;
  }
  .map {
    grid-column: 7 / span 6;
  }
}

.reviews {
  display: grid;
  gap: 40px;
  margin-top: var(--block-gap);
  padding: clamp(24px, 4vw, 64px);
  border-radius: var(--r-lg);
  background: var(--pine);
}
.reviews__text p:not(.script) {
  max-width: 44ch;
  color: var(--muted-pine);
}
.reviews__text .display + p {
  margin-top: 20px;
}
.reviews__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 32px;
}
.reviews__widget {
  position: relative;
  height: 480px;
}
@media (max-width: 479px) {
  .reviews__actions .btn {
    width: 100%;
    text-wrap: balance;
  }
}
/* Phones: give the Yandex widget as much of the panel's width as possible */
@media (max-width: 559px) {
  .reviews {
    padding: 28px 16px 16px;
  }
  .reviews__text {
    padding-inline: 4px;
  }
  .reviews__widget {
    margin-inline: -6px;
  }
}
.reviews__frame {
  width: 100%;
  height: 100%;
  border: 1px solid var(--sand);
  border-radius: var(--r-sm);
  box-sizing: border-box;
  background: #fff;
}
@media (min-width: 1024px) {
  .reviews {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
  }
  .reviews__text {
    grid-column: 1 / span 5;
  }
  .reviews__widget {
    grid-column: 7 / span 6;
    height: 560px;
  }
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(80px, 9vw, 128px);
  background: var(--bark);
  color: #fff;
}
.footer__top {
  display: grid;
  gap: 44px;
  padding-bottom: clamp(48px, 5vw, 72px);
  border-bottom: 1px solid var(--line-dark);
}
.footer__nal {
  width: 22px;
  aspect-ratio: 176 / 278;
  height: auto;
  fill: var(--oat);
}
.footer__tagline {
  max-width: 22ch;
  margin-top: 24px;
  font-size: clamp(22px, 0.8vw + 16px, 28px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.footer__title {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.5);
}
.footer__col li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--white-72);
}
.footer__col a {
  display: inline-block;
  padding-block: 10px;
  color: #fff;
  transition: color 0.3s var(--ease);
}
.footer__col a:hover {
  color: var(--oat);
}
.footer__address {
  padding-block: 8px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.footer__legal a {
  display: inline-block;
  padding-block: 11px;
  transition: color 0.3s var(--ease);
}
.footer__bottom p {
  padding-block: 10px;
}
.footer__legal a:hover {
  color: #fff;
}
.footer__mark {
  font-family: var(--font-script);
  /* the line is ≈5.43em wide → 17.4vw spans ~94% of the screen; only the descenders bleed off the bottom */
  font-size: clamp(48px, 17.4vw, 420px);
  line-height: 0.82;
  white-space: nowrap;
  text-align: center;
  color: #fff;
  margin-top: clamp(16px, 3vw, 48px);
  margin-bottom: -0.14em;
  user-select: none;
  pointer-events: none;
}
@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 32px;
  }
}
@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }
  .footer__brand {
    grid-column: 1 / span 5;
  }
  .footer__col--contacts {
    grid-column: 7 / span 4;
  }
  .footer__col--nav {
    grid-column: 11 / span 2;
  }
}

.noscript-note {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
  line-height: 1.7;
}
.noscript-note p + p {
  margin-top: 12px;
}

/* ==========================================================================
   Motion — initial states (only when JS + motion are available)
   ========================================================================== */
/* The poster paints at once (it is the LCP); only the <video> fades in over it. */
/* Wordmark "handwriting": a soft-edged window slides right while the ink counter-slides, so the
   letters stay put. Transforms only (GPU-composited), so it stays smooth while the page boots. */
.hero__mark-ink {
  display: inline-block;
}
.motion .hero__mark {
  width: fit-content;
  padding: 0 0.6em 0 0.3em;
  margin-left: -0.33em;
  margin-right: -0.6em;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 0.7em), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 0.7em), transparent 100%);
  -webkit-mask-repeat: repeat-y;
  mask-repeat: repeat-y;
  transform: translate3d(-100%, 0, 0);
}
.motion .hero__mark-ink {
  transform: translate3d(100%, 0, 0);
}
.motion .hero__mark.is-written {
  -webkit-mask-image: none;
  mask-image: none;
}
.motion .hero__mark.is-written,
.motion .hero__mark.is-written .hero__mark-ink {
  transform: none;
}
/* opacity (not visibility) keeps hidden-for-now text in the accessibility tree */
.motion .hero__line {
  opacity: 0;
}
.motion .hero__lead,
.motion .hero__btn,
.motion .hero__visit {
  opacity: 0;
  transform: translateY(16px);
}
@keyframes lp-fade-in {
  from {
    opacity: 0;
  }
}
.motion .topbar {
  animation: lp-fade-in 0.9s var(--ease) 1s both;
}
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
.motion [data-split] {
  opacity: 0;
}
.split-line-mask {
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   9½. TELEGRAM — a paper plane flies in on scroll and lands in the button icon
   ========================================================================== */
.tg {
  position: relative;
  overflow: hidden;
  padding-top: clamp(150px, 16vw, 200px);
  border-top: 1px solid var(--sand);
}
.tg__inner {
  position: relative;
  z-index: 1;
}
.tg .display {
  max-width: 15em;
}
.tg .lead {
  max-width: 34em;
}
.tg__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: clamp(28px, 3vw, 40px);
}
.btn--tg {
  gap: 12px;
  min-height: 60px;
  padding: 10px 26px 10px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
}
.btn--tg:hover {
  background: var(--bark);
}
.btn__tg {
  width: 38px;
  height: 38px;
  flex: none;
  transform-origin: 50% 50%;
}
.btn--tg .btn__tg {
  transition: transform 0.4s var(--ease-out);
}
.btn--tg:hover .btn__tg {
  transform: rotate(-12deg) scale(1.06);
}
.btn--tg.is-landed .btn__tg {
  animation: lp-tg-land 0.7s var(--ease-out);
}
@keyframes lp-tg-land {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(42, 171, 238, 0.5); }
  35% { transform: scale(1.22) rotate(-10deg); }
  100% { transform: scale(1); }
}
.btn--tg::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(42, 171, 238, 0.55);
  pointer-events: none;
}
.btn--tg {
  position: relative;
}
.btn--tg.is-landed::after {
  animation: lp-tg-ring 0.9s var(--ease-out);
}
@keyframes lp-tg-ring {
  to { box-shadow: 0 0 0 18px rgba(42, 171, 238, 0); }
}
.tg__handle {
  font-size: 16px;
  color: var(--muted);
}
.tg__sky {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  display: none;
}
.motion .tg__sky {
  display: block;
}
.tg__trail {
  stroke: var(--oat);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1 11;
}
.tg__plane {
  will-change: transform;
}
@media (max-width: 599px) {
  .btn--tg {
    width: 100%;
    justify-content: flex-start;
  }
  /* the button already says Telegram; keeps the plane's landing path clear */
  .tg__handle {
    display: none;
  }
}

/* ---------- Lenis (vendor/lenis.css, inlined to save a render-blocking request) ---------- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}
