/* =========================================================
   GST.BY — «Голден Стоун»
   Дизайн-система в стиле Savoia Marmi:
   тёмная тема, золотой акцент, Inter + JetBrains Mono
   ========================================================= */

:root {
  /* ---- Палитра Savoia (точные значения) ---- */
  --bg-dark:    #1a1a1a;
  --bg-dark-alt:#242424;
  --bg-light:   #ffffff;
  --bg-light-alt:#f2f2f2;

  --accent:      #C9A227;   /* золото сайта */
  --accent-dark: #9A7B1E;   /* тёмная вариация для активных состояний */
  --accent-soft: #D9B44A;   /* светлее акцента: мелкие метки и нумерация на тёмном */

  /* ---- Алиасы для существующей разметки (тёмная тема по умолчанию) ---- */
  --bg:     var(--bg-dark);
  --paper:  var(--bg-dark-alt);   /* карточки / поверхности */
  --ink:    #e9e9e9;              /* основной текст / заголовки */
  --dim:    #c9c9c9;              /* вторичный текст */
  --muted:  #8c8c8c;              /* приглушённый текст */
  --line:   rgba(255,255,255,.14);/* разделители / границы */

  /* ---- Шрифты ---- */
  --font-heading:'Inter', system-ui, sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, monospace;
  --font-serif:  'Inter', system-ui, sans-serif; /* курсив на заголовках */

  /* ---- Типографика / трекинг ---- */
  --tracking-tight: -0.025em;
  --tracking-caps:  0.12em;
  --fs-display: clamp(2rem, 4.8vw, 4.125rem);
  --fs-h2:      clamp(1.8rem, 3.4vw, 3rem);
  --fs-eyebrow: 0.7rem;

  --ease-reveal: cubic-bezier(.33,1,.68,1);

  --container: 1280px;
  --radius: 0px;   /* прямые углы, как у Savoia */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--dim);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga" 1, "kern" 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.serif { font-family: var(--font-serif); }
.mono { font-family: var(--font-mono); }

.container { width: min(var(--container), 92%); margin-inline: auto; }
section { position: relative; background: var(--bg-dark); }

/* ---------- Типографика / утилиты ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 400;
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); display: inline-block; }
.h-display {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  font-size: var(--fs-display);
  color: var(--ink);
}
.h-display em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent-soft);
}
.lead { color: var(--dim); font-size: 17px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 38px; border: 1px solid var(--ink);
  font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
  border-radius: 0;
}
.btn-gold { border-color: var(--ink); }
.btn-gold:hover { background: var(--accent); border-color: var(--accent); color: #241F18; }
.btn-ghost { border-color: var(--accent-soft); color: var(--accent-soft); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent); color: #241F18; }
.btn-lg { padding: 18px 46px; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(26,26,26,.85); backdrop-filter: blur(16px) saturate(160%); border-color: var(--line); }
/* Три зоны: логотип (центр левой зоны) | меню (центр) | телефон (справа).
   header-in растянут на всю ширину, чтобы логотип вставал в центр пустоты
   между краем окна и меню. */
