/* ═══════════════════════════════════════════════════════════
   PRINTbyDORIK — основная таблица стилей
   Тёмная премиум-тема: графитово-чёрный фон + белый текст + золото.
   Фон СПЛОШНОЙ (--bg-0), без радиальных градиентов и «делений»
   по секциям: всю глубину даёт живой canvas js/neurons.js.
   ═══════════════════════════════════════════════════════════ */

:root {
  --gold: #C9A227;
  --gold-2: #F0D67A;
  --gold-hover: #E7C85A;
  --gold-deep: #8C6B12;
  --gold-dim: rgba(201, 162, 39, .12);
  --gold-line: rgba(201, 162, 39, .32);

  /* Светлые «чернила»: текст и заголовки на тёмном фоне */
  --ink: #F6F2E7;
  --ink-2: #D6D1C4;

  --bg-0: #0E1013;
  --bg-1: #14171C;
  --brown: #1A1D23;
  --card: #16191F;
  --card-2: #1B1F26;
  --line: rgba(201, 162, 39, .26);
  --line-soft: rgba(255, 255, 255, .09);

  --text: #E8E4DA;
  --muted: #99A1AD;
  --radius: 22px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .52);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, .64);
  --glow: 0 10px 26px rgba(201, 162, 39, .28);
  --container: 1260px;
  --font: 'Onest', 'Segoe UI', Arial, sans-serif;
  --font-head: 'Unbounded', 'Onest', Arial, sans-serif;

  /* Тёмная подложка под PNG-иконки: нужна для mix-blend-mode: screen */
  --ico-plate: linear-gradient(150deg, #23272E, #0E1014);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  /* Сплошной фон одного тона: никаких градиентов и «полос» */
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  letter-spacing: .002em;
}

/* Тонкая «бумажная» фактура поверх фона */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  opacity: .045; mix-blend-mode: soft-light;
  background-image: url('../images/texture-paper.jpg');
  background-size: 460px;
}

/* ─── Живой фон: золотая «нейросеть» (canvas рисует js/neurons.js) ─── */
#neuroBg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  width: 100%; height: 100%; opacity: 1;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-hover); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ─── Типографика ─── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); margin: 0 0 16px; line-height: 1.18; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
p { margin: 0 0 14px; color: var(--muted); }
.gold {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 800px; margin: 0 auto 50px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--gold-dim);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
}
.section-head p { font-size: 1.06rem; }

/* ─── Кнопки ─── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border: 0; border-radius: 16px; cursor: pointer;
  font-family: var(--font); font-size: 1rem; font-weight: 700; letter-spacing: -.01em;
  line-height: 1.15; text-align: center; white-space: nowrap; vertical-align: middle;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 40%, var(--gold-deep));
  color: #14161A; transition: transform .24s cubic-bezier(.2, .8, .3, 1), box-shadow .24s, filter .24s;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg); transition: left .55s ease; pointer-events: none;
}
.btn:hover { color: #14161A; transform: translateY(-3px); filter: brightness(1.06); box-shadow: 0 18px 42px rgba(201, 162, 39, .42); }
.btn:hover::after { left: 125%; }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: rgba(255, 255, 255, .05); color: var(--gold);
  border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(6px);
}
.btn-outline:hover { background: var(--gold-dim); color: var(--gold-hover); border-color: var(--gold); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9rem; border-radius: 13px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Состояния кнопок: недоступна и в процессе отправки */
.btn:disabled, .btn[disabled] {
  opacity: .5; cursor: not-allowed; transform: none;
  box-shadow: none; filter: grayscale(.35);
}
.btn:disabled::after, .btn[disabled]::after { display: none; }
.btn:focus-visible, .btn-ghost:focus-visible, .cart-del:focus-visible {
  outline: 2px solid var(--gold-2); outline-offset: 3px;
}
/* Пульсация во время запроса на сервер */
.btn.is-busy { animation: btnPulse 1.1s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(201, 162, 39, .28); }
  50% { box-shadow: 0 10px 34px rgba(201, 162, 39, .6); }
}
/* Крупная кнопка оплаты с «дышащим» свечением */
.btn-pay { min-height: 58px; font-size: 1.05rem; letter-spacing: .01em; }
.btn-pay:not(:disabled) { animation: payGlow 3.2s ease-in-out infinite; }
@keyframes payGlow {
  0%, 100% { box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .45); }
  50% { box-shadow: 0 16px 40px rgba(201, 162, 39, .46), inset 0 1px 0 rgba(255, 255, 255, .5); }
}
/* Второстепенная текстовая кнопка */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 10px 16px; border: 1px dashed var(--line-soft); border-radius: 12px;
  background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--font); font-size: .88rem;
  transition: color .2s, border-color .2s, background .2s;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold-line); background: var(--gold-dim); }

