/* ==========================================================================
   Moorgen.io — тёмная премиальная тема
   Шкала: 8px. Радиусы нулевые. Акцент — шампань, используется скупо.
   ========================================================================== */

:root {
  /* Поверхности */
  --bg:            #0B0B0B;
  --bg-raised:     #141414;
  --bg-sunken:     #060606;
  --line:          rgba(255, 255, 255, .10);
  --line-strong:   rgba(255, 255, 255, .22);

  /* Текст: контраст на --bg выше 4.5:1 для обоих */
  --fg:            #F2F2F2;
  --fg-muted:      #9A9A9A;

  /* Акцент */
  --accent:        #C2A878;
  --accent-dim:    #8E7A50;

  /* Типографика */
  --font: "Manrope", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --tracking-label: .18em;
  --tracking-display: -.01em;

  /* Сетка */
  --page-max: 1440px;
  --gutter: 48px;
  --section-y: 120px;

  /* Движение */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --section-y: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.is-ready { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
/* <picture> — прозрачная обёртка: размеры задаются самой картинке относительно родителя.
   С display:block проценты высоты у <img> внутри не разрешались, и фото ложилось в натуральную высоту. */
picture { display: contents; }

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Для скрин-ридеров */
.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 200;
  background: var(--accent); color: #0B0B0B; padding: 12px 20px;
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #0B0B0B; }

/* ---------- Раскладка ---------- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .55); }
.section--sunken { background: var(--bg-sunken); }

.stack  { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }  .gap-16 { gap: 16px; }
.gap-24 { gap: 24px; } .gap-40 { gap: 40px; }

/* ---------- Типографика ---------- */

.label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
}

.display {
  margin: 0;
  font-weight: 300;
  font-size: clamp(42px, 6.4vw, 100px);
  line-height: 1;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(32px, 4.3vw, 64px);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.h3 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.3;
}

.lead {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 62ch;
}

.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.1em; color: var(--fg-muted); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.muted { color: var(--fg-muted); }

/* Тонкая линия-разделитель с акцентным началом */
.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(to right, var(--accent-dim) 0 64px, var(--line) 64px);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 12px 28px;
  border: 1px solid var(--fg); background: transparent; color: var(--fg);
  font: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); border-color: var(--accent); color: #0B0B0B; }

.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }

/* Текстовая ссылка со стрелкой */
.arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--fg);
}
.arrow svg { transition: transform .3s var(--ease); }
.arrow:hover svg { transform: translateX(6px); }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 11, .9);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
/* На главной шапка лежит поверх слайдера и становится плотной при прокрутке */
.has-hero .site-header {
  position: fixed; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(6,6,6,.72) 0%, rgba(6,6,6,0) 100%);
  border-color: transparent; backdrop-filter: none;
}
.has-hero .site-header.is-solid,
.site-header.is-mega {
  background: rgba(11, 11, 11, .94);
  backdrop-filter: saturate(140%) blur(16px);
  border-color: var(--line);
}

.site-header__row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  min-height: 84px;
}

