/* =========================================================
   QADYR — дизайн-система сайта
   Палитра: зелёный #A5C923, коричневый #3A2418, молочный, бежевый, тёмно-зелёный.
   Шрифты: Noto Serif Display (заголовки), Manrope (текст).
   ========================================================= */

:root {
  --green: #A5C923;
  --green-ink: #5F7A10;           /* зелёный для текста на светлом фоне (контраст AA) */
  --green-soft: #E6F0C2;
  --brown: #3A2418;
  --brown-2: #5B3D2C;
  --milk: #FBF7EE;
  --cream: #F6F0E4;
  --beige: #EFE5D3;
  --forest: #24361A;
  --ink: #2B1A10;
  --muted: #7D6B5D;
  --line: rgba(58, 36, 24, .12);
  --white: #fff;

  --f-display: "Noto Serif Display", "Georgia", "Times New Roman", serif;
  --f-text: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 12px;
  --r: 22px;
  --r-lg: 36px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 76px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow: 0 30px 60px -30px rgba(58, 36, 24, .35);
  --shadow-sm: 0 10px 30px -15px rgba(58, 36, 24, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font: 400 16px/1.65 var(--f-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: var(--brown); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 900px; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.light { color: var(--green); }
.section-title, .page-title, .cta-title {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(36px, 5.4vw, 76px);
  text-wrap: balance;
}
.section-title em, .hero-title em, .page-title em { font-style: italic; color: var(--green-ink); }
.section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-text { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); margin-top: 20px; max-width: 640px; }
.section-head.center .section-text { margin-left: auto; margin-right: auto; }
.h-small { font: 700 13px/1.4 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.prose { font-size: clamp(16px, 1.25vw, 18px); max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }
.split-head { display: grid; gap: 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.split-head .section-head { margin-bottom: 0; }
.split-head-side { display: grid; gap: 20px; justify-items: start; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1.2fr .8fr; gap: 64px; } }

/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--brown); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .3s, background .3s, border-color .3s;
}
.btn::after { /* заливка при наведении */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--hover, var(--green)); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--hover-fg, var(--brown)); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { transition: transform .35s var(--ease); flex: none; }
.btn:hover .icon { transform: translateX(3px); }
.btn-green { --bg: var(--green); --fg: var(--brown); --hover: var(--brown); --hover-fg: #fff; }
.btn-dark { --bg: var(--brown); --fg: #fff; --hover: var(--green); --hover-fg: var(--brown); }
.btn-ghost { --bg: transparent; --fg: var(--brown); border-color: rgba(58, 36, 24, .3); --hover: var(--brown); --hover-fg: #fff; }
.btn-light { --bg: rgba(255, 255, 255, .14); --fg: #fff; border-color: rgba(255, 255, 255, .45); --hover: #fff; --hover-fg: var(--brown); backdrop-filter: blur(6px); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--green-ink); }
.link-arrow:hover { text-decoration: underline; }

.tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: rgba(255,255,255,.85); color: var(--brown); text-decoration: none; backdrop-filter: blur(6px); }
.tag-green { background: var(--green); color: var(--brown); }
.tag-muted { background: var(--beige); color: var(--muted); }

.placeholder {
  display: grid; place-items: center; min-height: 240px; height: 100%; padding: 24px; text-align: center;
  border: 2px dashed rgba(58, 36, 24, .2); border-radius: var(--r); color: var(--muted); font-size: 14px;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(165, 201, 35, .06) 12px 24px);
}
.placeholder.small { min-height: 0; border: 0; }
.placeholder-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s, transform .45s var(--ease), height .3s;
}
.site-header.is-scrolled { background: rgba(251, 247, 238, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { flex: none; display: block; }
.brand img { width: clamp(118px, 12vw, 150px); height: auto; }
.main-nav { margin: 0 auto; display: none; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { position: relative; display: block; padding: 10px 14px; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 999px; transition: background .25s; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; }
.header-cta { display: none; }
.burger { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: rgba(255,255,255,.6); display: grid; place-items: center; }
.burger-lines { width: 20px; height: 12px; position: relative; display: block; }
.burger-lines i { position: absolute; left: 0; right: 0; height: 2px; background: var(--brown); border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger-lines i:first-child { top: 0; }
.burger-lines i:last-child { top: 10px; }
.menu-open .burger-lines i:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .burger-lines i:last-child { top: 5px; transform: rotate(-45deg); }
@media (min-width: 1100px) {
  .main-nav { display: block; }
  .burger { display: none; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1280px) { .header-phone { display: inline-flex; } }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--brown); color: var(--milk);
  clip-path: circle(0 at calc(100% - 44px) 38px); transition: clip-path .7s var(--ease-in-out);
  display: flex; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; overflow-y: auto;
}
.mobile-menu[hidden] { display: flex; visibility: hidden; }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .burger { background: var(--green); border-color: var(--green); }
.mobile-menu-inner { width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.mobile-menu nav a {
  display: block; padding: 8px 0; font: 500 clamp(34px, 9vw, 56px)/1.1 var(--f-display); text-decoration: none;
  opacity: 0; transform: translateY(30px); transition: opacity .5s var(--ease), transform .6s var(--ease), color .2s;
  transition-delay: calc(.12s + var(--i) * .06s);
}
.mobile-menu nav a:hover { color: var(--green); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.mobile-menu-contacts { display: grid; gap: 14px; opacity: 0; transition: opacity .6s .4s; }
.menu-open .mobile-menu-contacts { opacity: 1; }
.mobile-menu-contacts a:not(.btn) { display: flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; }
.mobile-menu-contacts .btn { justify-self: start; margin-top: 8px; }
body.menu-open { overflow: hidden; }

.preview-bar { position: sticky; top: 0; z-index: 60; background: var(--green); color: var(--brown); text-align: center; font-weight: 700; padding: 8px 16px; font-size: 14px; }
.preview-bar + .site-header { top: 37px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + 32px) 0 72px; display: flex; align-items: center; overflow: hidden; }
.hero--compact { min-height: 0; padding-bottom: 40px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: blob 18s var(--ease-in-out) infinite alternate; }
.blob-1 { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(165, 201, 35, .5), transparent 65%); top: -12vw; right: -10vw; }
.blob-2 { width: 36vw; height: 36vw; background: radial-gradient(circle, rgba(239, 229, 211, 1), transparent 70%); bottom: -10vw; left: -8vw; animation-delay: -6s; }
@keyframes blob { to { transform: translate3d(-4vw, 3vw, 0) scale(1.12); } }
.hero-mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22vh; fill: var(--beige); opacity: .7; }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; width: 100%; }
@media (min-width: 960px) { .hero--split .hero-grid, .hero--compact .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: 14px; font-weight: 600; margin-bottom: 24px; backdrop-filter: blur(6px); }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(165, 201, 35, .7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(165, 201, 35, 0); } 100% { box-shadow: 0 0 0 0 rgba(165, 201, 35, 0); } }
.hero-title { font: 500 clamp(46px, 8.2vw, 124px)/.95 var(--f-display); letter-spacing: -.035em; margin-bottom: 28px; text-wrap: balance; }
.hero--compact .hero-title { font-size: clamp(40px, 6.5vw, 92px); }
.hero-title em { font-style: italic; font-weight: 400; color: var(--green-ink); }
.hero-text { font-size: clamp(17px, 1.5vw, 21px); max-width: 560px; color: var(--brown-2); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions.center { justify-content: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--brown-2); }
.hero-badges .icon { color: var(--green-ink); }

.hero-visual { position: relative; }
.hero-media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: 78vh; width: 100%;
  border-radius: 999px 999px var(--r-lg) var(--r-lg); background: var(--beige); box-shadow: var(--shadow);
}
.hero--full .hero-media { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-seal { position: absolute; left: -36px; bottom: 12%; width: 150px; height: 150px; display: grid; place-items: center; background: var(--brown); color: var(--milk); border-radius: 50%; box-shadow: var(--shadow); }
.hero-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero-seal text { fill: currentColor; font: 700 14px var(--f-text); letter-spacing: .2em; }
.hero-seal span { color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-pack { position: absolute; width: clamp(110px, 13vw, 190px); mix-blend-mode: multiply; filter: drop-shadow(0 25px 25px rgba(58, 36, 24, .18)); }
.hero-pack img { border-radius: 18px; }
.hero-pack--1 { right: -4%; top: 6%; animation: bob 7s var(--ease-in-out) infinite alternate; }
.hero-pack--2 { right: 8%; bottom: -4%; animation: bob 8s var(--ease-in-out) -2s infinite alternate; }
.hero-pack--3 { left: 4%; top: 2%; animation: bob 9s var(--ease-in-out) -4s infinite alternate; }
@keyframes bob { to { translate: 0 -16px; rotate: -3deg; } }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; width: 28px; height: 46px; border: 2px solid rgba(58, 36, 24, .35); border-radius: 20px; transform: translateX(-50%); display: none; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--brown); animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (min-width: 960px) { .hero-scroll { display: block; } }
@media (max-width: 959px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 20px); }
  .hero-media { aspect-ratio: 4 / 4.2; border-radius: 200px 200px var(--r) var(--r); }
  .hero-seal { width: 108px; height: 108px; left: 12px; bottom: -28px; }
  .hero-seal text { font-size: 15px; }
  .hero-pack--1 { right: 0; }
  .hero-pack--3 { display: none; }
}