/* ─── Кнопка корзины в шапке ─── */
.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 15px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--gold-dim);
  color: var(--gold); text-decoration: none; font-weight: 700; font-size: .86rem;
  transition: background .2s, border-color .2s, transform .2s;
}
.cart-link:hover { background: rgba(201, 162, 39, .2); border-color: var(--gold); transform: translateY(-2px); }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: #14161A; font-size: .74rem; font-weight: 800;
}
.cart-count.is-bump { animation: cartBump .42s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cartBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* ─── Шапка: строго один ряд ─── */
.header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(14, 16, 19, .82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .55);
}
.header-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; flex-wrap: nowrap; min-height: 74px;
  max-width: 100%; box-sizing: border-box;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo img {
  width: 46px; height: 46px; border-radius: 13px; object-fit: cover;
  border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.logo-text {
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  color: var(--ink); line-height: 1.2; white-space: nowrap;
}
.logo-text span { color: var(--gold); }
.logo-sub {
  display: block; font-size: .58rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; font-family: var(--font);
}
.nav {
  display: flex; align-items: center; gap: 10px;
  /* Меню прижато к логотипу слева, свободное место уходит вправо,
     поэтому длинный ряд пунктов не выталкивает блок пользователя за экран. */
  margin: 0 auto 0 18px; flex-wrap: nowrap; overflow: visible; min-width: 0;
}
.nav a {
  position: relative; padding: 9px 12px; border-radius: 11px; color: var(--text);
  font-size: .85rem; font-weight: 500; white-space: nowrap; transition: all .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  border-radius: 2px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform .25s;
}
.nav a:hover { color: var(--gold); background: rgba(255, 255, 255, .06); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--gold); background: var(--gold-dim); }
.nav a.active::after { transform: scaleX(1); }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; flex-shrink: 0;
  border-radius: 13px; background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  color: #14161A; font-weight: 700; font-size: .95rem; white-space: nowrap; line-height: 1;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .4); transition: all .22s;
}
.header-phone:hover { color: #14161A; transform: translateY(-2px); filter: brightness(1.07); }
/* ─── Пункт меню конструктора ─── */
.nav a.nav-designer {
  font-family: var(--font-head); font-weight: 700; font-size: .84rem;
  letter-spacing: .04em; color: var(--gold);
  border: 1px solid var(--line); background: var(--gold-dim); margin-right: 6px;
}
.nav a.nav-designer .nav-dz { letter-spacing: .12em; }
.nav a.nav-designer:hover { background: rgba(201, 162, 39, .2); border-color: var(--gold); }
/* ─── Пункт меню админ-панели (видим только администратору) ─── */
.nav a.nav-admin {
  color: var(--gold); border: 1px solid var(--gold); background: var(--gold-dim);
  font-weight: 700;
}
.nav a.nav-admin:hover { background: rgba(201, 162, 39, .22); }
.nav a[hidden] { display: none; }

/* ─── Блок пользователя в шапке ─── */
.header-user { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  font-family: var(--font); font-size: .88rem; font-weight: 700;
  white-space: nowrap; line-height: 1; transition: all .22s;
}
.hu-btn-ghost {
  color: var(--gold); background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}
.hu-btn-ghost:hover { color: var(--gold); background: var(--gold-dim); border-color: var(--gold); }
.hu-btn-gold {
  color: #14161A; border: 0;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.hu-btn-gold:hover { color: #14161A; transform: translateY(-2px); filter: brightness(1.07); }
.hu-card {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 6px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  transition: all .22s; max-width: 260px;
}
.hu-card:hover { border-color: var(--gold); background: var(--gold-dim); }
.hu-ava {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  border: 2px solid var(--gold-2); box-sizing: border-box; background: #0C0C10;
}
.hu-ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hu-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hu-name {
  font-family: var(--font-head); font-size: .88rem; font-weight: 700; color: var(--ink);
  line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hu-phone { font-size: .72rem; color: var(--muted); line-height: 1.1; white-space: nowrap; }

/* ─── Строка преимуществ под шапкой ─── */
.header-perks {
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(201, 162, 39, .14), rgba(201, 162, 39, .04) 60%, transparent);
  overflow: hidden;
}
.header-perks ul {
  display: flex; align-items: center; gap: 26px;
  margin: 0 auto; padding: 7px 18px; list-style: none;
  max-width: 100%; flex-wrap: wrap; justify-content: center;
}
.header-perks li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; color: #E9E4D7; white-space: nowrap;
}
/* Золотая точка-маркер вместо иконки — не требует картинок */
.header-perks li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px rgba(201, 162, 39, .8); flex: 0 0 auto;
}
.header-perks b { color: var(--gold); font-weight: 700; }

.burger {
  display: none; margin-left: auto; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line); border-radius: 12px; color: var(--gold);
  font-size: 1.35rem; padding: 6px 13px; cursor: pointer; line-height: 1;
}

/* ─── HERO ─── */
.hero { position: relative; overflow: hidden; padding: 90px 0 96px; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 80% 26%, rgba(201, 162, 39, .2), transparent 68%),
    radial-gradient(520px 320px at 8% 84%, rgba(224, 163, 36, .14), transparent 70%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 52px; align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.13rem; max-width: 570px; color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.hero-badges div {
  padding: 13px 20px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px);
}
.hero-badges div strong {
  display: block; font-family: var(--font-head); font-size: 1.32rem; font-weight: 700;
  background: linear-gradient(100deg, var(--gold-2), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-badges div span { font-size: .8rem; color: var(--muted); }
.hero-note { margin-top: 22px; font-size: .92rem; color: var(--muted); }
.hero-note a { font-weight: 700; border-bottom: 1px solid var(--gold-line); }

/* Hero-иллюстрация: фото + золотая рамка */
.hero-art {
  position: relative; overflow: hidden; aspect-ratio: 4/5; max-width: 460px; margin-left: auto;
  border-radius: 30px; border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--card-2), #101317);
  box-shadow: var(--shadow);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; opacity: 1; filter: saturate(1.1); }
.hero-art::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(20, 22, 26, .72) 2%, transparent 42%);
}
.hero-art::after {
  content: ''; position: absolute; inset: -45%; z-index: 1; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(201, 162, 39, .28), transparent 38%);
  animation: spin 11s linear infinite;
}
.hero-art-cap {
  position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 3;
}
.hero-art-cap b {
  display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); margin-bottom: 3px;
}
.hero-art-cap span { font-size: .82rem; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Иконки-картинки (PNG на чёрном → screen убирает фон) ─── */
.ico {
  display: block; width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: screen;
  filter: saturate(1.2) brightness(1.2) contrast(1.05);
}

/* Универсальная «плитка» под иконку: тёмный фон обязателен,
   иначе mix-blend-mode: screen засветит PNG на светлой теме */
.ico-plate {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: var(--ico-plate);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 8px 20px rgba(0, 0, 0, .5);
}
.ico-plate::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 20%, rgba(201, 162, 39, .22), transparent 70%);
}

/* Все иконочные плитки на сайте используют одну базу */
.service-icon, .feature-ico, .pg-ico {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: var(--ico-plate);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 8px 20px rgba(0, 0, 0, .5);
}
.service-icon::after, .feature-ico::after, .pg-ico::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 20%, rgba(201, 162, 39, .22), transparent 70%);
}

/* ─── Карточки услуг ─── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--card-2), var(--card));
  transition: transform .28s cubic-bezier(.2, .8, .3, 1), border-color .28s, box-shadow .28s;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: var(--radius); opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px 220px at 50% 0%, rgba(201, 162, 39, .16), transparent 70%);
}
.service-card:hover {
  transform: translateY(-9px); border-color: rgba(201, 162, 39, .55);
  box-shadow: 0 26px 52px rgba(0, 0, 0, .55), 0 0 0 1px rgba(201, 162, 39, .28);
}
.service-card:hover::before { opacity: 1; }
.service-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #101317; }
.service-media img {
  width: 100%; height: 100%; object-fit: cover; opacity: 1;
  filter: saturate(1.08) contrast(1.02);
  transition: filter .35s, transform .6s;
}
.service-card:hover .service-media img { filter: saturate(1.18) brightness(1.04); transform: scale(1.06); }
.service-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14, 16, 19, .92) 0%, rgba(14, 16, 19, .35) 42%, transparent 70%);
}
.service-icon {
  position: absolute; left: 18px; top: 18px; z-index: 4;
  width: 54px; height: 54px; padding: 9px; border-radius: 16px;
}
.service-icon svg { width: 32px; height: 32px; }
.service-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { color: var(--ink); }
.service-body p { font-size: .94rem; flex: 1; }
.service-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: .9rem; transition: gap .2s;
}
.service-card:hover .service-link { gap: 13px; }

/* ─── Формы ─── */
.form-card {
  border-radius: var(--radius); border: 1px solid var(--line); padding: 30px;
  background: linear-gradient(165deg, var(--card-2), var(--card)); box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 7px; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; color: var(--ink);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft);
  font-family: var(--font); font-size: .97rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.textarea { min-height: 120px; resize: vertical; }
