/* ═══════════════════════════════════════════════════════════════════════════
   VivaCore — стили сайта. Палитра и пластика — из витрины проекта («Botánica»:
   тёплый светлый фон, глубокий зелёный, serif-заголовки), шрифты — системные.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --bg: hsl(40 20% 97%);
  --fg: hsl(150 10% 15%);
  --card: hsl(40 25% 95%);
  --card-2: #ffffff;
  --primary: hsl(160 45% 28%);
  --primary-hover: hsl(160 45% 24%);
  --primary-fg: hsl(40 20% 97%);
  --primary-soft: hsl(160 45% 28% / 0.08);
  --secondary: hsl(38 30% 90%);
  --muted: hsl(40 15% 92%);
  --muted-fg: hsl(150 8% 36%);
  --accent: hsl(42 35% 85%);
  --data: hsl(196 45% 34%);
  --data-soft: hsl(196 45% 34% / 0.08);
  --border: hsl(40 15% 86%);
  --ring: hsl(160 45% 28%);
  /* Брендовый градиент (зелёный → сине-бирюзовый) — CTA, ядро иллюстрации,
     фон закрывающего блока. Держится в той же палитре, что --primary/--data,
     просто использует её динамичнее, чем плоская заливка. */
  --gradient-brand: linear-gradient(135deg, hsl(160 48% 30%) 0%, hsl(178 50% 32%) 55%, hsl(197 55% 38%) 100%);
  --glow-a: hsl(160 60% 55% / 0.16);
  --glow-b: hsl(197 65% 55% / 0.14);
  --radius: 1rem;
  --radius-card: 1.25rem;
  --radius-sm: 0.5rem;
  --shadow-card: 0 2px 16px -4px hsl(150 10% 15% / 0.06);
  --shadow-card-hover: 0 8px 32px -8px hsl(175 25% 20% / 0.16);
  --shadow-btn: 0 2px 10px -2px hsl(175 45% 30% / 0.35), 0 0 0 1px hsl(175 45% 30% / 0.1);
  --shadow-btn-hover: 0 6px 22px -4px hsl(175 50% 32% / 0.45), 0 0 0 1px hsl(175 45% 30% / 0.14);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1200px;
  --header-h: 64px;
  --t: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── База ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.lead { font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem); color: var(--muted-fg); max-width: 62ch; }
.kicker {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 0.9rem;
}
.muted { color: var(--muted-fg); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 768px) { .container { padding-left: 32px; padding-right: 32px; } }
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p:last-child { margin-bottom: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--primary); color: var(--primary-fg); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

/* ── Кнопки ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.5rem; border-radius: var(--radius-sm);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--t), background-position 400ms ease, box-shadow var(--t), color var(--t), border-color var(--t);
}
.btn-primary {
  background: var(--gradient-brand); background-size: 165% 165%; background-position: 0% 50%;
  color: var(--primary-fg); box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background-position: 100% 50%; color: var(--primary-fg); box-shadow: var(--shadow-btn-hover); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { background: var(--card-2); color: var(--fg); border-color: var(--muted-fg); }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: 0.92rem; }
.btn-lg { min-height: 54px; padding: 0 2rem; font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .ico { transition: transform var(--t); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* Растянутая ссылка: вся плашка направления кликабельна/тапается, не только
   строка "подробнее" — .card-direction уже position:relative (нужно для её
   же градиентного контура), поэтому псевдоэлемент растягивается ровно по
   плашке. Видимый текст ссылки остаётся прежним — он же служит именем
   ссылки для скринридера. */
.card-link { position: relative; z-index: 2; }
.card-link::after { content: ""; position: absolute; inset: 0; }

