/* =============== Твоя Спаржа — дизайн-токены =============== */
:root {
  /* light editorial palette */
  --cream: #F4F1E8;
  --cream-2: #EDE8D8;
  --paper: #FBFAF4;
  --ink: #11221A;          /* deep almost-black green */
  --green: #1F3D2B;        /* deep green */
  --green-2: #2F5A3F;
  --green-soft: #97B58A;
  --moss: #4F6B3A;
  --lime: #C8F26B;         /* sharp accent */
  --orange: #E7521E;       /* point accent */
  --line: rgba(17, 34, 26, 0.14);
  --line-strong: rgba(17, 34, 26, 0.28);
  --muted: rgba(17, 34, 26, 0.6);

  --font-display: "Lora", "Georgia", serif;
  --font-body: "Geologica", "Inter", system-ui, sans-serif;
  --font-mono: "Fira Code", ui-monospace, monospace;

  /* type scale */
  --text-xs: 0.72rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.18rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 3rem;
  --text-display: clamp(3rem, 8vw, 9rem);
  --text-hero: clamp(3.4rem, 10.5vw, 12.5rem);

  --radius: 6px;
  --radius-lg: 14px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-page: cubic-bezier(0.3, 0.193, 0.04, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--cream); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  font-feature-settings: "ss01", "ss02", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  zoom: 0.9;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; padding: 0; }

::selection { background: var(--green); color: var(--cream); }

/* lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* =============== layout =============== */
.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

section { position: relative; padding: clamp(80px, 14vh, 180px) 0; }
section.tight { padding: clamp(60px, 10vh, 130px) 0; }

/* =============== single-page views =============== */
.view { display: none; }
.view[data-view-active] { display: block; }

/* =============== type styles =============== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
}

.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 0.95; }
.display { font-family: var(--font-display); font-weight: 400; font-size: var(--text-display); line-height: 0.92; letter-spacing: -0.02em; }
.italic {
  font-style: italic;
  color: var(--green);
}
.banner .italic,
.banner em.italic {
  color: var(--lime);
}

.h-section {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}

.lead {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  max-width: 56ch;
}
.muted { color: var(--muted); }

/* line/word masks: overflow:hidden строго обрезает текст снизу.
   padding-bottom + отрицательный margin-bottom расширяют маску под декные элементы
   (р, у, ф, ц, щ, д), но не дают им «выглядывать» в скрытом состоянии,
   потому что translateY у внутреннего спана задан с запасом. */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.12em;
}
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  line-height: inherit;
  padding-bottom: 0.18em;
  margin-bottom: -0.12em;
}
.word-inner, .char-inner {
  display: inline-block;
  will-change: transform;
}

/* =============== loader =============== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--green);
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 36px 32px;
  pointer-events: all;
}
.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 80% 100%, rgba(200, 242, 107, 0.18), transparent 60%);
  pointer-events: none;
}
.loader-mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.loader-meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  position: relative;
  z-index: 1;
}
.loader-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--lime);
  transition: width 0.4s linear;
}

/* page transition overlay */
.transition-wrap {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--green);
  transform: translateY(150vh);
  pointer-events: none;
}
.transition-wrap.is-active { pointer-events: all; }
.transition-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 50%, rgba(200, 242, 107, 0.18), transparent 70%);
}

/* =============== top nav =============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 32px;
  background: var(--green);
  mix-blend-mode: normal;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.nav-brand svg { width: 40px; height: 40px; }
.nav-brand-text {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 6px 4px;
  color: rgba(244, 241, 232, 0.75);
  transition: color 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--lime); }
/* is-light больше не нужен — навбар всегда тёмный */
.nav.is-light .nav-brand,
.nav.is-light .nav-links a {
  color: var(--cream);
}
.nav.is-light .nav-cta {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 241, 232, 0.4);
}
.nav.is-light .nav-cta:hover {
  background: var(--cream);
  color: var(--green);
  border-color: var(--cream);
}
.nav.is-light .nav-links a::after { background: var(--cream); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 1px;
  background: #FBFAF4;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--paper);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.nav-cta:hover { background: var(--green); color: var(--cream); border-color: var(--green); }

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 16px; padding: 18px 20px; }
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); gap: 18px; font-size: 18px; }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); }
  .nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); }
  .nav-toggle span::before { top: -5px; }
  .nav-toggle span::after { top: 5px; }
  .nav-cta { display: none; }
}

