/* ============================================
   Color-Express - печать визиток в СПб
   ============================================ */

:root {
  --ink:        #0a1628;
  --ink-soft:   #1d2a44;
  --paper:      #f7f9fc;
  --paper-2:    #eef3f9;
  --accent:     #1e7ec9;    /* фирменный голубой Color-Express */
  --accent-dk:  #15619e;
  --accent-2:   #ff8a3c;    /* контраст для бейджей */
  --gold:       #d4af37;
  --success:    #2ea66f;
  --line:       #dce5ef;
  --muted:      #6c7689;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --content-width: 1200px;
  --shadow-1: 0 1px 2px rgba(10,22,40,0.04), 0 8px 24px rgba(10,22,40,0.06);
  --shadow-2: 0 12px 40px rgba(10,22,40,0.12);

  --f-display: 'Unbounded', 'Georgia', serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-script:  'Caveat', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Типографика */
h2.h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
h2.h2.center { text-align: center; }
h3.h3 {
  font-family: var(--f-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.muted { color: var(--muted); font-size: 14px; }
.muted.center { text-align: center; margin-bottom: 32px; }

/* Прелоадер */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  transition: opacity .5s ease;
}
#preloader.is-hidden { opacity: 0; pointer-events: none; }
.preloader__card {
  width: 180px; height: 100px;
  background: white;
  border-radius: 6px;
  box-shadow: var(--shadow-2);
  position: relative;
  animation: cardSpin 1.5s ease-in-out infinite;
}
.preloader__card::before {
  content: '90 х 50 мм';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 600;
  color: var(--ink);
}
@keyframes cardSpin {
  0%, 100% { transform: rotateY(0) scale(1); }
  50%      { transform: rotateY(180deg) scale(1.05); }
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 0 0 var(--accent-dk), 0 8px 20px rgba(30,126,201,0.25);
}
.btn--primary:hover {
  background: var(--accent-dk);
  color: white;
  box-shadow: 0 4px 0 0 var(--ink), 0 8px 20px rgba(10,22,40,0.2);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: white; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ============================================
   HEADER
   ============================================ */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__top {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
}
.hdr__top-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.hdr__top-tag {
  color: rgba(255,255,255,0.7);
}
.hdr__top-contacts {
  margin-left: auto;
  display: flex; gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.hdr__top-contacts a {
  color: var(--paper);
  font-weight: 500;
}
.hdr__top-contacts a:hover { color: var(--accent-2); }
.hdr__sep { opacity: 0.4; }

.hdr__inner {
  max-width: var(--content-width); margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 32px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 800; font-size: 18px;
}
.logo__img {
  height: 44px; width: auto;
  object-fit: contain;
}
.logo__img--footer {
  height: 50px;
  filter: brightness(0) invert(1);
}
.logo__fallback {
  display: none;
  align-items: center; gap: 10px;
}
.logo__mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: white;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-family: var(--f-display);
  box-shadow: 0 4px 12px rgba(30,126,201,0.3);
}
.logo__txt em { font-style: normal; color: var(--accent); font-weight: 800; }
.logo--footer .logo__txt { color: white; }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { font-weight: 500; font-size: 14px; }

.hdr__right { display: flex; align-items: center; gap: 16px; }

.xp-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--paper);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: transform .2s;
}
.xp-badge:hover { transform: scale(1.05); }
.xp-badge__icon { color: var(--accent-2); font-size: 14px; }
.xp-badge__lvl { color: white; }
.xp-badge__xp { color: var(--accent-2); font-weight: 700; }

@media (max-width: 900px) {
  .hdr__top-contacts { font-size: 12px; gap: 8px; }
  .nav { display: none; }
  .xp-badge__lvl { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 60px 24px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 30%, rgba(30,126,201,0.10), transparent),
    radial-gradient(ellipse 500px 300px at 10% 60%, rgba(255,138,60,0.06), transparent);
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,22,40,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,22,40,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--content-width); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__title--accent {
  color: var(--accent);
  font-family: var(--f-script);
  font-weight: 700;
  font-size: 1.15em;
  display: inline-block;
  transform: rotate(-2deg);
}
.hero__lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__bullets {
  list-style: none;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
}

/* 3D карточки в hero */
.hero__right {
  position: relative;
  height: 480px;
  perspective: 1000px;
}
.card-3d {
  position: absolute;
  width: 320px; height: 178px;
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-2);
  transition: transform .4s ease;
  font-family: var(--f-body);
}
.card-3d--1 {
  top: 40px; left: 40px;
  background: white;
  transform: rotate(-6deg);
  z-index: 3;
}
.card-3d--1:hover { transform: rotate(-2deg) translateY(-8px); }
.card-3d__name { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.card-3d__role { color: var(--muted); font-size: 13px; margin-top: 4px; }
.card-3d__sep { height: 1px; background: var(--accent); width: 40px; margin: 14px 0; }
.card-3d__contact { font-size: 13px; line-height: 1.6; }

.card-3d--2 {
  top: 180px; right: 0;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(8deg);
  z-index: 2;
}
.card-3d--2:hover { transform: rotate(4deg) translateY(-8px); }
.card-3d__corner { position: absolute; top: 14px; right: 18px; color: var(--accent-2); font-size: 18px; }
.card-3d__big { font-family: var(--f-display); font-weight: 800; font-size: 22px; margin-top: 60px; }
.card-3d__small { font-size: 12px; color: var(--paper-2); opacity: 0.7; margin-top: 4px; }

.card-3d--3 {
  bottom: 20px; left: 100px;
  background: var(--accent);
  color: white;
  transform: rotate(-12deg);
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.card-3d--3:hover { transform: rotate(-8deg) translateY(-8px); }
.card-3d__monogram {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 56px;
  letter-spacing: -0.04em;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__right { height: 380px; transform: scale(0.85); }
}

/* ============================================
   ПРЕИМУЩЕСТВА
   ============================================ */
.advantages {
  max-width: var(--content-width); margin: 0 auto;
  padding: 60px 24px;
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.adv-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-1);
  transition: transform .3s, box-shadow .3s;
  border: 1px solid var(--line);
}
.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--accent);
}
.adv-card__icon {
  width: 56px; height: 56px;
  background: var(--paper-2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.adv-card h3 { margin-bottom: 8px; font-size: 18px; }
.adv-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

/* ============================================
   КОНСТРУКТОР
   ============================================ */
.editor-section {
  max-width: var(--content-width); margin: 0 auto;
  padding: 60px 24px;
}
.editor-section__head { text-align: center; margin-bottom: 32px; }

.quest-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-1);
}
.quest-panel__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.quest-panel__title { font-weight: 600; font-size: 15px; }
.quest-panel__pct { font-family: var(--f-display); font-weight: 700; color: var(--accent); }
.quest-panel__bar {
  height: 8px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.quest-panel__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width .6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.quest-panel__fill::after {
  content: '';
  position: absolute; right: 0; top: -2px;
  width: 12px; height: 12px;
  background: white;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(30,126,201,0.4);
}
.quest-panel__list {
  list-style: none;
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 13px;
}
.quest-panel__list li {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  background: var(--paper-2);
  border-radius: 999px;
  color: var(--muted);
  transition: all .3s;
}
.quest-panel__list li.is-done {
  background: var(--success);
  color: white;
}
.q-dot {
  width: 8px; height: 8px;
  background: var(--muted);
  border-radius: 50%;
  transition: background .3s;
}
.is-done .q-dot { background: white; }
.is-done .q-dot::after { content: '✓'; color: var(--success); font-weight: 700; }

.editor {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; }
}

