/* Переход между страницами кросс-фейдом вместо белой вспышки перезагрузки.
   Работает само на всех ссылках сайта; браузеры без поддержки просто грузят
   страницу как раньше. */
@view-transition { navigation: auto; }

:root {
  --bg: #0b0d10;
  --ink: #fff;
  --muted: #c2cad2;
  --accent: #b4c7d3;
  --accent-strong: #7d89a1;
  --stone-deep: #7d89a1;
  --stone-pale: #b4c7d3;
  --paper: #dfe8ee;
  --surface: rgba(180, 199, 211, .075);
  --surface-strong: rgba(180, 199, 211, .14);
  --line: rgba(180, 199, 211, .24);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section: clamp(80px, 12vh, 150px);
  --container: min(1440px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  /* Фон обязателен именно на html: пока стили страницы не применились, браузер
     красит холст своим цветом — отсюда белая вспышка между страницами. */
  background-color: #0b0d10;
  /* Тёмная схема по умолчанию: иначе системные элементы и холст светлые. */
  color-scheme: dark;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(180, 199, 211, .16), transparent 28rem),
    radial-gradient(circle at 92% 22%, rgba(125, 137, 161, .13), transparent 24rem),
    linear-gradient(180deg, #0d1014 0%, var(--bg) 38%, #08090b 100%);
  color: var(--ink);
  font-family: "Gantari", Arial, sans-serif;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  font-weight: 300;
}
body.menu-open { overflow: hidden; }
/* Плавное появление страницы при заходе. Нужно отдельно от @view-transition:
   тот работает не везде и пропускается, если вкладка не отрисовывается, —
   а эта анимация отрабатывает всегда и ничего не задерживает. */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
main { animation: pageIn .32s var(--ease) both; }
/* Уходя на другую страницу, гасим содержимое: иначе браузер держит старую
   страницу на экране, пока грузится новая, и клиент секунду смотрит на то,
   откуда только что ушёл. Переход этим не задерживается. */
body.is-leaving main { opacity: 0; transition: opacity .18s var(--ease); }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--stone-pale); outline-offset: 4px; }

.container { width: var(--container); margin-inline: auto; }
.section { padding-block: var(--section); }
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 500;
}
h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: .98;
}
h1 { font-size: clamp(56px, 11vw, 168px); }
h2 { font-size: clamp(38px, 6vw, 86px); max-width: 980px; }
h3 { font-size: clamp(25px, 3vw, 44px); }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(18px, 2vw, 24px); }
.muted { color: var(--muted); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 22px clamp(20px, 4vw, 56px);
  transition: background .45s var(--ease), backdrop-filter .45s var(--ease), padding .45s var(--ease);
}
.site-header.scrolled {
  padding-block: 14px;
  background: rgba(11, 13, 16, .82);
  backdrop-filter: blur(22px) saturate(130%);
  box-shadow: 0 1px 0 rgba(180, 199, 211, .12);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  /* 84 знак + 14 отбивка + 96 надпись */
  width: 194px;
  min-width: 194px;
  height: 44px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .14em;
  font-kerning: none;
  text-rendering: geometricPrecision;
  white-space: nowrap;
  transform: translateZ(0);
  /* Плавного перехода цвета здесь быть не должно: заливка знака меняется
     мгновенно, и надпись за 0.45s отставала бы от пирамид. */
}
.brand-mark {
  flex: 0 0 84px;
  width: 84px;
  height: 33px;
}
/* Надпись увеличена с 72×27: масштабируется весь SVG, поэтому буквы растут
   пропорционально и вёрстка внутри знака не ломается. */
.wordmark {
  display: block;
  flex: 0 0 96px;
  width: 96px;
  height: 36px;
  fill: currentColor;
  overflow: visible;
  transform: translateZ(0);
}
.wordmark text,
.hero-logo text {
  font-family: "Gantari", Arial, sans-serif;
  font-weight: 600;
  fill: currentColor;
}
.wordmark-main { font-size: 30px; }
.wordmark-sub { font-size: 18px; }