.select option { background: #16191F; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks { display: grid; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .93rem; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.form-note { font-size: .82rem; color: var(--muted); }
.alert { margin-top: 14px; padding: 12px 15px; border-radius: 12px; font-size: .92rem; display: none; }
.alert.show { display: block; }
.alert-ok { background: rgba(31, 138, 76, .16); border: 1px solid rgba(31, 138, 76, .5); color: #7BE0A5; }
.alert-err { background: rgba(199, 46, 32, .16); border: 1px solid rgba(199, 46, 32, .5); color: #FF9C8F; }

/* ─── О компании ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.about-list li {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px 18px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  transition: transform .2s, border-color .2s;
}
.about-list li:hover { transform: translateX(6px); border-color: var(--gold); }
.about-list b { color: var(--gold); font-size: 1.15rem; line-height: 1.3; }

/* ─── Партнёры ─── */
.partners-title {
  font-family: var(--font-head); font-size: 1.05rem; color: var(--gold);
  text-align: center; margin: 0 0 20px; letter-spacing: .06em;
}
.partners-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 40px; }
.partner {
  display: grid; place-items: center; gap: 8px; min-height: 104px; padding: 16px 12px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  transition: transform .25s, border-color .25s, background .25s;
}
.partner:hover { transform: translateY(-6px) scale(1.03); border-color: var(--gold); background: var(--gold-dim); }
.partner-mark {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  overflow: hidden; background: rgba(255,255,255,.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.partner-mark svg { display: block; width: 100%; height: 100%; }
.partner-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.partner span { font-size: .82rem; font-weight: 700; color: var(--text); text-align: center; }

/* ─── Отзывы ─── */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review {
  display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding: 22px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--card-2), var(--card));
  transition: transform .22s, border-color .22s;
}
.review:hover { transform: translateY(-5px); border-color: var(--gold); }
.review-ava {
  width: 74px; height: 74px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gold-2); box-sizing: border-box;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
  font-size: 1.4rem; color: #14161A;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
}
.review-ava img { width: 100%; height: 100%; object-fit: cover; }
.review-name { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.review-meta { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; margin-bottom: 8px; }
.review p { font-size: .93rem; margin: 0; }
.reviews-more { text-align: center; margin-top: 34px; }
.reviews-counter { color: var(--muted); font-size: .9rem; margin-top: 12px; }

/* ─── Аватары: выбор при регистрации и профиль ─── */
.avatar-hint { font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.avatar-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(0, 0, 0, .22);
}
.avatar-tile {
  position: relative; padding: 0; cursor: pointer; overflow: visible;
  aspect-ratio: 1 / 1; border-radius: 50%; background: none; border: 0;
  transition: transform .18s;
}
.avatar-tile img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%; background: #0C0C10;
  border: 2px solid var(--gold-2);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55);
  transition: border-color .18s, box-shadow .18s;
}
.avatar-tile:hover { transform: translateY(-3px); }
.avatar-tile:hover img { border-color: var(--gold); }
.avatar-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 50%; }
.avatar-tile.selected img {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .55),
              0 0 0 3px rgba(212, 175, 55, .38), 0 8px 20px rgba(0, 0, 0, .45);
}
.avatar-tile.selected::after {
  content: '✓'; position: absolute; right: -2px; bottom: -2px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; font-weight: 800;
  color: #14161A; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  border: 2px solid var(--card); box-sizing: content-box;
}
.user-ava {
  width: 78px; height: 78px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  border: 2px solid var(--gold); box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
}
.user-ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.user-ava-lg { width: 96px; height: 96px; }
.cabinet-user { display: flex; align-items: center; gap: 18px; }
.profile-ava-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile-ava-name { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.05rem; }