.ed-tools {
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.ed-tools__tabs {
  display: flex;
  background: var(--ink);
  padding: 8px;
  gap: 4px;
}
.ed-tab {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  font-weight: 700;
  transition: all .2s;
}
.ed-tab:hover { color: white; background: rgba(255,255,255,0.08); }
.ed-tab.is-active {
  color: var(--ink);
  background: var(--paper);
}
.ed-tools__body { padding: 18px; min-height: 460px; }
.ed-pane { display: none; }
.ed-pane.is-active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ed-pane__title {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 12px;
}
.fld { display: block; margin-bottom: 14px; }
.fld > span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fld select, .fld input[type="text"], .fld input[type="tel"], .fld input[type="email"], .fld textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  background: var(--paper);
  transition: border .2s;
}
.fld select:focus, .fld input:focus, .fld textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.fld input[type="color"] {
  width: 100%; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: none;
  cursor: pointer;
}
.fld input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.big-btn {
  display: block; width: 100%;
  padding: 12px;
  background: var(--paper-2);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  transition: all .2s;
}
.big-btn:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; gap: 4px; flex-wrap: wrap; }
.mini-btn {
  width: 36px; height: 36px;
  background: var(--paper-2);
  border-radius: 6px;
  font-weight: 600;
  transition: all .2s;
}
.mini-btn:hover { background: var(--ink); color: var(--paper); }
.mini-btn.is-active { background: var(--accent); color: white; }
.tpl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.tpl-card {
  aspect-ratio: 90/50;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid var(--line);
  transition: all .2s;
  overflow: hidden;
  position: relative;
}
.tpl-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}
.upload-area {
  display: block;
  padding: 24px 16px;
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.upload-area:hover { border-color: var(--accent); background: var(--paper-2); }
.upload-area__icon { display: block; font-size: 32px; color: var(--accent); margin-bottom: 8px; }
.upload-area__txt { display: block; font-weight: 600; }
.upload-area__hint { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.uploads-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 12px; }
.uploads-list img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.uploads-list img:hover { border-color: var(--accent); }
.shape-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shape-btn {
  aspect-ratio: 1;
  background: var(--paper-2);
  border-radius: var(--r-sm);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.shape-btn:hover { background: var(--ink); color: var(--accent); }
.shape-btn svg { width: 60%; height: 60%; }
.bg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bg-btn {
  padding: 14px 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--line);
  transition: transform .2s;
}
.bg-btn:hover { transform: scale(1.04); }
.hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.ed-canvas-wrap {
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.ed-toolbar {
  display: flex; gap: 4px; align-items: center;
  padding: 10px 14px;
  background: var(--ink);
  flex-wrap: wrap;
}
.tb-btn {
  width: 36px; height: 36px;
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  font-size: 18px;
  transition: all .15s;
}
.tb-btn:hover { background: rgba(255,255,255,0.12); color: white; }
.tb-btn--danger:hover { background: var(--accent-2); color: white; }
.tb-sep { width: 1px; height: 24px; background: rgba(255,255,255,0.15); margin: 0 4px; }

.side-switch {
  display: flex; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 3px;
}
.ss-btn {
  padding: 6px 14px;
  color: rgba(255,255,255,0.6);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.ss-btn.is-active { background: var(--accent); color: white; }

.canvas-stage {
  position: relative;
  padding: 40px;
  background:
    repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 10px, transparent 10px, transparent 20px),
    var(--paper);
  display: flex; align-items: center; justify-content: center;
  min-height: 460px;
}
/* Fabric.js оборачивает canvas в .canvas-container, стилизуем именно его */
.canvas-stage .canvas-container {
  box-shadow: var(--shadow-2);
  border-radius: 2px;
  background: white;
}
/* Сам canvas - прозрачный, без своих эффектов */
.canvas-stage canvas {
  display: block;
  border-radius: 2px;
}
.canvas-ruler {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--f-script);
  font-size: 22px;
  color: var(--accent);
  pointer-events: none;
  z-index: 5;
}
.ruler-tag {
  background: white;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
}
.canvas-bleed {
  position: absolute;
  pointer-events: none;
  border: 1px dashed rgba(30,126,201,0.4);
  z-index: 3;
}
.canvas-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.link-btn {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.link-btn:hover { text-decoration: underline; }

.ed-order { position: sticky; top: 130px; }
.order-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.order-card__title {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.price-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin: 14px 0 16px;
}
.price-line strong {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.discount-card {
  display: flex; gap: 12px; align-items: center;
  background: linear-gradient(135deg, #fff5e6, #ffe8d6);
  border: 1px solid #ffcfa0;
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  transition: transform .3s;
}
.discount-card.is-active {
  background: linear-gradient(135deg, var(--gold), #ffd95e);
  border-color: var(--gold);
  animation: discountPulse .8s ease;
}
@keyframes discountPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.discount-card__icon { font-size: 28px; }
.discount-card__title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.discount-card__val { font-family: var(--f-display); font-size: 24px; font-weight: 800; }
.discount-card__hint { font-size: 11px; color: var(--ink-soft); }

.trust-list {
  list-style: none;
  font-size: 13px;
  margin-top: 14px;
  color: var(--muted);
}
.trust-list li { padding: 4px 0; }

/* ============================================
   ЦЕНЫ
   ============================================ */
.pricing {
  max-width: var(--content-width); margin: 0 auto;
  padding: 60px 24px;
}
.price-section {
  margin-bottom: 36px;
}
.price-section h3 {
  margin-bottom: 14px;
}
.price-table-wrap {
  background: white;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  overflow-x: auto;
  border: 1px solid var(--line);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 500px;
}
.price-table th {
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-table th:first-child { width: 40%; }
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--paper-2); }
.price-table td:not(:first-child) {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}
.price-note {
  background: white;
  border-left: 4px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 18px 22px;
  margin-top: 24px;
  box-shadow: var(--shadow-1);
}
.price-note p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.price-note strong { color: var(--ink); }

/* ============================================
   FAQ
   ============================================ */
.faq {
  max-width: var(--content-width); margin: 0 auto;
  padding: 60px 24px;
}
.faq__item {
  background: white;
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  border: 1px solid var(--line);
}
.faq__item summary {
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 20px; color: var(--accent); font-weight: 700;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin-top: 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

/* ============================================
   КОНТАКТЫ
   ============================================ */
.contacts {
  max-width: var(--content-width); margin: 0 auto;
  padding: 60px 24px;
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 700px) { .contacts-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  transition: transform .3s;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.contact-card h3 {
  color: var(--ink);
  margin-bottom: 16px;
  font-size: 20px;
}
.contact-card__phone {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 8px;
}
.contact-card__phone a { color: var(--accent); }
.contact-card__phone a:hover { color: var(--accent-dk); }
.contact-card__email { margin-bottom: 16px; font-size: 15px; }
.contact-card__email a { color: var(--ink-soft); }
.contact-card__hours {
  background: var(--paper-2);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
}
.contact-card__hours strong { display: block; margin-bottom: 6px; }
.contact-card__hours p { margin: 0; color: var(--ink-soft); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 24px 20px;
  margin-top: 60px;
}
.footer__inner {
  max-width: var(--content-width); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__inner { grid-template-columns: 1fr; } }

.logo--footer {
  margin-bottom: 16px;
  color: white;
  display: flex;
  align-items: center;
}
.logo--footer .logo__txt { color: white; }
.logo--footer .logo__txt em { color: var(--accent); }

.footer__about { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.7; }
.footer__col h4 { font-family: var(--f-display); margin-bottom: 14px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-2); }
.footer__col p { color: rgba(255,255,255,0.7); margin-bottom: 8px; font-size: 14px; }
.footer__col a { color: var(--paper); }
.footer__col a:hover { color: var(--accent-2); }
.footer__bot {
  max-width: var(--content-width); margin: 0 auto;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   SEO-ТЕКСТ
   ============================================ */
.seo-text {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 24px;
}
.seo-text__inner h2 {
  margin-bottom: 20px;
}
.seo-text__inner p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* ============================================
   ЭТАПЫ РАБОТЫ
   ============================================ */
.steps {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px 24px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.step-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.step-card__num {
  width: 44px; height: 44px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(30,126,201,0.3);
}
.step-card h3 { margin-bottom: 8px; font-size: 18px; }
.step-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

/* ============================================
   ОТЗЫВЫ
   ============================================ */
.reviews {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 60px 24px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.review-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
}
.review-card__stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.review-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.review-card__author {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

/* ============================================
   КУКИ-БАННЕР
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 760px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-2);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 400;
  animation: cookieIn .4s ease;
}
.cookie-banner[hidden] { display: none !important; }
@keyframes cookieIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-banner__text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.cookie-banner__text a {
  color: var(--accent-2);
  text-decoration: underline;
}
.cookie-banner__btn {
  flex-shrink: 0;
  padding: 10px 24px;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 12px;
  }
}

/* ============================================
   МОДАЛКА
   ============================================ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__bg {
  position: absolute; inset: 0;
  background: rgba(10,22,40,0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s;
}
.modal__card {
  position: relative;
  background: white;
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes modalIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close {
  position: absolute; top: 12px; right: 16px;
  width: 36px; height: 36px;
  font-size: 24px;
  color: var(--muted);
  border-radius: 50%;
  transition: all .2s;
}
.modal__close:hover { background: var(--paper-2); color: var(--ink); }
.modal__card h3 { font-family: var(--f-display); font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal__card--sm { max-width: 400px; }
.order-summary {
  background: var(--paper-2);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin: 14px 0;
  font-size: 14px;
}
.order-summary div { display: flex; justify-content: space-between; padding: 3px 0; }
.order-summary strong { font-family: var(--f-display); font-size: 18px; color: var(--accent); }
.check {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13px; color: var(--muted);
  margin: 14px 0;
  line-height: 1.5;
}
.check input { margin-top: 3px; accent-color: var(--accent); }
.order-success { text-align: center; }
.order-success__icon {
  width: 64px; height: 64px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  animation: successPop .5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes successPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ============================================
   ТОСТЫ
   ============================================ */
.toast-stack {
  position: fixed; top: 90px; right: 20px;
  z-index: 300;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
  font-size: 14px;
  font-weight: 500;
  max-width: 320px;
  animation: toastIn .3s ease;
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
}
.toast--success { background: var(--success); }
.toast--error { background: var(--accent-2); }
.toast__icon { font-size: 18px; }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================
   ДОСТИЖЕНИЕ
   ============================================ */
.achv-pop {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: linear-gradient(135deg, var(--gold), var(--accent-2));
  color: var(--ink);
  padding: 24px 32px;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(212,175,55,0.4);
  z-index: 250;
  display: flex; gap: 18px; align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: all .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.achv-pop.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.achv-pop__icon { font-size: 48px; }
.achv-pop__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.achv-pop__name { font-family: var(--f-display); font-size: 22px; font-weight: 800; margin-top: 2px; }

@keyframes confetti {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
.confetti {
  position: fixed; top: -20px;
  width: 12px; height: 12px;
  pointer-events: none;
  z-index: 240;
  animation: confetti 2.5s linear forwards;
}

/* Адаптив */
/* Индикатор горизонтального скролла для широких таблиц на мобильном */
.price-table-wrap {
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.price-scroll-hint {
  display: none;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  align-items: center;
  gap: 6px;
}
.price-scroll-hint::before { content: '👉'; }

@media (max-width: 700px) {
  .hero { padding: 40px 16px 60px; }
  .editor-section { padding: 40px 16px; }
  .pricing { padding: 40px 16px; }
  .advantages { padding: 40px 16px; }
  .contacts { padding: 40px 16px; }
  .quest-panel__list { font-size: 11px; }
  .quest-panel__list li { padding: 3px 8px; }
  .order-card { padding: 16px; }
  .canvas-stage { padding: 20px; min-height: 320px; }

  /* Таблицы цен: компактнее + видимый скролл */
  .price-table { font-size: 13px; min-width: 480px; }
  .price-table th { padding: 9px 10px; font-size: 11px; }
  .price-table td { padding: 9px 10px; }
  .price-table td:not(:first-child) { font-size: 13px; }
  .price-table th:first-child { width: auto; }
  .price-scroll-hint { display: flex; }
  /* Лёгкая тень-подсказка справа, что есть прокрутка */
  .price-table-wrap {
    background:
      linear-gradient(to right, white 30%, rgba(255,255,255,0)),
      linear-gradient(to right, rgba(255,255,255,0), white 70%) 100% 0,
      radial-gradient(farthest-side at 0 50%, rgba(10,22,40,0.12), rgba(0,0,0,0)),
      radial-gradient(farthest-side at 100% 50%, rgba(10,22,40,0.12), rgba(0,0,0,0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
  }
  .price-section h3 { font-size: 17px; }
  .h2 { font-size: 26px; }
}

@media (max-width: 400px) {
  .price-table { font-size: 12px; }
  .price-table th, .price-table td { padding: 7px 8px; }
}