/* =============== buttons =============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 26px;
  border-radius: 8px;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease-out);
}
.btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
}
.btn:hover { background: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

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

/* button char hover wrapper */
.btn-chars {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
  white-space: nowrap;
}
.btn-chars-inner { display: inline-block; }
.btn-chars-inner span {
  display: inline-block;
  text-shadow: 0 1.3em currentColor;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.625, 0.05, 0, 1);
  will-change: transform;
}
.btn:hover .btn-chars-inner span { transform: translateY(-1.3em); }

/* =============== HERO =============== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: 130px;
  padding-bottom: 60px;
}
.hero-headline {
  font-size: clamp(3.4rem, 9.5vw, 10.5rem);
}
.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
}
.hero-headline {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 0.86;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.hero-headline em {
  font-style: italic;
  color: var(--green);
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 48px;
  align-items: end;
  margin-top: 60px;
}
.hero-bottom .lead { max-width: 44ch; }
.hero-meta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-headline { font-size: clamp(3.8rem, 18vw, 7rem); }
}

/* product strip */
.product-strip {
  background: var(--green);
  color: rgba(244, 241, 232, 0.85);
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.product-strip-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--page-gutter, 32px);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}
.product-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.product-strip-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}
.product-strip-div {
  width: 1px;
  background: rgba(244, 241, 232, 0.12);
  align-self: stretch;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .product-strip-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .product-strip-inner::-webkit-scrollbar { display: none; }
  .product-strip-item { padding: 12px 16px; font-size: 11px; }
}
@media (max-width: 600px) {
  .product-strip-item { padding: 11px 14px; font-size: 10.5px; }
}

/* =============== feature grid (services) =============== */
.svc-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
@media (max-width: 900px) { .svc-head { grid-template-columns: 1fr; } }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}
.svc-card {
  background: var(--cream);
  padding: 48px 40px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: background 0.6s var(--ease-out), color 0.6s var(--ease-out), border-color 0.5s var(--ease-out);
}
.svc-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.svc-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 400;
}
.svc-card p { color: var(--muted); margin: 0; max-width: 38ch; }
.svc-card .arrow {
  width: 42px; height: 42px; border: 1px solid var(--line-strong);
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.svc-card:hover { background: var(--green); color: var(--cream); border-color: var(--green); }
.svc-card:hover p { color: rgba(244, 241, 232, 0.7); }
.svc-card:hover .num { color: var(--lime); }
.svc-card:hover .arrow { background: var(--lime); color: var(--green); border-color: var(--lime); }
@media (max-width: 720px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 36px 24px; }
}

/* sticky chapter banner */
.chapter {
  position: fixed;
  left: 32px;
  bottom: 48px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.chapter.is-visible { opacity: 1; transform: translateY(0); }
.chapter-num, .chapter-text {
  display: inline-block;
  overflow: hidden;
  position: relative;
  height: 1.2em;
  line-height: 1.2;
}
.chapter-num { width: 28px; }
.chapter-text { width: 200px; }
.chapter-num span, .chapter-text span {
  display: block;
  position: absolute;
  inset: 0;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease-out);
  white-space: nowrap;
}
/* Активный спан виден, все остальные скрыты снизу */
.chapter-num span.is-active, .chapter-text span.is-active { transform: translateY(0); }
/* уходящий спан уезжает наверх */
.chapter-num span.is-leaving, .chapter-text span.is-leaving { transform: translateY(-110%); }
/* скрываем pill когда product-strip в нижней части экрана */
.chapter.is-behind-strip { opacity: 0 !important; pointer-events: none; }
@media (max-width: 720px) {
  .chapter { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; }
  .chapter-text { width: auto; flex: 1; }
}

