/* ============================================================
   BIG DAY – студия денежных картин
   Дизайн-система: near-black + тёплый LED-янтарь
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
  /* Поверхности */
  --bg:          #090908;
  --bg-2:        #0E0C0B;
  --surface:     #141110;
  --surface-2:   #1B1715;
  --line:        rgba(255, 255, 255, .08);
  --line-2:      rgba(255, 255, 255, .14);

  /* Акцент – цвет их LED-подсветки */
  --gold:        #E3AC63;
  --gold-hi:     #F8DFB2;
  --gold-dim:    #7E5F35;
  --glow:        rgba(227, 172, 99, .38);
  --glow-soft:   rgba(227, 172, 99, .14);

  /* Текст */
  --text:        #F4F1EC;
  --text-2:      #B3ABA1;
  --text-3:      #7C756D;

  /* Валюты (для превью конфигуратора) */
  --rub:         #E2704A;
  --usd:         #7E9E76;
  --eur:         #8B7BB8;

  /* Размеры */
  --nav-h:       72px;
  --radius:      4px;
  --radius-lg:   10px;
  --maxw:        1320px;
  --gutter:      clamp(20px, 4vw, 56px);

  /* Тайминги */
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'liga' 1, 'kern' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold); color: #14100B; }

/* ---------- 3. Типографика ---------- */
.display,
h1, h2, h3, h4 {
  font-family: 'Oswald', 'Inter', sans-serif;
  font-weight: 600;
  line-height: .96;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.7rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: var(--text-2);
  line-height: 1.65;
}

.muted { color: var(--text-2); }
.gold  { color: var(--gold); }

/* Служебное «имя раздела» – как маркировка на их работах */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* ---------- 4. Каркас ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section {
  padding-block: clamp(72px, 10vw, 140px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 68px);
}
.section-head h2 { margin-bottom: 20px; }

.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  border: 0; margin: 0;
}

/* ---------- 5. Спотлайт курсора ---------- */
#spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .6s var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              rgba(227, 172, 99, .07), transparent 70%);
}
body.has-pointer #spotlight { opacity: 1; }

/* ---------- 6. Навигация ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 90;
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(9, 9, 8, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  flex-shrink: 0;
}
.brand svg { width: 26px; height: 26px; color: var(--gold); }
.brand b {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: .84rem;
  color: var(--text-2);
  letter-spacing: .02em;
  position: relative;
  padding-block: 6px;
  transition: color .25s var(--ease);
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
/* Кнопка внутри меню не должна наследовать приглушённый цвет ссылок */
.nav-links a.btn-primary { color: #191207; }
.nav-links a.btn-primary::after { display: none; }

.burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.burger span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--text);
  position: relative;
  transition: background .2s;
}
.burger span::before, .burger span::after {
  content: '';
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius);
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .35s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease), color .3s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 55%, #C7924D);
  color: #191207;
  box-shadow: 0 0 0 rgba(227, 172, 99, 0), 0 10px 30px -12px rgba(227, 172, 99, .5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px -6px var(--glow), 0 16px 40px -14px rgba(227, 172, 99, .6);
}

.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover {
  border-color: var(--gold-dim);
  background: rgba(227, 172, 99, .07);
  transform: translateY(-2px);
}

.btn-sm { padding: 11px 18px; font-size: .8rem; }

/* Ссылка со стрелкой */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .86rem;
  color: var(--gold);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
}

/* Размытый двойник фотографии – даёт «свет из-за картины» */
.hero-bg {
  position: absolute;
  inset: -10%;
  background: url('../images/hero-main.jpg') center/cover no-repeat;
  filter: blur(70px) saturate(130%) brightness(.62);
  opacity: .55;
  transform: scale(1.12);
  z-index: 0;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 78% 45%, transparent 8%, rgba(9, 9, 8, .72) 62%),
    linear-gradient(180deg, rgba(9, 9, 8, .86) 0%, rgba(9, 9, 8, .3) 34%, var(--bg) 96%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: .5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

.hero .wrap {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
  width: 100%;
}

.hero h1 {
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: riseIn .95s var(--ease-out) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: .09s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .18s; }

@keyframes riseIn { to { transform: translateY(0); } }

.hero h1 em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 42px var(--glow);
}

.hero-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  color: var(--text-2);
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 46px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3.4vw, 48px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  margin-bottom: 7px;
}
.hero-stats div span {
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Карточка-картина в hero */
.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 500px;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease-out) .3s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 70px -14px var(--glow),
    0 40px 90px -30px rgba(0, 0, 0, .9);
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-soft), transparent 62%);
  z-index: -1;
  animation: breathe 5.5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