.header-in { height: 82px; width: 100%; max-width: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 0 40px; }
.brand { display: inline-flex; align-items: center; justify-self: center; }
.brand img { height: 60px; width: auto; display: block; }
.brand b { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 16px; color: var(--ink); }
.brand small { display: block; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.brand-foot img { height: 46px; }
.nav { display: flex; gap: 12px; }
.nav a { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: color .3s; }
.nav a:hover, .nav a.active { color: var(--accent-soft); }
.header-cta { display: flex; align-items: center; gap: 16px; justify-self: end; }
.header-phone { font-weight: 700; font-size: 13px; color: var(--ink); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero: «этажерка слабов» (rastrelliera) ---------- */
.hero { position: relative; height: 130vh; background: #0f1013; color: #fff; }
.hero-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-image { position: absolute; inset: 0; }
.hero-rastrelliera { position: absolute; inset: 0; perspective: 900px; perspective-origin: 50% 42%; overflow: hidden; }
.hero-palco { position: absolute; inset: -20% -40%; transform: rotateY(-18deg) rotateX(4deg); transform-origin: 42% 50%; }
.hero-fila {
  position: absolute; left: 30%; top: 52%; display: flex; align-items: center; gap: 28px;
  width: max-content; will-change: transform; animation: hero-slide 120s linear infinite;
}
.hero-fila figure {
  flex: none; width: 38vw; height: 44vh; overflow: hidden;
  box-shadow: 16px 0 34px rgba(0,0,0,.6);
}
.hero-fila img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) brightness(.9); }
@keyframes hero-slide {
  from { transform: translateY(-50%) translateX(0); }
  to   { transform: translateY(-50%) translateX(-50%); }
}
/* Мобильная версия hero: кадры остаются ГОРИЗОНТАЛЬНЫМИ, как на десктопе.
   На телефоне формула 38vw x 44vh превращает каждый кадр в вертикальный
   (vw мал, vh велик), поэтому на мобильном задаём явное соотношение сторон.
   Слоган скрыт (visibility:hidden — его место остаётся пустым, кнопки не
   сдвигаются), а лента поднята в этот освободившийся промежуток.
   Чтобы «кинолента» выглядела как на компьютере (видно сразу несколько
   кадров и заметна прокрутка), кадры делаем уже — 30vw (~3 кадра на
   экране), анимация hero-slide 120s остаётся той же, что и на десктопе. */
@media (max-width: 760px) {
  .hero-fila {
    left: 0; top: 55%; gap: 12px;
    animation-duration: 40s;  /* тот же бесшовный цикл, но заметно быстрее,
                                 т.к. набор кадров на телефоне короче */
  }
  .hero-fila figure {
    width: 30vw;
    height: auto;
    aspect-ratio: 7 / 5;   /* ~1.4:1 — как горизонтальные кадры десктопа */
  }
  .hero-tagline { visibility: hidden; }
}
.hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,8,8,.18), rgba(8,8,8,.02) 46%, rgba(8,8,8,.20) 74%, rgba(8,8,8,.36)); }
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 110px clamp(22px, 5vw, 64px) 90px; }
.hero-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 24px; font-weight: 400; }
.hero-title { font-weight: 800; text-transform: uppercase; line-height: .98; letter-spacing: var(--tracking-tight); font-size: clamp(40px, 7vw, 86px); }
.hero-title .acc { color: var(--accent-soft); }
.hero-tagline {
  font-style: italic; font-size: clamp(19px, 2.2vw, 25px);
  color: var(--dim); max-width: 640px; margin-top: 26px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }
.btn-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-light:hover { border-color: var(--accent-soft); color: var(--accent-soft); background: transparent; }
.hero-scroll-cue {
  position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--dim); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
}
.hero-scroll-cue:hover { color: var(--accent-soft); }

/* Полновысотная параллакс-вставка (как у Savoia) */
.parallax-band {
  position: relative; height: 72vh; min-height: 420px;
  background-size: cover; background-position: center;
  background-attachment: fixed;
  display: grid; place-items: center;
}
.parallax-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,16,19,.35), rgba(15,16,19,.75));
}
.parallax-band .pb-inner { position: relative; z-index: 1; color: #fff; text-align: center; padding: 0 24px; }
.parallax-band .pb-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 16px; }
.parallax-band h2 { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-tight); font-size: clamp(24px, 4vw, 44px); color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.55); line-height: 1.05; }
.parallax-band p { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.75); }
@media (max-width: 760px) { .parallax-band { background-attachment: scroll; } }

/* О компании (split) */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about .media { position: relative; }
.about .media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about .media::after { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid var(--line); z-index: -1; }
.about .check { margin-top: 26px; display: grid; gap: 14px; }
.about .check li { display: flex; gap: 14px; color: var(--dim); font-size: 15px; }
.about .check li::before { content: "—"; color: var(--accent-soft); font-weight: 700; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- Секции с тонкими линиями ---------- */
.sec { border-bottom: 1px solid var(--line); padding: clamp(64px, 9vw, 100px) 0; }
.sec.center { text-align: center; }
.sec.center .lead { margin-inline: auto; }
.sec-head { margin-bottom: clamp(34px, 5vw, 56px); }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head .copy { color: var(--dim); max-width: 560px; margin-top: 22px; font-size: 15px; }
.sec.center .sec-head .copy { margin-inline: auto; }

/* Нумерованные карточки (что мы делаем) */
.caps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 60px; border-top: 1px solid var(--line); }
.cap { display: flex; gap: 22px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cap .num { font-family: var(--font-mono); font-weight: 500; color: var(--accent-soft); font-size: 14px; min-width: 34px; }
.cap h3 { font-size: 15px; letter-spacing: .04em; font-weight: 700; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.cap p { color: var(--muted); font-size: 14px; }

/* Услуги на главной */
.svc-strip { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc-item { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: var(--panel); text-decoration: none; transition: border-color .2s, transform .2s; }
.svc-item:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.svc-item span { font-family: var(--font-mono); color: var(--accent-soft); font-size: 12px; }
.svc-item h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin: 8px 0 6px; text-transform: uppercase; letter-spacing: .03em; }
.svc-item p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 10px; }
.svc-item b { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-soft); font-weight: 500; }
@media (max-width: 1024px) { .svc-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .svc-strip { grid-template-columns: 1fr; } }