.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-main__item {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 14px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: #C9C9C9; white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav-main__item::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-main__item:hover,
.nav-main__item.is-current,
.nav-main__trigger[aria-expanded="true"] { color: #FFFFFF; }
.nav-main__item:hover::after,
.nav-main__item.is-current::after,
.nav-main__trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-main__trigger .ico { transition: transform .35s var(--ease); }
.nav-main__trigger[aria-expanded="true"] .ico { transform: rotate(180deg); }

.brand { display: flex; align-items: center; justify-self: center; }
.brand__img img, img.brand__img { height: 24px; width: auto; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }

.header-phone { display: flex; align-items: center; gap: 12px; color: #FFFFFF; }
.header-phone__icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--accent-dim); color: var(--accent);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.header-phone:hover { color: #FFFFFF; }
.header-phone:hover .header-phone__icon { background: var(--accent); border-color: var(--accent); color: #0B0B0B; }
.header-phone__text { display: flex; flex-direction: column; line-height: 1.25; }
.header-phone__num { font-size: 15px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.header-phone__hint { font-size: 11px; color: var(--fg-muted); white-space: nowrap; }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto;
  background: transparent; border: 1px solid var(--line-strong); color: var(--fg); cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 12px; }
.burger { display: none; }

@media (max-width: 1180px) {
  .header-phone__text { display: none; }
}
@media (max-width: 1080px) {
  .nav-main, .header-cta { display: none; }
  .burger { display: grid; }
  /* Навигация скрыта — две колонки: логотип слева, кнопки справа */
  .site-header__row { min-height: 72px; grid-template-columns: auto 1fr; }
  .brand { justify-self: start; }
}
@media (max-width: 520px) {
  .header-actions .icon-btn:not(.burger) { display: none; }
}

/* ---------- Мега-меню ---------- */

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #0E0E0E; border-block: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; padding-block: 36px 28px; }
.mega__col { display: flex; flex-direction: column; gap: 14px; opacity: 0; transform: translateY(12px); }
.mega.is-open .mega__col { animation: mega-in .6s var(--ease) forwards; }
.mega.is-open .mega__col:nth-child(2) { animation-delay: .04s; }
.mega.is-open .mega__col:nth-child(3) { animation-delay: .08s; }
.mega.is-open .mega__col:nth-child(4) { animation-delay: .12s; }
.mega.is-open .mega__col:nth-child(5) { animation-delay: .16s; }
.mega.is-open .mega__col:nth-child(6) { animation-delay: .20s; }
@keyframes mega-in { to { opacity: 1; transform: none; } }

.mega__card { display: flex; flex-direction: column; gap: 14px; color: #FFFFFF; }
.mega__media { aspect-ratio: 4 / 3; overflow: hidden; background: #000; display: grid; place-items: center; }
.mega__media picture, .mega__media img { width: 100%; height: 100%; }
.mega__media img { object-fit: cover; transition: transform .9s var(--ease); }
.mega__media--studio { background: #FFFFFF; }
.mega__media--studio img { object-fit: contain; padding: 10%; }
.mega__media--type { background: #161616; border: 1px solid var(--line); }
.mega__type { font-size: clamp(26px, 2.4vw, 38px); font-weight: 300; letter-spacing: -.02em; color: var(--accent); }
.mega__card:hover .mega__media img { transform: scale(1.06); }
.mega__title { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.mega__title .ico { color: var(--accent); transition: transform .3s var(--ease); }
.mega__card:hover { color: var(--accent); }
.mega__card:hover .mega__title .ico { transform: translateX(4px); }
.mega__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.mega__links a { font-size: 14px; color: var(--fg-muted); }
.mega__links a:hover { color: #FFFFFF; }
.mega__links .mega__more { color: var(--accent); }
.mega__teaser { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg-muted); }
.mega__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 20px 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-muted);
}
@media (max-width: 1080px) { .mega { display: none; } }

/* ---------- Мобильное меню ---------- */

.drawer { position: fixed; inset: 0; z-index: 150; background: var(--bg); overflow-y: auto; display: flex; flex-direction: column; }
.drawer[hidden] { display: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; min-height: 72px; border-bottom: 1px solid var(--line); }
.drawer__body { padding-block: 28px 48px; display: flex; flex-direction: column; gap: 28px; }
.drawer__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.drawer__list a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 300; }
.drawer__list .ico { color: var(--accent); }
.drawer__list--plain a { font-size: 16px; font-weight: 500; letter-spacing: .04em; }
.drawer__contacts { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.drawer__contacts a { display: flex; align-items: center; gap: 12px; }
.drawer__contacts .ico { color: var(--accent); }
.drawer__cta { justify-content: center; }
body.is-locked { overflow: hidden; }

/* ---------- Слайдер героя ---------- */

.hero { position: relative; height: min(100svh, 980px); min-height: 640px; overflow: hidden; background: #000; }

.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.4s var(--ease), visibility 0s; }

.slide__media { position: absolute; inset: 0; overflow: hidden; }
.slide__media picture, .slide__media img { width: 100%; height: 100%; }
.slide__media img {
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 9s cubic-bezier(.25, .46, .45, .94);
}
/* Медленный «наезд камеры»: пока слайд активен, кадр плавно отъезжает */
.slide.is-active .slide__media img { transform: scale(1); }
.slide__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,6,6,.92) 0%, rgba(6,6,6,.72) 32%, rgba(6,6,6,.25) 64%, rgba(6,6,6,.10) 100%),
    linear-gradient(180deg, rgba(6,6,6,.55) 0%, rgba(6,6,6,0) 26%, rgba(6,6,6,0) 55%, rgba(6,6,6,.92) 100%);
}

.slide__inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; padding-bottom: 176px;
}
.slide__text { max-width: 920px; display: flex; flex-direction: column; gap: 26px; }
.slide__text .lead { color: #BDBDBD; max-width: 54ch; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Текст выезжает каскадом, когда слайд становится активным */
.slide__text > * { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.slide.is-active .slide__text > * { opacity: 1; transform: none; }
.slide.is-active .slide__text > *:nth-child(1) { transition-delay: .35s; }
.slide.is-active .slide__text > *:nth-child(2) { transition-delay: .5s; }
.slide.is-active .slide__text > *:nth-child(3) { transition-delay: .68s; }
.slide.is-active .slide__text > *:nth-child(4) { transition-delay: .84s; }

.hero__nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: flex-end; gap: 32px; padding-bottom: 40px;
}
.hero__tabs { flex: 1; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 28px; }
.hero__tab {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 14px; align-items: baseline;
  padding: 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: rgba(255, 255, 255, .5); transition: color .3s var(--ease);
}
.hero__tab:hover, .hero__tab.is-active { color: #FFFFFF; }
.hero__bar { grid-column: 1 / -1; position: relative; height: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.hero__bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero__tab.is-done .hero__bar i { transform: scaleX(1); background: rgba(255, 255, 255, .45); }
.hero__tab.is-active .hero__bar i { animation: hero-progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__tab.is-active .hero__bar i { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }
.hero__tab-num { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--accent); }
.hero__tab-title { font-size: 14px; font-weight: 500; line-height: 1.35; }

.hero__pause { margin-bottom: -10px; }
.hero__play-ico { display: none; }
.hero.is-paused .hero__pause-ico { display: none; }
.hero.is-paused .hero__play-ico { display: block; }

@media (max-width: 860px) {
  .hero__tab-title { display: none; }
  .hero__tabs { gap: 12px; }
  .slide__inner { padding-bottom: 130px; }
}

/* ---------- Карточки каталога ---------- */

.grid-cards {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background: var(--line);
  border-block: 1px solid var(--line);
}

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg);
  padding: 32px 32px 36px;
  transition: background .3s var(--ease);
}
.card:hover { background: var(--bg-raised); }
.card:hover .card__media img { transform: scale(1.04); }

.card__media {
  aspect-ratio: 4 / 3; overflow: hidden; margin: -32px -32px 28px;
  background: var(--bg-sunken);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }

/* Часть фотографий каталога — готовые коллажи на белом фоне. Вместо того чтобы
   прятать это, подаём их как намеренные светлые плитки и не режем кадрированием. */
.card__media--light { background: #FFFFFF; }
.card__media--light img { object-fit: contain; padding: 20px; }

.feature__media--light { background: #FFFFFF; }
.feature__media--light img { padding: 24px; }

.card__series {
  font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.card__title { margin: 0 0 12px; font-size: 21px; font-weight: 500; line-height: 1.25; }
.card__text { margin: 0 0 24px; color: var(--fg-muted); font-size: 15px; line-height: 1.6; }
.card__foot { margin-top: auto; }

/* Ссылка растягивается на всю карточку, но заголовок остаётся читаемым для ассистивных технологий */
.card__link { position: absolute; inset: 0; }

/* ---------- Чередующиеся блоки товара ---------- */

.feature { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature--split { grid-template-columns: 1fr 1fr; }
.feature--split-reverse { grid-template-columns: 1fr 1fr; }
.feature--split-reverse .feature__media { order: 2; }
.feature__media { background: var(--bg-sunken); overflow: hidden; }
.feature__media img { width: 100%; height: auto; }
.feature__body { display: flex; flex-direction: column; gap: 18px; }

.feature--wide { grid-template-columns: 1fr; }
.feature--wide .feature__body { max-width: 62ch; }

@media (max-width: 860px) {
  .feature--split, .feature--split-reverse { grid-template-columns: 1fr; }
  .feature--split-reverse .feature__media { order: 0; }
}

/* Короткие текстовые тезисы в сетку */
.facts {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: var(--line);
  border-block: 1px solid var(--line);
}
.facts__item { background: var(--bg); padding: 32px; }
.facts__item h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.facts__item p { margin: 0; color: var(--fg-muted); font-size: 15px; line-height: 1.6; }

/* ---------- Хлебные крошки ---------- */

.crumbs { padding-block: 20px; font-size: 13px; color: var(--fg-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.crumbs li:last-child::after { content: none; }
.crumbs a { color: var(--fg-muted); }
.crumbs a:hover { color: var(--accent); }

/* ---------- Форма заявки ---------- */

.lead-form { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead-form__full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.field input, .field textarea {
  background: var(--bg-raised); border: 1px solid var(--line); color: var(--fg);
  font: inherit; font-size: 16px; padding: 14px 16px; min-height: 48px;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field--error input, .field--error textarea { border-color: #E2725B; }
.field__error { font-size: 13px; color: #E98A78; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--fg-muted); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.form-note { font-size: 14px; padding: 14px 18px; border: 1px solid var(--line); }
.form-note--ok { border-color: var(--accent-dim); color: var(--fg); }
.form-note--err { border-color: #8A4034; color: #E98A78; }

@media (max-width: 720px) {
  .lead-form { grid-template-columns: 1fr; }
}

/* ---------- Подвал ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-sunken); }
.site-footer__cols {
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  padding-block: 72px;
}
.site-footer h2 {
  margin: 0 0 18px; font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-muted);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { font-size: 15px; color: var(--fg-muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between;
  padding-block: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--fg-muted);
}

@media (max-width: 960px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* ---------- Плавающая кнопка Telegram ---------- */

.tg-float {
  position: fixed; right: 24px; bottom: calc(24px + var(--cookie-h, 0px));
  z-index: 90;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--accent); color: #0B0B0B;
  transition: bottom .25s var(--ease), background .25s var(--ease);
}
.tg-float:hover { background: #fff; color: #0B0B0B; }

/* ---------- Куки-баннер ---------- */

.cookie {
  position: fixed; inset: auto 0 0; z-index: 95;
  background: var(--bg-raised); border-top: 1px solid var(--line);
}
.cookie__row {
  display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center;
  justify-content: space-between; padding-block: 20px;
}
.cookie__text { margin: 0; font-size: 14px; color: var(--fg-muted); max-width: 86ch; }
.cookie__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Появление при прокрутке ---------- */

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

@media (prefers-reduced-motion: reduce) {
  html, html.is-ready { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   Главная: редакционная подача
   ========================================================================== */

.section--alt { background: #101010; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 56px; }
.section-head__text { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }

/* Редакционная сетка категорий */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; overflow: hidden; background: var(--bg-raised); display: flex; flex-direction: column; color: var(--fg); }
.tile:hover { color: var(--fg); }
.tile--s7 { grid-column: span 7; }
.tile--s5 { grid-column: span 5; }
.tile--s4 { grid-column: span 4; }
.tile--s6 { grid-column: span 6; }
.tile--s12 { grid-column: span 12; }

.tile__title { margin: 0; font-weight: 400; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -.015em; }
.tile__teaser { margin: 0; color: #B0B0B0; font-size: 15px; line-height: 1.55; max-width: 44ch; }
.tile .arrow { margin-top: 6px; }
.tile:hover .arrow svg { transform: translateX(6px); }

/* Большая плитка: фото во весь размер, текст поверх */
.tile--photo { min-height: clamp(440px, 46vw, 700px); justify-content: flex-end; }
.tile--photo .tile__media { position: absolute; inset: 0; }
.tile--photo .tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--photo:hover .tile__media img { transform: scale(1.035); }
.tile--photo .tile__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0) 35%, rgba(8,8,8,.55) 65%, rgba(8,8,8,.92) 100%);
}
.tile--photo .tile__body { position: relative; z-index: 1; padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 12px; }

/* Студийная плитка: белый кадр сверху, тёмный текст-блок снизу */
.tile--studio .tile__media { aspect-ratio: 4 / 3; background: #FFFFFF; display: grid; place-items: center; overflow: hidden; }
.tile--studio .tile__media img { width: 86%; height: 86%; object-fit: contain; transition: transform 1s var(--ease); }
.tile--studio:hover .tile__media img { transform: scale(1.04); }
.tile--studio .tile__body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile--studio .tile__title { font-size: clamp(22px, 1.9vw, 28px); }

.tile__cover { position: absolute; inset: 0; z-index: 2; }

@media (max-width: 1000px) {
  .tile--s7, .tile--s5, .tile--s12 { grid-column: span 12; }
  .tile--s4 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .tile--s4, .tile--s6 { grid-column: span 12; }
}

/* Спотлайт флагмана */
.spotlight { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.spotlight__media { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__body { display: flex; flex-direction: column; gap: 24px; }
.speclist { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.speclist li { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.speclist li span:first-child { color: var(--fg-muted); }
.speclist li span:last-child { text-align: right; }
@media (max-width: 960px) { .spotlight { grid-template-columns: 1fr; } }

/* Крупные цифры бренда */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.numbers__item { display: flex; flex-direction: column; gap: 18px; padding: 40px 32px 8px; border-right: 1px solid var(--line); }
.numbers__item:first-child { padding-left: 0; }
.numbers__item:last-child { border-right: 0; }
.numbers__item b { font-weight: 200; font-size: clamp(46px, 5.6vw, 92px); line-height: .95; letter-spacing: -.035em; color: #FFFFFF; white-space: nowrap; }
.numbers__item span { color: var(--fg-muted); font-size: 15px; line-height: 1.55; max-width: 30ch; }
@media (max-width: 900px) {
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers__item { padding: 32px 20px 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .numbers__item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}

/* Подвал: логотип и контакты с иконками */
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.site-footer__brand .brand { justify-self: start; margin-bottom: 10px; }
.brand__img--footer img, img.brand__img--footer { height: 28px; width: auto; }
.site-footer__brand h2 { margin: 0; }
.site-footer__brand p { margin: 0; font-size: 15px; max-width: 38ch; }
.site-footer__contacts a, .site-footer__addr { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--fg-muted); }
.site-footer__contacts .ico { color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.site-footer__contacts small { display: block; font-size: 12px; color: #767676; margin-top: 2px; }

/* Якоря не прячутся под закреплённой шапкой */
[id] { scroll-margin-top: 96px; }

/* На главной плавающая кнопка не спорит со слайдером */
.has-hero .tg-float { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), bottom .25s var(--ease); }
.has-hero.is-past-hero .tg-float { opacity: 1; transform: none; pointer-events: auto; }

/* Светильники: широкая фото-полоса со ссылками на подразделы */
.tile--wide { min-height: clamp(460px, 42vw, 620px); justify-content: flex-end; }
.tile--wide .tile__media { position: absolute; inset: 0; }
.tile--wide .tile__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 1.4s var(--ease); }
.tile--wide:hover .tile__media img { transform: scale(1.03); }
.tile--wide .tile__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,6,6,.9) 0%, rgba(6,6,6,.6) 38%, rgba(6,6,6,.15) 70%, rgba(6,6,6,.45) 100%),
              linear-gradient(180deg, rgba(6,6,6,0) 45%, rgba(6,6,6,.7) 100%);
}
.tile--wide .tile__body {
  position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end; gap: 48px; padding: clamp(28px, 4vw, 64px);
}
.tile--wide .tile__title { font-size: clamp(44px, 5.6vw, 92px); font-weight: 300; letter-spacing: -.03em; line-height: .95; }
.tile--wide .tile__teaser { font-size: 17px; color: #C8C8C8; }
.tile__links {
  list-style: none; margin: 0; padding: 4px 24px;
  background: rgba(10, 10, 10, .62); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12);
}
.tile__links li + li { border-top: 1px solid var(--line); }
.tile__links a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 17px; color: #FFFFFF; }
.tile__links a .ico { color: var(--accent); transition: transform .3s var(--ease); }
.tile__links a:hover { color: var(--accent); }
.tile__links a:hover .ico { transform: translateX(4px); }
@media (max-width: 1000px) {
  /* На узком экране текст занял бы всю плитку и спрятал фото — ставим кадр отдельно сверху */
  .tile--wide { min-height: 0; }
  .tile--wide .tile__media { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .tile--wide .tile__media::after { background: linear-gradient(180deg, rgba(6,6,6,0) 60%, rgba(20,20,20,1) 100%); }
  .tile--wide .tile__body { grid-template-columns: 1fr; gap: 28px; padding-top: 8px; }
}

/* Галерея дизайн-серий: горизонтальная прокрутка с привязкой */
.gallery-nav { display: flex; gap: 10px; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 29vw, 440px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--page-max)) / 2 + var(--gutter)));
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline-offset: -2px; }
.gcard { scroll-snap-align: start; }
.gcard__link { display: flex; flex-direction: column; gap: 20px; color: #FFFFFF; }
.gcard__media { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #000; }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s var(--ease); filter: saturate(.92); }
.gcard__media::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.gcard__link:hover .gcard__media img { transform: scale(1.05); filter: none; }
.gcard__link:hover .gcard__media::after { transform: scaleX(1); }
.gcard__body { display: flex; flex-direction: column; gap: 8px; }
.gcard__name { font-size: clamp(22px, 2vw, 30px); font-weight: 300; letter-spacing: -.015em; line-height: 1.1; }
.gcard__note { font-size: 15px; color: var(--fg-muted); line-height: 1.5; }
.gcard__link:hover .gcard__name { color: var(--accent); }

/* Заявка: колонка с фото замка и форма в панели */
.lead-section { padding-block: var(--section-y); background: var(--bg-sunken); border-top: 1px solid var(--line); }
.lead-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.lead-intro { display: flex; flex-direction: column; gap: 28px; }
.lead-visual { position: relative; flex: 1; min-height: 560px; overflow: hidden; background: #000; display: flex; flex-direction: column; justify-content: flex-end; }
.lead-visual > img, .lead-visual picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 84% center; }
.lead-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,6,0) 18%, rgba(6,6,6,.55) 45%, rgba(6,6,6,.9) 68%, rgba(6,6,6,.97) 100%); }
.lead-visual--plain::after { display: none; }
.lead-visual__text { position: relative; z-index: 1; padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.lead-visual__text .lead { color: #C4C4C4; font-size: 17px; }
.lead-contacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lead-contacts a, .lead-contacts li > span { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #FFFFFF; }
.lead-contacts .ico { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.lead-contacts small { display: block; color: var(--fg-muted); font-size: 12px; margin-top: 3px; }
.lead-panel { background: #111111; border: 1px solid var(--line); padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; gap: 24px; }
.lead-panel__title { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 300; letter-spacing: -.01em; }
.form-done { display: flex; flex-direction: column; gap: 16px; margin: auto 0; }
.btn--wide { width: 100%; justify-content: center; min-height: 56px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) {
  .lead-cols { grid-template-columns: 1fr; }
  .lead-visual { min-height: 420px; }
  .lead-contacts { grid-template-columns: 1fr; }
}

/* Свой чекбокс: нативный белый квадрат на тёмном фоне режет глаз */
.check {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 22px; height: 22px; margin: 1px 0 0; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--bg-raised);
  display: grid; place-items: center; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.check::after {
  content: ""; width: 11px; height: 6px; border: solid #0B0B0B; border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease);
}
.check:checked { background: var(--accent); border-color: var(--accent); }
.check:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent--error .check { border-color: #E2725B; }
.icon-btn:disabled { opacity: .35; cursor: default; border-color: var(--line); color: var(--fg-muted); }

/* ==========================================================================
   Светлые секции: студийные снимки на белом. Переменные перекрашивают всё внутри.
   ========================================================================== */
.is-light, .pdp-hero--light, .pdp-block--light, .cat-list--light, .cat-hero--light {
  --bg: #FFFFFF;
  --bg-raised: #F5F4F1;
  --bg-sunken: #EFEEEA;
  --fg: #141414;
  --fg-muted: #5E5E5E;
  --line: rgba(20, 20, 20, .10);
  --line-strong: rgba(20, 20, 20, .24);
  --accent: #8A7346;      /* на белом золото темнее — контраст 4.6:1 */
  --accent-dim: #B9A57C;
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Хлебные крошки внутри героя ---------- */
.crumbs--inline { padding: 22px 0 30px; }
.crumbs--inline ol { gap: 10px; }

/* ==========================================================================
   Товарная страница
   ========================================================================== */
.pdp-hero { padding-bottom: clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); }
.pdp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.pdp-stage { position: relative; aspect-ratio: 4 / 3; background: #000; overflow: hidden; display: grid; place-items: center; }
.pdp-stage img { width: 100%; height: 100%; object-fit: contain; }
.pdp-stage--light { background: #FFFFFF; }
.pdp-stage--light img { padding: 4%; }

.pdp-info { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 22px; }
.pdp-info__title { margin: 0; font-weight: 300; font-size: clamp(32px, 3.3vw, 52px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.pdp-info__sub { margin: 0; font-size: 19px; line-height: 1.45; color: var(--fg); }
.pdp-info__lead { margin: 0; color: var(--fg-muted); font-size: 16px; line-height: 1.7; }
.pdp-info__actions { display: grid; gap: 12px; margin-top: 6px; }
.pdp-info__actions .btn { justify-content: center; }
.pdp-info__meta { list-style: none; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--fg-muted); }
.pdp-info__meta li { display: flex; gap: 10px; align-items: flex-start; }
.pdp-info__meta .ico { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.pdp-info__meta a { color: var(--fg); font-weight: 600; }

/* Исполнения: M78 → Swarovski → Tourbillon */
.variants { display: flex; flex-direction: column; gap: 12px; }
.variants__label { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.variants__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.variant { display: flex; flex-direction: column; gap: 8px; color: var(--fg-muted); font-size: 13px; }
.variant__thumb { aspect-ratio: 4 / 3; background: #000; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; transition: border-color .25s var(--ease); }
.variant__thumb--light { background: #FFFFFF; }
.variant__thumb img { width: 100%; height: 100%; object-fit: contain; }
.variant:hover { color: var(--fg); }
.variant:hover .variant__thumb { border-color: var(--line-strong); }
.variant.is-current { color: var(--fg); }
.variant.is-current .variant__thumb { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* Полоса главного */
.highlights { border-bottom: 1px solid var(--line); }
.highlights__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.highlights__item { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: clamp(28px, 3.5vw, 48px) 28px clamp(28px, 3.5vw, 48px) 0; border-right: 1px solid var(--line); }
.highlights__item + .highlights__item { padding-left: 28px; }
.highlights__item:last-child { border-right: 0; }
.highlights__value { font-weight: 200; font-size: clamp(38px, 4.4vw, 68px); line-height: .95; letter-spacing: -.03em; color: var(--fg); }
.highlights__value--long { font-weight: 300; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.25; letter-spacing: -.005em; }
.highlights__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }

/* Блоки особенностей: светлая или тёмная секция по снимку */
.pdp-block { padding-block: clamp(72px, 9vw, 144px); }
.pdp-block--dark + .pdp-block--dark, .pdp-block--light + .pdp-block--light { padding-top: 0; }
.pdp-block__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.pdp-block__grid.is-reverse .pdp-block__media { order: 2; }
.pdp-block__media { display: grid; place-items: center; }
.pdp-block__media img { width: 100%; height: auto; max-height: 640px; object-fit: contain; }
.pdp-block__text { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.pdp-block__title { margin: 0; font-weight: 300; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.pdp-block__body { margin: 0; color: var(--fg-muted); font-size: 17px; line-height: 1.7; }

/* Характеристики */
.pdp-specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.pdp-specs__head { position: sticky; top: 112px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.spec-table { margin: 0; border-top: 1px solid var(--line); }
.spec-table__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--fg-muted); font-size: 15px; }
.spec-table dd { margin: 0; font-size: 16px; color: var(--fg); }

@media (max-width: 960px) {
  .pdp-hero__grid, .pdp-block__grid, .pdp-specs { grid-template-columns: 1fr; }
  .pdp-info, .pdp-specs__head { position: static; }
  .pdp-block__grid.is-reverse .pdp-block__media { order: 0; }
  .highlights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights__item { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 16px 24px 0; }
  .highlights__item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .highlights__item + .highlights__item:nth-child(odd) { padding-left: 0; }
}
@media (max-width: 560px) {
  .spec-table__row { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   Раздел каталога
   ========================================================================== */
.cat-hero { position: relative; overflow: hidden; }
.cat-hero--dark { min-height: clamp(540px, 66vh, 780px); display: flex; }
.cat-hero__media { position: absolute; inset: 0; }
.cat-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,6,6,.9) 0%, rgba(6,6,6,.62) 40%, rgba(6,6,6,.15) 75%),
              linear-gradient(180deg, rgba(6,6,6,.55) 0%, rgba(6,6,6,0) 30%, rgba(6,6,6,.85) 100%);
}
.cat-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; }
.cat-hero--dark .cat-hero__inner { justify-content: space-between; padding-bottom: clamp(48px, 6vw, 88px); }
.cat-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.cat-hero--light .cat-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding-bottom: clamp(48px, 6vw, 88px); }
.cat-hero__text { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.cat-hero__title { font-size: clamp(40px, 5.4vw, 86px); }
.cat-hero--dark .lead { color: #C2C2C2; }
.cat-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 8px; }
.cat-hero__count { margin-right: 12px; font-size: 14px; color: var(--fg-muted); letter-spacing: .04em; }
.cat-hero__count b { font-weight: 300; font-size: 34px; color: var(--fg); margin-right: 6px; letter-spacing: -.02em; }
.cat-hero__stage { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.cat-hero__stage img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 960px) { .cat-hero--light .cat-hero__grid { grid-template-columns: 1fr; } }

.cat-list { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.cat-groups { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.chip span { color: var(--fg-muted); font-weight: 500; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.cat-group + .cat-group { margin-top: clamp(64px, 8vw, 112px); }
.cat-group__title { margin: 0 0 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-weight: 300; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.015em; }

.pgrid { display: grid; gap: 20px; }
.pgrid--c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgrid--c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .pgrid--c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pgrid--c2, .pgrid--c3 { grid-template-columns: 1fr; } }

.pcard { border: 1px solid var(--line); background: var(--bg); transition: border-color .3s var(--ease); }
.pcard:hover { border-color: var(--accent-dim); }
.pcard__link { display: flex; flex-direction: column; height: 100%; color: var(--fg); }
.pcard__link:hover { color: var(--fg); }
.pcard__media { aspect-ratio: 4 / 3; overflow: hidden; background: #000; display: grid; place-items: center; }
/* Кадр вписывается целиком: многие снимки — широкие коллажи 2:1, при обрезке по центру в кадр попадал пустой промежуток */
.pcard__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease); }
.pcard__media--light { background: #FFFFFF; }
.pcard__media--scene img { object-fit: cover; }
.pcard__media--light img { object-fit: contain; padding: 7%; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__body { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 28px; flex: 1; border-top: 1px solid var(--line); }
.pcard__series { font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent); }
.pcard__title { font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; line-height: 1.25; }
.pcard__sub { color: var(--fg-muted); font-size: 15px; line-height: 1.5; }
.pcard__specs { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--line); }
.pcard__spec { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pcard__spec span { color: var(--fg-muted); }
.pcard__spec b { font-weight: 500; text-align: right; }
.pcard__more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; }
.pcard__more .ico { color: var(--accent); transition: transform .3s var(--ease); }
.pcard:hover .pcard__more .ico { transform: translateX(6px); }

/* Сравнение моделей */
.compare { overflow-x: auto; border: 1px solid var(--line); }
.compare__table { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare__table th, .compare__table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.compare__table thead th { vertical-align: bottom; background: var(--bg-raised); }
.compare__table tbody th { width: 210px; color: var(--fg-muted); font-weight: 500; position: sticky; left: 0; background: #101010; }
.compare__table td.is-empty { color: #5A5A5A; }
.compare__prod { display: flex; flex-direction: column; gap: 12px; color: var(--fg); font-weight: 600; }
.compare__img { display: grid; place-items: center; aspect-ratio: 4 / 3; width: 100%; max-width: 220px; background: #000; overflow: hidden; }
.compare__img--light { background: #FFFFFF; }
.compare__img img { width: 100%; height: 100%; object-fit: contain; }
.compare__img--light img { object-fit: contain; }
.compare__note { margin: 14px 0 0; font-size: 13px; color: var(--fg-muted); }

/* Текст раздела и вопросы */
.cat-info { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.cat-info__text h2 { margin: 0 0 20px; font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -.015em; color: var(--fg); }
.faq__title { margin: 0 0 12px; font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.015em; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0;
  font-size: 18px; font-weight: 500; line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: var(--accent); transition: transform .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item p { margin: 0 0 22px; color: var(--fg-muted); line-height: 1.7; max-width: 62ch; }
.faq__item summary:hover { color: var(--accent); }
@media (max-width: 960px) { .cat-info { grid-template-columns: 1fr; } }

/* ==========================================================================
   Главная: дизайнерские серии и плашка «Серии умного дома»
   ========================================================================== */
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .sgrid { grid-template-columns: 1fr; } }
.gcard__media--wide { aspect-ratio: 4 / 3; }
.gcard__media--light { background: #FFFFFF; }
.gcard__media--light img { object-fit: contain; padding: 8%; }
.plaque { border: 1px solid var(--line-strong); background: #111111; padding: clamp(28px, 4.4vw, 72px); }
.plaque__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(32px, 4vw, 56px); }

/* Юридические тексты: читаемая колонка, заголовки разделов */
.legal { max-width: 78ch; }
.legal h2 { margin: 2.2em 0 .7em; font-weight: 400; font-size: clamp(21px, 1.9vw, 26px); color: var(--fg); letter-spacing: -.01em; }
.legal h2:first-of-type { margin-top: 1.2em; }
.legal ul { margin: 0 0 1.1em; padding-left: 1.2em; color: var(--fg-muted); }
.legal li { margin-bottom: .5em; }

/* ==========================================================================
   О бренде
   ========================================================================== */
.about-hero { position: relative; min-height: clamp(560px, 78vh, 860px); display: flex; overflow: hidden; }
.about-hero__media { position: absolute; inset: 0; }
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.about-hero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,6,6,.85) 0%, rgba(6,6,6,.45) 45%, rgba(6,6,6,.1) 80%),
              linear-gradient(180deg, rgba(6,6,6,.5) 0%, rgba(6,6,6,0) 30%, rgba(6,6,6,.9) 100%); }
.about-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; width: 100%; padding-bottom: clamp(56px, 7vw, 104px); }
.about-hero__text { max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.about-hero__title { font-size: clamp(64px, 11vw, 168px); font-weight: 200; letter-spacing: -.045em; line-height: .9; }
.about-hero .lead { color: #C8C8C8; }

.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.statement__text { display: flex; flex-direction: column; gap: 22px; }
.statement__lead { margin: 0; font-weight: 300; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.25; letter-spacing: -.015em; color: var(--fg); }
.statement__lead b { font-weight: 600; }
.statement__media { margin: 0; }
.statement__media img { width: 100%; height: auto; }
@media (max-width: 900px) { .statement { grid-template-columns: 1fr; } }

.awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); }
.award { margin: 0; border: 1px solid var(--line); display: flex; flex-direction: column; }
.award__media { aspect-ratio: 2 / 1; background: #FFFFFF; display: grid; place-items: center; overflow: hidden; }
.award__media img { width: 100%; height: 100%; object-fit: contain; }
.award figcaption { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 28px; border-top: 1px solid var(--line); }
.award figcaption b { font-size: 20px; font-weight: 500; }
.award figcaption span { color: var(--fg-muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 860px) { .awards { grid-template-columns: 1fr; } }

.partners { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 104px); }
.partner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.partner.is-reverse .partner__media { order: 2; }
.partner__media { aspect-ratio: 4 / 3; overflow: hidden; background: #000; display: grid; place-items: center; }
.partner__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.partner__media--light { background: #FFFFFF; }
.partner__media--light img { object-fit: contain; padding: 6%; }
.partner:hover .partner__media img { transform: scale(1.03); }
.partner__text { display: flex; flex-direction: column; gap: 18px; max-width: 480px; }
.partner__name { margin: 0; font-weight: 300; font-size: clamp(30px, 3.2vw, 48px); letter-spacing: -.02em; line-height: 1.05; }
.partner__text p { margin: 0; color: var(--fg-muted); font-size: 17px; line-height: 1.7; }
@media (max-width: 900px) { .partner { grid-template-columns: 1fr; } .partner.is-reverse .partner__media { order: 0; } }

.showroom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: end; }
.showroom__text { display: flex; flex-direction: column; gap: 22px; }
.showroom .spec-table dd a { color: var(--fg); }
.showroom .spec-table dd a:hover { color: var(--accent); }
@media (max-width: 900px) { .showroom { grid-template-columns: 1fr; } }

/* ==========================================================================
   Контакты
   ========================================================================== */
.contact-hero { padding-bottom: clamp(56px, 7vw, 104px); }
.contact-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: stretch; }

/* Контакты как визитка: обычный кегль, без стрелок и подписей-пустышек */
.contact-card { display: flex; flex-direction: column; gap: 36px; padding-top: 8px; }
.contact-card__title { margin: 0; font-weight: 300; font-size: clamp(34px, 3.6vw, 54px); line-height: 1.08; letter-spacing: -.02em; }
.contact-card__address { font-style: normal; font-size: 19px; line-height: 1.6; color: var(--fg); }
.contact-card__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-card__list dt { font-size: 13px; color: var(--fg-muted); margin-bottom: 4px; }
.contact-card__list dd { margin: 0; font-size: 17px; }
.contact-card__list a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.contact-card__list a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.contact-map { position: relative; min-height: 540px; overflow: hidden; background: #141414; }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  /* светлую карту приглушаем под тёмную тему */
  filter: grayscale(1) invert(.9) contrast(.9) brightness(.95); }
@media (max-width: 960px) { .contact-hero__grid { grid-template-columns: 1fr; } .contact-map { min-height: 360px; } }
@media (max-width: 480px) { .contact-card__list { grid-template-columns: 1fr; } }

.requisites { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; align-items: baseline; }
.requisites__title { margin: 0; font-size: 13px; color: var(--fg-muted); }
.requisites__text { margin: 0; font-size: 15px; line-height: 1.7; color: var(--fg-muted); max-width: 90ch; }
.requisites__text a { color: var(--fg); }
@media (max-width: 760px) { .requisites { grid-template-columns: 1fr; } }

/* Награждённые изделия: разная ширина кадров, подпись как в экспозиции */
.awarded { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) 20px; }
.awarded__item { grid-column: span 5; display: flex; flex-direction: column; color: var(--fg); }
.awarded__item.is-wide { grid-column: span 7; }
.awarded__media { display: block; height: clamp(300px, 34vw, 500px); overflow: hidden; background: #FFFFFF; margin-bottom: 18px; }
.awarded__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.awarded__item:hover .awarded__media img { transform: scale(1.03); }
.awarded__name { font-size: 17px; }
.awarded__prize { font-size: 14px; color: var(--fg-muted); margin-top: 4px; }
.awarded__item:hover .awarded__name { color: var(--accent); }
@media (max-width: 760px) {
  .awarded { grid-template-columns: 1fr; }
  .awarded__item, .awarded__item.is-wide { grid-column: auto; }
  .awarded__media { height: auto; aspect-ratio: 4 / 3; }
}