.hero-tag {
  position: absolute;
  left: -14px;
  bottom: 26px;
  background: rgba(9, 9, 8, .84);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--gold);
  padding: 11px 16px;
  border-radius: var(--radius);
}
.hero-tag b {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-tag span {
  font-family: 'JetBrains Mono', monospace;
  font-size: .64rem;
  letter-spacing: .12em;
  color: var(--text-3);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-hint i {
  width: 1px; height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: drop 2.1s ease-in-out infinite;
}
@keyframes drop {
  0%, 100% { transform: scaleY(.35); opacity: .4; transform-origin: top; }
  50%      { transform: scaleY(1);   opacity: 1;  transform-origin: top; }
}

/* ---------- 9. Бегущая строка ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 20px;
  overflow: hidden;
  position: relative;
  z-index: 3;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-inline: 30px;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(.95rem, 1.5vw, 1.22rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee span::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--glow);
  flex-shrink: 0;
}

/* ---------- 10. Анатомия ---------- */
.anatomy-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.layers { display: flex; flex-direction: column; }

.layer {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 20px 20px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background .35s var(--ease), padding-left .35s var(--ease);
  position: relative;
  text-align: left;
  width: 100%;
}
.layer:last-child { border-bottom: 1px solid var(--line); }
.layer::before {
  content: '';
  position: absolute;
  left: 0; top: -1px; bottom: -1px;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform .4s var(--ease);
  box-shadow: 0 0 14px var(--glow);
}
.layer.is-active {
  background: linear-gradient(90deg, rgba(227, 172, 99, .07), transparent 70%);
  padding-left: 22px;
}
.layer.is-active::before { transform: scaleY(1); }

.layer i {
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--text-3);
  padding-top: 4px;
  transition: color .3s;
}
.layer.is-active i { color: var(--gold); }

.layer b {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 5px;
  transition: color .3s;
}
.layer p {
  font-size: .9rem;
  color: var(--text-2);
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease), opacity .35s var(--ease), margin .45s var(--ease);
}
.layer.is-active p { max-height: 130px; opacity: 1; margin-top: 2px; }

.anatomy-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.anatomy-stage img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}
.anatomy-stage img.is-active { opacity: 1; transform: scale(1); }
.anatomy-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9, 9, 8, .82));
  pointer-events: none;
}
.anatomy-caption {
  position: absolute;
  left: 22px; right: 22px; bottom: 20px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- 11. Коллекции ---------- */
.collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.col-card {
  position: relative;
  background: var(--bg-2);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  transition: background .4s var(--ease);
}
.col-card:hover { background: var(--surface); }

.col-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}
.col-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .8;
  transform: scale(1.02);
  transition: transform .9s var(--ease), opacity .5s var(--ease), filter .5s;
}
.col-card:hover .col-media img { transform: scale(1.08); opacity: 1; }
.col-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 12, 11, .95));
}

.col-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.col-body h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
  transition: color .3s;
}
.col-card:hover .col-body h3 { color: var(--gold); }
.col-body p { font-size: .9rem; color: var(--text-2); margin-bottom: 18px; }
.col-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--text-3);
}

/* Метка коллекции поверх фото */
.col-label {
  position: absolute;
  left: 18px; top: 18px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: lowercase;
  color: var(--gold);
  background: rgba(9, 9, 8, .7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(227, 172, 99, .3);
  padding: 5px 10px;
  border-radius: 3px;
}

/* ---------- 12. Конфигуратор ---------- */
.cfg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4.4vw, 64px);
  align-items: start;
}

.cfg-controls { display: flex; flex-direction: column; gap: 26px; }

.field label.f-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.field label.f-title b { color: var(--gold); font-weight: 500; letter-spacing: .1em; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }

.opt {
  padding: 10px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: .84rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, .015);
  transition: all .28s var(--ease);
  position: relative;
  white-space: nowrap;
}
.opt:hover { border-color: var(--gold-dim); color: var(--text); }
.opt[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold-hi);
  background: rgba(227, 172, 99, .1);
  box-shadow: 0 0 22px -8px var(--glow);
}
.opt small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-top: 2px;
}
.opt[aria-pressed="true"] small { color: var(--gold-dim); }

.cfg-input {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: .92rem;
  transition: border-color .25s, box-shadow .25s;
}
.cfg-input:focus {
  outline: 0;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(227, 172, 99, .1);
}
.cfg-input::placeholder { color: var(--text-3); }