/* Баннер Instagram на странице работ */
.ig-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px; margin: 26px 0 8px; background: var(--panel); }
.ig-banner h3 { font-size: 20px; margin: 6px 0 6px; }
.ig-banner p { color: var(--dim); font-size: 14px; line-height: 1.6; margin: 0; max-width: 520px; }

/* Преимущества */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.card { padding: 34px 26px; border: 1px solid var(--line); background: var(--paper); text-align: center; transition: border-color .3s, transform .3s; }
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card .ico { font-size: 30px; color: var(--accent-soft); }
.card h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 14px; }

/* Номенклатура */
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tag { padding: 14px 24px; border: 1px solid var(--line); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); transition: .3s; }
.tag:hover { border-color: var(--accent-soft); color: var(--ink); }

/* Каталог-превью */
.preview-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--line); margin: 44px 0; }
.preview-strip a { position: relative; overflow: hidden; aspect-ratio: 3/4; border-right: 1px solid var(--line); }
.preview-strip a:last-child { border-right: 0; }
.preview-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.preview-strip a:hover img { transform: scale(1.05); }
.preview-strip span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.cta-row { text-align: center; }

/* Галерея работ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.gal-item { overflow: hidden; cursor: zoom-in; }
.gal-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .5s; }
.gal-item:hover img { transform: scale(1.04); }
.gal-item .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); margin-top: 12px; }
.gal-item h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 4px; }

/* Как мы работаем (шаги) */
.steps { margin-top: 44px; }
.step { display: grid; grid-template-columns: 150px 1fr 260px; gap: 34px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.step .no { font-family: var(--font-mono); font-weight: 500; color: var(--accent-soft); letter-spacing: .1em; font-size: 12px; text-transform: uppercase; }
.step h3 { font-size: 18px; font-weight: 700; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; max-width: 440px; }
.step img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 70px); align-items: start; }
.contact-list { display: grid; gap: 20px; margin-top: 30px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-item .ico { color: var(--accent-soft); font-size: 18px; min-width: 26px; }
.contact-item a { font-weight: 700; font-size: 17px; color: var(--ink); }
.contact-item a:hover { color: var(--accent-soft); }
.contact-item small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.socials { display: flex; gap: 14px; margin-top: 26px; }
.socials a { position: relative; width: 48px; height: 48px; border: 1px solid var(--line); display: block; font-size: 0; color: var(--muted); transition: .3s; }
.socials a:hover { border-color: var(--accent-soft); color: var(--ink); }
/* Настоящие брендовые иконки (SVG через mask) вместо юникод-глифов.
   Абсолютное центрирование гарантирует идеальную посадку иконки в квадрате. */
.socials a::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask-image: var(--ic);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--ic);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.socials a[data-contact-link="instagram"] { --ic: url("../img/social/instagram.svg"); }
.socials a[data-contact-link="whatsapp"] { --ic: url("../img/social/whatsapp.svg"); }
.socials a[data-contact-link="telegram"] { --ic: url("../img/social/telegram.svg"); }
.socials a[data-contact-link="viber"] { --ic: url("../img/social/viber.svg"); }

/* Форма */
.form-card { border: 1px solid var(--line); background: var(--paper); padding: clamp(28px, 4vw, 44px); }
.form-card h3 { font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.form-card > p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; background: var(--bg-dark-alt); border: 1px solid var(--line); color: var(--ink);
  font-size: 15px; font-family: inherit; border-radius: 0; transition: border-color .3s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--accent); }
.form-msg { display: none; padding: 13px; border: 1px solid var(--line); margin-top: 6px; font-size: 14px; }
.form-msg.ok { display: block; border-color: #7aa584; color: #9cc8a6; }
.privacy { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- Каталог: «полка слабов» (как у Savoia) ---------- */
.cat-head { margin-bottom: clamp(40px, 6vw, 60px); max-width: 760px; }
.cat-head .lead { margin-top: 20px; max-width: 600px; }

.slab-shelf {
  display: flex; flex-direction: row; align-items: stretch; gap: 4px;
  height: 560px; margin-top: clamp(28px, 4vw, 48px);
}
.slab-shelf .slab {
  position: relative; overflow: hidden; cursor: pointer;
  flex: 0.7; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--bg-dark-alt); border: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  padding: 38px 28px;
  transition: flex .8s var(--ease-reveal), background .4s ease, border-color .4s ease;
}
.slab-shelf .slab.active { flex: 3.6; background: var(--bg-dark); border-bottom-color: var(--accent); }

.slab-shelf .slab-img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s var(--ease-reveal);
}
.slab-shelf .slab.active .slab-img { opacity: 1; }
.slab-shelf .slab::after {
  content: ''; position: absolute; inset: 0; z-index: 1; opacity: 0;
  transition: opacity .8s var(--ease-reveal); pointer-events: none;
  background: linear-gradient(0deg, rgba(10,8,6,.94) 0%, rgba(10,8,6,.68) 50%, rgba(10,8,6,.35) 100%);
}
.slab-shelf .slab.active::after { opacity: 1; }