/* story / banner */
.banner {
  background: var(--green);
  color: var(--cream);
  padding: clamp(80px, 14vh, 160px) 0;
  position: relative;
  overflow: hidden;
}
.banner .h-section { color: var(--cream); }
.banner-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.banner-grid p { color: rgba(244, 241, 232, 0.7); }
@media (max-width: 900px) { .banner-grid { grid-template-columns: 1fr; gap: 28px; } }

/* split content */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.split-block .stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.split-block .stat {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 24px 0 24px 0;
}
.split-block .stat:nth-child(2n) { border-right: 0; padding-left: 24px; }
.split-block .stat .n { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1; }
.split-block .stat .l { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .split-block { grid-template-columns: 1fr; gap: 28px; } }

/* product cards / cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.case:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(31, 61, 43, 0.25); }
.case .case-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.case .case-tag::before { content: ""; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.case h4 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.05;
  margin: 0;
  font-weight: 400;
}
.case p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.case-illustration { aspect-ratio: 16/10; border-radius: var(--radius); background: var(--cream-2); display: grid; place-items: center; overflow: hidden; }
@media (max-width: 900px) {
  .cases-grid { grid-template-columns: 1fr; }
}

/* === mobile carousel === */
.carousel {
  display: none;
  margin-left: -20px;
  margin-right: -20px;
  padding: 0 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * {
  scroll-snap-align: start;
  flex: 0 0 80%;
  max-width: 320px;
}
@media (max-width: 720px) {
  .cases-grid { display: none; }
  .carousel { display: flex; }
}

/* table-like specs */
.specs {
  border-top: 1px solid var(--line-strong);
}
.spec-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 120px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec-row .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.spec-row .name { font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.7rem); }
.spec-row .desc { color: var(--muted); }
.spec-row .stat { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; }
@media (max-width: 720px) {
  .spec-row { grid-template-columns: 50px 1fr; }
  .spec-row .desc, .spec-row .stat { grid-column: 1 / -1; padding-left: 50px; }
  .spec-row .stat { text-align: left; }
}

/* === FORM === */
.form-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 56px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.form-grid .full { grid-column: 1 / -1; }
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  color: var(--ink);
  resize: vertical;
  border-radius: 0;
  outline: none;
  transition: border-color 0.4s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