.cfg-actions { display: flex; flex-direction: column; gap: 12px; }
.cfg-note {
  font-size: .78rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* --- Живое превью картины --- */
.cfg-preview { position: sticky; top: calc(var(--nav-h) + 24px); }

.art-stage {
  position: relative;
  padding: clamp(22px, 3.4vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, .04), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  min-height: 320px;
}

.art {
  position: relative;
  width: 100%;
  aspect-ratio: 110 / 70;
  transition: aspect-ratio .5s var(--ease);
}

/* Свечение LED вокруг рамы */
.art-glow {
  position: absolute;
  inset: -7%;
  border-radius: 14px;
  background: radial-gradient(closest-side, rgba(255, 214, 150, .3), transparent 78%);
  filter: blur(16px);
  opacity: 1;
  transition: opacity .45s var(--ease);
  animation: breathe 6s ease-in-out infinite;
}
.art[data-led="off"] .art-glow { opacity: 0; }

.art-frame {
  position: absolute;
  inset: 0;
  border-radius: 5px;
  padding: 2.6%;
  background: linear-gradient(155deg, #262321, #090808 48%, #1C1A18);
  box-shadow:
    0 26px 60px -22px rgba(0, 0, 0, .95),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    inset 0 0 0 2.5px rgba(0, 0, 0, .6);
  overflow: hidden;
}

.art-inner {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 2px;
  overflow: hidden;
  background: #121110;
  display: flex;
  flex-direction: column;
}
/* Блик стекла поверх композиции */
.art-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(118deg,
    rgba(255, 255, 255, .075) 0%,
    rgba(255, 255, 255, .022) 17%,
    transparent 34%,
    transparent 76%,
    rgba(255, 255, 255, .035) 92%);
}

/* Карбоновая / чёрная / светлая подложка */
.art-inner[data-bg="carbon"] {
  background:
    repeating-linear-gradient(45deg,  rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.42) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 8%, #35312D, #171514 62%);
}
.art-inner[data-bg="black"] {
  background: linear-gradient(165deg, #191716, #0A0908);
}
.art-inner[data-bg="light"] {
  background: linear-gradient(165deg, #E7E2DA, #C9C2B7);
}
.art-inner[data-bg="light"] .art-quote { color: #17140F; text-shadow: none; }
.art-inner[data-bg="light"] .art-author { color: #5C554A; }
.art-inner[data-bg="light"] .art-plate { background: #F5F2EC; }

.art-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5.5cqw;
  padding: 7% 7% 3%;
  min-height: 0;
}

.art-quote {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(.72rem, 3.5cqw, 1.7rem);
  line-height: 1.14;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-align: center;
  color: #F8F5EF;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
  max-width: 92%;
  text-wrap: balance;
  transition: opacity .3s;
}
.art-author {
  font-family: 'Inter', sans-serif;
  font-size: clamp(.4rem, 1.2cqw, .68rem);
  color: #A79E90;
  letter-spacing: .05em;
}

/* Ряд артефактов: шильдик + ключ + номер + золото */
.art-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.4cqw;
  flex-wrap: wrap;
  min-height: 0;
}

.art-key {
  width: clamp(17px, 5.6cqw, 44px);
  aspect-ratio: 2 / 3;
  border-radius: 14% / 9%;
  background: linear-gradient(150deg, #55514D, #171615 58%, #3B3733);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 11px rgba(0, 0, 0, .65);
  position: relative;
}
.art-key::before {
  content: '';
  position: absolute;
  left: 50%; top: 15%;
  transform: translateX(-50%);
  width: 54%; height: 22%;
  border-radius: 2px;
  background: linear-gradient(#0C0B0A, #232120);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .18);
}
.art-key::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 16%;
  transform: translateX(-50%);
  width: 44%; height: 26%;
  border-radius: 1px;
  background:
    linear-gradient(rgba(255, 255, 255, .26) 0 1.5px, transparent 1.5px) 0 0 / 100% 34%;
}

.art-badge {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(.4rem, 1.5cqw, .95rem);
  letter-spacing: .16em;
  color: #DFD9CE;
  text-transform: uppercase;
  padding: .5cqw 1.4cqw;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}

.art-plate {
  display: inline-flex;
  align-items: center;
  gap: .8cqw;
  background: linear-gradient(#FBF8F2, #E4DFD5);
  color: #14120F;
  border-radius: 2px;
  padding: .7cqw 1.4cqw;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(.44rem, 1.75cqw, 1.05rem);
  letter-spacing: .07em;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .55);
  white-space: nowrap;
}
.art-plate i {
  font-style: normal;
  font-size: .58em;
  letter-spacing: .06em;
  border-left: 1px solid rgba(0, 0, 0, .3);
  padding-left: .7cqw;
  opacity: .75;
}

.art-bar {
  width: clamp(16px, 5cqw, 38px);
  aspect-ratio: 5 / 3;
  border-radius: 2px;
  background: linear-gradient(150deg, #FDEBB4, #CDA044 52%, #8E6A22);
  box-shadow: 0 4px 9px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.art-btc {
  width: clamp(13px, 4cqw, 30px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FDEFBC, #C4932F 60%, #7C5A17);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .55);
  display: grid;
  place-items: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(.4rem, 1.5cqw, .95rem);
  color: #4A3510;
}

/* Слой купюр */
.art-cash {
  position: relative;
  height: 45%;
  flex-shrink: 0;
}
.art-cash::before {
  content: '';
  position: absolute;
  inset: -14% -4% -4%;
  background:
    radial-gradient(66% 62% at 50% 100%, var(--cash-glow, rgba(255, 175, 100, .34)), transparent 74%);
  filter: blur(11px);
  z-index: 0;
}
.bill {
  position: absolute;
  width: 6.4%;
  aspect-ratio: 5 / 3;
  border-radius: .5px;
  background:
    linear-gradient(115deg,
      color-mix(in srgb, var(--bill, #E2704A) 80%, #FFE4C8) 0%,
      var(--bill, #E2704A) 42%,
      color-mix(in srgb, var(--bill, #E2704A) 52%, #160800) 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .75), inset 0 0 0 .5px rgba(255, 255, 255, .22);
  will-change: transform;
}
.bill::after {
  content: '';
  position: absolute;
  inset: 26% 18%;
  border: .5px solid rgba(255, 255, 255, .34);
  border-radius: .5px;
}

/* Полоса LED снизу */
.art-led {
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  z-index: 4;
  background: linear-gradient(90deg, transparent 2%, rgba(255, 216, 158, .95) 22%, rgba(255, 230, 190, 1) 50%, rgba(255, 216, 158, .95) 78%, transparent 98%);
  filter: blur(1.6px);
  opacity: 1;
  transition: opacity .4s;
}
.art[data-led="off"] .art-led { opacity: 0; }
.art[data-led="off"] .art-cash::before { opacity: .12; }

/* Подпись под превью */
.art-spec {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.art-spec b { color: var(--text); font-weight: 500; }

/* ---------- 13. Галерея ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.filter {
  padding: 9px 17px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: .82rem;
  color: var(--text-2);
  transition: all .28s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--gold-dim); }
.filter.is-on {
  background: var(--gold);
  border-color: var(--gold);
  color: #14100B;
}

.grid {
  columns: 4;
  column-gap: 14px;
}
.tile {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid transparent;
  transition: border-color .35s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tile img {
  width: 100%;
  transition: transform .8s var(--ease), filter .45s var(--ease);
  filter: brightness(.92);
}
.tile:hover {
  border-color: rgba(227, 172, 99, .4);
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .9), 0 0 30px -14px var(--glow);
}
.tile:hover img { transform: scale(1.05); filter: brightness(1.05); }
.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(transparent, rgba(9, 9, 8, .9));
  opacity: 0;
  transform: translateY(8px);
  transition: all .4s var(--ease);
  text-align: left;
}
.tile:hover figcaption { opacity: 1; transform: translateY(0); }
.tile.is-hidden { display: none; }

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 4, .95);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 0 90px -20px var(--glow), 0 40px 80px -30px #000;
  transform: scale(.96);
  transition: transform .4s var(--ease-out);
}
.lightbox.is-open img { transform: scale(1); }
.lb-cap {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: center;
  padding-inline: 20px;
}
.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(9, 9, 8, .6);
  transition: all .3s var(--ease);
}
.lb-btn:hover { border-color: var(--gold); background: rgba(227, 172, 99, .14); }
.lb-prev { left: clamp(10px, 2.4vw, 30px); }
.lb-next { right: clamp(10px, 2.4vw, 30px); }
.lb-close { top: clamp(14px, 2.4vw, 26px); right: clamp(14px, 2.4vw, 26px); transform: none; }
.lb-btn svg { width: 18px; height: 18px; }

/* ---------- 14. Процесс ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.step {
  background: var(--bg);
  padding: 32px 26px 34px;
  position: relative;
  transition: background .4s var(--ease);
}
.step:hover { background: var(--bg-2); }
.step i {
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: .88rem; color: var(--text-2); margin: 0; }

/* ---------- 15. Доставка ---------- */
.ship {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}
.ship-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.ship-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.geo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.geo span {
  font-family: 'JetBrains Mono', monospace;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 6px 13px;
  transition: all .3s var(--ease);
}
.geo span:hover { border-color: var(--gold-dim); color: var(--gold); }

.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.fact {
  background: var(--bg-2);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  align-items: start;
}
.fact svg { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.fact b { display: block; font-family: 'Oswald', sans-serif; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: .96rem; margin-bottom: 4px; }
.fact p { font-size: .86rem; color: var(--text-2); margin: 0; }

/* ---------- 16. Отзывы / соцдоказательство ---------- */
.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.proof-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
}
.proof-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.86) saturate(.95);
  transition: transform .9s var(--ease), filter .5s;
}
.proof-card:hover img { transform: scale(1.06); filter: brightness(1); }
.proof-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 18px;
  background: linear-gradient(transparent, rgba(9, 9, 8, .94));
}
.proof-card b {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .95rem;
}
.proof-card span {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  letter-spacing: .12em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ---------- 17. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}
.faq-q:hover { color: var(--gold); }
.faq-q i {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
}
.faq-q i::before, .faq-q i::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  background: var(--gold);
  transition: transform .35s var(--ease);
}
.faq-q i::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-q i::after  { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-q i::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.faq-a p {
  padding-bottom: 26px;
  max-width: 68ch;
  color: var(--text-2);
  font-size: .95rem;
}

/* ---------- 18. Финальный CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(80px, 11vw, 150px);
  border-top: 1px solid var(--line);
}
.cta::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 120%);
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse, var(--glow-soft), transparent 68%);
  animation: breathe 7s ease-in-out infinite;
}
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { margin-bottom: 22px; }
.cta .lead { max-width: 54ch; margin-inline: auto; margin-bottom: 34px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ---------- 19. Подвал ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 52px 40px;
  background: var(--bg-2);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}
.footer h4 {
  font-size: .8rem;
  letter-spacing: .16em;
  color: var(--text-3);
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { font-size: .9rem; color: var(--text-2); transition: color .25s; }
.footer li a:hover { color: var(--gold); }
.footer-brand p { font-size: .88rem; color: var(--text-2); max-width: 38ch; margin-top: 16px; }
.footer-bot {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: var(--text-3);
}
.disclaimer {
  margin-top: 20px;
  font-size: .75rem;
  color: var(--text-3);
  max-width: 76ch;
  line-height: 1.55;
}

/* ---------- 20. Reveal-анимации ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }

/* ---------- 21. Тост ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 120;
  background: var(--surface-2);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 13px 20px;
  font-size: .86rem;
  box-shadow: 0 20px 50px -20px #000, 0 0 30px -14px var(--glow);
  opacity: 0;
  visibility: hidden;
  transition: all .4s var(--ease);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 22. Адаптив ---------- */
@media (max-width: 1180px) {
  .grid { columns: 3; }
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 9, 8, .97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all .35s var(--ease);
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-links .btn { margin-top: 16px; }
  .burger { display: flex; }

  .hero .wrap { grid-template-columns: 1fr; }
  /* Сначала заголовок, фото – следом: иначе на телефоне первый экран занимает одна картинка */
  .hero-copy { order: 1; }
  .hero-art { order: 2; justify-self: center; max-width: 560px; }
  .hero-art img { aspect-ratio: 5 / 4; object-position: 50% 46%; }
  .hero { padding-top: calc(var(--nav-h) + 28px); min-height: 0; }
  .scroll-hint { display: none; }

  .anatomy-grid, .cfg, .ship { grid-template-columns: 1fr; }
  .cfg-preview { position: static; order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .grid { columns: 2; column-gap: 10px; }
  .collections { grid-template-columns: 1fr; }
  .col-card { min-height: 0; }
  .tile { margin-bottom: 10px; }
  .hero-stats { gap: 20px; }
  .hero-stats div { min-width: 40%; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .btn { width: 100%; }
  .hero-cta .btn, .cta-btns .btn { width: 100%; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

@media (max-width: 480px) {
  .grid { columns: 1; }
  .hero-tag { left: 8px; }
}

/* ---------- 23. Уважение к настройкам ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .hero-art { opacity: 1; }
}

/* Фокус для клавиатуры */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Контейнерные запросы для превью */
.art { container-type: inline-size; }