/* Анимация первого экрана */
.js [data-hero-in] { opacity: 0; transform: translateY(24px); }
.is-loaded [data-hero-in] { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js [data-hero-media] { clip-path: inset(100% 0 0 0 round 999px 999px 36px 36px); }
.js [data-hero-media] img, .js [data-hero-media] video { transform: scale(1.25); }
.is-loaded [data-hero-media] { clip-path: inset(0 0 0 0 round 999px 999px 36px 36px); transition: clip-path 1.4s var(--ease-in-out) .2s; }
.hero--full.is-loaded [data-hero-media], .is-loaded .hero--full [data-hero-media] { clip-path: inset(0 0 0 0 round 36px); }
.is-loaded [data-hero-media] img, .is-loaded [data-hero-media] video { transform: scale(1); transition: transform 2.2s var(--ease) .2s; }
.js .hero-pack, .js .hero-seal { opacity: 0; scale: .7; }
.is-loaded .hero-pack, .is-loaded .hero-seal { opacity: 1; scale: 1; transition: opacity .8s var(--ease) 1s, scale 1s var(--ease) 1s; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translateY(110%); }
.is-loaded .split-word > span, .split-ready.is-in .split-word > span { transform: none; transition: transform 1.1s var(--ease) calc(.15s + var(--w) * .07s); }

/* ---------- Появление при прокрутке ---------- */
.js [data-reveal]:not([data-reveal="words"]):not([data-reveal="mask"]) { opacity: 0; transform: translateY(36px); }
.js [data-reveal].is-in:not([data-reveal="words"]):not([data-reveal="mask"]) { opacity: 1; transform: none; transition: opacity .9s var(--ease) calc(var(--i, 0) * .08s), transform 1s var(--ease) calc(var(--i, 0) * .08s); }
.js [data-reveal="mask"] { clip-path: inset(12% 6% 12% 6% round var(--r-lg)); opacity: .2; }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0 round 0); opacity: 1; transition: clip-path 1.3s var(--ease-in-out) calc(var(--i, 0) * .08s), opacity .6s; }
.js [data-reveal="mask"] img { transform: scale(1.18); transition: transform 1.8s var(--ease); }
.js [data-reveal="mask"].is-in img { transform: scale(1); }