/* ─── Контакты и карта ─── */
.contacts-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: stretch; }
.map-box {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  min-height: 400px; box-shadow: var(--shadow);
}
.map-box iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }
.contact-card {
  border-radius: var(--radius); border: 1px solid var(--line); padding: 28px;
  background: linear-gradient(165deg, var(--card-2), var(--card));
}
.contact-phone {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: var(--gold); margin-bottom: 6px;
}
.contact-row { padding: 14px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.contact-row:last-child { border-bottom: 0; }
.contact-row small {
  display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.social-row { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border-radius: 999px; line-height: 1;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  font-size: .9rem; font-weight: 700; color: var(--text); transition: all .22s;
}
.social:hover { border-color: var(--gold); background: var(--gold-dim); color: var(--gold-2); transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; }

/* Золотая PNG-иконка связи на тёмной плитке (WhatsApp / Telegram / телефон) */
.social-ico {
  width: 30px; height: 30px; padding: 4px; border-radius: 9px; flex-shrink: 0;
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: var(--ico-plate); border: 1px solid var(--line);
  /* Жёстко держим квадрат, иначе на узких экранах флекс плющит иконку */
  aspect-ratio: 1 / 1; flex: 0 0 auto; box-sizing: border-box;
}
.social-ico img {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen;
  aspect-ratio: 1 / 1;
}

/* Та же PNG-иконка (как у нижней кнопки звонка) внутри кнопок,
   шапки и ссылок футера — вместо эмодзи. Плитка всегда тёмная,
   иначе mix-blend-mode: screen засветит золотой PNG. */
.btn .social-ico,
.header-phone .social-ico,
.footer ul .social-ico {
  width: 26px; height: 26px; min-width: 26px; min-height: 26px; padding: 3px; border-radius: 8px;
  background: rgba(14, 16, 19, .9); border-color: rgba(14, 16, 19, .5);
}
.footer ul a {
  display: inline-flex; align-items: center; gap: 9px;
}
.footer ul .social-ico {
  width: 24px; height: 24px; border-color: var(--gold-line);
}

/* ─── Футер: графитово-чёрный блок с золотом ─── */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--gold-line);
  background: transparent;
  padding: 58px 0 26px; margin-top: 40px;
  color: #E8E4DA;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: 1rem; color: var(--gold-2); margin-bottom: 14px; }
.footer p { color: #A9AFB9; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a, .footer ul li { color: #C7CCD4; font-size: .92rem; }
.footer ul a:hover { color: var(--gold-2); }
.footer .logo-text { color: #fff; }
.footer .logo-sub, .footer .logo img { border-color: var(--gold-line); }
.footer .social { color: #E8E4DA; border-color: var(--gold-line); background: rgba(255, 255, 255, .04); }
.footer .social:hover { color: var(--gold-2); background: rgba(201, 162, 39, .16); }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .84rem; color: #A9AFB9;
}
.footer-bottom a { color: var(--gold-2); }
.footer-phone { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--gold-2); }

/* ─── Плавающая кнопка звонка ─── */
.float-call {
  position: fixed; right: 20px; bottom: 20px; z-index: 950;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 16px; font-weight: 700; color: #14161A; line-height: 1;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 16px 36px rgba(201, 162, 39, .4), inset 0 1px 0 rgba(255, 255, 255, .4);
  animation: pulse 2.8s infinite; transition: transform .22s, filter .22s;
}
.float-call:hover { color: #14161A; transform: translateY(-3px); filter: brightness(1.07); }
.float-call .social-ico {
  width: 30px; height: 30px; background: rgba(20, 22, 26, .88);
  border-color: rgba(20, 22, 26, .25);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 16px 36px rgba(201, 162, 39, .38), inset 0 1px 0 rgba(255, 255, 255, .4); }
  50% { box-shadow: 0 16px 48px rgba(201, 162, 39, .72), inset 0 1px 0 rgba(255, 255, 255, .4); }
}

/* ─── Появление при скролле ─── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── Табы (полиграфия, ЛК) ─── */
.tabs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px;
  padding: 8px; border-radius: 20px; border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .03); width: fit-content; margin-left: auto; margin-right: auto;
}
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; cursor: pointer;
  border: 1px solid transparent; background: transparent; line-height: 1.15;
  color: var(--text); font-family: var(--font); font-size: .94rem; font-weight: 600;
  transition: all .24s;
}
.tab img {
  width: 26px; height: 26px; padding: 3px; border-radius: 8px;
  background: var(--ico-plate); border: 1px solid var(--line);
  mix-blend-mode: normal;
}
.tab img.ico, .tab .ico { mix-blend-mode: normal; }
.tab:hover { color: var(--gold); background: rgba(255, 255, 255, .06); }
.tab.active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  color: #14161A; border-color: transparent;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.tab.active img { background: rgba(0, 0, 0, .82); border-color: rgba(20, 22, 26, .06); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ─── Калькулятор ─── */
.calc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: start; }
.calc-total {
  border-radius: var(--radius); border: 1px solid var(--gold); padding: 26px;
  background: linear-gradient(160deg, rgba(201, 162, 39, .14), rgba(255, 255, 255, .03));
  text-align: center; position: sticky; top: 100px;
}
.calc-total .sum {
  font-family: var(--font-head); font-weight: 800; color: var(--gold);
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 6px 0 4px;
}
.calc-total .sum-note { font-size: .84rem; color: var(--muted); }
.calc-breakdown { list-style: none; margin: 18px 0 0; padding: 0; text-align: left; display: grid; gap: 8px; }
.calc-breakdown li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: .88rem; color: var(--text); padding-bottom: 7px;
  border-bottom: 1px dashed rgba(255, 255, 255, .14);
}
.price-tbd {
  display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 10px;
  background: var(--gold-dim); border: 1px dashed var(--gold);
  font-size: .8rem; color: var(--gold);
}

