/* ============================================================
   Питомник «Русская коллекция» — вариант C «Две площадки — маршрут»
   Токены → база → компоненты → адаптив → анимации (reduced-motion).
   Без внешних зависимостей. Mobile-first.
   ============================================================ */

/* --- 1. Токены ------------------------------------------------ */
:root {
  /* Палитра (контрасты посчитаны по WCAG 2.1, см. concept-c §2.1) */
  --ink: #2B211A;
  --paper: #F3EBDD;
  --surface: #FFFDF8;
  --berry: #A32B41;
  --moss: #3F5A45;
  --clay: #C08A5E;          /* только декор */
  --ink-soft: #6B5B4C;      /* вторичный текст */
  --clay-deep: #7C4A2C;     /* мелкие надписи */
  --berry-light: #F0B7BE;   /* ссылки/акценты на тёмном */
  --line: #E7DAC4;

  /* Шрифты */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Golos Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'PT Mono', 'Consolas', 'Courier New', monospace;

  /* Шкала */
  --fs-hero: clamp(2.375rem, 1.15rem + 4.7vw, 3.875rem);
  --fs-h2: clamp(1.5rem, 1.05rem + 1.9vw, 2.125rem);
  --fs-h3: 1.1875rem;
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;

  /* Сетка и ритм */
  --content: 1160px;
  --prose: 660px;
  --step: clamp(2.75rem, 5vw, 4.5rem);
  --header-h: 66px;

  /* Радиусы, тени */
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --shadow-1: 0 10px 26px -16px rgba(43, 33, 26, .22);
  --shadow-2: 0 18px 40px -22px rgba(43, 33, 26, .35);

  /* Движение */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-1: .16s;
  --dur-2: .24s;
  --dur-3: .32s;
}

/* --- 2. База -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

img, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--berry); }
a:hover { color: #8d2437; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); line-height: 1.06; font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible { outline-color: var(--berry-light); }

/* --- 3. Утилиты ---------------------------------------------- */
.wrap {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2rem, 860px); }

.mono { font-family: var(--font-mono); letter-spacing: .01em; }

.label {
  display: inline-block;
  margin: 0 0 .9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.section--dark .label,
.hero .label { color: var(--berry-light); }

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: var(--prose);
}

.prose { max-width: var(--prose); }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

.section { padding-block: var(--step); }

.skip-link {
  position: absolute;
  left: .5rem;
  top: -4rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: top var(--dur-2) var(--ease);
}
.skip-link:focus { top: .5rem; color: #fff; }

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

/* Подчёркивание, «растущее» слева */
.link-line {
  color: var(--berry);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur-2) var(--ease), color var(--dur-1) ease;
}
.link-line:hover, .link-line:focus-visible { background-size: 100% 1px; }

/* --- 4. Кнопки ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease,
              border-color var(--dur-1) ease, transform var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
.btn--primary { background: var(--berry); color: #fff; }
.btn--primary:hover { background: #8d2437; color: #fff; }
.btn--ghost { background: transparent; border-color: var(--clay); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); border-color: var(--berry); color: var(--berry); }

.hero .btn--ghost { border-color: rgba(255, 255, 255, .65); color: #fff; }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

.btn__arrow { transition: transform var(--dur-2) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* --- 5. Шапка ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-2) var(--ease);
}
body.is-scrolled .site-header { box-shadow: var(--shadow-1); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  /* Шапке нужно больше ширины, чем контентной колонке: логотип + меню + телефон */
  width: min(100% - 2rem, 1240px);
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { height: 44px; width: 44px; border-radius: 10px; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.brand__name {
  font-weight: 800;
  font-size: .9375rem;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.brand__caption {
  font-size: .625rem;
  line-height: 1.25;
  color: var(--moss);
  text-wrap: balance;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .7rem;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-s);
  transition: color var(--dur-1) ease, background-color var(--dur-1) ease;
}
.nav a:hover { color: var(--berry); background: rgba(163, 43, 65, .06); }

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-s);
}
.header-phone:hover { color: var(--berry); }

.burger {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: .25rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- 6. Hero -------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 780px);
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: center 40%; }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(43, 33, 26, .52) 0%, rgba(43, 33, 26, .18) 55%, rgba(43, 33, 26, 0) 82%),
    linear-gradient(180deg,
      rgba(43, 33, 26, .60) 0%,
      rgba(43, 33, 26, .56) 55%,
      rgba(43, 33, 26, .88) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem);
}
.hero__content { max-width: 660px; }
.hero .label { color: #fff; }
.hero h1 { color: #fff; margin-bottom: .5em; text-shadow: 0 2px 18px rgba(43, 33, 26, .5); }
.hero__lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .96);
  max-width: 560px;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 14px rgba(43, 33, 26, .5);
}