/* состояние ошибки валидации */
.field input.is-error { border-color: var(--orange); }
.field input.is-error::placeholder { color: rgba(231, 82, 30, 0.55); }
.field textarea { min-height: 120px; }
.form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; }
.form-bottom .muted { font-size: 13px; max-width: 40ch; }
@media (max-width: 720px) {
  .form-block { padding: 32px 24px; border-radius: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-bottom { flex-direction: column; align-items: stretch; }
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.contact-grid > * { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Глобально: строки заголовка «Закажите саженцы / и высадку под ключ.»
   всегда на отдельных строках, чтобы data-split="lines" работал как ожидается. */
.contacts-section .contacts-title > span {
  display: block;
}

/* === Tablet fix: contacts-section — увеличенные горизонтальные отступы на планшетах === */
@media (min-width: 721px) and (max-width: 1024px) {
  .contacts-section {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  .contacts-section .contact-grid > *,
  .contacts-section .form-block {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* === Mobile fix: контакты «Закажите саженцы и высадку под ключ» ===
   На мобильных экранах заголовок и сетка контактов должны быть вровень с краём
   контейнера (без горизонтальных отступов и без переполнения). Текст должен
   переноситься по словам, а не разрываться посередине. */
@media (max-width: 720px) {
  .contacts-section {
    /* Увеличиваем горизонтальные отступы секции на мобиле */
    padding-left: 28px !important;
    padding-right: 28px !important;
    /* Уменьшаем вертикальный отступ секции, чтобы контакты не «убегали» далеко */
    padding-top: 52px;
    padding-bottom: 52px;
  }
  .contacts-section .svc-head {
    /* svc-head становится одной колонкой и прижимается к краю контейнера */
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 36px;
  }
  .contacts-section .contacts-title {
    margin-top: 12px !important;
    /* Только перенос по словам, без разрыва внутри слова (важно для русского) */
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    -webkit-hyphens: auto;
    /* Чуть меньше, чем дефолтный .h-section, чтобы помещалось на узких экранах */
    font-size: clamp(2rem, 8.6vw, 2.6rem);
    /* Безопасный line-height, чтобы маски слов не перекашивались */
    line-height: 1.06;
    letter-spacing: -0.018em;
    /* Максимально плотно к краю: нулевые внешние отступы слева/справа */
    margin-left: 0;
    margin-right: 0;
  }
  /* Маски слов в заголовке: на мобильных делаем отступы чуть компактнее,
     чтобы текст не «плясал» по вертикали из-за лишнего padding-bottom. */
  .contacts-section .contacts-title .word-mask {
    padding-bottom: 0.14em;
    margin-bottom: -0.08em;
  }
  /* Лид-абзац тоже аккуратнее */
  .contacts-section .lead {
    font-size: 0.98rem;
    line-height: 1.5;
    max-width: 100%;
  }
  .contacts-section .contact-grid {
    margin-top: 0 !important;
    gap: 32px;
  }
  .contacts-section .form-block {
    /* Карточка формы прижата к краю контейнера: минимальные внутренние отступы */
    padding: 24px 18px;
    border-radius: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .contacts-section .form-grid {
    gap: 18px;
  }
  .contacts-section .field input,
  .contacts-section .field textarea {
    font-size: 16px; /* чтобы iOS не зумил при фокусе */
  }
  .contacts-section .form-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .contacts-section .form-bottom .btn {
    width: 100%;
    justify-content: center;
  }
  .contacts-section aside ul {
    gap: 18px !important;
    font-size: 1rem !important;
  }
  /* Предотвращаем выход текста за края на мобильных */
  .contacts-section aside,
  .contacts-section aside ul,
  .contacts-section aside li {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
  }
  .contacts-section aside a,
  .contacts-section aside span {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  /* Номер телефона: уменьшаем на мобиле чтобы не вылезал */
  .contacts-section aside a[href^="tel"] {
    font-size: 1.1rem !important;
  }
  /* Форма не должна выходить за контейнер */
  .contacts-section .contact-grid > div,
  .contacts-section .form-block {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  /* contact-grid занимает всю ширину контейнера */
  .contacts-section .contact-grid {
    width: 100%;
    box-sizing: border-box;
  }
}

/* mobile collapse for banner stat strips and 3/4-col grids */
@media (max-width: 720px) {
  .banner [style*="grid-template-columns:repeat(4,1fr)"],
  .banner [style*="grid-template-columns:repeat(3,1fr)"],
  .stat-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
}

/* footer */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer .footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h4 { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244, 241, 232, 0.5); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: rgba(244, 241, 232, 0.85); transition: color 0.3s var(--ease-out); }
.footer ul a:hover { color: var(--lime); }
/* скрываем активную страницу из футер-навигации */
[data-footer-nav] [data-footer-nav-item].is-current { display: none; }
.footer .footer-mark { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; }
.footer .footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border-top: 1px solid rgba(244, 241, 232, 0.12);
  margin-top: 64px; padding-top: 24px;
  font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(244, 241, 232, 0.5);
}
@media (max-width: 900px) {
  .footer .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* big footer wordmark */
.giant-mark {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 22rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--cream);
  position: relative;
}

/* tag chips */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
}

/* utilities */
.divider { height: 1px; background: var(--line); border: 0; }
.row-end { display: flex; justify-content: flex-end; }
.text-right { text-align: right; }
.center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.gap-lg { gap: 32px; }

/* parallax helper */
[data-parallax="trigger"] { will-change: transform; }

/* page-specific */
.page-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  font-weight: 400;
  position: relative;
}
.page-hero .crumb {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* SVG asparagus illustration */
.asparagus-illust { width: 100%; height: 100%; color: var(--green); }
.asparagus-illust .stalk { fill: currentColor; }
.asparagus-illust .tip { fill: var(--green-2); }

/* badge swatches */
.swatch-row { display: flex; gap: 8px; margin-top: 16px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.swatch.s-green { background: var(--green); }
.swatch.s-cream { background: var(--cream); }
.swatch.s-lime { background: var(--lime); }
.swatch.s-orange { background: var(--orange); }
.swatch.s-ink { background: var(--ink); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .loader { display: none; }
}

/* =============== Desktop refinements =============== */
@media (min-width: 901px) {
  .hero-headline {
    font-size: clamp(3.4rem, 9.7vw, 11.5rem);
    line-height: 0.91;
  }

  .h-section {
    font-size: clamp(2.5rem, 5.55vw, 5.1rem);
    line-height: 1.01;
  }
  .page-hero h1 {
    font-size: clamp(3rem, 8.3vw, 8.3rem);
    line-height: 0.95;
  }

  .rotate-group {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    vertical-align: baseline;
  }
  .rotate-group [data-rotate] {
    display: inline-block;
    min-width: 0 !important;
  }
  .rotate-punctuation {
    display: inline-block;
    margin-left: 0.01em;
    flex: 0 0 auto;
  }

  /* Main services heading: fixed five-line composition. Only the last phrase changes,
     so the neighboring explanatory paragraph never shifts when the rotating text changes width. */
  .services-head-stable {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
  .services-head-stable > div {
    min-width: 0;
  }
  .services-title {
    width: 100%;
  }
  .services-title-line {
    display: block;
    white-space: normal;
    word-break: normal;
  }
  .services-rotating-line {
    min-height: 1.03em;
    white-space: nowrap;
  }
  .services-rotating-line .rotate-group {
    font-size: 0.92em;
  }
  .services-rotating-line [data-rotate] {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--green);
  }
  .services-head-stable .services-fixed-lead {
    width: 100%;
    max-width: 45ch;
    align-self: end;
  }

  /* Team section: explicit two-line title, attached punctuation and balanced vertical alignment. */
  .team-section-head {
    align-items: end;
  }
  .team-section-title .team-title-line {
    display: block;
    white-space: nowrap;
  }
  .team-section-head > .lead {
    align-self: end;
    max-width: 44ch;
  }

  /* Catalog: intentional breathing room + rounded entry into the dark footer. */
  .catalog-products-section {
    padding-bottom: 112px !important;
  }
  .catalog-footer-soft {
    margin-top: 24px;
    border-radius: 30px 30px 0 0;
  }
}


/* =============== Responsive layout =============== */

:root {
  --page-gutter: clamp(24px, 2.35vw, 40px);
}

.container {
  max-width: 1300px;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Keep reveal masks generous at every viewport so Cyrillic descenders are never clipped. */
.line-mask,
.word-mask {
  padding-bottom: 0.20em;
  margin-bottom: -0.14em;
}

/* Header / navigation */
.nav {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}
.header-phone-large {
  white-space: nowrap;
  justify-self: end;
}
.nav-menu-phone { display: none; }
.nav-toggle { position: relative; z-index: 53; }
.nav-brand { position: relative; z-index: 53; }

/* Main hero */
.hero {
  padding-top: clamp(116px, 8vw, 142px);
  padding-bottom: clamp(48px, 5vw, 72px);
}
.hero-headline {
  text-wrap: balance;
}
.hero-bottom-main {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  gap: clamp(28px, 3vw, 48px);
}
.hero-copy-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

/* Typography that should wrap naturally on narrower displays. */
.h-section,
.page-hero h1,
.member-name,
.catalog-title,
.catalog-price,
.volume-alert h3 {
  overflow-wrap: normal;
  word-break: normal;
}
.h-section,
.page-hero h1 { text-wrap: balance; }

/* Services composition */
.services-title-line,
.team-title-line {
  max-width: 100%;
}
.rotate-group {
  max-width: 100%;
}
.services-fixed-lead {
  margin: 0;
}

/* Flexible content grids */
.banner-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 80px;
  border-top: 1px solid rgba(244,241,232,0.18);
  padding-top: 32px;
}

/* Very wide monitors: preserve comfortable measure instead of stretching content endlessly. */
@media (min-width: 1800px) {
  :root { --page-gutter: 48px; }
  .container { max-width: 1680px; }
  .hero-headline { font-size: min(9.2vw, 11.5rem); }
  .h-section { font-size: min(5.2vw, 5.35rem); }
  .page-hero h1 { font-size: min(7.6vw, 8.5rem); }
}

/* Laptops and smaller desktop monitors */
@media (max-width: 1365px) and (min-width: 1025px) {
  :root { --page-gutter: 28px; }
  .nav { gap: 22px; }
  .nav-links { gap: 20px; font-size: 10px; }
  .header-phone-large { font-size: 1.1rem !important; }
  .hero-headline { font-size: clamp(5.8rem, 9vw, 8.6rem); }
  .hero-bottom-main { grid-template-columns: 1.1fr 0.9fr; }
  .h-section { font-size: clamp(3.8rem, 5.4vw, 4.8rem); }
  .svc-head { gap: 36px; }
  .footer .footer-inner { gap: 32px; }
}

/* Tablet landscape / compact desktop */
@media (max-width: 1024px) {
  :root { --page-gutter: 24px; }
  section { padding: clamp(72px, 9vw, 104px) 0; }
  section.tight { padding: clamp(56px, 7vw, 84px) 0; }

  .nav {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .nav-brand-text { font-size: 20px; }
  .header-phone-large { font-size: 1.05rem !important; }

  .hero {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 64px;
  }
  .hero-headline {
    font-size: clamp(5rem, 10.2vw, 6.8rem);
    line-height: 0.93;
  }
  .hero-top { margin-bottom: 32px; }
  .hero-bottom-main {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 44px;
  }
  .hero-copy-stack { align-items: flex-start; }
  .photo-placeholder-box { max-width: none !important; height: clamp(190px, 28vw, 260px) !important; }

  .svc-head,
  .services-head-stable,
  .team-section-head {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
  .services-head-stable .services-fixed-lead,
  .team-section-head > .lead {
    max-width: 54ch;
    align-self: auto;
  }
  .h-section { font-size: clamp(3.5rem, 7.4vw, 4.8rem); line-height: 1; }
  .services-title-line,
  .team-section-title .team-title-line { white-space: normal; }
  .services-rotating-line { min-height: 1.05em; }

  .banner-grid { gap: 36px; }
  .banner-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; }

  .page-hero {
    padding-top: 132px;
    padding-bottom: 64px;
  }
  .page-hero h1 {
    font-size: clamp(4.6rem, 10.5vw, 6.8rem);
    line-height: 0.94;
  }

  .catalog-products-section { padding-bottom: 88px !important; }
  .catalog-footer-soft { margin-top: 12px; border-radius: 24px 24px 0 0; }

  .form-block { padding: 44px; }
  .footer { padding-top: 64px; }
  .footer .footer-inner { gap: 36px; }
}

/* Mobile navigation activates here. Also covers portrait tablets. */
@media (max-width: 900px) {
  .nav {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .header-phone-large { display: none !important; }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .nav-links {
    z-index: 51;
    padding: 104px 24px 40px;
    min-height: 100dvh;
    background: var(--paper);
    color: var(--ink);
    overflow-y: auto;
  }
  .nav-links a {
    color: var(--ink) !important;
    font-size: clamp(1.55rem, 5vw, 2.2rem);
    letter-spacing: 0.08em;
  }
  .nav-links a::after { background: var(--ink) !important; }
  .nav-menu-phone {
    display: inline-flex !important;
    margin-top: 22px;
    font-family: var(--font-display) !important;
    font-size: clamp(2rem, 7vw, 3rem) !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    color: var(--green) !important;
  }
  html.nav-open,
  html.nav-open body { overflow: hidden !important; }

  .chapter {
    left: 20px;
    bottom: 20px;
    max-width: calc(100vw - 40px);
  }
  .chapter-text { width: min(190px, 34vw); }

  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-card { padding: 32px 28px; }

  .contact-grid { gap: 32px; }
  .footer .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Phones */
@media (max-width: 720px) {
  :root { --page-gutter: 20px; }
  body { font-size: 15px; }
  section { padding: 64px 0; }
  section.tight { padding: 52px 0; }

  .loader { padding: 24px 20px; gap: 20px; }
  .loader-mark { font-size: clamp(3rem, 17vw, 5.5rem); }
  .loader-meta { font-size: 9px; max-width: 46vw; }

  .nav { padding: 14px 20px; }
  .nav-brand { gap: 9px; }
  .nav-brand svg { width: 32px; height: 32px; }
  .nav-brand-text { font-size: 19px; }
  .nav-toggle { width: 42px; height: 42px; }
  .nav-links { padding-left: 20px; padding-right: 20px; }

  .hero {
    padding-top: 98px;
    padding-bottom: 48px;
  }
  .hero-top {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }
  .eyebrow { font-size: 9px; letter-spacing: 0.06em; }
  .hero-headline {
    font-size: clamp(3.15rem, 15.2vw, 4.85rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
  }
  .hero-bottom-main { margin-top: 36px; gap: 28px; }
  .hero-text-small { font-size: 0.97rem !important; max-width: none !important; }
  .service-key-banner { margin-top: 22px !important; padding: 14px 16px !important; }
  .service-key-banner h2 { font-size: clamp(0.95rem, 4.1vw, 1.15rem) !important; line-height: 1.25; }
  .photo-placeholder-box {
    margin-top: 24px !important;
    height: 180px !important;
    padding: 18px;
    text-align: center;
    font-size: 9px !important;
  }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-meta { font-size: 9px; line-height: 1.55; }

  .product-strip { padding: 0; }

  .svc-head { margin-bottom: 42px; gap: 24px; }
  .h-section {
    font-size: clamp(2.45rem, 10.7vw, 3.35rem);
    line-height: 1.01;
    letter-spacing: -0.018em;
  }
  .services-title-line,
  .team-title-line { white-space: normal !important; }
  .services-rotating-line {
    min-height: 1.05em;
    white-space: nowrap;
  }
  .services-rotating-line .rotate-group {
    font-size: 0.78em;
    white-space: nowrap;
  }
  .services-fixed-lead,
  .lead { font-size: 1rem; line-height: 1.48; }

  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 30px 22px; gap: 20px; }
  .svc-card h3 { font-size: clamp(1.75rem, 8vw, 2.2rem); }

  /* The chapter pill consumes too much useful screen area on phones. */
  .chapter { display: none !important; }

  .banner { padding: 72px 0; }
  .banner-grid { grid-template-columns: 1fr; gap: 24px; }
  .banner-stats-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 44px; padding-top: 24px; }
  .banner-stats-grid > div .serif { font-size: clamp(2rem, 10vw, 2.8rem) !important; }

  .split-block .stat-row { grid-template-columns: 1fr 1fr; }
  .split-block .stat { padding-top: 20px; padding-bottom: 20px; }

  .page-hero {
    padding-top: 108px;
    padding-bottom: 48px;
  }
  .page-hero .crumb { font-size: 9px; margin-bottom: 14px; }
  .page-hero h1 {
    font-size: clamp(3.35rem, 15vw, 4.8rem);
    line-height: 0.96;
    margin-bottom: 20px;
  }
  .page-hero .lead { margin-top: 18px !important; }

  .team-section-head { gap: 22px; }
  .team-grid { margin-top: 36px !important; gap: 14px !important; }
  .member-clean { min-height: 0 !important; padding: 24px 20px !important; }
  .member-name { font-size: clamp(1.65rem, 8vw, 2.1rem) !important; line-height: 1.03 !important; }
  .member-role { font-size: 9px !important; line-height: 1.45; }
  .team-experience-banner { margin-top: 48px !important; }

  .volume-alert {
    padding: 24px 20px !important;
    margin-bottom: 32px !important;
    gap: 20px !important;
  }
  .volume-alert h3 { font-size: clamp(2rem, 9vw, 2.7rem) !important; line-height: 1 !important; }
  .volume-alert .btn { width: 100%; justify-content: center; }
  .catalog-grid { gap: 16px !important; margin-top: 28px !important; }
  .catalog-card { padding: 20px !important; }
  .catalog-photo-placeholder { margin-bottom: 20px !important; font-size: 9px !important; padding: 16px; text-align: center; }
  .catalog-title { font-size: clamp(1.75rem, 8.5vw, 2.2rem) !important; }
  .catalog-price { font-size: clamp(2.05rem, 10vw, 2.7rem) !important; line-height: 1; }
  .catalog-products-section { padding-bottom: 64px !important; }
  .catalog-footer-soft { margin-top: 0; border-radius: 20px 20px 0 0; }

  .form-block { padding: 28px 20px; border-radius: 18px; }
  .form-grid { gap: 20px; }
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
  .form-bottom .btn { width: 100%; justify-content: center; }

  .footer { padding: 56px 0 28px; }
  .footer .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer .footer-mark { font-size: 2.7rem; }
  .footer .footer-bottom { margin-top: 44px; gap: 12px; font-size: 9px; }
  .giant-mark { font-size: clamp(5rem, 28vw, 9rem); white-space: normal; }
}

/* Small phones */
@media (max-width: 420px) {
  :root { --page-gutter: 17px; }
  .nav { padding-left: 17px; padding-right: 17px; }
  .nav-brand-text { font-size: 18px; }
  .hero-headline { font-size: clamp(3rem, 15.7vw, 4rem); }
  .h-section { font-size: clamp(2.3rem, 10.5vw, 2.9rem); }
  .page-hero h1 { font-size: clamp(3rem, 15.5vw, 4rem); }
  .banner-stats-grid { grid-template-columns: 1fr; }
  .services-rotating-line .rotate-group { font-size: 0.72em; }
}

/* Very narrow devices */
@media (max-width: 350px) {
  :root { --page-gutter: 14px; }
  .nav { padding-left: 14px; padding-right: 14px; }
  .nav-brand-text { font-size: 17px; }
  .hero-headline { font-size: 2.85rem; }
  .h-section { font-size: 2.2rem; }
  .page-hero h1 { font-size: 2.85rem; }
  .services-rotating-line .rotate-group { font-size: 0.67em; }
}

/* Short laptop screens: trim vertical whitespace without changing desktop typography. */
@media (max-height: 760px) and (min-width: 901px) {
  .hero { padding-top: 104px; padding-bottom: 42px; }
  .hero-top { margin-bottom: 26px; }
  .hero-bottom { margin-top: 38px; }
  .page-hero { padding-top: 124px; padding-bottom: 54px; }
}

/* Touch devices should not jump cards on tap due to desktop hover transforms. */
@media (hover: none) {
  .svc-card:hover,
  .case:hover,
  .member-clean:hover { transform: none !important; box-shadow: none !important; }
}

/* Mobile page titles: keep long single words (e.g. «профессионалов») inside the viewport. */
@media (max-width: 720px) and (min-width: 351px) {
  .page-hero h1 { font-size: clamp(3.05rem, 13vw, 4.4rem); }
}


/* =============== Hero photo =============== */
.hero-photo {
  margin-top: 32px;
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* =============== Catalog card photo =============== */
.catalog-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  line-height: 0;
}
.catalog-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.catalog-card:hover .catalog-photo img {
  transform: scale(1.04);
}

/* =============== Video section =============== */
.video-section {
  padding-top: clamp(48px, 8vh, 100px);
  padding-bottom: clamp(48px, 8vh, 100px);
}
.video-section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
}
.video-section-caption {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.video-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  line-height: 0;
  box-shadow: 0 24px 64px -24px rgba(17, 34, 26, 0.22);
}
.video-wrap video {
  width: 100%;
  display: block;
  max-height: 80vh;
  object-fit: contain;
  background: var(--ink);
}
@media (max-width: 720px) {
  .video-section-head {
    flex-direction: column;
    gap: 8px;
  }
  .video-wrap video {
    max-height: 60vw;
  }
}