.slab-num {
  position: absolute; top: 18px; left: 20px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--muted);
}
.slab-shelf .slab.active .slab-num { color: var(--accent-soft); }

.slab-body { position: relative; z-index: 2; }
.slab-shelf .slab h3 {
  margin: 0; text-transform: uppercase; font-weight: 400;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .94rem; letter-spacing: var(--tracking-caps); line-height: 1.3;
  color: var(--dim); max-height: 460px;
}
.slab-shelf .slab.active h3 {
  writing-mode: horizontal-tb; transform: none; font-weight: 700;
  font-size: clamp(18px, 2vw, 26px); letter-spacing: var(--tracking-tight);
  color: #fff; margin-bottom: 16px; max-height: none;
  /* Название бренда — всегда в одну строку (Noblle Quartz, SmartQuartz) */
  white-space: nowrap;
}
.slab-shelf .slab p { color: var(--surface-text-dim, #c9c9c9); font-size: .95rem; max-width: 440px; }
.slab-shelf .slab-link {
  display: inline-block; margin-top: 16px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-soft);
  border-bottom: 1px solid var(--accent); padding-bottom: 3px;
}
.slab-shelf .slab:not(.active) p,
.slab-shelf .slab:not(.active) .slab-link { opacity: 0; max-height: 0; overflow: hidden; margin-top: 0; }
.slab-shelf .slab p,
.slab-shelf .slab-link { transition: opacity .45s ease, max-height .6s var(--ease-reveal); }

@media (max-width: 1023px) {
  .slab-shelf { height: 62vh; min-height: 380px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 4px; }
  /* Узкие экраны: слаб должен целиком влезать в окно даже в раскрытом виде,
     иначе последние бренды (caesarstone, smartquartz) обрезаются справа. */
  .slab-shelf .slab { flex: 0 0 62%; scroll-snap-align: center; }
  .slab-shelf .slab.active { flex: 0 0 84%; }
  .slab-shelf .slab h3 { writing-mode: horizontal-tb; transform: none; font-weight: 700; font-size: 20px; letter-spacing: var(--tracking-tight); color: #fff; }
  /* Очень узкие экраны: разрешаем перенос названия, чтобы оно не обрезалось */
  .slab-shelf .slab.active h3 { white-space: normal; }
  .slab-shelf .slab p { display: block; }
  .slab-shelf .slab:not(.active) p,
  .slab-shelf .slab:not(.active) .slab-link { opacity: 1; max-height: none; }
  .slab-shelf .slab-img { opacity: 1; }
  .slab-shelf .slab::after { opacity: 1; }
}

/* ---------- Каталог ---------- */
.catalog-hero { padding: 150px 0 40px; }
/* Шапка фиксированная (82px) — hero-секции должны начинаться ниже неё,
   иначе eyebrow/заголовки попадают под логотип. Специфичность body … выше,
   поэтому правило перекрывает inline-стили страниц и генераторов. */
body .svc-hero, body .blog-hero, body .col-hero, body .brand-hero, body .stone-hero {
  padding-top: 130px;
}
.catalog-tools { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 34px; }
.filters { display: flex; gap: 0; flex-wrap: wrap; }
.filter-btn {
  padding: 12px 20px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-right: -1px; transition: .3s;
}
.filter-btn:hover { color: var(--ink); border-color: var(--accent-soft); }
.filter-btn.active { background: var(--accent-dark); color: #241F18; border-color: var(--accent-dark); }
.search {
  padding: 13px 18px; border: 1px solid var(--line); background: var(--bg-dark-alt); color: var(--ink);
  font-size: 14px; font-family: inherit; width: 100%; max-width: 340px; border-radius: 0;
}
.search::placeholder { color: var(--muted); }
.search:focus { outline: none; border-color: var(--accent); }
.result-count { color: var(--muted); font-size: 13px; margin-top: 20px; letter-spacing: .04em; }
.result-count b { color: var(--ink); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.stone { border: 1px solid var(--line); background: var(--paper); overflow: hidden; transition: border-color .3s; cursor: pointer; }
.stone:hover { border-color: var(--accent); }
.stone .img { aspect-ratio: 4/4.8; overflow: hidden; position: relative; background: var(--bg-dark-alt); }
.stone .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.stone:hover .img img { transform: scale(1.05); }
.stone .img.no-photo { display: grid; place-items: center; }
.stone .img.no-photo span { font-family: var(--font-heading); font-weight: 800; font-size: 52px; color: rgba(255,255,255,.07); line-height: 1; }
.stone .ph-count {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  min-width: 24px; padding: 3px 7px; border-radius: 999px;
  background: var(--accent); color: #241F18; font-family: var(--font-mono);
  font-size: 11px; text-align: center;
}
.stone .meta { padding: 16px 18px 20px; border-top: 1px solid var(--line); }
.stone .meta b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.stone .meta span { font-family: var(--font-mono); font-size: 10px; color: var(--accent-soft); text-transform: uppercase; letter-spacing: .14em; font-weight: 500; }
.stone .meta small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }

/* ---------- Модалка камня (фото + примеры работ) ---------- */
body.no-scroll { overflow: hidden; }

/* Ссылка на отдельную страницу камня (карточка каталога) */
.stone-link {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  color: var(--accent-soft); text-transform: uppercase;
}
.stone-link:hover { color: var(--ink); text-decoration: underline; }
.stone-modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; flex-direction: column;
  background: rgba(10,10,10,.94); padding: 30px;
}
.stone-modal.open { display: flex; }
.sm-title {
  color: #fff; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: .06em; margin-bottom: 16px; text-align: center;
}
.sm-title small { color: var(--accent-soft); text-transform: uppercase; letter-spacing: .12em; }
.sm-close {
  position: absolute; top: 18px; right: 24px; background: none; border: 0;
  color: #fff; font-size: 38px; line-height: 1; cursor: pointer;
}
.sm-stage { position: relative; width: min(920px, 94vw); max-height: 70vh; }
.sm-frame { width: 100%; height: 62vh; overflow: hidden; background: #000; }
.sm-frame img { width: 100%; height: 100%; object-fit: contain; }
.sm-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 70px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 28px; cursor: pointer; transition: background .3s;
}
.sm-nav:hover { background: var(--accent); border-color: var(--accent); color: #241F18; }
.sm-prev { left: -58px; }
.sm-next { right: -58px; }
.sm-thumbs { display: flex; gap: 8px; margin-top: 14px; max-width: min(920px, 94vw); overflow-x: auto; padding-bottom: 4px; }
.sm-thumb { flex: none; width: 74px; height: 56px; border: 2px solid transparent; background: #000; overflow: hidden; padding: 0; cursor: pointer; }
.sm-thumb.active { border-color: var(--accent); }
.sm-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .sm-prev { left: 6px; }
  .sm-next { right: 6px; }
  .sm-stage { max-height: 62vh; }
}
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty .big { font-size: 44px; margin-bottom: 12px; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.92); padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; }
.lightbox button { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 34px; }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 30px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; margin-bottom: 40px; }
.foot-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); margin-bottom: 16px; }
.foot-grid a, .foot-grid p { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color .3s; }
.foot-grid a:hover { color: var(--accent-soft); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* Плавающие кнопки */
.float-actions { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; gap: 12px; }
.float-actions a { position: relative; width: 52px; height: 52px; border-radius: 50%; display: block; color: #fff; font-size: 0; box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); transition: transform .3s; }
.float-actions a:hover { transform: translateY(-4px); }
.fa-wa { background: #25d366; }
.fa-tg { background: #229ed9; }
.fa-call { background: var(--accent); }
/* Настоящие брендовые иконки в плавающих кнопках.
   Абсолютное центрирование — иконка строго по центру круга. */
.float-actions a::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask-image: var(--ic);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--ic);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
.fa-wa::before { --ic: url("../img/social/whatsapp.svg"); }
.fa-tg::before { --ic: url("../img/social/telegram.svg"); }
.fa-call::before { --ic: url("../img/social/phone.svg"); }

/* Появление при скролле — «в фокус» (размытие → резкость), как у Savoia */
.reveal { opacity: .3; filter: blur(2.5px); transition: opacity .8s var(--ease-reveal), filter .8s var(--ease-reveal); }
.reveal.in { opacity: 1; filter: none; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1024px) {
  .caps, .cards-3 { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 120px 1fr; }
  .step img { grid-column: 1 / -1; aspect-ratio: 16/9; }
  .preview-strip { grid-template-columns: repeat(3, 1fr); }
  .preview-strip a { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1300px) {
  .header-in { gap: 16px; padding: 0 24px; }
  .nav { gap: 10px; }
  .nav a { font-size: 10.5px; }
  .brand img { height: 52px; }
}
@media (max-width: 760px) {
  .header-in { display: flex; justify-content: space-between; }
  .brand img { height: 48px; }
  .nav { position: fixed; inset: 82px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--bg-dark); padding: 20px 6vw 30px; transform: translateY(-130%); transition: transform .3s; }
  .nav.open { transform: none; }
  .nav a { font-size: 16px; padding: 8px 0; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .caps, .cards-3, .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 30px; }
  .step { grid-template-columns: 1fr; gap: 14px; }
  .catalog-hero { padding-top: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; filter: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Поставщики (suppliers.html) — таблица сравнения и карточки
   ========================================================= */
.sup-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: -6px 0 6px; }
.sup-chip {
  padding: 10px 16px; border: 1px solid var(--line);
  font-size: 12px; letter-spacing: .06em; color: var(--dim);
  transition: border-color .3s, color .3s;
}
.sup-chip:hover { border-color: var(--accent-soft); color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
.sup-table { width: 100%; min-width: 1080px; border-collapse: collapse; font-size: 14px; }
.sup-table th {
  text-align: left; padding: 16px 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-soft); font-weight: 500;
  border-bottom: 1px solid var(--line); background: var(--bg-dark);
}
.sup-table td {
  padding: 15px 18px; vertical-align: top; color: var(--dim);
  border-bottom: 1px solid var(--line); line-height: 1.55;
}
.sup-table tbody tr:last-child td { border-bottom: 0; }
.sup-table tbody tr:hover { background: var(--bg-dark-alt); }
.sup-table td b { color: var(--ink); }
.sup-table td:first-child { white-space: nowrap; font-weight: 600; }
.sup-table td:last-child { white-space: nowrap; color: var(--ink); font-family: var(--font-mono); font-size: 13px; }
.sup-table td:last-child b { color: var(--accent-soft); }

.sup-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.sup-card { padding: 24px 22px; border: 1px solid var(--line); background: var(--paper); transition: border-color .3s, transform .3s; }
.sup-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.sup-card h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 8px; }
.sup-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Логотипы брендов (белая подложка, чтобы читались и тёмные, и светлые) */
.sup-logo { display: block; max-height: 34px; width: auto; margin: 0 auto 10px; background: #fff; border-radius: 6px; padding: 5px 10px; }
.sup-table td:first-child { text-align: center; }
.brand-logo { display: block; max-height: 44px; width: auto; margin: 0 auto 16px; background: #fff; border-radius: 8px; padding: 6px 12px; }
.brand-item .brand-logo { max-height: 36px; margin: 0 0 12px; }

@media (max-width: 760px) {
  .sup-table { font-size: 13px; }
  .sup-table th, .sup-table td { padding: 12px 14px; }
}

/* =========================================================
   Страница «Работы» — кино-лента (в духе Bugatti C-SEED)
   ========================================================= */
body.gallery-page { --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif; }

.works-tools {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; flex-wrap: wrap; margin-top: 34px;
}
.works-tools .result-count { margin-top: 0; }

.film { border-bottom: 0; padding-bottom: 0; }
.film-strip { position: relative; }

/* ---- Сцена ----
   По умолчанию сцены видны (работает даже без JS / со старым кэшем).
   Класс .anim-scenes добавляет свежая версия main.js при старте —
   тогда сцены скрываются и плавно проявляются через .in. */
.scene {
  padding: 0 0 clamp(10vh, 14vh, 140px);
  transition: opacity 1s var(--ease-reveal), transform 1s var(--ease-reveal);
}
.anim-scenes .scene {
  opacity: 0; transform: translateY(60px);
}
.scene.in { opacity: 1; transform: none; }
.scene.off { display: none; }

.scene-fig { position: relative; margin: 0; overflow: hidden; background: var(--bg-dark-alt); }
.scene-fig img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.88) brightness(.82);
  transform: scale(1.07);
  will-change: transform;
  transition: transform 2.2s var(--ease-reveal), filter .9s ease;
}
.scene.in .scene-fig img { transform: scale(1); filter: saturate(1) brightness(1); }
.scene.zoom .scene-fig img { animation: film-kenburns 32s ease-in-out infinite alternate; }

@keyframes film-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

/* ---- Раскладки сцен ---- */
.scene-wide .scene-fig { width: 100%; height: min(88vh, 960px); }
.scene-tall-l .scene-fig,
.scene-tall-r .scene-fig { width: min(58vw, 780px); height: min(92vh, 1040px); }
.scene-tall-l .scene-fig { margin-left: clamp(0px, 5vw, 80px); }
.scene-tall-r .scene-fig { margin-right: clamp(0px, 5vw, 80px); margin-left: auto; }

/* ---- Номер и метка сцены ---- */
.scene-num, .scene-tag {
  position: absolute; z-index: 3;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
}
.scene-num { top: 22px; left: clamp(20px, 4vw, 64px); color: var(--muted); }
.scene-tag { top: 22px; right: clamp(20px, 4vw, 64px); color: rgba(255,255,255,.6); }
.scene.in .scene-num { color: var(--accent-soft); }

/* ---- Подпись кадра ---- */
.scene-cap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: clamp(90px, 12vw, 170px) clamp(20px, 5vw, 84px) clamp(28px, 4vw, 56px);
  background: linear-gradient(180deg, transparent, rgba(8,8,8,.5) 52%, rgba(8,8,8,.92));
  pointer-events: none;
}
.scene-cap h3 {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--tracking-tight); line-height: 1.04;
  font-size: clamp(22px, 3.4vw, 46px); color: #fff;
}
.scene-cap h3 em {
  font-family: var(--font-serif); font-style: italic; text-transform: none;
  font-weight: 500; letter-spacing: 0; color: var(--accent-soft);
}
.scene-cap p {
  margin-top: 12px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.65);
}
.scene-stone-link {
  display: inline-block; margin-top: 14px; pointer-events: auto;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-soft);
  border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px;
}
.scene-stone-link:hover { color: #fff; border-bottom-color: var(--accent-soft); }

/* ---- Финал ленты ---- */
.scene-final {
  text-align: center; max-width: 780px; margin: 0 auto;
  padding: clamp(30px, 6vw, 70px) 0 clamp(60px, 9vw, 110px);
}
.scene-final-mark {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-soft); display: block; margin-bottom: 18px;
}
.scene-final .h-display { font-size: clamp(2rem, 5.4vw, 4.2rem); }
.scene-final .lead { margin: 22px auto 34px; max-width: 560px; }
.scene-final-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Полоса прогресса ленты ---- */
.film-progress {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: 3px; background: rgba(255,255,255,.07);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.film-progress i {
  display: block; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
}

.works-empty { text-align: center; padding: 40px 0 60px; color: var(--muted); }
.works-empty .big { font-size: 44px; margin-bottom: 12px; }

/* ---- Лайтбокс галереи работ ---- */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center;
  background: rgba(6,6,6,.96); padding: 30px;
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox .gl-close {
  position: absolute; top: 18px; right: 24px; z-index: 2;
  background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; cursor: pointer;
}
.gallery-lightbox .gl-prev, .gallery-lightbox .gl-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 80px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 32px;
  cursor: pointer; transition: background .3s;
}
.gallery-lightbox .gl-prev:hover, .gallery-lightbox .gl-next:hover { background: var(--accent); border-color: var(--accent); color: #241F18; }
.gallery-lightbox .gl-prev { left: 22px; }
.gallery-lightbox .gl-next { right: 22px; }
.gallery-lightbox .gl-stage { margin: 0; width: min(1100px, 92vw); max-height: 78vh; }
.gallery-lightbox .gl-stage img { width: 100%; max-height: 66vh; object-fit: contain; }
.gallery-lightbox .gl-stage figcaption { margin-top: 16px; text-align: center; }
.gallery-lightbox .gl-stage figcaption h3 {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--tracking-tight); font-size: 20px; color: #fff;
}
.gallery-lightbox .gl-stage figcaption h3 em {
  font-family: var(--font-serif); font-style: italic; text-transform: none;
  color: var(--accent-soft); font-weight: 500;
}
.gallery-lightbox .gl-stage figcaption p {
  margin-top: 6px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.gallery-lightbox .gl-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; color: var(--muted);
}