/* Логотип: три тона. При переключении меняется только --logo-body — светлый
   на тёмном фоне и тёмный на светлом, как в двух версиях фирменного знака.
   Плавный переход здесь не делать: transition на цвет, заданный через var(),
   зависает и держит старую заливку — знак становится невидимым. */
.logo-mark {
  --logo-body: var(--ink);
  --logo-facet: var(--stone-deep);
  --logo-glow: var(--stone-pale);
  display: block;
  overflow: visible;
}
/* Те же три тона нужны фрагментам знака на странице «О компании». Отдельным
   правилом, а не через .logo-mark: там overflow:visible, и обрезанные viewBox
   разделителей показали бы фигуру целиком. */
.about-backdrop,
.about-marker svg,
.intro-mark {
  --logo-body: var(--ink);
  --logo-facet: var(--stone-deep);
  --logo-glow: var(--stone-pale);
}
.logo-body { fill: var(--logo-body); }
.logo-facet { fill: var(--logo-facet); }
.logo-glow { fill: var(--logo-glow); }

.site-header.on-light-menu {
  color: #111820;
  /* Шапка лежит выше меню (z-index 30 против 25), поэтому светлая панель её
     не перекрывает. В прокрученном состоянии у шапки своя тёмная подложка —
     и тёмный знак светлой темы оказывался на тёмном фоне. Пока меню открыто,
     подложку убираем: шапка стоит прямо на светлом полотне меню. */
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.site-header.on-light-menu .brand {
  color: #111820;
}
.site-header.on-light-menu .logo-mark {
  --logo-body: #111820;
  --logo-facet: #7d89a1;
  --logo-glow: #b4c7d3;
}
.site-header.on-light-menu .burger-btn {
  border-color: rgba(17,24,32,.16);
  background: rgba(244,247,249,.78);
  color: #111820;
}
/* На светлой теме надписи панели уходят в тёмно-синий #111820 — тот же, что
   у знака и логотипа в светлой версии. Без этого они оставались белыми
   (--ink) и на светлом фоне почти не читались. */
.site-header.on-light-menu .nav-pill {
  border-color: rgba(17,24,32,.13);
  background: rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 14px 44px rgba(17,24,32,.08);
}
.site-header.on-light-menu .nav-pill .nav-item { color: #111820; }
.site-header.on-light-menu .nav-pill .nav-item:hover { background: rgba(17,24,32,.07); }
.site-header.on-light-menu .nav-pill .nav-item.is-current {
  background: rgba(17,24,32,.11);
  color: #111820;
}
/* Светлое меню: возвращаем светлый градиент и тёмную надпись. */
.site-header.on-light-menu .nav-pill .shop {
  background: linear-gradient(135deg, var(--stone-pale), var(--stone-deep));
  color: #071015;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32);
}
/* Цвет дублируется для .is-current: одноимённое правило .nav-item.is-current
   равно по специфичности и иначе перекрасило бы текст магазина. */
.site-header.on-light-menu .nav-pill .shop.is-current {
  background: linear-gradient(135deg, var(--stone-pale), var(--stone-deep));
  color: #071015;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 0 0 2px rgba(17,24,32,.28);
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  /* 44px кнопка + 7px поля сверху и снизу: цель нажатия по нижней границе нормы. */
  height: 58px;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(180,199,211,.25);
  background: rgba(180,199,211,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.22);
  backdrop-filter: blur(20px) saturate(130%);
  border-radius: 999px;
}
.nav-pill .nav-item {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 44px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  font-kerning: none;
  font-feature-settings: "kern" 0;
  text-rendering: geometricPrecision;
  transform: translateZ(0);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-pill .nav-item:active { transform: translateZ(0); }
.nav-pill .nav-item:hover { background: rgba(180,199,211,.16); }
/* Текущий раздел: заливка плюс полный контраст текста. */
.nav-pill .nav-item.is-current {
  background: rgba(180,199,211,.22);
  color: #fff;
}
.nav-icon {
  width: 15px;
  height: 15px;
  margin-right: 8px;
  vertical-align: -2px;
}
.nav-label {
  display: block;
  width: 100%;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}
/* Ширины = измеренная ширина надписи плюс одинаковые 44px полей у всех кнопок.
   Раньше они были подобраны на глаз и различались от 8 до 83px запаса, из-за
   чего ритм панели выглядел случайным. */
.nav-company { width: 128px; }   /* текст 83 */
.nav-products { width: 182px; }  /* текст 138 */
.nav-contacts { width: 124px; }  /* текст 79 */
.nav-search { width: 120px; }    /* текст 51 + лупа 15 + отбивка 8 */
/* Магазин — единственный призыв к действию на панели, поэтому крупнее
   остальных и с более широкими полями: 159 текста + 52.
   Селектор с .nav-pill обязателен: одиночный .nav-shop слабее правила
   .nav-pill .nav-item, и кегль оставался общим. */
.nav-pill .nav-shop {
  width: 212px;
  font-size: 15px;
  letter-spacing: .06em;
}
/* Тёмная тема: заливка из тёмной части палитры, надпись светлая.
   Светлый градиент с тёмным текстом остаётся только для светлого меню. */
.nav-pill .shop {
  background: linear-gradient(135deg, #5c6a82, #3c4657);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.nav-pill .shop:hover {
  background: linear-gradient(135deg, #6d7d98, #48546a);
}
/* Текущий раздел. Заливку задаём явно: правило .nav-item.is-current равно по
   специфичности и иначе подменило бы градиент серой полупрозрачной подложкой,
   а надпись оставалась бы тёмной от прежней светлой версии кнопки. */
.nav-pill .shop.is-current {
  background: linear-gradient(135deg, #5c6a82, #3c4657);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 2px rgba(180,199,211,.45);
}
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.burger-btn {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(180,199,211,.26);
  border-radius: 50%;
  background: rgba(12,16,20,.54);
  color: var(--ink);
  backdrop-filter: blur(14px);
  transition: transform .5s var(--ease), background .3s var(--ease);
}
.burger-btn { display: none; font-size: 24px; }

.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  padding: 116px clamp(24px, 6vw, 86px) 50px;
  color: #111;
  background: var(--paper);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path .7s var(--ease);
  overflow: auto;
}
.overlay-menu.is-open { clip-path: inset(0); pointer-events: auto; }
/* Уход по ссылке — меню исчезает без анимации, чтобы переход был мгновенным. */
.overlay-menu.is-instant { transition: none; }
/* Меню не должно попадать в снимок перехода между страницами: иначе уходящая
   страница унесёт его с собой и оно мелькнёт поверх новой. */
.overlay-menu { view-transition-name: none; }
.menu-grid {
  display: grid;
  /* Колонки подстраиваются под их количество — после удаления раздела «Ещё»
     фиксированные три оставляли пустую треть справа. */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 6vw, 90px);
  margin-top: clamp(48px, 8vw, 100px);
}
/* Кнопка панели раскрывает только свой раздел — остальные колонки скрыты. */
.overlay-menu[data-only] .menu-col { display: none; }
.overlay-menu[data-only="company"] .menu-col[data-col="company"],
.overlay-menu[data-only="products"] .menu-col[data-col="products"] { display: block; }

/* Пункты раздела выплывают снизу той же анимацией, что и текст по странице
   (.reveal), только короче и с задержкой по очереди. Класс is-revealing
   навешивается заново при каждом открытии — иначе анимация отыграла бы один
   раз при загрузке: меню скрыто clip-path, а не display, и всё время в DOM. */
@keyframes menuIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.overlay-menu.is-revealing .menu-col > * {
  animation: menuIn .6s var(--ease) both;
}
.overlay-menu.is-revealing .menu-col > *:nth-child(1) { animation-delay: .04s; }
.overlay-menu.is-revealing .menu-col > *:nth-child(2) { animation-delay: .10s; }
.overlay-menu.is-revealing .menu-col > *:nth-child(3) { animation-delay: .16s; }
.overlay-menu.is-revealing .menu-col > *:nth-child(4) { animation-delay: .22s; }
.overlay-menu.is-revealing .menu-col > *:nth-child(5) { animation-delay: .28s; }
.overlay-menu.is-revealing .menu-col > *:nth-child(6) { animation-delay: .34s; }
.overlay-menu.is-revealing .menu-col > *:nth-child(7) { animation-delay: .40s; }
.overlay-menu.is-revealing .menu-col > *:nth-child(8) { animation-delay: .46s; }
/* Заголовок раздела крупнее своих пунктов. Раньше было наоборот: заголовок
   доходил до 34px, а пункты под ним — до 36px, и старшинство читалось неверно. */
.menu-col h3 {
  margin-bottom: 30px;
  font-size: clamp(30px, 4.2vw, 50px);
  letter-spacing: -0.015em;
}
.menu-col a {
  display: block;
  padding-block: 9px;
  color: #222;
  font-size: clamp(20px, 2.5vw, 36px);
  line-height: 1.1;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.menu-col a:hover { color: #53677a; transform: translateX(12px); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid currentColor;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  isolation: isolate;
  transition: color .35s var(--ease);
}
.btn .bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { color: var(--bg); }
.btn:hover .bg { transform: scaleX(1); }
.btn:hover svg { transform: translate(4px, -4px); }
.btn.on-light { color: #111; }
.btn.on-light:hover { color: var(--paper); }
.btn.accent {
  color: #071015;
  background: linear-gradient(135deg, var(--stone-pale), var(--stone-deep));
  border-color: var(--stone-pale);
}
.btn.accent .bg { background: #fff; }
.btn.accent:hover { color: #111; }

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(180,199,211,.24);
  border-radius: 50%;
  background: rgba(8,10,13,.62);
  color: var(--ink);
  backdrop-filter: blur(14px);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.round-btn:hover { transform: scale(1.05); background: rgba(180,199,211,.18); }
.round-btn svg { width: 18px; height: 18px; }
.round-btn.prev svg { transform: rotate(180deg); }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-canvas, .hero-poster, .hero-video, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-poster {
  overflow: hidden;
  pointer-events: none;
}
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video {
  object-fit: cover;
  opacity: 0;
  transition: opacity .65s var(--ease);
}
.hero-video.is-ready { opacity: 1; }
.hero::after {
  content: "";
  background:
    radial-gradient(circle at 50% 55%, rgba(180,199,211,.18), transparent 38%),
    linear-gradient(180deg, rgba(15,15,15,.15), rgba(15,15,15,.78));
}
.hero-brand {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(70vw, 780px);
}
/* Полупрозрачные пирамиды подложкой под названием. */
.hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 106%;
  transform: translate(-50%, -56%);
  opacity: .09;
  pointer-events: none;
}
.hero-mark .logo-mark {
  width: 100%;
  height: auto;
}
.hero-logo {
  position: relative;
  width: 100%;
  height: auto;
  color: var(--ink);
  fill: currentColor;
  overflow: visible;
  transform: translateZ(0);
}
.hero-logo text {
  font-size: 66px;
  font-weight: 500;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  margin-bottom: 46px;
}
.product-card { display: block; }
.stone-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.stone-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 20%, rgba(255,255,255,.15) 20.4%, transparent 21.2%),
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.18), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.12));
  transform: scale(1);
  transition: transform .7s var(--ease);
}
.product-card:hover .stone-tile::after { transform: scale(1.09); }
.product-card {
  transition: transform .45s var(--ease), color .3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); color: var(--stone-pale); }
.product-card h3 { margin-top: 18px; font-size: clamp(22px, 2vw, 30px); }
.product-card p { margin: 4px 0 0; color: var(--muted); }
.carousel-actions { display: flex; gap: 14px; justify-content: flex-end; margin-top: 28px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
}
.split.reverse .split-copy { order: 2; }
.visual-slab {
  min-height: clamp(420px, 58vw, 760px);
  background:
    linear-gradient(135deg, rgba(180,199,211,.92), rgba(125,137,161,.88)),
    linear-gradient(55deg, transparent 0 34%, rgba(255,255,255,.25) 35% 36%, transparent 37% 100%),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.24), transparent 18rem);
  background-blend-mode: multiply, normal;
  box-shadow: 0 40px 100px rgba(0,0,0,.24);
}
.news-grid, .promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.news-card, .promo-card, .note-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(180,199,211,.08), rgba(180,199,211,.025));
  padding: clamp(24px, 4vw, 44px);
  transition: transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}
