/* =========================================================
   BOHDAN ART — світла дизайн-система
   Apple-типографіка + аніме-енергія (Naruto / One Piece)
   Десктоп + адаптив (планшет ≤1024px, телефон ≤760px) — у кінці файлу
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-warm: #fff7f0;
  --surface: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --dim: #86868b;

  --orange: #ff6a00;
  --orange-2: #ff8a1a;
  --orange-soft: #fff1e6;
  --red: #e63946;
  --gold: #ffb800;
  --sky: #0a84ff;
  --link: #0066cc;
  --ok: #1fa34a;
  --ok-soft: #e9f8ee;
  --err: #e5322d;
  --err-soft: #fdecec;

  --grad-fire: linear-gradient(100deg, #ff6a00 0%, #ff3d3d 50%, #ffb800 100%);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 24px 48px -24px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.04), 0 40px 80px -30px rgba(0, 0, 0, 0.25);

  --r-sm: 12px;
  --r: 24px;
  --r-lg: 34px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(10, 132, 255, 0.5); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 40px; }
.grad-text {
  background: var(--grad-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Типографіка ---------- */
.eyebrow { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--orange); margin: 0 0 10px; }
.h1 { font-size: 88px; line-height: 1.03; font-weight: 700; letter-spacing: -0.045em; margin: 0; }
.h2 { font-size: 60px; line-height: 1.06; font-weight: 700; letter-spacing: -0.04em; margin: 0; }
.h3 { font-size: 26px; line-height: 1.16; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.lead { font-size: 23px; line-height: 1.4; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); margin: 0; }
.lead strong { color: var(--text); font-weight: 600; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 30px;
  border-radius: 999px; border: 0;
  font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, #ff7a1a, #ff4d1a); color: #fff; box-shadow: 0 10px 28px -10px rgba(255, 90, 0, 0.7); }
.btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(255, 90, 0, 0.8); transform: translateY(-1px); }
.btn-ghost { background: var(--bg-2); color: var(--text); }
.btn-ghost:hover { background: #e8e8ed; }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-lg { height: 60px; padding: 0 38px; font-size: 19px; }
.btn-sm { height: 36px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.link { color: var(--link); font-size: 19px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.link::after { content: "›"; font-size: 1.15em; line-height: 1; transform: translateY(-1px); }

/* ---------- Навігація ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 56px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 36px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--grad-fire); color: #fff;
  font-family: var(--font-jp); font-weight: 900; font-size: 16px;
}
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 14px; color: #424245; }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--orange); }

/* ---------- Поява ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 120px 0 0; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 700px; pointer-events: none;
  background:
    radial-gradient(560px 360px at 20% 20%, rgba(255, 140, 40, 0.14), transparent 70%),
    radial-gradient(560px 360px at 80% 20%, rgba(10, 132, 255, 0.10), transparent 70%);
}
.hero > .wrap { position: relative; }
.chips { display: flex; gap: 10px; justify-content: center; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600; color: #424245;
}
.chip .e { font-size: 16px; }
.hero .h1 { max-width: 1000px; margin: 0 auto; }
.hero .lead { max-width: 740px; margin: 24px auto 0; }
.hero-cta { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 36px; }
.hero-note { margin-top: 16px; font-size: 15px; color: var(--muted); }
.hero-note b { color: var(--text); }
.hero-art {
  position: relative;
  margin: 30px auto 0;
  max-width: 1240px;
  aspect-ratio: 3 / 2;
  max-height: 760px;
}
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  mix-blend-mode: multiply; /* біле тло картинки зливається з тлом сторінки */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-composite: intersect;
}
.hero-art .bubble {
  position: absolute; z-index: 2;
  padding: 12px 18px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow);
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  animation: float 5s ease-in-out infinite;
}
.hero-art .bubble small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.hero-art .bubble .e { font-size: 26px; }
.hero-art .b1 { left: 50%; top: 9%; translate: -50% 0; }
.hero-art .b1 .x { color: var(--dim); font-weight: 400; margin: 0 2px; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Бігучий рядок */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 20px 0;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 40s linear infinite; }
.marquee span { font-size: 20px; font-weight: 800; letter-spacing: 0.06em; color: #c7c7cc; display: inline-flex; gap: 48px; align-items: center; }
.marquee span::after { content: "✦"; color: var(--orange); font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Секції
   ========================================================= */
.section { padding: 130px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 840px; margin: 0 auto 64px; }
.section-head .lead { margin-top: 18px; }

/* ---------- Як замовити (дитячо-просто) ---------- */
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.howto-card {
  position: relative;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px 24px 30px;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.howto-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.howto-card img { width: 190px; height: 190px; object-fit: contain; margin: 0 auto 10px; mix-blend-mode: multiply; }
.howto-card .n {
  position: absolute; top: 18px; left: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-fire); color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 16px -6px rgba(255, 90, 0, 0.8);
}
.howto-card h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.025em; }
.howto-card p { margin: 0; color: var(--muted); font-size: 16px; }
.howto-arrow { display: none; }
.howto-cta { text-align: center; margin-top: 48px; }
.howto-cta p { color: var(--muted); font-size: 15px; margin: 14px 0 0; }

/* ---------- Банери світів ---------- */
.world {
  position: relative;
  height: 620px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  background: #fff;
}
.world + .world { margin-top: 28px; }
.world > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.world-copy {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 520px; padding: 0 64px;
}
.world-copy .lead { margin: 20px 0 32px; font-size: 20px; color: #424245; }
.world-copy .row { display: flex; gap: 24px; align-items: center; }
.world-naruto .world-copy { left: 0; }
.world-naruto .eyebrow { color: var(--orange); }
.world-op .world-copy { right: 0; }
.world-op::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 52%; z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0.88) 100%);
}
.world-op .eyebrow { color: var(--red); }
.world .tagpill {
  position: absolute; left: 24px; bottom: 22px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
  font-size: 12px; color: var(--muted); font-weight: 500;
}
.world-op .tagpill { left: auto; right: 24px; }