/* ── Шапка ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: hsl(40 20% 97% / 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fg); text-decoration: none; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.01em; }
.site-header .brand { margin-right: auto; }
.nav-desktop { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; font-size: 0.92rem; font-weight: 500; }
.nav-list a, .nav-dd > summary { color: hsl(150 10% 15% / 0.8); text-decoration: none; padding: 6px 0; display: inline-flex; align-items: center; gap: 0.3rem; border-bottom: 2px solid transparent; transition: color var(--t), border-color var(--t); }
.nav-list a:hover, .nav-dd > summary:hover { color: var(--primary); }
.nav-list a[aria-current="page"], .nav-dd > summary.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.header-cta { display: none; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.nav-item-dd { position: relative; }
.nav-dd > summary .ico-chevron { transition: transform var(--t); }
.nav-dd[open] > summary .ico-chevron { transform: rotate(180deg); }
.dd-panel {
  position: absolute; left: -12px; top: calc(100% + 8px); min-width: 280px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover); padding: 8px;
}
.dd-panel ul { list-style: none; margin: 0; padding: 0; }
.dd-panel a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); border-bottom: 0; font-weight: 500; }
.dd-panel a:hover { background: var(--card); }
.dd-panel a[aria-current="page"] { background: var(--primary-soft); }

.nav-mobile > summary {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0 0.6rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 500; color: var(--fg);
}
.mobile-panel {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-card-hover);
  padding: 16px 20px 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-panel ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mobile-panel li a { display: block; padding: 12px 8px; font-size: 1.05rem; font-weight: 500; color: var(--fg); text-decoration: none; border-radius: var(--radius-sm); }
.mobile-panel li a:hover { background: var(--card); }
.mobile-panel li a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.mobile-group { margin: 0 0 4px; padding: 0 8px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-fg); }
.mobile-top { border-top: 1px solid var(--border); padding-top: 8px !important; }
.mobile-panel .btn { width: 100%; margin-top: 8px; }

@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .nav-mobile { display: none; }
}

/* ── Первый экран ─────────────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 56px 0 48px; overflow: hidden;
  background:
    linear-gradient(hsl(160 45% 28% / 0.06) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, hsl(160 45% 28% / 0.05) 1px, transparent 1px) 0 0 / 48px 100%,
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -240px;
  background: radial-gradient(circle, var(--glow-a) 0%, var(--glow-b) 45%, transparent 72%);
  animation: hero-glow-drift 14s ease-in-out infinite; pointer-events: none;
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 70% 40%, transparent 0%, var(--bg) 100%); pointer-events: none; }
@keyframes hero-glow-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-26px, 22px); } }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
.hero-text h1 { margin-bottom: 0.7em; }
.hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
.hero-svg { width: 100%; height: auto; aspect-ratio: 560 / 420; }
.hero-svg .core-pulse { transform-origin: 280px 210px; animation: core-pulse 3.2s ease-in-out infinite; }
@keyframes core-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (min-width: 960px) {
  .hero { padding: 88px 0 80px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 48px; }
}

.page-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--card) 0%, var(--bg) 100%); }
.page-hero-grid { display: grid; gap: 24px; align-items: center; }
.page-hero-art { display: none; }
@media (min-width: 900px) {
  .page-hero { padding: 72px 0 64px; }
  .page-hero-grid { grid-template-columns: 1fr 260px; gap: 48px; }
  .page-hero-art { display: block; }
  .page-hero-art .illo { width: 100%; height: auto; }
}

/* ── Сетки и карточки ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 26px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 0.5rem;
  transition: box-shadow var(--t), transform var(--t);
}
.card h3 { margin-bottom: 0.2rem; }
.card p { color: var(--muted-fg); margin-bottom: 0.4rem; }
.card > :last-child { margin-top: auto; margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
}
/* Плашки направлений (главная) — тонкий переливающийся контур: едва заметен
   в покое, разгорается и медленно вращается при наведении/фокусе. Тот же
   приём, что у "AI"-кнопок (conic-gradient + маска-кольцо), в цветах сайта —
   без чужого брендинга. @property делает --card-angle анимируемым; без его
   поддержки (редкие браузеры) контур остаётся статичным — не ломается. */
@property --card-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.card-direction { position: relative; z-index: 0; }
.card-direction::before {
  content: ""; position: absolute; inset: -1.5px; z-index: -1;
  border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--card-angle, 0deg),
    hsl(160 55% 48%), hsl(178 58% 46%), hsl(197 60% 50%), hsl(178 58% 46%), hsl(160 55% 48%));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .32;
  transition: opacity 350ms ease;
}
.card-direction:hover::before, .card-direction:focus-within::before {
  opacity: 1;
  animation: card-border-spin 5s linear infinite;
}
@keyframes card-border-spin { to { --card-angle: 360deg; } }

.card-illo { margin: -4px 0 8px; }
.card-illo-photo { width: 112px; height: 112px; border-radius: var(--radius-sm); overflow: hidden; }
.card-illo-photo img, .card-illo-photo model-viewer { width: 100%; height: 100%; display: block; }
.card-illo .illo { width: 120px; height: 90px; }

/* Живая 3D-модель (model-viewer) — фон ВСЕГДА --card-2 (чистый белый), не
   --card (тёплый бежевый — токен для подложек секций, у карточек и превью
   свой фон белый): иначе модель, пока грузится и после, стоит на видимом
   бежевом квадрате вместо того, чтобы сливаться с белой карточкой вокруг.
   --poster-color — тот же токен, а не transparent: это фон ДО того, как even
   постер успел нарисоваться, и там должен быть тот же белый, а не то, что
   случайно окажется за элементом. */
model-viewer { background: var(--card-2); --poster-color: var(--card-2); }
.viewer-caption { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted-fg); }
.card-num { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; color: var(--data); }
.card-result { font-size: 0.95rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); color: var(--fg); }
.card-result strong { color: var(--primary); font-weight: 600; }