.route { margin: 0 0 1.75rem; max-width: 580px; }
.route__map {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .7rem;
}
.route__point {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}
.route__point i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--berry-light);
  box-shadow: 0 0 0 3px rgba(240, 183, 190, .3);
}
.route__line {
  flex: 1 1 auto;
  min-width: 28px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--berry-light) 0 6px, transparent 6px 13px);
  background-size: 13px 2px;
  opacity: .8;
}
.route__note {
  margin: 0;
  font-size: var(--fs-small);
  color: #fff;
  max-width: 520px;
  text-shadow: 0 1px 14px rgba(43, 33, 26, .5);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- 7. Маршрутная рейка ------------------------------------- */
.journey { position: relative; padding-block: var(--step); }
.journey__inner {
  --gutter: 56px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-left: var(--gutter);
}
.journey__rail {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-image: linear-gradient(180deg, var(--moss) 0 6px, transparent 6px 14px);
  background-size: 2px 14px;
  background-repeat: repeat-y;
}
.journey__progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--berry);
  transform: scaleY(var(--progress, 0));
  transform-origin: top center;
  transition: transform .12s linear, opacity var(--dur-2) ease;
}

.stop { position: relative; }
.stop::before {
  content: attr(data-stop);
  position: absolute;
  left: calc(-1 * var(--gutter));
  top: .1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--clay-deep);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1;
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease,
              border-color var(--dur-2) ease, transform var(--dur-2) var(--ease);
}
.stop.is-active::before {
  background: var(--berry);
  border-color: var(--berry);
  color: #fff;
  transform: scale(1.06);
}

.section__head { max-width: var(--prose); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section__head .label { display: block; }
.section__head h2 { margin-bottom: .4em; }

/* --- 8. Полоса-фото и о питомнике ---------------------------- */
.band { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; }
.band img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
}
.band figcaption {
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .02em;
  color: var(--ink-soft);
}

/* --- 9. Услуги ------------------------------------------------ */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.services li {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease);
}
.services li:hover { transform: translateY(-4px); box-shadow: var(--shadow-1); }
.services__num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--berry);
}
.services h3 { margin: 0; }
.services p { margin: 0; color: var(--ink-soft); font-size: var(--fs-small); }

/* --- 9b. Ассортимент (список культур) -------------------------- */
.assort {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.assort__col h3 {
  margin: 0 0 .75rem;
  font: 600 var(--fs-h3)/1.3 var(--font-display);
  color: var(--ink);
}
.assort__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.assort__col li {
  position: relative;
  padding-left: 1.1em;
  margin-bottom: .4rem;
  color: var(--ink-soft);
}
.assort__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .4em;
  height: .4em;
  border-radius: 50%;
  background: var(--clay);
}
.assort__note {
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
@media (min-width: 720px) {
  .assort { grid-template-columns: 1fr 1fr; gap: 2.25rem; }
}

/* --- 10. Площадки --------------------------------------------- */
.place {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease);
}
.place--primary { background: var(--paper); }
.place:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.places { display: flex; flex-direction: column; gap: clamp(1.25rem, 3vw, 2rem); }

.place__status {
  display: inline-block;
  margin: 0 0 .5rem;
  padding: .25rem .55rem;
  border: 1px solid var(--clay);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.place__name { margin: 0 0 .75rem; }

.facts {
  display: grid;
  gap: .6rem;
  margin: 0 0 1.4rem;
}
.facts > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: .75rem;
  align-items: baseline;
}
.facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.facts dd { margin: 0; }
.facts a { color: var(--ink); }
.facts a.link-line { color: var(--berry); }

.place__media { margin: 0; }
.place__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 1328;
  object-fit: cover;
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform var(--dur-3) var(--ease);
}
.place__media picture { overflow: hidden; border-radius: var(--radius-m); }
.place:hover .place__media img { transform: scale(1.04); }
.place__media figcaption {
  margin-top: .55rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* --- 10b. Карта площадки (Яндекс) ---------------------------------- */
.place__map {
  margin-top: 1rem;
  display: grid;
  gap: .5rem;
}
.place__map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface-2, #ece7db);
}
.place__map-link {
  font-size: var(--fs-small);
  justify-self: start;
}