/* ─── Таблицы (заказы в ЛК) ─── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data th, table.data td { padding: 14px 16px; text-align: left; font-size: .9rem; }
table.data th {
  background: var(--gold-dim); color: var(--gold);
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem;
}
table.data td { border-top: 1px solid rgba(255, 255, 255, .07); color: var(--text); }
table.data tr:hover td { background: rgba(255, 255, 255, .035); }
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
}
.badge-new { background: var(--gold-dim); color: var(--gold); }
.badge-paid { background: rgba(31, 138, 76, .18); color: #7BE0A5; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ─── Чипы (списки услуг) ─── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips li {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 14px; font-size: .87rem; font-weight: 500;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .04); color: var(--text);
  transition: all .22s; cursor: default;
}
.chips li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: .55; transition: all .22s;
}
.chips li:hover {
  border-color: var(--gold); color: var(--gold);
  background: var(--gold-dim); transform: translateY(-3px);
}
.chips li:hover::before { opacity: 1; box-shadow: 0 0 8px var(--gold); }

/* ─── Преимущества ─── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  position: relative; padding: 30px 26px 26px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); overflow: hidden;
  background: linear-gradient(165deg, var(--card-2), var(--card));
  transition: transform .26s, border-color .26s, box-shadow .26s;
}
.feature::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 170px; height: 170px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201, 162, 39, .14), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.feature:hover {
  transform: translateY(-7px); border-color: rgba(201, 162, 39, .45);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .5);
}
.feature:hover::after { opacity: 1; }
.feature-ico {
  width: 58px; height: 58px; padding: 9px; margin-bottom: 18px;
  border-radius: 16px;
}
.feature h3 { color: var(--ink); margin-bottom: 8px; }
.feature p { font-size: .92rem; margin: 0; }

/* ─── Разделы полиграфии (крупные карточки) ─── */
.pg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.pg-card {
  position: relative; display: block; overflow: hidden; min-height: 290px;
  border-radius: 26px; border: 1px solid var(--line); color: inherit;
  background: var(--card); box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), border-color .3s, box-shadow .3s;
}
.pg-card:hover {
  transform: translateY(-8px); border-color: rgba(201, 162, 39, .6); color: inherit;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .58);
}
.pg-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 1; filter: saturate(1.08);
  transition: filter .4s, transform .7s;
}
.pg-card:hover img { filter: saturate(1.2) brightness(1.05); transform: scale(1.06); }
.pg-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 22, 26, .93) 6%, rgba(20, 22, 26, .5) 48%, rgba(20, 22, 26, .06));
}
.pg-body {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.pg-ico {
  width: 54px; height: 54px; padding: 9px; margin-bottom: auto;
  border-radius: 16px;
}
.pg-body h3 {
  margin: 18px 0 8px; font-size: 1.3rem; font-weight: 700;
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 55%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg-body p { font-size: .93rem; margin: 0 0 14px; color: #E9E4D7; }
.pg-price {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 8px 16px; border-radius: 12px; font-size: .84rem; font-weight: 700;
  background: var(--gold-dim); border: 1px solid var(--line); color: var(--gold);
}

/* ─── Адаптив ─── */
@media (max-width: 1180px) {
  .nav a { padding: 8px 9px; font-size: .84rem; }
  .logo-sub { display: none; }
}
@media (max-width: 1080px) {
  .services-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Промежуточная ступень: до появления бургера шапка ужимается,
   чтобы ряд «логотип + меню + пользователь» умещался без прокрутки. */
@media (max-width: 1280px) {
  .header-inner { gap: 8px; padding: 10px 12px; }
  .nav a { padding: 8px 7px; font-size: .81rem; }
  .nav a::after { left: 7px; right: 7px; }
  .nav a.nav-designer { font-size: .78rem; margin-right: 2px; }
  .logo-sub { display: none; }
  .logo img { width: 40px; height: 40px; }
  .logo-text { font-size: .95rem; }
  .hu-btn { padding: 0 12px; font-size: .82rem; }
  .hu-card { max-width: 210px; padding: 4px 10px 4px 5px; }
  .hu-name { font-size: .82rem; }
}
@media (max-width: 1120px) {
  /* Ещё теснее: у карточки пользователя остаётся аватар и имя */
  .nav { gap: 4px; margin-left: 8px; }
  .nav a { padding: 8px 8px; font-size: .78rem; }
  .nav a::after { left: 8px; right: 8px; }
  .hu-phone { display: none; }
  .hu-card { max-width: 160px; }
  .header-perks ul { gap: 18px; font-size: .76rem; }
}
/* Строка преимуществ: на планшетах прячем менее важные пункты,
   на телефонах оставляем два ключевых, чтобы шапка не разрослась. */
@media (max-width: 900px) {
  .header-perks li:nth-child(n+5) { display: none; }
}
@media (max-width: 640px) {
  .header-perks ul { gap: 14px; padding: 6px 14px; }
  .header-perks li { font-size: .72rem; }
  .header-perks li:nth-child(n+3) { display: none; }
}
@media (max-width: 980px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 14px 20px;
    background: rgba(14, 16, 19, .98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); display: none;
    margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: .95rem; }
  .nav a.nav-designer { font-size: .95rem; margin: 0 0 4px; text-align: center; }
  .burger { display: block; order: 3; margin-left: 0; }
  .header-inner { position: relative; justify-content: space-between; }
  .header-phone { order: 2; margin-left: auto; }
  .header-user { order: 2; margin-left: auto; }
  .hu-card { max-width: 200px; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contacts-grid, .calc-grid, .pg-grid { grid-template-columns: 1fr; }
  /* Мокап в hero: держим пропорцию, иначе картинка «сплющивается» */
  .hero-art {
    max-width: 420px; width: 100%; margin: 0 auto;
    aspect-ratio: 3 / 2; height: auto; min-height: 240px;
  }
  .hero-art img { width: 100%; height: 100%; object-fit: cover; }
  .reviews-grid { grid-template-columns: 1fr; }
  .calc-total { position: static; }
}
@media (max-width: 720px) {
  .header-phone span, .header-phone { font-size: .86rem; padding: 0 14px; min-height: 42px; }
  .hu-btn { font-size: .8rem; padding: 0 12px; min-height: 38px; }
  .header-user { gap: 6px; }
  /* На узких экранах имя и телефон скрываем — остаётся аватар-ссылка в ЛК */
  .hu-card { max-width: none; padding: 4px; }
  .hu-info { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 58px 0; }
  .services-grid, .features-grid, .form-row { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card, .contact-card { padding: 22px 18px; }
  /* Скрываем только текст номера, PNG-иконку телефона оставляем видимой */
  .float-call > span:not(.social-ico) { display: none; }
  .float-call {
    padding: 0; width: 56px; height: 56px; min-height: 56px;
    justify-content: center; align-items: center; gap: 0; border-radius: 50%;
  }
  .float-call .social-ico {
    width: 30px; height: 30px; min-width: 30px; min-height: 30px; display: grid;
  }
  .review { grid-template-columns: 1fr; }
  .review-ava { margin: 0 auto; }
  .avatar-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px; }
  .cabinet-user { gap: 12px; }
  .user-ava { width: 64px; height: 64px; }
  .user-ava-lg { width: 76px; height: 76px; }
  .tabs { width: 100%; }
  .tab { flex: 1 1 auto; justify-content: center; padding: 0 12px; min-height: 44px; font-size: .86rem; }
  .hero-badges div { flex: 1 1 42%; }
}
.btn-block { width: 100%; }

/* ─── Золотые акценты карточек (только золото, без цветных) ─── */
/* Тонкая золотая полоса сверху карточки */
.service-card::after,
.feature::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 5;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-2) 50%, var(--gold) 80%, transparent);
  opacity: .85;
}
.service-card:hover, .feature:hover { border-color: var(--gold); }
.feature .ico { filter: saturate(1.2) brightness(1.15); }

/* ─── Кликабельная карточка целиком ─── */
.card-link {
  position: absolute; inset: 0; z-index: 6;
  border-radius: var(--radius);
  font-size: 0; color: transparent; background: transparent;
}
.card-link:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
.service-card .service-link { position: relative; z-index: 7; pointer-events: none; }
.service-card { cursor: pointer; }

/* ─── Личный кабинет: шапка и статусы ─── */
.cabinet-top{
  display:flex;flex-wrap:wrap;gap:20px;align-items:flex-end;
  justify-content:space-between;margin-bottom:34px;
}
.badge-ok{
  border-color:rgba(31,138,76,.45);
  color:#7BE0A5;
  background:rgba(31,138,76,.18);
}
@media (max-width:640px){
  .cabinet-top{flex-direction:column;align-items:stretch}
}

/* ═══════════ ПРИМЕРЫ РАБОТ ═══════════ */
.works-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: space-between; margin-bottom: 22px;
}
.works-filter { display: flex; flex-wrap: wrap; gap: 10px; }
.work-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 12px; cursor: pointer; font: 600 .9rem/1 var(--font-body, inherit);
  color: #E8EAEE; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); transition: all .2s;
}
.work-chip span {
  font-size: .74rem; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: var(--gold-2);
}
.work-chip:hover { border-color: var(--gold); color: #fff; }
.work-chip.is-active {
  color: #14161A; border-color: transparent;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
}
.work-chip.is-active span { background: rgba(20, 22, 26, .2); color: #14161A; }
.works-count { font-size: .86rem; color: var(--muted); }

.works-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.work-card {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  transition: transform .22s, border-color .22s;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.work-shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: #0C0C10; aspect-ratio: 4 / 3; overflow: hidden;
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card figcaption { display: grid; gap: 4px; padding: 14px 16px 16px; }
.work-card figcaption b { font-family: var(--font-head); font-size: 1rem; color: #fff; }
.work-card figcaption span { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.works-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.work-lightbox {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center;
  padding: 24px; background: rgba(6, 7, 9, .92); backdrop-filter: blur(4px);
}
.work-lightbox[hidden] { display: none; }
.work-lightbox img {
  max-width: 92vw; max-height: 86vh; border-radius: 14px;
  border: 1px solid var(--gold-line); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.work-lb-close {
  position: absolute; top: 18px; right: 18px; width: 46px; height: 46px;
  border-radius: 12px; cursor: pointer; font-size: 1.1rem; color: #14161A;
  border: 0; background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
@media (max-width: 640px) {
  .works-grid { grid-template-columns: 1fr; }
  .works-cta .btn { width: 100%; justify-content: center; }
}

/* ═══════════ АДМИН-ПАНЕЛЬ ═══════════ */
.admin-stats {
  display: grid; gap: 14px; margin-bottom: 30px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.admin-stat {
  padding: 18px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.admin-stat b {
  display: block; font-family: var(--font-head); font-size: 1.6rem;
  font-weight: 800; color: var(--gold-2); line-height: 1.1;
}
.admin-stat span { font-size: .8rem; color: var(--muted); }

.admin-table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td {
  padding: 12px 14px; text-align: left; font-size: .86rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: middle;
}
.admin-table th {
  font-family: var(--font-head); font-size: .76rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--gold-2); background: rgba(255, 255, 255, .03);
  position: sticky; top: 0; z-index: 2;
}
.admin-table tbody tr:hover { background: var(--gold-dim); }
.admin-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-user-cell { display: flex; align-items: center; gap: 10px; }
.admin-ava {
  width: 38px; height: 38px; min-width: 38px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--gold-line); background: #0C0C10;
}
.admin-ava img { width: 100%; height: 100%; object-fit: cover; }
.admin-cart-list { margin: 0; padding-left: 18px; font-size: .8rem; color: var(--muted); }
.admin-empty { padding: 26px; text-align: center; color: var(--muted); }
.admin-sub { font-size: .78rem; color: var(--muted); }
.admin-role {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem;
  font-weight: 700; color: #14161A; background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-mini {
  min-height: 34px; padding: 0 12px; border-radius: 9px; cursor: pointer;
  font-size: .8rem; font-weight: 700; color: #14161A; border: 0;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}
.admin-mini.ghost {
  color: #E8EAEE; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
@media (max-width: 640px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════ ЗАГРУЗКА МАКЕТОВ ВИЗИТОК ═══════════ */
.cards-size-row { display: flex; align-items: center; gap: 10px; }
.cards-size-row .input { flex: 1 1 0; min-width: 0; }
.cards-size-x { color: var(--gold); font-weight: 800; }

.cards-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cards-drop { display: grid; gap: 8px; }
.cards-drop-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #b9b0a4;
}
.cards-drop.is-disabled { opacity: .45; }

.cards-drop-zone {
  position: relative; display: flex; flex-direction: row;
  align-items: center; justify-content: flex-start; gap: 16px;
  padding: 22px 18px 22px 20px; text-align: left; cursor: pointer;
  border: 2px dashed var(--line); border-radius: 18px;
  background: rgba(255, 255, 255, .03); transition: border-color .2s, background .2s;
}
.cards-drop-zone:hover,
.cards-drop-zone.is-over { border-color: var(--gold); background: rgba(245, 200, 66, .07); }
.cards-drop-zone:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.cards-drop-zone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.cards-drop-zone input[type="file"]:disabled { cursor: not-allowed; }
.cards-drop-zone.is-loading { opacity: .6; pointer-events: none; }
.cards-drop-icon { font-size: 1.5rem; color: var(--gold); }
.cards-drop-text { font-size: .78rem; color: #b9b0a4; }

.cards-file {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border: 1px solid var(--line); border-radius: 11px;
  background: rgba(255, 255, 255, .04);
}
.cards-thumb {
  flex: 0 0 auto; width: 72px; height: 72px; border-radius: 10px;
  overflow: hidden; display: grid; place-items: center;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line);
}
.cards-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cards-thumb-ext { font-size: .72rem; font-weight: 800; color: var(--gold); }
.cards-file-info { min-width: 0; display: grid; gap: 2px; flex: 1 1 auto; }
.cards-file-info strong {
  font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cards-file-info small { font-size: .68rem; color: #b9b0a4; }
.cards-file-del {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  color: #E8EAEE; font-size: 1rem; line-height: 1;
}
.cards-file-del:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 640px) {
  .cards-uploads { grid-template-columns: 1fr; }
}

/* ═══════════ МАКЕТЫ В ТАБЛИЦЕ ЗАКАЗОВ (админка и ЛК) ═══════════ */
.admin-files { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.admin-file {
  width: 34px; height: 34px; border-radius: 7px; overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .35); text-decoration: none;
}
.admin-file:hover { border-color: var(--gold); }
.admin-file img { width: 100%; height: 100%; object-fit: cover; }
.admin-file span { font-size: .55rem; font-weight: 800; color: var(--gold); }


/* ═══════════ КОРЗИНА И ОФОРМЛЕНИЕ ═══════════ */
.cart-layout {
  display: grid; grid-template-columns: 1fr 400px; gap: 26px; align-items: start;
}
.cart-list { display: grid; gap: 14px; }

.cart-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding: 16px; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
  animation: cartIn .38s cubic-bezier(.2, .8, .3, 1) both;
  transition: border-color .24s, transform .24s, box-shadow .24s, opacity .2s;
}
.cart-item:hover {
  border-color: var(--gold-line); transform: translateY(-3px); box-shadow: var(--shadow-lg);
}
.cart-item.is-removing { opacity: 0; transform: translateX(28px) scale(.97); }
@keyframes cartIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.cart-item-files { display: flex; gap: 8px; }
.cart-thumb {
  width: 74px; height: 74px; flex: 0 0 auto; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft); border-radius: 14px;
  background: var(--card-2); text-decoration: none;
  transition: transform .24s, border-color .24s;
}
.cart-thumb:hover { transform: scale(1.06); border-color: var(--gold); }
.cart-thumb img, .cart-thumb canvas {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cart-thumb-ext {
  font-family: var(--font-head); font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; color: var(--gold);
}

.cart-item-body h4 { margin: 0 0 6px; font-size: 1.04rem; }
.cart-item-details { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.cart-item-qty {
  display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 9px;
  background: var(--gold-dim); border: 1px solid var(--line);
  font-size: .76rem; color: var(--gold);
}
.cart-item-side { text-align: right; display: grid; gap: 8px; justify-items: end; }
.cart-item-price { font-family: var(--font-head); font-size: 1.16rem; color: var(--ink); }
.cart-del {
  border: 0; background: none; cursor: pointer; padding: 2px 0;
  color: var(--muted); font-family: var(--font); font-size: .82rem;
  border-bottom: 1px dashed transparent; transition: color .2s, border-color .2s;
}
.cart-del:hover { color: #E06B5A; border-bottom-color: #E06B5A; }

/* ─── Панель оформления ─── */
.cart-checkout {
  position: sticky; top: 96px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-lg);
}
.cart-checkout h3 { margin: 0 0 16px; font-size: 1.16rem; }

.delivery-option {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px;
  padding: 14px; border: 1px solid var(--line-soft); border-radius: 15px;
  background: var(--card-2); cursor: pointer;
  transition: border-color .22s, background .22s, transform .22s;
}
.delivery-option:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.delivery-option.is-active { border-color: var(--gold); background: var(--gold-dim); }
.delivery-option input { margin-top: 4px; accent-color: var(--gold); }
.delivery-option-body { display: grid; gap: 3px; }
.delivery-option-body strong { font-size: .95rem; color: var(--ink); }
.delivery-option-body small { font-size: .8rem; color: var(--muted); line-height: 1.45; }

.cart-totals { list-style: none; margin: 18px 0 8px; padding: 16px 0 0; border-top: 1px solid var(--line-soft); }
.cart-totals li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; padding: 5px 0; font-size: .9rem; color: var(--muted);
}
.cart-totals li strong { color: var(--ink); font-weight: 600; }
.cart-totals-sum {
  margin-top: 8px; padding-top: 12px !important; border-top: 1px solid var(--line);
  font-size: 1rem !important;
}
.cart-totals-sum strong {
  font-family: var(--font-head); font-size: 1.38rem; color: var(--gold) !important;
}

/* ─── Пустая корзина ─── */
.cart-empty {
  max-width: 620px; margin: 0 auto; padding: 46px 30px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--card);
  animation: cartIn .4s ease both;
}
.cart-empty-icon { margin: 0 auto 14px; width: 64px; height: 64px; color: var(--gold); opacity: .8; }
.cart-empty-icon svg { width: 100%; height: 100%; display: block; }
.cart-empty h3 { margin: 0 0 8px; }
.cart-empty p { margin: 0 0 20px; color: var(--muted); }
/* Две ключевые кнопки: вернуться в меню и сразу оформить заказ */
.cart-empty-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.cart-empty-links {
  list-style: none; margin: 24px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex; gap: 8px 24px; justify-content: center; flex-wrap: wrap;
}
.cart-empty-links a { color: var(--muted); font-size: .88rem; }
.cart-empty-links a:hover { color: var(--gold); }
/* Кнопки под списком позиций: докупить или очистить */
.cart-list-actions {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px;
}

/* ─── Кабинет: вкладка «Новый заказ» ведёт в раздел «Полиграфия» ─── */
.cab-steps {
  margin: 0 0 22px; padding: 0 0 0 20px; color: var(--text);
  display: grid; gap: 9px; font-size: .93rem; line-height: 1.5;
}
.cab-steps li::marker { color: var(--gold); font-weight: 700; }
.cab-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
@media (max-width: 520px) {
  .cab-cta .btn { width: 100%; }
}
@media (max-width: 520px) {
  .cart-empty { padding: 34px 18px; }
  .cart-empty-actions .btn { width: 100%; }
}

@media (max-width: 980px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-checkout { position: static; }
}
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 1fr; }
  .cart-item-side { justify-items: start; text-align: left; }
  .cart-thumb { width: 62px; height: 62px; }
}

/* Уважение к системной настройке «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  .btn-pay:not(:disabled), .btn.is-busy, .cart-count.is-bump, .cart-item, .cart-empty {
    animation: none !important;
  }
  .cart-checkout::before { animation: none !important; }
}

/* ─── Корзина: дополнительная отделка ─── */
.cart-item {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--card-2), var(--card));
}
/* Золотая полоска слева проявляется при наведении */
.cart-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold), var(--gold-deep));
  opacity: 0; transition: opacity .24s;
}
.cart-item:hover::before { opacity: 1; }
.cart-item-qty { border-color: var(--gold-line); font-weight: 700; }
.cart-item-price { font-weight: 800; }
.cart-del { border-radius: 9px; padding: 4px 8px; }
.cart-del:hover { background: rgba(224, 107, 90, .1); }

.cart-checkout { position: sticky; overflow: hidden; }
.cart-checkout::before {
  content: ''; position: absolute; inset: -55% -25% auto; height: 210px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0, rgba(201, 162, 39, .2), transparent 70%);
  animation: totalGlow 6s ease-in-out infinite;
}
.cart-checkout > * { position: relative; }
.cart-checkout h3 { letter-spacing: .01em; }