@media (max-width: 760px) {
  .scene { padding-bottom: 9vh; }
  .scene-wide .scene-fig { height: 72vh; }
  .scene-tall-l .scene-fig,
  .scene-tall-r .scene-fig { width: 100%; height: 80vh; margin: 0; }
  .scene-cap h3 { font-size: 20px; }
  .scene-tag { display: none; }
  .film-progress { display: none; }
  .gallery-lightbox { padding: 14px; }
  .gallery-lightbox .gl-prev { left: 6px; }
  .gallery-lightbox .gl-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scene-fig img { transform: none !important; animation: none !important; }
}

/* ---- Анонсы статей «Журнала» на главной ---- */
.blog-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.bp-card { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px;
  background: var(--panel); transition: border-color .2s, transform .2s; }
.bp-card:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.bp-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.bp-card h3 { font-size: 17px; line-height: 1.3; margin-bottom: 10px; }
.bp-card p { color: var(--dim); font-size: 14px; line-height: 1.55; }
@media (max-width: 860px) { .blog-preview { grid-template-columns: 1fr; } }

/* ---- Чипы подборок в каталоге ---- */
.collection-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.collection-chips a { border: 1px solid var(--line); color: var(--dim); padding: 6px 14px;
  font-size: 12px; border-radius: 20px; transition: border-color .2s, color .2s; }