/* Текст, «проявляющийся» при прокрутке */
.lead-scrub { font: 400 clamp(26px, 3.4vw, 46px)/1.25 var(--f-display); letter-spacing: -.01em; margin: 8px 0 36px; }
.lead-scrub .sw { opacity: .16; transition: opacity .25s linear; }
.lead-scrub .sw.on { opacity: 1; }
.block-text.align-center { text-align: center; }
.block-text.align-center .eyebrow { justify-content: center; }
.block-text.align-center .prose { margin: 0 auto; }
.block-actions { margin-top: 32px; }

/* ---------- Бегущая строка ---------- */
.marquee { background: var(--green); color: var(--brown); overflow: hidden; padding: clamp(18px, 2.5vw, 30px) 0; transform: rotate(-1.5deg) scale(1.03); margin: 24px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track > div { display: flex; align-items: center; flex: none; }
.marquee span { font: 500 clamp(28px, 4vw, 54px)/1 var(--f-display); white-space: nowrap; padding: 0 28px; }
.marquee i { font-style: normal; font-size: clamp(18px, 2vw, 28px); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Изображение с текстом ---------- */
.image-text-grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .image-text-grid { grid-template-columns: 1fr 1fr; }
  .img-left .image-text-media { order: -1; }
  .img-right .image-text-media { order: 2; }
}
.image-text-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--beige); }
.image-text-media img { width: 100%; height: 100%; object-fit: cover; }
.parallax-frame { width: 100%; height: 100%; overflow: hidden; }
.parallax-frame img { height: 112%; width: 100%; object-fit: cover; will-change: transform; }
.tone-beige { background: var(--beige); }
.tone-dark { background: var(--brown); color: var(--milk); }
.tone-dark .section-text, .tone-dark .prose { color: rgba(251, 247, 238, .78); }
.tone-dark .eyebrow { color: var(--green); }
.tone-dark .section-title em { color: var(--green); }
.tone-green { background: var(--green); color: var(--brown); }
.check-list { display: grid; gap: 14px; margin-top: 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.check-list .icon { flex: none; margin-top: 2px; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--green); color: var(--brown); }

/* ---------- Баннер ---------- */
.banner { position: relative; height: clamp(360px, 70vh, 760px); margin: 0 var(--gutter); border-radius: var(--r-lg); overflow: hidden; color: #fff; }
.banner-media { position: absolute; inset: 0; }
.banner-media img { width: 100%; height: 112%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(43, 26, 16, .7)); }
.banner-caption { position: absolute; left: 0; right: 0; bottom: clamp(24px, 5vw, 60px); z-index: 1; }
.banner-title { font: 500 clamp(32px, 5vw, 72px)/1.02 var(--f-display); letter-spacing: -.02em; max-width: 900px; margin-bottom: 10px; }
.banner-sub { opacity: .85; max-width: 560px; }