.news-card:hover, .promo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(180,199,211,.42);
  background: linear-gradient(180deg, rgba(180,199,211,.12), rgba(180,199,211,.04));
}
.news-preview {
  height: 230px;
  margin: calc(clamp(24px, 4vw, 44px) * -1) calc(clamp(24px, 4vw, 44px) * -1) 28px;
  background: linear-gradient(135deg, var(--stone-deep), var(--stone-pale));
}

.page-hero { padding: clamp(150px, 24vh, 240px) 0 70px; }
.catalog-layout {
  display: grid;
  /* Колонка шире прежних 260px: кнопки типологии стали вдвое крупнее и в узкую
     колонку каждая переносилась бы на три строки. */
  grid-template-columns: 360px 1fr;
  gap: clamp(28px, 5vw, 80px);
}
.filters {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 28px;
}
.filters input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 14px 16px;
}
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(180,199,211,.035);
  color: var(--ink);
  /* Кегль удвоен с 14px; поля увеличены пропорционально. */
  padding: 14px 20px;
  font-size: 28px;
}
.chip-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--dot, var(--stone-pale));
  outline: 1px solid rgba(255,255,255,.25);
}
.chip.is-active { border-color: rgba(180,199,211,.75); background: rgba(180,199,211,.12); }
.chip.is-active .chip-dot { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Отступ сверху — чтобы заголовок раздела не уезжал под фиксированную шапку
   при переходе по якорной кнопке. */
.catalog-section { scroll-margin-top: 120px; }
.catalog-section + .catalog-section { margin-top: clamp(60px, 8vw, 110px); }
.catalog-section > h2 { margin-bottom: 40px; }
/* Группа изделий одного вида внутри раздела. */
.catalog-group + .catalog-group { margin-top: clamp(40px, 5vw, 68px); }
.catalog-group > h3 {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 500;
  letter-spacing: 0;
}
/* Счётчик рядом с заголовком: сколько позиций в разделе или группе. */
.group-count {
  margin-left: 10px;
  color: var(--accent);
  font-size: .5em;
  font-weight: 400;
  letter-spacing: .06em;
  vertical-align: middle;
}
.catalog-group[hidden], .catalog-section[hidden] { display: none; }

/* ---- вступительный блок титульной ----
   Слоган слева, текст справа: две колонки читаются как разворот и не дают
   слогану потеряться над сплошным абзацем. */
.intro {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 90px);
  padding: clamp(90px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
}
.intro-aside { display: grid; align-content: start; gap: clamp(32px, 4.5vw, 60px); }
.intro-slogan {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
/* Ромб растянут почти на всю ширину столбца: при 300px под ним оставалось
   ещё 200px пустоты. */
.intro-mark { width: min(100%, 460px); height: auto; }
/* Приглушаем только фигуру: будь opacity на всём SVG, надпись внутри ромба
   выцвела бы вместе с ним и стала нечитаемой. */
.intro-mark-shape { opacity: .13; }
.intro-mark text {
  /* Тот же шрифт и начертание, что у логотипа в шапке. */
  font-family: "Gantari", Arial, sans-serif;
  font-weight: 600;
  fill: var(--ink);
}
/* Пропорции знака из шапки (30/18 при ширине 120), пересчитанные под ширину
   надписи в 56 единиц системы координат ромба. */
.intro-mark-main { font-size: 14px; }
.intro-mark-sub { font-size: 8.4px; }
/* Ширину не режем: колонка сетки и так держит строку в районе 66 знаков. */
.intro-text { display: grid; gap: clamp(22px, 2.2vw, 30px); }
.intro-text p { margin: 0; color: var(--muted); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.65; }
/* Кнопка не должна тянуться на всю ширину абзаца. */
.intro-cta { display: flex; margin-top: clamp(8px, 1vw, 16px); }
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  /* В один столбец ромб только растягивает страницу — убираем. */
  .intro-mark { display: none; }
}

/* ---- страница «О компании» ----
   Редакционная подача: узкая колонка текста, крупный ввод, вместо линеек —
   элементы фирменного знака. Знак не тиражируется: ромб один раз работает
   фоном, три его части — тремя разными разделителями. */
.about-page { padding: clamp(130px, 20vh, 210px) 0 var(--section); }
/* Заголовок по центру — под ним центрированная колонка текста и снимков. */
.about-hero { position: relative; margin-bottom: clamp(40px, 6vw, 78px); text-align: center; }
.about-hero h1 { font-size: clamp(48px, 8vw, 120px); }
.about-backdrop {
  position: absolute;
  /* Ромб стоит за заголовком по центру. Раньше он был прижат к правому краю,
     и при видимой полосе прокрутки давал горизонтальный скролл. */
  left: 50%;
  translate: -50% 0;
  top: -34%;
  width: min(38vw, 420px);
  height: auto;
  opacity: .07;
  pointer-events: none;
  z-index: 0;
}
/* Заголовок статичный, фон — absolute, поэтому без этого фон рисуется поверх. */
.about-hero .eyebrow,
.about-hero h1 { position: relative; z-index: 1; }
/* Абзац и снимок мастерской идут одной центрированной колонкой: снимок
   уже текста и не растянут на всю ширину страницы. */
.about-story {
  display: grid;
  justify-items: center;
  gap: clamp(64px, 8vw, 118px);
  font-size: clamp(24px, 2.1vw, 30px);
}
.about-block {
  display: grid;
  justify-items: center;
  gap: clamp(24px, 3vw, 38px);
  width: min(100%, 900px);
  text-align: center;
}
.about-block p {
  margin: 0;
  color: var(--muted);
  font-size: inherit;
  line-height: 1.5;
}
/* Якоря разделов меню: не доезжаем до шапки. */
.about-block p[id] { scroll-margin-top: 130px; }
/* Ширина auto: пирамиды 112×64, ромб 98×100 — при фиксированной ширине
   ромб бы сплющило. */
.about-marker svg { display: block; width: auto; height: 24px; opacity: .8; }
.about-shot { margin: 0; width: min(100%, 760px); }
.about-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
}
@media (max-width: 900px) {
  .about-backdrop { top: -18%; width: 54vw; opacity: .06; }
}