.collection-chips a:hover { border-color: var(--accent-soft); color: var(--ink); }

/* ---- Баннер cookie ---- */
#cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  background: rgba(12,12,14,.96); border-top: 1px solid var(--line);
  padding: 14px 22px; display: none; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
#cookie-banner.show { display: flex; }
#cookie-banner p { max-width: 720px; font-size: 13px; color: var(--dim); line-height: 1.5; }
#cookie-banner a { color: var(--accent-soft); text-decoration: underline; }
#cookie-banner button { flex: none; }

/* =========================================================
   Center Sliding — галерея «Работы» в духе Bugatti C SEED
   Изолированный слой .cseed-*: не затрагивает остальной сайт
   ========================================================= */

/* ---- 1. Общий контейнер сцены ---- */
.cseed-sliding-gallery {
  position: relative;
  width: 100%;
  background-color: #000000;
  overflow: hidden;
}

/* ---- 2. Панели: один кадр = 100% высоты экрана ---- */
.cseed-panel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* ---- 3. Медиа-слой: фото заполняет панель целиком (object-fit: cover) ---- */
.cseed-media-holder {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}
.cseed-media-holder img,
.cseed-media-holder video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Лёгкая затемняющая вуаль для читаемости стеклянных карточек */
.cseed-media-holder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.07), rgba(0,0,0,0) 40%, rgba(0,0,0,.30));
}