/* ---------- Цифры ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid rgba(251, 247, 238, .18); }
.tone-light .stats-grid, .tone-green .stats-grid { border-color: var(--line); }
.stat { padding: clamp(28px, 4vw, 52px) clamp(8px, 2vw, 28px) 0 0; border-right: 1px solid rgba(251, 247, 238, .14); }
.tone-light .stat, .tone-green .stat { border-color: var(--line); }
.stat:nth-child(2n) { border-right: 0; padding-left: clamp(12px, 2vw, 28px); }
.stat-value { font: 400 clamp(52px, 8vw, 120px)/1 var(--f-display); letter-spacing: -.04em; display: flex; align-items: baseline; gap: 6px; }
.stat-value small { font-size: .38em; color: var(--green); font-family: var(--f-text); font-weight: 700; letter-spacing: 0; }
.tone-light .stat-value small { color: var(--green-ink); }
.tone-green .stat-value small { color: var(--brown); }
.stat-label { margin: 14px 0 0; font-size: 15px; opacity: .8; max-width: 240px; }
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  .stat, .stat:nth-child(2n) { border-right: 1px solid rgba(251, 247, 238, .14); padding-left: clamp(12px, 2vw, 28px); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}
.stats-head .section-title { font-size: clamp(30px, 4vw, 56px); }

/* ---------- Категории ---------- */
.cat-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--beige); overflow: hidden; text-decoration: none; min-height: 420px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.cat-card--1 { background: var(--green-soft); }
.cat-card--2 { background: #F3E3C7; }
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.cat-card-media { flex: 1; display: grid; place-items: center; padding: 30px 30px 0; mix-blend-mode: multiply; }
.cat-card-media img { max-height: 280px; width: auto; object-fit: contain; transition: transform .9s var(--ease); }
.cat-card:hover .cat-card-media img { transform: scale(1.07) rotate(-2deg); }
.cat-card-body { position: relative; display: grid; gap: 4px; padding: 24px 28px 28px; }
.cat-card-count { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.cat-card-title { font: 500 clamp(28px, 2.6vw, 38px)/1.1 var(--f-display); }
.cat-card-arrow { position: absolute; right: 24px; bottom: 26px; width: 52px; height: 52px; border-radius: 50%; background: var(--brown); color: #fff; display: grid; place-items: center; transition: transform .5s var(--ease), background .3s; }
.cat-card:hover .cat-card-arrow { transform: rotate(45deg); background: var(--green); color: var(--brown); }

/* ---------- Карточка товара ---------- */
.product-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 560px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.product-card { position: relative; transition: opacity .35s, transform .45s var(--ease); }
.product-card.is-hidden { display: none; }
.product-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.product-card-link:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-card-media { position: relative; display: block; aspect-ratio: 1; background: var(--cream); overflow: hidden; }
.product-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .8s var(--ease), opacity .6s var(--ease); }
.product-card-link:hover .img-main { transform: scale(1.06); }
.product-card-media .img-second { opacity: 0; transform: scale(1.08); mix-blend-mode: normal; }
.product-card-link:hover .has-second .img-second { opacity: 1; transform: scale(1); }
.product-card-link:hover .has-second .img-main { opacity: 0; }
.product-card-tags { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.product-card-av { position: absolute; right: 12px; bottom: 12px; z-index: 1; }
.product-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.product-card-cat { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.product-card-title { font-weight: 700; font-size: 16px; line-height: 1.35; flex: 1; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.product-card-price strong { font: 600 20px/1 var(--f-display); }
.product-card-price small { color: var(--muted); font-size: 13px; }
.product-card-price .muted { font-size: 14px; font-weight: 600; }
.product-card-go { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); transition: background .3s, transform .5s var(--ease); }
.product-card-link:hover .product-card-go { background: var(--green); transform: rotate(45deg); }
@media (max-width: 560px) {
  .product-card-body { padding: 12px; }
  .product-card-title { font-size: 14px; }
  .product-card-price strong { font-size: 16px; }
  .product-card-go { display: none; }
  .product-card-tags .tag:first-child:not(:only-child) { display: none; }
}

/* ---------- Лента (горизонтальная прокрутка) ---------- */
.rail { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 0 28px; }
.rail::-webkit-scrollbar { display: none; }
.rail-track { display: flex; gap: 18px; padding: 0 var(--gutter); width: max-content; }
@media (min-width: 1320px) { .rail-track { padding-left: calc((100vw - var(--maxw)) / 2 + var(--gutter)); padding-right: calc((100vw - var(--maxw)) / 2 + var(--gutter)); } }
.rail .product-card { width: clamp(240px, 70vw, 310px); scroll-snap-align: start; }
.rail-controls { display: flex; align-items: center; gap: 16px; }
.rail-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(58, 36, 24, .25); background: transparent; display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease); }
.rail-btn:hover { background: var(--brown); color: #fff; }
.rail-btn:active { transform: scale(.94); }
.rail-btn[data-rail-prev] .icon, .rail-btn[data-slide-prev] .icon, .lightbox-nav.prev .icon { transform: rotate(180deg); }
.rail-progress { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 20%; background: var(--brown); transform-origin: left; transition: transform .2s; }

/* ---------- Преимущества (бенто) ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-card { grid-column: span 2; }
  .bento-4 .bento-card:nth-child(1), .bento-4 .bento-card:nth-child(4) { grid-column: span 4; }
  .bento-4 .bento-card:nth-child(2), .bento-4 .bento-card:nth-child(3) { grid-column: span 2; }
  .bento-5 .bento-card:nth-child(1), .bento-5 .bento-card:nth-child(2) { grid-column: span 3; }
  .bento-2 .bento-card { grid-column: span 3; }
}
.bento-card { position: relative; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .6s var(--ease), background .4s; }
.bento-card:hover { transform: translateY(-6px); }
.bento-card:nth-child(4n+1) { background: var(--brown); color: var(--milk); border-color: transparent; }
.bento-card:nth-child(4n+1) p { color: rgba(251, 247, 238, .75); }
.bento-card:nth-child(4n+3) { background: var(--green); border-color: transparent; }
.tone-beige .bento-card:not(:nth-child(4n+1)):not(:nth-child(4n+3)) { background: var(--milk); }
.bento-icon { position: absolute; top: clamp(24px, 3vw, 36px); left: clamp(24px, 3vw, 36px); width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--cream); color: var(--brown); transition: transform .6s var(--ease); }
.bento-card:nth-child(4n+1) .bento-icon { background: rgba(165, 201, 35, .18); color: var(--green); }
.bento-card:nth-child(4n+3) .bento-icon { background: rgba(255, 255, 255, .5); }
.bento-card:hover .bento-icon { transform: rotate(-8deg) scale(1.08); }
.bento-card h3 { font: 500 clamp(22px, 2vw, 30px)/1.15 var(--f-display); margin: 96px 0 10px; }
.bento-card p { color: var(--muted); margin: 0; max-width: 46ch; }
.bento-card:nth-child(4n+3) p { color: var(--brown-2); }
.bento-num { position: absolute; top: 24px; right: 28px; font: 400 14px var(--f-text); opacity: .5; letter-spacing: .1em; }

/* ---------- Этапы ---------- */
.steps-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .steps-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  .steps-aside { position: sticky; top: calc(var(--header-h) + 40px); }
}
.steps-list { counter-reset: s; position: relative; }
.steps-list::before { content: ""; position: absolute; left: 27px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 0 0 48px; }
.step:last-child { padding-bottom: 0; }
.step-num { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--milk); border: 2px solid var(--green); font-weight: 700; color: var(--green-ink); transition: background .5s, color .5s; }
.step.is-in .step-num { background: var(--green); color: var(--brown); }
.step-body h3 { font: 500 clamp(22px, 2.2vw, 32px)/1.15 var(--f-display); margin: 10px 0 10px; }
.step-body p { color: var(--muted); }
.step-media { grid-column: 2; border-radius: var(--r); overflow: hidden; max-width: 320px; aspect-ratio: 4/3; }
.step-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Галерея ---------- */
.mosaic { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(140px, 22vw, 300px); }
.mosaic .gallery-item:nth-child(5n+1) { grid-row: span 2; }
.mosaic .gallery-item:nth-child(5n+4) { grid-column: span 2; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); } .mosaic .gallery-item:nth-child(5n+4) { grid-column: span 2; } }
.gallery-item { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--beige); }
.gallery-item button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .88); font-size: 13px; font-weight: 600; transform: translateY(8px); opacity: 0; transition: .4s var(--ease); }
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; transform: none; }
.gallery-rail { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 12px; width: auto; }
.gallery-rail .gallery-item { flex: none; width: clamp(240px, 60vw, 520px); aspect-ratio: 4/3; scroll-snap-align: start; }

/* ---------- Сертификаты ---------- */
.certificates { background: var(--beige); }
.cert-track { gap: 24px; align-items: flex-start; }
.cert { margin: 0; width: clamp(180px, 46vw, 250px); scroll-snap-align: start; }
.cert button { all: unset; cursor: zoom-in; display: block; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transform: rotate(var(--rot, -1.5deg)); transition: transform .6s var(--ease), box-shadow .6s; }
.cert:nth-child(2n) button { --rot: 1.5deg; }
.cert button:hover, .cert button:focus-visible { transform: rotate(0) translateY(-10px) scale(1.03); box-shadow: var(--shadow); }
.cert img { width: 100%; aspect-ratio: 0.71; object-fit: cover; }
.cert figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; }
.certificates .rail-controls { margin-top: 8px; }