/* ---- страница товара ---- */
.product-page { padding: clamp(120px, 18vh, 190px) 0 var(--section); }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.crumbs > * + *::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumbs a:hover { color: var(--stone-pale); }
.product-head { margin-bottom: clamp(34px, 5vw, 60px); }
.product-head h1 { font-size: clamp(38px, 6vw, 82px); }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.product-gallery figure { margin: 0; }
.product-gallery img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}
.product-gallery figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.product-info { position: sticky; top: 120px; }
.product-meta {
  margin: 30px 0 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  font-size: 14px;
}
.product-meta dt { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.product-meta dd { margin: 0; }
.product-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: var(--section);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.product-nav-link { display: grid; gap: 6px; max-width: 46%; }
.product-nav-link.next { text-align: right; }
.product-nav-link span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.product-nav-link strong { font-weight: 400; font-size: clamp(16px, 1.5vw, 21px); }
.product-nav-link:hover strong { color: var(--stone-pale); }
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-info { position: static; }
}
@media (max-width: 620px) {
  .product-gallery { grid-template-columns: 1fr; }
}
.catalog-section + .catalog-section { margin-top: var(--section); }
.catalog-section > h2 { margin-bottom: 34px; font-size: clamp(30px, 4vw, 54px); }
.product-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.product-card:hover .product-photo img { transform: scale(1.05); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
/* Поиск в каталоге: найденное подсвечиваем на месте, а не отфильтровываем —
   страница доезжает до товара, и видно, в каком он разделе. */
.search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -18px;
  min-height: 30px;
}
.search-status { margin: 0; font-size: 14px; color: var(--muted); }
.search-steps { display: flex; gap: 6px; }
.search-step {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.search-step:hover { color: var(--ink); border-color: var(--stone-pale); background: var(--surface-strong); }
.search-step svg { width: 12px; height: 12px; fill: currentColor; }
/* Текущее совпадение выделяется сильнее остальных найденных. */
.product-card.is-current-hit .product-photo { outline-width: 3px; outline-color: var(--ink); }
.product-card { scroll-margin-top: 132px; }
.product-card.is-hit .product-photo {
  outline: 2px solid var(--stone-pale);
  outline-offset: 6px;
}
.product-card.is-hit h3 { color: var(--stone-pale); }

.product-hero-slab {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--swatch);
  box-shadow: 0 40px 110px rgba(0,0,0,.28);
}
.product-hero-slab h1 {
  max-width: 90%;
  text-align: center;
  mix-blend-mode: overlay;
  opacity: .9;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 var(--section);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
}
.finish-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.finish-list li { border: 1px solid var(--line); padding: 8px 12px; color: var(--muted); }