/* Номер кадра */
.cseed-scene-num {
  position: absolute;
  top: 22px;
  right: 5%;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* ---- 4. Премиальная карточка из матового тёмного стекла ---- */
.cseed-info-card {
  position: absolute;
  z-index: 10;
  padding: 40px;
  max-width: 420px;
  box-sizing: border-box;
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(25px) saturate(120%);
  backdrop-filter: blur(25px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #E0E0E0;
  will-change: transform, opacity;
}
.cseed-card-tag {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.cseed-info-card h2,
.cseed-info-card h3 {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 400;
  color: #FFFFFF;
  font-size: clamp(20px, 2.1vw, 29px);
  line-height: 1.22;
}
.cseed-info-card h2 em,
.cseed-info-card h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--accent-soft);
}
.cseed-info-card p {
  margin: 0;
  color: #E0E0E0;
  font-weight: 300;
  line-height: 1.6;
  font-size: 15px;
}

/* ---- 5. Точное позиционирование карточек ---- */
.pos-top-left    { top: 12%; left: 5%; }
.pos-bottom-left { bottom: 12%; left: 5%; }

/* Панели, скрытые фильтром */
.cseed-panel.cseed-off { display: none; }

/* Сетка «Все работы» под слайдингом */
.works-grid-block { padding-top: clamp(40px, 6vw, 70px); }
.gallery-grid .gal-item { cursor: zoom-in; }
.gallery-grid .gal-item.off { display: none; }

/* Сцена активна (любая ширина, включая мобильные): панели «прилипают»
   к верху экрана и при прокрутке наезжают друг на друга — нативный
   sticky-стакинг, работает в любом браузере и встроенных окнах
   (без position:fixed). Класс .cseed-scene-on вешается на сам контейнер
   сцены (script.js); без него (no-JS) панели остаются обычным потоком —
   Fail-Safe. */
.cseed-sliding-gallery.cseed-scene-on { height: auto; overflow: visible; }
.cseed-scene-on .cseed-panel {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
}
.cseed-scene-on .cseed-info-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease-reveal), transform .8s var(--ease-reveal);
}
.cseed-scene-on .cseed-info-card.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Полоса прогресса сцены ---- */
.cseed-progress {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  width: 3px;
  background: rgba(255,255,255,.07);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.cseed-progress i {
  display: block;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
}

/* ---- Подписи внутри лайтбокса (карточка из панели) ---- */
.gallery-lightbox .gl-stage figcaption .cseed-card-tag {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.gallery-lightbox .gl-stage figcaption h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  font-size: 20px;
  color: #fff;
  margin: 0 0 6px;
}
.gallery-lightbox .gl-stage figcaption h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  color: var(--accent-soft);
  font-weight: 500;
}
.gallery-lightbox .gl-stage figcaption p {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* ---- 6. Fail-Safe Mobile (≤640px): стандартный поток документа ---- */
@media (max-width: 640px) {
  /* «Кино» сохраняется и на телефоне: панели липнут и наезжают друг на друга.
     Карточки остаются поверх фото (как на десктопе), но компактнее. */
  .cseed-info-card {
    padding: 22px 18px 26px;
    max-width: calc(100% - 28px);
  }
  .cseed-info-card h2,
  .cseed-info-card h3 { font-size: 18px; }
  .cseed-info-card p { font-size: 13px; }
  .pos-top-left { top: 9%; }
  .pos-bottom-left { bottom: 9%; }
  .cseed-scene-num { display: none; }
  .cseed-progress i { width: 3px; }
}

/* ---- Пониженная анимация: весь контент виден без эффектов ---- */
@media (prefers-reduced-motion: reduce) {
  .cseed-panel { clip-path: none !important; }
  .cseed-info-card { opacity: 1 !important; transform: none !important; }
  .cseed-progress { display: none; }
}