/* ---------- География ---------- */
.geo-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .geo-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; } }
.geo-list { display: grid; }
.geo-item { display: grid; grid-template-columns: 48px 1fr; gap: 4px 18px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.geo-item:first-child { border-top: 1px solid var(--line); }
.geo-pin { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--green-ink); }
.geo-item.is-home .geo-pin { background: var(--green); color: var(--brown); }
.geo-name { font: 500 clamp(28px, 3.4vw, 48px)/1.05 var(--f-display); letter-spacing: -.01em; transition: transform .5s var(--ease), color .3s; }
.geo-item:hover .geo-name { transform: translateX(10px); color: var(--green-ink); }
.geo-note { grid-column: 2; color: var(--muted); font-size: 15px; }

/* ---------- Направления ---------- */
.dir-list { border-top: 1px solid var(--line); }
.dir-list li { border-bottom: 1px solid var(--line); }
.dir-row { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 8px 20px; align-items: center; padding: clamp(22px, 3vw, 36px) 0; text-decoration: none; overflow: hidden; isolation: isolate; }
.dir-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--green); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); border-radius: 16px; }
a.dir-row:hover::before { transform: scaleY(1); }
.dir-num { font-size: 13px; font-weight: 700; color: var(--muted); padding-left: 8px; }
.dir-icon { display: none; }
.dir-title { font: 500 clamp(24px, 3.2vw, 46px)/1.1 var(--f-display); letter-spacing: -.01em; transition: transform .5s var(--ease); }
a.dir-row:hover .dir-title { transform: translateX(12px); }
.dir-text { grid-column: 2 / 4; color: var(--muted); max-width: 60ch; }
a.dir-row:hover .dir-text { color: var(--brown-2); }
.dir-arrow { grid-column: 3; grid-row: 1; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: transform .5s var(--ease), background .3s; margin-right: 8px; }
a.dir-row:hover .dir-arrow { background: var(--brown); color: #fff; transform: rotate(45deg); border-color: transparent; }
@media (min-width: 960px) {
  .dir-row { grid-template-columns: 60px 64px 1fr 1fr 64px; }
  .dir-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--cream); }
  .dir-text { grid-column: auto; }
  .dir-arrow { grid-column: auto; grid-row: auto; }
}

/* ---------- Отзывы ---------- */
.reviews { background: var(--cream); overflow: hidden; }
.reviews-slider { max-width: 980px; margin: 0 auto; }
.reviews-track { display: grid; }
.review { grid-area: 1 / 1; margin: 0; text-align: center; opacity: 0; transform: translateX(40px); transition: opacity .7s var(--ease), transform .8s var(--ease); pointer-events: none; }
.review.is-active { opacity: 1; transform: none; pointer-events: auto; }
.review.is-leaving { opacity: 0; transform: translateX(-40px); }
.review blockquote { margin: 0 0 32px; font: 400 clamp(22px, 2.8vw, 38px)/1.35 var(--f-display); letter-spacing: -.01em; }
.review figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.review-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--green); font: 600 22px var(--f-display); }
.review figcaption strong { display: block; }
.review figcaption small { color: var(--muted); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.slider-count { font-weight: 700; min-width: 60px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-child { border-top: 1px solid var(--line); }
.acc-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; font-weight: 700; font-size: clamp(17px, 1.4vw, 20px); }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); transition: transform .5s var(--ease), background .3s; }
.acc-item[open] .acc-icon { transform: rotate(135deg); background: var(--green); border-color: var(--green); }
.acc-body { overflow: hidden; }
.acc-inner { padding: 0 60px 26px 0; color: var(--muted); }