.delivery-option { border-radius: 18px; }
.delivery-option.is-active { box-shadow: 0 10px 26px rgba(201, 162, 39, .16); }
.cart-totals { border-top-style: dashed; }
.cart-totals-sum strong { text-shadow: 0 0 24px rgba(201, 162, 39, .38); }
.cart-thumb { border-radius: 16px; }
.cart-empty { border-radius: 24px; }

/* ═══════════ КАЛЬКУЛЯТОР ВИЗИТОК: ЖИВОЙ ВИЗУАЛ ═══════════ */
.calc-pro { gap: 30px; }
.calc-form { position: relative; overflow: hidden; }
.calc-form::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .7;
}
.calc-head { margin-bottom: 22px; }
.calc-head h3 { margin: 10px 0 6px; }
.calc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--gold-line); background: var(--gold-dim);
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.calc-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  animation: calcPulse 1.8s ease-in-out infinite;
}
@keyframes calcPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, .55); opacity: 1; }
  50% { box-shadow: 0 0 0 7px rgba(201, 162, 39, 0); opacity: .65; }
}
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Стилизованные выпадающие списки калькулятора */
.calc-form .select {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px; cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 21px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.calc-form .select:hover { border-color: var(--gold-line); }
.calc-form .select:focus { box-shadow: 0 0 0 3px var(--gold-dim); }

/* Плюс/минус к комплектам */
.stepper { display: flex; align-items: stretch; gap: 8px; }
.stepper .input { flex: 1 1 auto; text-align: center; min-width: 0; }
.stepper-btn {
  width: 48px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .04);
  color: var(--gold); font-size: 1.25rem; font-weight: 700; line-height: 1;
  transition: transform .18s, border-color .2s, background .2s;
}
.stepper-btn:hover { border-color: var(--gold); background: var(--gold-dim); transform: translateY(-2px); }
.stepper-btn:active { transform: scale(.94); }
.stepper-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Чекбоксы обработки — плитки с кастомной галочкой */
.checks-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.checks-grid .check {
  position: relative; padding: 13px 15px; border-radius: 14px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03);
  transition: border-color .22s, background .22s, transform .18s, box-shadow .22s;
}
.checks-grid .check:hover {
  border-color: var(--gold-line); background: var(--gold-dim); transform: translateY(-2px);
}
/* Прячем системный чекбокс, рисуем свой */
.checks-grid .check input {
  position: absolute; opacity: 0; width: 0; height: 0; margin: 0;
}
.checks-grid .check span {
  position: relative; padding-left: 34px; display: block;
  font-size: .9rem; font-weight: 600; line-height: 1.35;
  transition: color .2s;
}
.checks-grid .check span::before {
  content: ''; position: absolute; left: 0; top: 50%; margin-top: -11px;
  width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid var(--gold-line); background: rgba(0, 0, 0, .3);
  transition: border-color .22s, background .22s, box-shadow .22s;
}
.checks-grid .check span::after {
  content: ''; position: absolute; left: 7px; top: 50%; margin-top: -5px;
  width: 8px; height: 5px; border-left: 2.2px solid #14161A;
  border-bottom: 2.2px solid #14161A; border-radius: 1px;
  transform: rotate(-45deg) scale(.4); opacity: 0;
  transition: transform .24s cubic-bezier(.2, 1.5, .4, 1), opacity .18s;
}
.checks-grid .check:hover span::before { border-color: var(--gold); }
.checks-grid .check input:checked + span { color: var(--gold-hover); }
.checks-grid .check input:checked + span::before {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 50%, var(--gold-deep));
  border-color: transparent; box-shadow: 0 4px 14px rgba(201, 162, 39, .4);
}
.checks-grid .check input:checked + span::after {
  opacity: 1; transform: rotate(-45deg) scale(1);
}
.checks-grid .check input:focus-visible + span::before {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.checks-grid .check:has(input:checked) {
  border-color: var(--gold); background: var(--gold-dim);
}

/* Кнопка расчёта */
.btn-calc { position: relative; letter-spacing: .01em; }

/* Зоны загрузки макетов */
.cards-drop-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cards-drop-tag {
  padding: 3px 9px; border-radius: 999px; font-size: .64rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--gold-line); background: var(--gold-dim); color: var(--gold);
}
.cards-drop-zone { position: relative; transition: border-color .24s, background .24s, transform .24s, box-shadow .24s; }
.cards-drop-zone:hover, .cards-drop-zone.is-over { transform: translateY(-2px); }
.cards-drop-zone.is-over { box-shadow: 0 14px 34px rgba(201, 162, 39, .26); }
.cards-drop-icon { display: inline-flex; flex: 0 0 auto; }
.cards-drop-icon svg { width: 30px; height: 30px; }
.cards-drop-zone .cards-drop-text { text-align: left; }
.cards-drop-zone:hover .cards-drop-icon svg { animation: dropBob 1.1s ease-in-out infinite; }
@keyframes dropBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.cards-drop-spin { display: none; }
.cards-drop-zone.is-loading .cards-drop-spin {
  display: block; position: absolute; inset: auto auto 12px 50%;
  width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  border: 2px solid var(--gold-line); border-top-color: var(--gold);
  animation: dropSpin .8s linear infinite;
}
@keyframes dropSpin { to { transform: rotate(360deg); } }