/* ── Списки ───────────────────────────────────────────────────────────────── */
.list-dots, .list-check { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.list-dots li, .list-check li { position: relative; padding-left: 1.5rem; }
.list-dots li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; border-radius: 50%;
  border: 1.6px solid var(--primary); background: var(--card-2);
}
.list-check li::after {
  content: ""; position: absolute; left: 4px; top: calc(0.42em + 3px); width: 6px; height: 4px;
  border-left: 1.6px solid var(--primary); border-bottom: 1.6px solid var(--primary); transform: rotate(-45deg);
}
.cols-2 { column-gap: 40px; }
@media (min-width: 900px) { .cols-2 { columns: 2; } .cols-2 li { break-inside: avoid; } }

.pillars { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillars li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 500; }
.pillars li::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } .steps-3 { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--card-2); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow-card); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; color: var(--data); margin-bottom: 0.6rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.steps p { color: var(--muted-fg); margin: 0; font-size: 0.97rem; }

.note {
  border-left: 3px solid var(--primary); background: var(--card-2); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; color: var(--fg); margin: 1.5rem 0 0; max-width: 72ch;
}
.note p:last-child { margin-bottom: 0; }
.principle { max-width: 62ch; }
.principle p { font-size: 1.08rem; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; font-weight: 500; font-size: 1.05rem; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--font-mono); font-size: 1.2rem; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 0 4px 18px; color: var(--muted-fg); max-width: 72ch; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.simple-cta { padding: 12px 0 72px; text-align: center; }

.section-cta {
  position: relative; overflow: hidden; color: var(--bg);
  background: linear-gradient(135deg, hsl(150 15% 11%) 0%, hsl(172 24% 13%) 52%, hsl(197 26% 12%) 100%);
}
.section-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 70% at 88% 15%, hsl(160 55% 45% / 0.18), transparent 60%),
    radial-gradient(45% 60% at 8% 95%, hsl(197 55% 45% / 0.16), transparent 60%);
}
.section-cta .container { position: relative; }
.section-cta h2 { color: #fff; }
.section-cta .lead { color: hsl(40 20% 97% / 0.78); }
.section-cta .section-head { margin-bottom: 0; }
.cta-note { color: hsl(40 20% 97% / 0.7); font-size: 0.95rem; margin: 0.8rem 0 0; }
.section-cta .btn-primary { box-shadow: 0 4px 24px -6px hsl(0 0% 0% / 0.4); }

/* ── Контакты и форма ─────────────────────────────────────────────────────── */
.contact-card { gap: 0.3rem; }
.contact-card .ico { color: var(--primary); }
.contact-card a { font-size: 1.1rem; font-weight: 500; word-break: break-word; }
.contact-card .muted { font-size: 0.92rem; margin: 0; }

.form { display: grid; gap: 18px; max-width: 720px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 0.95rem; }
.field .hint { color: var(--muted-fg); font-size: 0.86rem; margin: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--card-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--primary-soft); }
.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); flex: 0 0 auto; }
.field-check label { font-size: 0.95rem; font-weight: 400; }
.form-notice {
  border: 1px solid var(--border); border-left: 3px solid var(--data); background: var(--data-soft);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px;
}
.form-notice p:last-child { margin-bottom: 0; }
.form-notice:focus { outline: 3px solid var(--data); outline-offset: 3px; }

/* ── Фотогалерея (реальные 3D-рендеры растений/кашпо, /plants/) ──────────── */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin: 0; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .gallery-plants { grid-template-columns: repeat(5, 1fr); } .gallery-pots { grid-template-columns: repeat(4, 1fr); max-width: 640px; } }
.gallery-item {
  aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: var(--card-2); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center; padding: 8px;
  transition: box-shadow var(--t), transform var(--t);
}
/* object-fit:cover + лёгкий zoom обрезает тонкую серую полосу-артефакт
   (индикатор загрузки, попавший в кадр при рендере) у верхнего края части
   исходных poster.jpg — исправить в самом файле нечем, это не наша генерация. */
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.gallery-item model-viewer { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .gallery-item:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
}
.gallery-sub { margin: 40px 0 16px; font-weight: 500; color: var(--fg); }

/* ── Документы (политика, оферта) ────────────────────────────────────────── */
.doc { max-width: 76ch; padding-top: 40px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2rem; }
.doc h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.doc p, .doc li { color: var(--fg); }
.doc .doc-meta { color: var(--muted-fg); font-size: 0.95rem; margin-bottom: 1.5rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--border); }
.table-wrap { overflow-x: auto; }

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.nf { min-height: 50vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.nf .kicker { color: var(--data); }
.nf .cta-row { justify-content: center; }

/* ── Подвал ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--card); border-top: 1px solid var(--border); margin-top: 0; color: var(--fg); }
.footer-grid { display: grid; gap: 28px; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.footer-brand p { color: var(--muted-fg); margin: 0.8rem 0 0; max-width: 32ch; }
.footer-h { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-fg); margin: 0 0 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer li a { color: var(--fg); text-decoration: none; }
.site-footer li a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--border); color: var(--muted-fg); font-size: 0.9rem; }
.footer-bottom p { margin: 0; }

/* ── Служебное ────────────────────────────────────────────────────────────── */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: 0 0 auto; }