/* ---------- Форма заявки ---------- */
.lead-block { background: var(--beige); }
.lead-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .lead-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.lead-contacts { display: grid; gap: 12px; margin-top: 8px; }
.lead-contacts a { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; text-decoration: none; }
.lead-contacts .icon { color: var(--green-ink); }
.lead-media { margin-top: 32px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-form { position: relative; background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 16px; background: var(--milk);
  padding: 26px 16px 10px; font-size: 16px; transition: border-color .25s, background .25s, box-shadow .25s; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233A2418' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(165, 201, 35, .2); }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted); pointer-events: none; transition: transform .25s var(--ease), font-size .25s, top .25s; transform-origin: left top; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field label.static { top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.field.has-error input, .field.has-error textarea { border-color: #C0392B; background: #FFF6F4; }
.field-error { display: block; min-height: 0; color: #B03A2E; font-size: 13px; font-weight: 600; margin-top: 4px; }
.field-error:empty { display: none; }
.form-error { color: #B03A2E; font-weight: 600; background: #FFF1EE; padding: 12px 16px; border-radius: 12px; }
.form-foot { display: grid; gap: 14px; margin-top: 8px; }
.form-consent { font-size: 12px; color: var(--muted); }
.btn-submit { justify-self: start; }
.btn-submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.is-sending .btn-submit { pointer-events: none; opacity: .85; }
.is-sending .btn-submit .spinner { display: block; }
.is-sending .btn-submit .icon { display: none; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success h3 { font: 500 32px/1.2 var(--f-display); margin: 18px 0 8px; }
.success-check { width: 84px; height: 84px; margin: 0 auto; }
.success-check circle { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; }
.success-check path { fill: none; stroke: var(--brown); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.success-check.is-on circle, .form-success:not([hidden]) .success-check circle { animation: draw .7s var(--ease) forwards; }
.success-check.is-on path, .form-success:not([hidden]) .success-check path { animation: draw .5s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success:not([hidden]) { animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.shake { animation: shake .45s; }

/* ---------- CTA ---------- */
.cta-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--forest); color: #fff; padding: clamp(40px, 8vw, 110px) clamp(24px, 6vw, 90px); isolation: isolate; }
.cta-card--green { background: var(--green); color: var(--brown); }
.cta-card--green .cta-text { color: var(--brown-2); }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 112%; object-fit: cover; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(36, 54, 26, .92) 10%, rgba(36, 54, 26, .55) 60%, rgba(36, 54, 26, .25)); }
.cta-content { max-width: 720px; }
.cta-title { font-size: clamp(36px, 5vw, 72px); margin-bottom: 20px; }
.cta-text { font-size: clamp(16px, 1.4vw, 20px); opacity: .9; margin-bottom: 34px; max-width: 560px; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.contact-card { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 10px; }
.contact-main { background: var(--brown); color: var(--milk); border-color: transparent; }
.contact-main .eyebrow { color: var(--green); }
.contact-big { font: 500 clamp(28px, 3.2vw, 44px)/1.1 var(--f-display); text-decoration: none; letter-spacing: -.01em; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; opacity: .9; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.contact-main .btn-ghost { --fg: var(--milk); border-color: rgba(251, 247, 238, .35); --hover: var(--milk); --hover-fg: var(--brown); }
.contact-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--cream); color: var(--green-ink); margin-bottom: 10px; }
.contact-card h3 { font: 500 26px/1.2 var(--f-display); }
.contact-card p .icon { display: inline-block; vertical-align: -3px; }
.map-frame { margin-top: 24px; border-radius: var(--r-lg); overflow: hidden; height: 420px; background: var(--beige); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Внутренние страницы ---------- */
.page-head { padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 clamp(28px, 4vw, 48px); }
.page-head-grid { display: grid; gap: 20px; align-items: end; margin-top: 24px; }
@media (min-width: 960px) { .page-head-grid { grid-template-columns: 1.2fr .8fr; gap: 64px; } }
.page-title { font-size: clamp(44px, 7vw, 104px); }
.page-intro { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brown); text-decoration: underline; }
.notice { background: var(--green-soft); padding: 12px 18px; border-radius: 12px; font-weight: 600; margin: 16px 0; }

/* ---------- Каталог ---------- */
.catalog { padding-bottom: clamp(60px, 8vw, 110px); }
.catalog-toolbar { position: sticky; top: calc(var(--header-h) - 1px); z-index: 20; display: grid; gap: 14px; padding: 14px 0; margin-bottom: 26px; background: rgba(251, 247, 238, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; text-decoration: none; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.chip sup { font-size: 11px; opacity: .6; }
.chip:hover { border-color: var(--brown); }
.chip.is-active { background: var(--brown); color: #fff; border-color: var(--brown); }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-field { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; transition: border-color .25s, box-shadow .25s; }
.search-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(165, 201, 35, .2); }
.search-field input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 16px; padding: 10px 0; }
.select-field select { min-height: 48px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233A2418' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center; padding: 0 40px 0 18px; appearance: none; font-weight: 600; font-size: 14px; }
.catalog-count { margin: 0 0 0 auto; font-size: 14px; font-weight: 700; color: var(--muted); }
.catalog-empty { text-align: center; padding: 60px 0; color: var(--muted); }
.catalog-empty .btn { margin-top: 12px; }
.catalog-note { margin-top: 28px; font-size: 14px; }
.product-grid.is-filtering .product-card { animation: cardIn .5s var(--ease) both; animation-delay: calc(var(--k, 0) * 30ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 640px) { .catalog-count { width: 100%; margin: 0; } .select-field { flex: 1; } .select-field select { width: 100%; } }

/* ---------- Страница товара ---------- */
.product-page { padding: calc(var(--header-h) + 24px) 0 clamp(48px, 6vw, 90px); }
.product-grid-main { display: grid; gap: clamp(28px, 4vw, 64px); margin-top: 20px; align-items: start; }
@media (min-width: 960px) { .product-grid-main { grid-template-columns: 1.1fr .9fr; } .product-gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.gallery-stage { position: relative; display: grid; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--cream); }
.gallery-slide { all: unset; grid-area: 1 / 1; cursor: zoom-in; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1s var(--ease); pointer-events: none; }
.gallery-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.thumb { flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--cream); opacity: .65; transition: opacity .3s, border-color .3s, transform .3s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.is-active { border-color: var(--green); opacity: 1; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.product-tags .tag { border: 1px solid var(--line); }
.av-in_stock { background: var(--green-soft); color: var(--green-ink); }
.product-title { font: 500 clamp(34px, 4.2vw, 60px)/1.05 var(--f-display); letter-spacing: -.02em; margin-bottom: 20px; text-wrap: balance; }
.product-lead { font-size: 18px; color: var(--brown-2); }
.product-buy { margin: 30px 0; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.price-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 8px; }
.price-big { font: 500 clamp(36px, 4vw, 52px)/1 var(--f-display); letter-spacing: -.02em; }
.price-request { font-size: clamp(26px, 3vw, 36px); }
.price-unit { color: var(--muted); font-weight: 600; }
.variant-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 520px) { .product-actions .btn { width: 100%; } }
.specs dl { margin: 0; display: grid; }
.specs dl > div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }
.product-description { margin-top: clamp(40px, 6vw, 80px); max-width: 860px; }

/* ---------- 404 ---------- */
.page-404 { padding: calc(var(--header-h) + 60px) 0 60px; text-align: center; }
.page-404 .section-text { margin: 16px auto 32px; }
.big-404 { display: flex; justify-content: center; align-items: center; font: 400 clamp(110px, 22vw, 260px)/1 var(--f-display); color: var(--brown); margin-bottom: 10px; }
.big-404 span { color: var(--green); display: grid; animation: bob 3s var(--ease-in-out) infinite alternate; }
.big-404 .icon { width: .8em; height: .8em; }
.errors { color: #B03A2E; font-weight: 600; margin: 16px 0 24px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--brown); color: var(--milk); padding: clamp(60px, 8vw, 110px) 0 30px; overflow: hidden; }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; } }
.footer-logo { display: inline-block; padding: 14px 20px; background: var(--milk); border-radius: 18px; margin-bottom: 20px; }
.footer-logo img { width: 140px; }
.footer-brand p { opacity: .75; max-width: 340px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(251, 247, 238, .25); transition: background .3s, color .3s, transform .3s var(--ease); }
.footer-social a:hover { background: var(--green); color: var(--brown); border-color: var(--green); transform: translateY(-3px); }
.footer-col h3 { font: 700 13px var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; opacity: .85; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: var(--green); }
.footer-contacts .muted { color: rgba(251, 247, 238, .55); }
.footer-word { font: 500 clamp(80px, 21vw, 330px)/.8 var(--f-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(251, 247, 238, .16); text-align: center; margin: clamp(40px, 6vw, 80px) 0 20px; user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(251, 247, 238, .14); font-size: 13px; opacity: .65; }

/* ---------- WhatsApp и лайтбокс ---------- */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .4s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.6s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(28, 17, 10, .92); display: grid; place-items: center; padding: 60px 16px; opacity: 0; transition: opacity .35s; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; border-radius: 12px; transform: scale(.96); transition: transform .45s var(--ease); background: #fff; }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { color: #fff; font-weight: 600; }
.lightbox-close, .lightbox-nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav { top: 50%; margin-top: -26px; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--green); color: var(--brown); }

/* ---------- Уменьшенная анимация ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-hero-in], .js [data-hero-media], .js .hero-pack, .js .hero-seal { opacity: 1 !important; transform: none !important; clip-path: none !important; scale: 1 !important; }
  .js [data-hero-media] img, .js [data-reveal="mask"] img { transform: none !important; }
  .split-word > span { transform: none !important; }
  .lead-scrub .sw { opacity: 1 !important; }
  .marquee-track { animation: none; }
}

/* Исправления мобильной вёрстки */
.product-grid-main { grid-template-columns: minmax(0, 1fr); }
.product-grid-main > * { min-width: 0; }
@media (min-width: 960px) { .product-grid-main { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.image-text-grid > *, .lead-grid > *, .hero-grid > *, .faq-grid > *, .geo-grid > *, .steps-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .search-field { flex-basis: 100%; }
  .select-field select { min-width: 0; }
}
@media (max-width: 520px) {
  .product-actions .btn, .hero-actions .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .hero--compact .hero-title { font-size: clamp(34px, 10vw, 46px); }
  .hero-title, .page-title, .section-title, .product-title { overflow-wrap: anywhere; hyphens: auto; }
}

/* ---------- Чат с менеджером (бот QADYR) ---------- */
.chat { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 44; font-family: var(--f-text); }
.chat.is-open { z-index: 90; } /* над шапкой; закрытая кнопка — под мобильным меню */
body.has-chat .wa-float { bottom: calc(18px + 58px + 14px + env(safe-area-inset-bottom)); }
.chat-launcher { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--brown); color: var(--milk); font: 700 15px/1 var(--f-text); box-shadow: 0 16px 36px -14px rgba(58, 36, 24, .8); cursor: pointer; transition: transform .35s var(--ease), background .25s; }
.chat-launcher:hover { transform: translateY(-2px); background: var(--brown-2); }
.chat-launcher:focus-visible, .chat-icon-btn:focus-visible, .chat-send:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.chat-launcher-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--brown); }
.chat.is-collapsed .chat-launcher-text, .chat.is-open .chat-launcher-text { display: none; }
.chat.is-collapsed .chat-launcher, .chat.is-open .chat-launcher { width: 58px; padding: 0; justify-content: center; }
.chat-panel { position: absolute; right: 0; bottom: 72px; width: min(380px, calc(100vw - 36px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--milk); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 70px -24px rgba(43, 26, 16, .55); overflow: hidden; transform-origin: bottom right; animation: chat-in .35s var(--ease); }
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--brown); color: var(--milk); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--milk); object-fit: contain; padding: 4px; flex: none; }
.chat-head-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-head-text strong { font-size: 16px; letter-spacing: .02em; }
.chat-head-text small { color: var(--green); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-icon-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--milk); display: grid; place-items: center; cursor: pointer; }
.chat-icon-btn:hover { background: rgba(255, 255, 255, .2); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; animation: chat-msg .3s var(--ease); }
@keyframes chat-msg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-msg-bot { align-self: flex-start; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-msg-user { align-self: flex-end; background: var(--green); color: var(--brown); border-bottom-right-radius: 6px; font-weight: 600; }
.chat-msg-sys { align-self: center; background: var(--beige); color: var(--muted); font-size: 13px; }
.chat-msg a { color: var(--green-ink); text-decoration: underline; }
.chat-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chat-dot 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-offline { margin: 0 12px 8px; padding: 12px; border-radius: var(--r-sm); background: var(--beige); font-size: 13.5px; }
.chat-offline[hidden] { display: none; }
.chat-offline p { margin: 0 0 10px; }
.chat-offline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat-form textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font: 15px/1.4 var(--f-text); color: var(--ink); background: var(--milk); max-height: 120px; }
.chat-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.chat-send { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--brown); color: var(--green); display: grid; place-items: center; cursor: pointer; transition: transform .2s; }
.chat-send:disabled { opacity: .5; cursor: wait; }
.chat-send:not(:disabled):hover { transform: scale(1.06); }
.chat-note { margin: 0; padding: 0 12px 10px; background: var(--white); color: var(--muted); font-size: 11.5px; }
@media (max-width: 520px) {
  .chat-launcher-text { display: none; }
  .chat-launcher { width: 58px; padding: 0; justify-content: center; }
  .chat.is-open { inset: 0; right: 0; bottom: 0; }
  .chat.is-open .chat-launcher { display: none; }
  .chat-panel { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .chat-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .chat-note { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel, .chat-msg, .chat-typing span { animation: none; }
  .chat-launcher, .chat-send { transition: none; }
}
@media print { .chat { display: none; } }

/* ---------- Корзина и оформление заказа ---------- */
.header-cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--brown); text-decoration: none; transition: background .2s; }
.header-cart:hover { background: var(--green-soft); }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--green); color: var(--brown); font: 800 11.5px/20px var(--f-text); text-align: center; }
.cart-badge[hidden] { display: none; }
.btn-block { width: 100%; justify-content: center; }
.shop-head { padding-bottom: 12px; }
.shop-section { padding: 8px 0 clamp(60px, 8vw, 110px); }
.shop-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--muted); counter-reset: st; }
.shop-steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; }
.shop-steps li::before { content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--beige); font-weight: 800; font-size: 12px; }
.shop-steps li.current { color: var(--ink); font-weight: 700; }
.shop-steps li.current::before { background: var(--green); color: var(--brown); }
.shop-steps li.done::before { content: "\2713"; background: var(--brown); color: var(--green); }
.shop-steps a { color: inherit; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.qty input { width: 58px; border: 0; background: transparent; text-align: center; font: 700 16px var(--f-text); color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: 2px solid var(--green); border-radius: 8px; }
.qty-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--cream); color: var(--brown); font: 700 20px/1 var(--f-text); cursor: pointer; }
.qty-btn:hover { background: var(--green-soft); }
.qty-unit { padding: 0 10px 0 2px; color: var(--muted); font-size: 14px; }
.buy-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.buy-variant { flex-basis: 100%; display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.buy-variant select { min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; font: 500 15px var(--f-text); background: #fff; }
.card-buy { margin-top: 10px; display: flex; }
.card-buy .btn, a.card-buy { width: 100%; justify-content: center; }
.cart-grid, .checkout-grid { display: grid; gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (min-width: 960px) { .cart-grid, .checkout-grid { grid-template-columns: minmax(0, 1fr) 360px; } .cart-summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto 40px; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.cart-img { display: block; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--cream); }
.cart-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-info { display: grid; gap: 4px; min-width: 0; }
.cart-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.cart-name:hover { color: var(--green-ink); }
.cart-variant, .cart-unit { font-size: 13.5px; color: var(--muted); }
.cart-req { color: var(--green-ink); font-weight: 700; }
.cart-line-total { min-width: 110px; text-align: right; font-size: 17px; }
.cart-remove { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.cart-remove:hover { background: #FFF1EE; color: #B03A2E; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; }
.cart-summary dl { margin: 0; display: grid; gap: 8px; }
.cart-summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.cart-summary dt { color: var(--muted); }
.cart-summary dd { margin: 0; text-align: right; }
.cart-note { margin: 0; padding: 12px; border-radius: 12px; background: var(--green-soft); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.cart-note svg { flex: none; margin-top: 2px; }
.cart-empty { text-align: center; padding: 40px 16px; display: grid; gap: 14px; justify-items: center; }
.cart-body.is-loading { opacity: .6; pointer-events: none; transition: opacity .2s; }
.mini-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.mini-lines strong { white-space: nowrap; }
.field-row.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.choice-list { display: grid; gap: 10px; margin-bottom: 18px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--milk); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px rgba(165, 201, 35, .2); }
.choice input { margin-top: 4px; accent-color: var(--brown); width: 18px; height: 18px; flex: none; }
.choice span { display: grid; gap: 3px; }
.choice small { color: var(--muted); font-size: 13.5px; }
.checkout-form .h-small { margin-top: 10px; }
.review { display: grid; gap: 18px; max-width: 900px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); margin-bottom: 16px; }
.review-card h2 { font: 700 20px/1.3 var(--f-text); margin: 0 0 12px; }
.review-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.review-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.review-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.review-table td:not(:first-child), .review-table th:not(:first-child) { text-align: right; white-space: nowrap; }
.review-table tfoot td { border-bottom: 0; color: var(--muted); }
.review-total td { color: var(--ink) !important; font-weight: 800; font-size: 17px; }
.review-dl { margin: 0; display: grid; gap: 8px; }
.review-dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
.review-dl dt { color: var(--muted); }
.review-dl dd { margin: 0; overflow-wrap: anywhere; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cart-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 95; width: min(560px, calc(100vw - 32px)); transform: translate(-50%, 20px); opacity: 0; transition: opacity .25s, transform .3s var(--ease); background: var(--brown); color: var(--milk); border-radius: var(--r); padding: 16px 18px; box-shadow: 0 24px 60px -20px rgba(43, 26, 16, .7); }
.cart-toast[hidden] { display: none; }
.cart-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cart-toast.is-error { background: #8E2B20; }
.cart-toast p { margin: 0 0 12px; font-weight: 600; }
.cart-toast.is-error p { margin: 0; }
.cart-toast-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cart-toast-actions[hidden] { display: none; }
.cart-toast .btn-ghost { color: var(--milk); border-color: rgba(255, 255, 255, .3); }
@media (max-width: 700px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) 36px; grid-template-areas: "img info rm" "qty qty total"; gap: 10px 12px; }
  .cart-img { grid-area: img; width: 72px; height: 72px; }
  .cart-info { grid-area: info; }
  .cart-remove { grid-area: rm; align-self: start; }
  .cart-line .qty { grid-area: qty; justify-self: start; }
  .cart-line-total { grid-area: total; align-self: center; min-width: 0; }
  .review-dl div { grid-template-columns: 1fr; gap: 2px; }
  .review-actions .btn { width: 100%; justify-content: center; }
  .buy-form .btn { flex: 1 1 100%; justify-content: center; }
  .review-table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .cart-toast { transition: none; } }

/* Главная: длинное слово заголовка («натурального») не уходит под фото на ширине 960–1920 px */
.hero-grid > * { min-width: 0; }
@media (min-width: 960px) { .hero--split .hero-title { font-size: clamp(56px, 5.6vw, 100px); } }
/* Карточка каталога с кнопкой «В корзину»: ссылка не растягивается поверх кнопки */
.product-card { display: flex; flex-direction: column; }
.product-card > .product-card-link { flex: 1 1 auto; height: auto; }