/* Превью макета: появление и увеличение при наведении */
.cards-preview:not(:empty) { animation: fadeIn .32s ease; }
.cards-thumb { transition: transform .24s, border-color .24s; }
.cards-thumb:hover { transform: scale(1.06); border-color: var(--gold); }
.cards-thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Итоговая карточка */
.calc-total-pro { position: relative; overflow: hidden; }
.calc-total-glow {
  position: absolute; inset: -40% -20% auto; height: 220px; pointer-events: none;
  background: radial-gradient(circle at 50% 0, rgba(201, 162, 39, .28), transparent 68%);
  animation: totalGlow 6s ease-in-out infinite;
}
@keyframes totalGlow {
  0%, 100% { opacity: .55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(12px); }
}
.calc-total-label {
  position: relative; letter-spacing: .18em; text-transform: uppercase;
  font-size: .72rem; font-weight: 800; color: #b9b0a4;
}
.calc-total-pro .sum { position: relative; }
.calc-total-pro .sum.is-updated { animation: sumPop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes sumPop {
  0% { transform: scale(.9); opacity: .5; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}
.calc-breakdown li { transition: color .2s; }
.calc-breakdown li:hover { color: var(--gold); }
.calc-actions { position: relative; margin-top: 20px; display: grid; gap: 10px; }
.calc-perks {
  list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 7px;
  text-align: left; font-size: .82rem; color: var(--muted);
}
.calc-perks li { position: relative; padding-left: 22px; }
.calc-perks li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 800;
}

/* Послепечатная обработка: две колонки — ламинация и прочие операции */
.extras-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start;
}
.extras-col {
  display: grid; gap: 10px; padding: 14px; border-radius: 18px;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .022);
}
.extras-col-title {
  font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.extras-col-items { display: grid; gap: 9px; align-content: start; }
.extras-col-items .check {
  position: relative; padding: 13px 15px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .03);
  transition: border-color .22s, background .22s, transform .18s, box-shadow .22s;
}
.extras-col-items .check:hover {
  border-color: var(--gold-line); background: var(--gold-dim); transform: translateY(-2px);
}
.extras-col-items .check input {
  position: absolute; opacity: 0; width: 0; height: 0; margin: 0;
}
.extras-col-items .check span {
  position: relative; padding-left: 34px; display: block;
  font-size: .9rem; font-weight: 600; line-height: 1.35; transition: color .2s;
}
.extras-col-items .check span::before {
  content: ''; position: absolute; left: 0; top: 50%; margin-top: -11px;
  width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid var(--gold-line); background: rgba(0, 0, 0, .3);
  transition: border-color .22s, background .22s, box-shadow .22s;
}
.extras-col-items .check span::after {
  content: ''; position: absolute; left: 8px; top: 50%; margin-top: -7px;
  width: 6px; height: 11px; border: solid #14161A;
  border-width: 0 2.4px 2.4px 0; transform: rotate(45deg) scale(0);
  opacity: 0; transition: transform .26s cubic-bezier(.2, 1.5, .4, 1), opacity .18s;
}
.extras-col-items .check:hover span::before { border-color: var(--gold); }
.extras-col-items .check input:checked + span { color: var(--gold-hover); }
.extras-col-items .check input:checked + span::before {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  border-color: transparent; box-shadow: 0 0 0 4px var(--gold-dim);
}
.extras-col-items .check input:checked + span::after {
  transform: rotate(45deg) scale(1); opacity: 1;
}
.extras-col-items .check input:focus-visible + span::before {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.extras-col-items .check:has(input:checked) {
  border-color: var(--gold); background: var(--gold-dim);
  box-shadow: 0 10px 26px rgba(201, 162, 39, .16);
}
@media (max-width: 760px) {
  .extras-cols { grid-template-columns: 1fr; }
}

/* Округления всей формы калькулятора в едином стиле сайта */
.calc-form .input,
.calc-form .select,
.calc-form .textarea { border-radius: 16px; }
.calc-form .stepper-btn { border-radius: 14px; }
.calc-form .cards-file { border-radius: 16px; }
.calc-form .alert { border-radius: 14px; }

@media (max-width: 900px) {
  .calc-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .calc-head h3 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .calc-dot, .calc-total-glow, .calc-total-pro .sum.is-updated,
  .cards-drop-zone:hover .cards-drop-icon svg, .cards-preview:not(:empty) {
    animation: none !important;
  }
}