/* Контакты стоят столбиком справа от формы «Свяжитесь с нами» — во второй
   колонке подвала, которая до этого пустовала. */
.contacts-page { height: 92px; }
.contacts-page + .site-footer { border-top: 0; }
.offices {
  display: grid;
  align-content: start;
  gap: 26px;
  /* Подвал выравнивает колонки по верху формы, а не по её заголовку. */
  padding-top: 4px;
}
.office {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.offices .office:last-child { padding-bottom: 0; border-bottom: 0; }
.office .eyebrow { margin: 0; }
.office-tel {
  font-size: clamp(20px, 1.9vw, 26px);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.office-tel:hover { color: var(--stone-pale); }
/* Почта длиннее телефонов — ей перенос разрешён. */
.office-mail .office-tel { font-size: clamp(17px, 1.5vw, 21px); white-space: normal; word-break: break-word; }
.office-note { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(180,199,211,.035), rgba(0,0,0,.22));
  padding: var(--section) clamp(20px, 4vw, 56px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .8fr);
  gap: clamp(36px, 8vw, 120px);
}
/* Заголовок подвала приподнят над полями формы. */
.site-footer h2 { margin-bottom: clamp(34px, 4vw, 56px); }
.footer-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.footer-form input, .footer-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 14px 16px;
}
/* Своя стрелка: у системной нельзя отодвинуть отступ от правого края. */
.footer-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 52px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 30px) calc(50% - 2px), calc(100% - 24px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.footer-form select option { color: #111; }
.footer-form .full { grid-column: 1 / -1; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(180, 199, 211, .045);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--stone-pale);
}
.consent span { flex: 1 1 auto; }
.consent:hover { border-color: rgba(180, 199, 211, .52); }
.footer-form.was-validated .consent:has(input:invalid) {
  border-color: rgba(255, 154, 138, .7);
  background: rgba(255, 154, 138, .06);
}
/* Кнопка отправки: светлая заливка с тёмной надписью, на наведении заливка
   темнеет и надпись становится светлой. Стрелки нет ни в одном состоянии. */
/* Текст только для поисковика и экранного диктора. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* Подпись над полем: видна всегда, в отличие от placeholder, который исчезает
   при вводе — на форме из семи полей человек забывал, что он заполняет. */
.footer-form .field { display: grid; gap: 6px; }
.footer-form .field > span {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-form .field.full { grid-column: 1 / -1; }

/* Ловушка для ботов: убрана с экрана, но не display:none — часть автоматов
   пропускает скрытые таким способом поля. */
.footer-form .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.footer-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 14px 16px;
  resize: vertical;
  font-family: inherit;
}
.footer-form textarea::placeholder { color: var(--muted); }
.form-note { margin: 4px 0 0; min-height: 20px; font-size: 14px; color: var(--muted); }
.form-note[data-kind="ok"] { color: var(--stone-pale); }
.form-note[data-kind="error"] { color: #ff9a8a; }
.footer-form.was-validated input:invalid,
.footer-form.was-validated select:invalid,
.footer-form.was-validated textarea:invalid { border-color: rgba(255, 154, 138, .55); }
.form-privacy {
  margin: 2px 0 4px;
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.form-privacy a,
.legal-links a,
.legal-content a,
.legal-summary a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(180, 199, 211, .48);
  text-underline-offset: .22em;
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}
.form-privacy a:hover,
.legal-links a:hover,
.legal-content a:hover,
.legal-summary a:hover {
  color: var(--stone-pale);
  text-decoration-color: currentColor;
}

.btn-submit {
  justify-content: center;
  border-color: var(--paper);
  background: var(--paper);
  color: #0b0d10;
  font-size: 15px;
  letter-spacing: .12em;
}
.btn-submit .bg { background: #0b0d10; }
.btn-submit:hover { color: var(--paper); }
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.ai-disclosure {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 14px;
}
.copyright {
  color: var(--muted);
  font-size: 14px;
}

/* Legal pages retain the site's editorial scale while keeping long-form text easy to scan. */
.legal-page { padding: 180px 0 var(--section); }
.legal-hero {
  padding-bottom: clamp(56px, 9vw, 112px);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  max-width: 1100px;
  font-size: clamp(56px, 10vw, 142px);
}
.legal-updated {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  gap: clamp(48px, 9vw, 140px);
  padding-top: clamp(56px, 9vw, 112px);
}
.legal-summary {
  position: sticky;
  top: 112px;
  align-self: start;
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}
.legal-summary p { margin: 0; }
.legal-language {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  text-decoration: none !important;
}
.legal-content {
  display: grid;
  gap: clamp(48px, 7vw, 80px);
  max-width: 850px;
}
.legal-content section {
  display: grid;
  gap: 16px;
  scroll-margin-top: 120px;
}
.legal-content h2 {
  max-width: none;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.05;
}
.legal-content p { margin: 0; color: var(--muted); }
.legal-contact-list { display: grid; gap: 0; margin: 0; }
.legal-contact-list > div {
  display: grid;
  grid-template-columns: minmax(100px, .35fr) minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.legal-contact-list dt { color: var(--muted); }
.legal-contact-list dd { display: grid; gap: 4px; margin: 0; }
.legal-contact-list dd span { color: var(--muted); font-size: 14px; }

.rtl-page .legal-page {
  direction: rtl;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.rtl-page .legal-hero h1,
.rtl-page .legal-content h2 { letter-spacing: 0; }
.rtl-page .legal-summary { text-align: right; }
.rtl-page .site-header,
.rtl-page .site-footer {
  direction: ltr;
  font-family: "Gantari", Arial, sans-serif;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Панель занимает 812px. Раньше она пряталась только на 900px, поэтому на
   ноутбучных ширинах кнопки жались и наезжали друг на друга. Прячем её там,
   где она перестаёт помещаться рядом с логотипом. */
@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-pill { display: none; }
  .burger-btn { display: inline-grid; place-items: center; }
}
@media (max-width: 900px) {
  .site-header { padding: 16px 20px; }
  .menu-grid, .split, .catalog-layout, .footer-grid, .news-grid, .promo-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-summary { position: static; }
  .split.reverse .split-copy { order: 0; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .filters { position: static; }
  .visual-slab { min-height: 360px; }
  .hero-brand { width: min(84vw, 520px); }
}
@media (max-width: 620px) {
  :root { --container: min(100% - 28px, 1440px); }
  .product-grid, .footer-form { grid-template-columns: 1fr; }
  .footer-form .full { grid-column: auto; }
  .footer-meta { align-items: flex-start; flex-direction: column; }
  .legal-links { justify-content: flex-start; }
  .legal-page { padding-top: 132px; }
  .legal-contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .overlay-menu { padding: 96px 20px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}


/* catalog-update-2026-08:single-image-gallery */
.product-gallery.is-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}
.product-nav-spacer { min-height: 1px; }