/* ---------- Принцип: портрет без ШІ ---------- */
.manifesto { text-align: center; }
.manifesto .h1 { font-size: 100px; }
.manifesto .strike { position: relative; color: #c7c7cc; }
.manifesto .strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 54%;
  height: 8px; border-radius: 4px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s 0.4s var(--ease);
}
.manifesto .reveal.in .strike::after { transform: scaleX(1); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 80px; text-align: left; }
.pillar { padding: 34px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.pillar .ico {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 22px; font-size: 26px;
  background: var(--orange-soft);
}
.pillar p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Стилі ---------- */
.styles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.style-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow);
  border: 0; padding: 0; text-align: left;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.style-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.style-card .pic { aspect-ratio: 1; overflow: hidden; background: linear-gradient(145deg, var(--from), var(--to)); }
.style-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.style-card:hover .pic img { transform: scale(1.06); }
.style-card .meta { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 2px; }
.style-card small { font-size: 12px; font-weight: 700; color: var(--from); text-transform: uppercase; letter-spacing: 0.08em; filter: saturate(1.2) brightness(0.85); }
.style-card b { font-size: 22px; letter-spacing: -0.025em; }
.style-card .go { color: var(--link); font-size: 15px; font-weight: 500; margin-top: 6px; }

/* ---------- Галерея ---------- */
.gallery-grid { columns: 3; column-gap: 22px; }
.gallery-item { break-inside: avoid; margin: 0 0 22px; border-radius: var(--r); overflow: hidden; position: relative; cursor: zoom-in; background: var(--bg-2); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; transition: transform 0.7s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover figcaption { opacity: 1; }
.gallery-empty {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: center;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
}
.gallery-empty img { height: 420px; width: 100%; object-fit: cover; }
.gallery-empty .txt { padding: 56px; }
.gallery-empty .txt p { color: var(--muted); font-size: 18px; margin: 14px 0 28px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(20px); display: grid; place-items: center; padding: 60px; animation: fade 0.3s var(--ease); }
.lightbox img { max-height: calc(100vh - 120px); border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg-2); font-size: 20px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Ціни ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.plan { position: relative; padding: 44px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.popular { box-shadow: 0 0 0 2px var(--orange), var(--shadow-lg); }
.plan .pop { position: absolute; top: 24px; right: 24px; padding: 6px 12px; border-radius: 999px; background: var(--grad-fire); color: #fff; font-size: 12px; font-weight: 700; }
.plan-top { display: flex; align-items: flex-end; gap: 26px; min-height: 140px; }
.paper {
  flex: none; background: #fff; border-radius: 4px; position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 10px 24px -8px rgba(0, 0, 0, 0.3), inset 0 0 0 1px var(--line);
}
.paper::after { content: ""; position: absolute; inset: 9%; border: 1.5px dashed rgba(0, 0, 0, 0.18); border-radius: 2px; }
.paper img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: cover; z-index: 1; border-radius: 2px; }
.plan .size { font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan .sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.plan .like { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font-size: 14px; font-weight: 500; color: #424245; }
.plan .price { font-size: 50px; font-weight: 700; letter-spacing: -0.04em; margin: 30px 0 4px; }
.plan .price span { font-size: 22px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 34px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; color: #424245; font-size: 16px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.plan .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); font-size: 15px; margin-top: 34px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 10px 40px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-size: 22px; font-weight: 400; color: var(--muted); transition: transform 0.3s var(--ease), background 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--orange-soft); color: var(--orange); }
.faq details p { margin: -6px 0 26px; color: var(--muted); font-size: 17px; max-width: 720px; }

/* ---------- Фінальний CTA ---------- */
.final {
  margin: 0 40px 0; border-radius: var(--r-lg);
  padding: 110px 40px; text-align: center; overflow: hidden; position: relative;
  background:
    radial-gradient(600px 300px at 15% 100%, rgba(255, 140, 40, 0.25), transparent 70%),
    radial-gradient(600px 300px at 85% 0%, rgba(10, 132, 255, 0.18), transparent 70%),
    var(--bg-warm);
}
.final .h1 { font-size: 76px; }
.final .lead { margin: 18px auto 38px; max-width: 600px; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 50px; color: var(--muted); font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; border-top: 1px solid var(--line); padding-top: 30px; }
.footer .logo { color: var(--text); margin-bottom: 10px; }
.footer .contacts { display: flex; gap: 24px; font-size: 14px; }
.footer .contacts a { color: var(--link); }
.footer .contacts a:hover { text-decoration: underline; }

/* =========================================================
   СТОРІНКА ЗАМОВЛЕННЯ
   ========================================================= */
.order-page { background: var(--bg-2); min-height: 100vh; }
.order-page .nav .back { margin-left: auto; font-size: 15px; color: var(--link); }
.order-page .nav .back:hover { text-decoration: underline; }

.order-layout {
  max-width: 1260px; margin: 0 auto; padding: 96px 40px 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start;
}

/* Степер з іконками */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stepper button {
  border: 0; background: #fff; border-radius: 18px;
  padding: 14px 16px; text-align: left;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm);
  color: var(--dim); font-size: 15px; font-weight: 600;
  cursor: default; transition: box-shadow 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.stepper .si {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--bg-2); filter: grayscale(1); opacity: 0.6;
  transition: all 0.3s;
}
.stepper small { display: block; font-size: 12px; font-weight: 500; color: var(--dim); }
.stepper button.done { color: var(--text); cursor: pointer; }
.stepper button.done:hover { transform: translateY(-2px); }
.stepper button.done .si { filter: none; opacity: 1; background: var(--ok-soft); }
.stepper button.active { color: var(--text); box-shadow: 0 0 0 2px var(--orange), var(--shadow); }
.stepper button.active .si { filter: none; opacity: 1; background: var(--orange-soft); }

.panel {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 44px 48px; min-height: 540px;
  animation: panelIn 0.5s var(--ease);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.panel-head { display: flex; align-items: center; gap: 28px; margin-bottom: 32px; }
.panel-head img { width: 130px; height: 130px; object-fit: contain; flex: none; mix-blend-mode: multiply; }
.panel-head .eyebrow { font-size: 15px; margin-bottom: 4px; }
.panel-head .h2 { font-size: 42px; }
.panel-head p { color: var(--muted); margin: 10px 0 0; font-size: 18px; }

.panel-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.panel-nav .hint { color: var(--muted); font-size: 15px; }

.form-error {
  margin-top: 18px; padding: 14px 18px; border-radius: var(--r-sm);
  background: var(--err-soft); color: #b3261e; font-size: 16px; font-weight: 600;
  display: flex; gap: 10px; align-items: center;
}
.form-error::before { content: "⚠️"; }

/* Крок 1: фото */
.photo-step { display: grid; grid-template-columns: 1fr 290px; gap: 26px; }
.dropzone {
  position: relative; min-height: 300px; border-radius: var(--r);
  border: 2.5px dashed #ffb27a; background: var(--bg-warm);
  display: grid; place-items: center; text-align: center; padding: 30px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--orange); background: #ffeedd; }
.dropzone.drag { transform: scale(1.01); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ico { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--grad-fire); color: #fff; font-size: 34px; box-shadow: 0 12px 30px -10px rgba(255, 90, 0, 0.8); }
.dropzone b { font-size: 22px; display: block; letter-spacing: -0.02em; }
.dropzone .fake-btn { display: inline-flex; margin: 16px 0 10px; height: 44px; padding: 0 22px; align-items: center; border-radius: 999px; background: var(--text); color: #fff; font-weight: 600; font-size: 15px; }
.dropzone span { color: var(--muted); font-size: 14px; display: block; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-sm); animation: panelIn 0.4s var(--ease); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .noprev { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--muted); padding: 10px; text-align: center; }
.thumb button { position: absolute; top: 8px; right: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.92); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); }
.thumb button:hover { background: var(--err); color: #fff; }
.thumb .ok { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 12px; font-weight: 700; }
.tips { background: var(--bg-2); border-radius: var(--r); padding: 24px; align-self: start; }
.tips h4 { margin: 0 0 14px; font-size: 17px; }
.tips ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: 15px; color: #424245; }
.tips li { display: flex; gap: 10px; }
.tips li .e { flex: none; }

/* Крок 2: стиль — та сама картка, у режимі вибору */
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.choice-grid .style-card { cursor: pointer; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.choice-grid .style-card .meta { padding: 12px 16px 14px; }
.choice-grid .style-card b { font-size: 18px; }
.choice-grid .style-card small { font-size: 11px; }
.style-card .check {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-sm);
  font-size: 16px; font-weight: 800; color: transparent;
  transition: all 0.25s var(--ease);
}
.choice-grid .style-card[aria-checked="true"] { box-shadow: 0 0 0 3px var(--orange), var(--shadow); transform: translateY(-4px); }
.style-card[aria-checked="true"] .check { background: var(--orange); color: #fff; transform: scale(1.1); }
.custom-field { margin-top: 24px; max-width: 560px; }

/* Крок 3: розмір */
.size-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.size-card {
  position: relative; border: 0; text-align: center; border-radius: var(--r);
  padding: 56px 28px 26px; background: #fff;
  box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--line-strong);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}
.size-card .like { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); }
.size-card:hover { transform: translateY(-3px); }
.size-card[aria-checked="true"] { box-shadow: 0 0 0 3px var(--orange), var(--shadow); background: var(--bg-warm); }
.size-card .paper-box { height: 200px; display: flex; align-items: flex-end; justify-content: center; }
.size-card .size { font-size: 46px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.size-card .sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.size-card .like { margin-top: 12px; font-size: 15px; color: #424245; }
.size-card .price { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin-top: 18px; }
.size-card .pop { position: absolute; top: 18px; right: 18px; padding: 5px 11px; border-radius: 999px; background: var(--grad-fire); color: #fff; font-size: 12px; font-weight: 700; }
.size-card .check { position: absolute; top: 18px; left: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-strong); color: transparent; font-weight: 800; font-size: 15px; transition: all 0.25s; }
.size-card[aria-checked="true"] .check { background: var(--orange); color: #fff; box-shadow: none; }

/* Поля */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.fields .full { grid-column: 1 / -1; }
.fieldset-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 -2px; }
.fieldset-title:first-child { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; color: #1d1d1f; }
.field label .opt { color: var(--dim); font-weight: 500; }
.input {
  height: 54px; padding: 0 18px; border-radius: 14px; border: 0;
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 17px;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.2s, background 0.2s;
}
textarea.input { height: 100px; padding: 14px 18px; resize: vertical; }
.input::placeholder { color: #a1a1a6; }
.input:hover { background: #ededf0; }
.input:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--sky), 0 0 0 4px rgba(10, 132, 255, 0.15); }
.field.invalid .input { background: var(--err-soft); box-shadow: inset 0 0 0 2px var(--err); }
.field .err { font-size: 14px; color: var(--err); font-weight: 500; display: none; }
.field.invalid .err { display: block; }
.field .help { font-size: 13px; color: var(--muted); }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: var(--bg-2); }
.segmented button { height: 46px; border: 0; border-radius: 12px; background: none; color: #424245; font-size: 15px; font-weight: 600; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-checked="true"] { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); color: #424245; font-size: 15px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--orange); flex: none; }
.consent.invalid { box-shadow: inset 0 0 0 2px var(--err); background: var(--err-soft); }

/* Підсумок справа */
.summary { position: sticky; top: 80px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.summary-art { height: 200px; position: relative; overflow: hidden; background: linear-gradient(145deg, var(--from, #f2f2f5), var(--to, #e5e5ea)); transition: background 0.5s; }
.summary-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.summary-art .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; color: var(--muted); font-weight: 500; text-align: center; padding: 20px; }
.summary-body { padding: 22px 24px 24px; }
.summary h3 { margin: 0 0 16px; font-size: 22px; letter-spacing: -0.025em; }
.summary dl { margin: 0; display: grid; gap: 12px; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary dd.empty { color: #c7c7cc; font-weight: 500; }
.summary .mini-photos { display: flex; gap: 6px; justify-content: flex-end; }
.summary .mini-photos img { width: 30px; height: 38px; object-fit: cover; border-radius: 6px; }
.summary .total { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.summary .total div { display: flex; justify-content: space-between; align-items: baseline; }
.summary .total .sum { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; }
.summary .total .pre { margin-top: 6px; color: var(--muted); font-size: 14px; }
.summary .noai { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); color: #13753a; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }

/* Успіх */
.success { text-align: center; padding-top: 50px; }
.success .seal { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-fire); color: #fff; font-size: 46px; box-shadow: 0 20px 50px -14px rgba(255, 90, 0, 0.8); animation: pop 0.7s var(--ease); }
@keyframes pop { from { transform: scale(0.4) rotate(-30deg); opacity: 0; } }
.success .h2 { font-size: 44px; }
.success .lead { margin: 14px auto 0; max-width: 560px; font-size: 20px; }
.order-id { display: inline-flex; margin-top: 20px; padding: 10px 20px; border-radius: 999px; background: var(--bg-2); font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }
.pay-card { margin: 34px auto 0; max-width: 560px; text-align: left; border-radius: var(--r); padding: 28px; background: var(--bg-warm); box-shadow: inset 0 0 0 1px #ffd9bd; }
.pay-card h4 { margin: 0 0 14px; font-size: 19px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); font-size: 16px; }
.pay-row:last-of-type { border-bottom: 0; }
.pay-row span { color: var(--muted); }
.pay-row b { font-variant-numeric: tabular-nums; }
.copy { border: 0; background: #fff; color: var(--link); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; margin-left: 10px; box-shadow: var(--shadow-sm); }
.copy:hover { background: var(--link); color: #fff; }
.pay-card p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px auto 0; max-width: 760px; text-align: left; }
.next-steps div { padding: 20px; border-radius: 18px; background: var(--bg-2); font-size: 14px; color: var(--muted); }
.next-steps b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; left: 50%; bottom: 30px; z-index: 300; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; background: rgba(29, 29, 31, 0.92); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: toastIn 0.35s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* =========================================================
   АДАПТИВ: планшет
   ========================================================= */
@media (max-width: 1024px) {
  .wrap { padding-inline: 28px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }

  .h1 { font-size: 64px; }
  .h2 { font-size: 46px; }
  .lead { font-size: 20px; }
  .section { padding: 90px 0; }
  .section-head { margin-bottom: 48px; }

  .howto { grid-template-columns: repeat(2, 1fr); }
  .styles-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { columns: 2; }
  .manifesto .h1 { font-size: 72px; }
  .pillars { margin-top: 56px; }
  .final .h1 { font-size: 56px; }
  .final { margin: 0 28px; padding: 80px 28px; }

  .world { height: 520px; }
  .world-copy { width: 460px; padding: 0 44px; }

  /* Замовлення: підсумок — під формою */
  .order-layout { grid-template-columns: minmax(0, 1fr); padding: 80px 28px 60px; gap: 24px; }
  .summary { position: static; }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   АДАПТИВ: телефон
   ========================================================= */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  html { scroll-padding-top: 60px; }

  .nav { height: 52px; }
  .nav .wrap { gap: 12px; }
  .order-page .nav .back { font-size: 14px; }

  .eyebrow { font-size: 15px; }
  .h1 { font-size: 40px; letter-spacing: -0.04em; }
  .h2 { font-size: 32px; letter-spacing: -0.035em; }
  .h3 { font-size: 21px; }
  .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head .lead { margin-top: 12px; }
  .btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
  .link { font-size: 17px; }

  /* Hero */
  .hero { padding-top: 84px; }
  .chips { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
  .chip { padding: 6px 12px; font-size: 13px; }
  .hero .lead { margin-top: 16px; }
  .hero-cta { flex-direction: column; gap: 14px; margin-top: 26px; }
  .hero-cta .btn { width: 100%; max-width: 340px; }
  .hero-art { margin-top: 18px; aspect-ratio: 4 / 3; }
  .hero-art .bubble { padding: 8px 12px; font-size: 13px; border-radius: 14px; gap: 6px; white-space: nowrap; }
  .hero-art .bubble .e { font-size: 18px; }
  .hero-art .b1 { top: 4%; }
  .marquee { padding: 14px 0; }
  .marquee span { font-size: 15px; gap: 32px; }
  .marquee-track { gap: 32px; }

  /* Як замовити: картка-рядок */
  .howto { grid-template-columns: 1fr; gap: 12px; }
  .howto-card { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 4px 14px; padding: 14px 16px; text-align: left; }
  .howto-card img { width: 96px; height: 96px; margin: 0; grid-row: span 2; }
  .howto-card .n { top: 10px; left: 10px; width: 28px; height: 28px; font-size: 14px; }
  .howto-card h3 { margin: 0; font-size: 18px; align-self: end; }
  .howto-card p { font-size: 15px; align-self: start; }
  .howto-card:hover { transform: none; }
  .howto-cta { margin-top: 32px; }

  /* Світи: картинка зверху, текст під нею */
  .world { height: auto; border-radius: var(--r); }
  .world + .world { margin-top: 18px; }
  .world > img { position: static; aspect-ratio: 4 / 3; height: auto; }
  .world-naruto > img { object-position: 30% center; }
  .world-op > img { object-position: 20% center; }
  .world-op::after { display: none; }
  .world-copy { position: static; transform: none; width: auto; padding: 22px 20px 26px; }
  .world-copy .lead { margin: 12px 0 20px; font-size: 16px; }
  .world-copy .row { flex-wrap: wrap; gap: 16px; }
  .world .tagpill { display: none; }

  /* Без ШІ */
  .manifesto .h1 { font-size: 44px; }
  .manifesto .strike::after { height: 5px; }
  .pillars { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .pillar { padding: 22px; display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; }
  .pillar .ico { width: 48px; height: 48px; font-size: 22px; margin: 0; grid-row: span 2; }
  .pillar p { margin-top: 4px; font-size: 15px; }

  /* Стилі */
  .styles-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .style-card .meta { padding: 10px 12px 14px; }
  .style-card b { font-size: 17px; }
  .style-card small { font-size: 10px; }
  .style-card .go { font-size: 13px; }
  .style-card:hover { transform: none; }

  /* Галерея */
  .gallery-grid { column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; border-radius: var(--r-sm); }
  .gallery-item figcaption { opacity: 1; padding: 30px 12px 10px; font-size: 12px; }
  .gallery-empty { grid-template-columns: 1fr; border-radius: var(--r); }
  .gallery-empty img { height: 220px; }
  .gallery-empty .txt { padding: 24px 20px 28px; }
  .gallery-empty .txt p { font-size: 16px; margin: 10px 0 20px; }
  .lightbox { padding: 16px; }
  .lightbox img { max-height: calc(100vh - 100px); }
  .lightbox button { top: 12px; right: 12px; }

  /* Ціни */
  .plans { grid-template-columns: 1fr; gap: 16px; }
  .plan { padding: 26px 22px; border-radius: var(--r); }
  .plan .pop { top: 16px; right: 16px; }
  .plan-top { min-height: 0; gap: 18px; }
  .plan .size { font-size: 44px; }
  .plan .price { font-size: 40px; margin-top: 20px; }
  .plan ul { margin: 16px 0 24px; }
  .plan li { font-size: 15px; }

  /* FAQ */
  .faq { padding: 4px 18px; border-radius: var(--r); }
  .faq summary { font-size: 17px; padding: 18px 0; gap: 12px; }
  .faq summary::after { width: 28px; height: 28px; font-size: 20px; }
  .faq details p { font-size: 15px; margin-bottom: 18px; }

  /* Фінал і футер */
  .final { margin: 0 16px; padding: 56px 20px; border-radius: var(--r); }
  .final .h1 { font-size: 36px; }
  .final .lead { margin: 14px auto 26px; }
  .footer { padding: 48px 0 32px; }
  .footer .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer .contacts { flex-wrap: wrap; gap: 10px 18px; }

  /* ---------- Сторінка замовлення ---------- */
  .order-layout { padding: 64px 12px 24px; gap: 16px; }

  .stepper { gap: 6px; margin-bottom: 12px; }
  .stepper button { flex-direction: column; gap: 4px; padding: 8px 4px; border-radius: 14px; text-align: center; font-size: 12px; }
  .stepper .si { width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
  .stepper small { display: none; }

  .panel { padding: 22px 16px 24px; min-height: 0; border-radius: var(--r); }
  .panel-head { gap: 14px; margin-bottom: 20px; }
  .panel-head img { width: 72px; height: 72px; }
  .panel-head .eyebrow { font-size: 13px; }
  .panel-head .h2 { font-size: 26px; }
  .panel-head p { font-size: 15px; margin-top: 6px; }

  /* Кнопки «Назад / Далі» завжди під пальцем */
  .panel-nav {
    position: sticky; bottom: 0; z-index: 50;
    margin: 12px -12px 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
    background: rgba(245, 245, 247, 0.9);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line);
  }
  .panel-nav .hint { display: none; }
  .panel-nav .btn-ghost { padding: 0 18px; height: 52px; }
  .panel-nav .btn-primary { flex: 1; height: 52px; }

  .photo-step { grid-template-columns: 1fr; gap: 16px; }
  .dropzone { min-height: 220px; padding: 22px; }
  .dropzone .ico { width: 64px; height: 64px; font-size: 28px; border-radius: 18px; margin-bottom: 12px; }
  .dropzone b { font-size: 19px; }
  .dropzone span:last-child { display: none; } /* «перетягни мишкою» — не для телефона */
  .thumbs { gap: 10px; }
  .tips { padding: 18px; }
  .tips ul { font-size: 14px; gap: 8px; }

  .choice-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .choice-grid .style-card .meta { padding: 8px 10px 10px; }
  .choice-grid .style-card b { font-size: 15px; }
  .choice-grid .style-card small { font-size: 9px; }
  .choice-grid .style-card[aria-checked="true"] { transform: none; }
  .style-card .check { top: 8px; right: 8px; width: 28px; height: 28px; font-size: 14px; }
  .custom-field { margin-top: 16px; }

  .size-grid { gap: 10px; }
  .size-card { padding: 44px 10px 18px; gap: 8px; }
  .size-card .paper-box { zoom: 0.62; }
  .size-card .size { font-size: 32px; }
  .size-card .sub { font-size: 13px; }
  .size-card .like { font-size: 12px; padding: 5px 8px; margin-top: 8px; }
  .size-card .price { font-size: 22px; margin-top: 10px; }
  .size-card .pop { top: -10px; right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; padding: 4px 8px; }
  .size-grid { padding-top: 10px; }
  .size-card .check { top: 10px; left: 10px; width: 26px; height: 26px; }

  .fields { grid-template-columns: 1fr; gap: 14px; }
  .fieldset-title { margin-top: 10px; font-size: 17px; }
  .segmented { grid-template-columns: repeat(2, 1fr); }
  .consent { padding: 14px 16px; font-size: 14px; margin-top: 18px; }

  .summary { border-radius: var(--r); }
  .summary-art { height: 140px; }
  .summary-body { padding: 18px 18px 20px; }

  .success { padding-top: 30px; }
  .success .seal { width: 76px; height: 76px; font-size: 36px; margin-bottom: 18px; }
  .success .h2 { font-size: 28px; }
  .success .lead { font-size: 16px; }
  .order-id { font-size: 15px; padding: 8px 16px; }
  .pay-card { padding: 18px 16px; margin-top: 22px; }
  .pay-row { flex-wrap: wrap; gap: 4px 12px; font-size: 15px; }
  .pay-row > span:last-child:has(.copy) { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
  .copy { margin-left: 0; }
  .next-steps { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .success > div:last-child { flex-wrap: wrap; }

  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); text-align: center; }
}

@media (max-width: 380px) {
  .h1 { font-size: 34px; }
  .h2 { font-size: 28px; }
  .manifesto .h1 { font-size: 38px; }
  .final .h1 { font-size: 30px; }
  .stepper button { font-size: 11px; }
  .panel-head img { width: 56px; height: 56px; }
}