/* --- 11. Как купить: шаги ------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 4.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: transform var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease);
}
.steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 1.4rem;
  top: 1.35rem;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--berry);
}
.steps h3 { margin: 0 0 .25rem; font-size: 1.0625rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: var(--fs-small); }

/* --- 12. Тёмный блок «Как добраться» -------------------------- */
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--berry-light); }
.section--dark a:hover { color: #fff; }

.ways {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.ways li {
  padding: 1.25rem;
  border: 1px solid rgba(240, 183, 190, .25);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, .03);
}
.ways h3 { margin: 0 0 .4rem; font-size: 1.125rem; }
.ways p { margin: 0 0 .6rem; color: rgba(243, 235, 221, .82); font-size: var(--fs-small); }
.ways .mono { display: inline-block; min-height: 44px; }
.section--dark .lead { color: rgba(243, 235, 221, .82); }

/* --- 13. Контакты --------------------------------------------- */
.contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.contact-card {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.contact-card h3 { margin: 0 0 .5rem; }
.contact-card p { margin: 0 0 .35rem; color: var(--ink-soft); font-size: var(--fs-small); }
.contact-card a { display: inline-block; min-height: 44px; line-height: 44px; }
.contact-card .contact-card__meta { color: var(--ink-soft); }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; flex-direction: column; }

/* --- 14. Футер ------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: rgba(243, 235, 221, .85);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  font-size: var(--fs-small);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.footer__grid h3 {
  margin: 0 0 .6rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer__grid p { margin: 0 0 .45rem; }
.site-footer a { color: var(--berry-light); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(240, 183, 190, .22);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  justify-content: space-between;
  color: rgba(243, 235, 221, .68);
}
.footer__bottom p { margin: 0; }

/* --- 15. 404 -------------------------------------------------- */
.error-page {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.error-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .12;
}
.error-page__bg img { width: 100%; height: 100%; object-fit: cover; }
.error-page__inner { position: relative; z-index: 1; padding-block: var(--step); }
.error-page__code {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .1em;
  color: var(--berry);
}
.error-page h1 { font-size: var(--fs-h2); margin-bottom: .4em; }

/* --- 16. Анимации --------------------------------------------- */
/* Появление секций: только когда JS активен (иначе контент виден сразу) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-2) ease-out, transform var(--dur-2) ease-out;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.stagger > [data-reveal]:nth-child(2) { transition-delay: .07s; }
.stagger > [data-reveal]:nth-child(3) { transition-delay: .14s; }
.stagger > [data-reveal]:nth-child(4) { transition-delay: .21s; }

@keyframes kenburns {
  from { transform: scale(1.01); }
  to { transform: scale(1.05); }
}

/* Только на широких экранах, где источник 1920 px не апскейлится заметно */
@media (min-width: 960px) {
  .hero__img { animation: kenburns 28s ease-out forwards; }
}

/* --- 17. prefers-reduced-motion -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__img { animation: none; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .journey__progress { transition: none; }
}

/* --- 18. Адаптив ---------------------------------------------- */
@media (max-width: 959px) {
  .journey__inner { --gutter: 28px; }
  .journey__rail { left: 10px; }
  .stop::before { width: 22px; height: 22px; font-size: 11px; }
  .stop.is-active::before { transform: none; }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    z-index: 19;
    display: none;
    padding: .5rem 1rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a {
    min-height: 52px;
    padding: 0 .9rem;
    border-radius: var(--radius-s);
    font-size: 1rem;
  }
  .burger { display: block; margin-left: auto; }
  body.menu-open { overflow: hidden; }
}

/* Телефон в шапке — только на широких экранах: логотип с подписью + меню + телефон
   вместе требуют ~1150px ширины */
@media (max-width: 1239px) {
  .header-phone { display: none; }
}

@media (min-width: 640px) {
  .ways { grid-template-columns: repeat(2, 1fr); }
}

/* На узких экранах текст занимает всю ширину — усиливаем вертикальный скрим */
@media (max-width: 639px) {
  .hero__media::after {
    background: linear-gradient(180deg,
      rgba(43, 33, 26, .68) 0%,
      rgba(43, 33, 26, .64) 55%,
      rgba(43, 33, 26, .92) 100%);
  }
}

@media (min-width: 760px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding-left: 1.4rem; padding-top: 3.5rem; }
  .steps li::before { top: 1.4rem; }
  .contacts { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .brand__mark { height: 46px; width: 46px; }

  .place { grid-template-columns: 1.15fr .85fr; align-items: start; padding: 2rem; }
  .place__media { position: sticky; top: calc(var(--header-h) + 1.5rem); }

  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .facts > div { grid-template-columns: 1fr; gap: .1rem; }
  .facts dt { margin-top: .35rem; }
}

/* Подпись логотипа — только там, где в шапке хватает места (подробности в замерах) */
@media (max-width: 1079px) {
  .brand__caption { display: none; }
}

@media (min-width: 1200px) {
  .hero { min-height: min(92vh, 820px); }
}

/* --- 21. Заметки садовода -------------------------------------- */
#notes h1 { font-size: var(--fs-h2); margin: .35rem 0 .6rem; }
.notes {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 1.4rem 1.5rem;
}
.note__tag {
  margin: 0 0 .5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--berry);
}
.note h2 { margin: 0 0 .6rem; font-size: var(--fs-h3); }
.note p { margin: 0 0 .6rem; color: var(--ink-soft); }
.note ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--ink-soft);
  font-size: var(--fs-small);
}
.note li { margin-bottom: .3rem; }
.notes__more { margin-top: 1.75rem; color: var(--ink-soft); }
@media (min-width: 760px) {
  .notes { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

/* --- 22. Галерея ----------------------------------------------- */
#photos h1 { font-size: var(--fs-h2); margin: .35rem 0 .6rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: 1.75rem;
}
.gallery__item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
}
.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(24, 16, 10, .92);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-m); }
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .12); }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
/* На узких (вертикальных) экранах лайтбокс — почти во всю ширину: поля узкие,
   иначе фото на телефоне сильно ужимается */
@media (max-width: 699px) {
  .lightbox { padding: .5rem; }
  .lightbox__close { background: rgba(0, 0, 0, .35); }
}
