:root {
  --navy: #141d3f;
  --navy-2: #1c2752;
  --ink: #0b1026;
  --gold: #c9a24a;
  --gold-2: #e3c272;
  --text: #f3f1ea;
  --muted: #aab0c6;
  --line: rgba(255,255,255,.12);
  --red: #c0392b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif; font-size: 16px; line-height: 1.55;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, .logo { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Шапка */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 14px; padding: 12px 20px;
  background: linear-gradient(to bottom, rgba(11,16,38,.9), rgba(11,16,38,0));
}
.logo { font-size: 1.6rem; text-decoration: none; letter-spacing: .18em; line-height: 1; }
.logo span { display: block; font-family: "Montserrat"; font-size: .6rem; letter-spacing: .3em; color: var(--gold-2); text-transform: uppercase; margin-top: 4px; }
.nav { margin-left: auto; display: flex; gap: 20px; }
.nav a { text-decoration: none; font-size: .9rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); padding: 6px 12px; cursor: pointer; font-size: .8rem; }
.lang button.active { background: var(--gold); color: var(--ink); font-weight: 600; }
.cart-btn { position: relative; background: var(--navy); border: 1px solid var(--line); color: var(--text); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.cart-btn .count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.cart-btn .count.zero { display: none; }
.cart-btn.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.18); } }

/* Видео */
/* Первый экран: тёмный фон с золотым свечением + фото сетов */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: grid; align-items: center;
  background: radial-gradient(ellipse 60% 55% at 72% 50%, rgba(201,162,74,.22), transparent 70%),
              radial-gradient(ellipse 50% 60% at 10% 90%, rgba(47,183,169,.08), transparent 70%),
              linear-gradient(180deg, #0d1430 0%, var(--ink) 100%); }
.hero-glow { position: absolute; width: 60vmax; height: 60vmax; right: -12vmax; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(227,194,114,.18), transparent 62%); filter: blur(10px); animation: glow 7s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 50% { opacity: .55; transform: translateY(-50%) scale(1.08); } }
.hero-inner { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 110px 20px 70px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; }
.hero-content { position: relative; z-index: 2; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-sale { display: flex; align-items: center; gap: 10px; margin: -6px 0 26px; font-size: 1.1rem; color: var(--gold-2); font-weight: 600; }
.hero-sale .badge { font-size: .95rem; padding: 5px 12px; }
.hero-photos { position: relative; height: min(70vh, 560px); perspective: 1000px; }
.hero-photo { position: absolute; width: 52%; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; border: 1px solid rgba(227,194,114,.35);
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 40px rgba(201,162,74,.12);
  transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0) rotate(var(--rot, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .3s ease-out; will-change: transform; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo:nth-child(1) { left: 0; top: 14%; --rot: -8deg; z-index: 1; }
.hero-photo:nth-child(2) { left: 24%; top: 0; --rot: 2deg; z-index: 3; width: 56%; }
.hero-photo:nth-child(3) { right: 0; top: 20%; --rot: 9deg; z-index: 2; }
.eyebrow { color: var(--gold-2); text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 24px; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 2px solid var(--muted); border-radius: 12px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold-2); border-radius: 2px; animation: drop 1.6s infinite; }
@keyframes drop { to { transform: translateY(12px); opacity: 0; } }

.btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none; font-weight: 600; padding: 14px 28px; border-radius: 999px; transition: transform .2s, box-shadow .2s; text-align: center; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,162,74,.35); }
.btn-ghost { background: rgba(11,16,38,.4); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: 10px 16px; font-size: .85rem; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.perks div { background: var(--ink); padding: 22px 16px; text-align: center; }
.perks b { display: block; font-family: "Cormorant Garamond"; font-size: 1.4rem; color: var(--gold-2); }
.perks span { color: var(--muted); font-size: .85rem; }

.section { max-width: 1180px; margin: 0 auto; padding: 72px 20px; }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 24px; }

/* Поиск и фильтры */
.toolbar { display: grid; gap: 12px; margin-bottom: 26px; }
.search { font: inherit; color: var(--text); background: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; width: 100%; max-width: 520px; }
.search:focus { outline: 2px solid var(--gold); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 16px; cursor: pointer; font-size: .85rem; }
.filters button.active { border-color: var(--gold); color: var(--ink); background: var(--gold); font-weight: 600; }

/* Карточки товаров */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-img { position: relative; aspect-ratio: 4/5; background: var(--navy-2); overflow: hidden; display: grid; place-items: center; cursor: pointer; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card.single .card-img { aspect-ratio: 1; background: #fff; cursor: default; }
.card.single .card-img img { object-fit: contain; padding: 12px; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; }
.badge { display: inline-block; font-family: "Montserrat"; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; vertical-align: middle; }
.badge.sale { background: var(--red); color: #fff; }
.badge.hit { background: var(--gold); color: var(--ink); }
.card-body { padding: 16px 18px 18px; display: grid; gap: 10px; flex: 1; align-content: start; }
.card-body h3 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.card-body p { margin: 0; color: var(--muted); font-size: .85rem; }
.card-body .brand { color: var(--gold-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.price { font-weight: 600; color: var(--gold-2); font-size: 1.1rem; }
s.old { color: var(--muted); font-weight: 400; margin-right: 6px; font-size: .9rem; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.card-actions .btn:only-child { grid-column: 1 / -1; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.chips button { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 7px 0; font-size: .78rem; cursor: pointer; white-space: nowrap; }
.chips button:hover { border-color: var(--gold); }
.chips button.active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
/* Галерея фото в карточке: свайп на телефоне, стрелки и точки на компьютере */
.gallery { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; scroll-snap-align: center; }
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(11,16,38,.6); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; }
.g-arrow.prev { left: 6px; } .g-arrow.next { right: 6px; }
.card:hover .g-arrow { opacity: 1; }
.g-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; pointer-events: none; }
.g-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(11,16,38,.25); border: 1px solid rgba(11,16,38,.4); }
.g-dots span.on { background: var(--gold); border-color: var(--gold); }
@media (hover: none) { .g-arrow { display: none; } }
/* Заглушка без фото */
.card-img > img { position: relative; z-index: 1; }
.card.single .card-img > img { background: #fff; } /* настоящее фото полностью закрывает заглушку */
.ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 16px; text-align: center;
  background: radial-gradient(circle at 50% 38%, rgba(201,162,74,.22), transparent 60%), linear-gradient(160deg, var(--navy-2), var(--ink)); }
.ph-bottle { width: 30%; max-width: 70px; filter: drop-shadow(0 0 12px rgba(227,194,114,.35)); }
.ph-brand { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.ph-name { font-family: "Cormorant Garamond", serif; font-size: clamp(1.1rem, 2.4vw, 1.6rem); line-height: 1.1; color: var(--text); }
.card.no-photo .photo-note { display: none; }
.photo-note { margin: 0; padding: 6px 12px; font-size: .68rem; line-height: 1.35; color: var(--muted); background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.card-body .notes { font-size: .8rem; }
.card-body .notes span { color: var(--gold-2); }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Просмотр сета */
.viewer-section:empty { display: none; }
.viewer { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.zoom { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--navy-2); cursor: zoom-in; border: 1px solid var(--line); }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; transform-origin: center; }
.zoom:hover img, .zoom.zoomed img { transform: scale(2.2); }
.zoom-hint { position: absolute; left: 12px; bottom: 12px; background: rgba(11,16,38,.75); padding: 6px 12px; border-radius: 999px; font-size: .75rem; color: var(--muted); pointer-events: none; }
.angles { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.angles button { background: none; border: 1px solid var(--line); color: var(--text); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: .85rem; }
.angles button.active { border-color: var(--gold); color: var(--gold-2); }
.angles button:disabled { opacity: .35; cursor: not-allowed; }
.info h2 { margin-bottom: 6px; }
.info .sub { color: var(--gold-2); margin: 0 0 16px; }
.info .big-price { font-size: 1.6rem; font-family: "Cormorant Garamond"; margin: 18px 0; }
.perfumes { list-style: none; padding: 0; margin: 20px 0; counter-reset: p; }
.perfumes li { padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line); position: relative; }
.perfumes li::before { counter-increment: p; content: counter(p); position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); display: grid; place-items: center; font-size: .8rem; }
.perfumes b { display: block; }
.perfumes span { color: var(--muted); font-size: .82rem; }
.gift { background: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cert { margin-top: 28px; }
.cert h3 { font-size: 1.4rem; margin: 0 0 10px; }
.cert img { border-radius: var(--radius); border: 1px solid var(--line); }
.cert .placeholder { border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--muted); font-size: .9rem; }

/* Почему мы */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why div { background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.why .ico { font-size: 1.6rem; color: var(--gold-2); }
.why h3 { font-size: 1.35rem; margin: 10px 0 6px; }
.why p { margin: 0; color: var(--muted); font-size: .88rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 30px 14px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--gold-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 40px 20px 110px; text-align: center; display: grid; gap: 14px; justify-items: center; }

/* Плавающие кнопки */
.chat-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); cursor: pointer; background: var(--navy); padding: 0; border: 1px solid var(--line); }

/* Подвал: телефон текстом и кнопки-иконки соцсетей */
.footer .phone { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: .03em; }
.socials { display: flex; gap: 12px; justify-content: center; }
.social { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-2); border: 1px solid rgba(227,194,114,.4); background: var(--navy); transition: background .2s, color .2s, transform .2s; }
.social:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.chat-float .orb { width: 44px; height: 44px; animation: breathe 3s ease-in-out infinite; }

/* Корзина и чат — выезжающие панели */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer, .chat { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--ink); border-left: 1px solid var(--line); z-index: 50; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; }
.drawer.open, .chat.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.8rem; }
.drawer-head p { margin: 2px 0 0; }
.close { background: none; border: 1px solid var(--line); color: var(--text); width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; flex: none; }
.drawer-body { overflow-y: auto; padding: 16px 20px 30px; display: grid; gap: 16px; align-content: start; }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.citem img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #fff; }
.citem b { display: block; font-size: .92rem; }
.citem span { color: var(--muted); font-size: .8rem; }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.citem .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .8rem; text-decoration: underline; }
.citem .sum { text-align: right; font-weight: 600; color: var(--gold-2); font-size: .9rem; }
.total { display: flex; justify-content: space-between; font-size: 1.15rem; padding: 6px 0; }
.total b { color: var(--gold-2); }
.delivery-note { margin: -4px 0 0; font-size: .82rem; color: var(--gold-2); }

/* Форма */
.form { display: grid; gap: 12px; }
.form h3 { margin: 6px 0 0; font-size: 1.5rem; }
.form label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; color: var(--text); background: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Чат */
.chat-log { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; word-wrap: break-word; }
.msg.bot { background: var(--navy); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--gold); color: var(--ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.err { border-color: var(--red); }
.msg ul { margin: 6px 0; padding-left: 18px; }
.msg p { margin: 0 0 6px; } .msg p:last-child { margin: 0; }
.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
.chat-hints { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 20px 10px; }
.chat-hints button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: .78rem; cursor: pointer; }
.chat-hints button:hover { border-color: var(--gold); color: var(--text); }
.chat-form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; font: inherit; color: var(--text); background: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 12px 16px; min-width: 0; }
.chat-form .btn { padding: 0 18px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--navy-2); border: 1px solid var(--gold); padding: 12px 20px; border-radius: 999px; z-index: 60; transition: transform .3s; font-size: .9rem; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* ===== Номер заказа и «Где мой заказ?» ===== */
.order-done { background: var(--navy); border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; }
.order-done[hidden], .drawer [hidden] { display: none !important; }
.order-done { text-align: center; justify-items: center; padding: 28px 18px; gap: 12px; }
.order-done > b { font-size: 1.5rem; font-family: "Cormorant Garamond", serif; }
.done-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); }
/* Оплата Kaspi QR */
.pay { width: 100%; display: grid; gap: 12px; justify-items: center; padding: 16px; border-radius: 14px; background: var(--ink); border: 1px solid rgba(227,194,114,.4); }
.pay-title { font-size: 1.05rem; font-weight: 600; }
.pay-title span { color: var(--gold-2); white-space: nowrap; }
.qr-box { position: relative; width: min(240px, 80%); aspect-ratio: 1; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; padding: 10px; position: relative; z-index: 1; background: #fff; }
.qr-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); font-size: .9rem; background: repeating-linear-gradient(45deg, var(--navy), var(--navy) 10px, var(--navy-2) 10px, var(--navy-2) 20px); border: 1px dashed var(--line); border-radius: 14px; }
.pay-steps { text-align: left; margin: 0; padding-left: 20px; font-size: .9rem; display: grid; gap: 4px; }
.pay-steps b { color: var(--gold-2); }
.pay-mobile { margin: 0; font-size: .8rem; color: var(--muted); }
.pay-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pay-actions .btn, .pay .btn { padding: 11px 18px; font-size: .88rem; }
.pay-note { margin: 0; font-size: .8rem; color: var(--muted); }
.pay-status { margin: 0; font-size: .88rem; color: var(--gold-2); }
.pay-status.ok { color: #6fd39d; }
.form-err { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(192,57,43,.15); border: 1px solid var(--red); color: #ffb3a8; font-size: .88rem; }
.form-err[hidden] { display: none; }
.order-done p { margin: 0; color: var(--muted); font-size: .85rem; }
.order-id { font-size: 1.05rem; }
.order-id span { font-weight: 700; color: var(--gold-2); letter-spacing: .05em; user-select: all; }
.track { max-width: 820px; }
.track-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
#trackResult { margin-top: 18px; }
.track-card { background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.track-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.track-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.track-head b { font-size: 1.2rem; color: var(--gold-2); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.step { font-size: .75rem; text-align: center; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); }
.step.done { border-color: rgba(201,162,74,.5); color: var(--gold-2); }
.step.now { background: var(--gold); color: var(--ink); font-weight: 700; border-color: var(--gold); }
.step.cancelled { grid-column: 1 / -1; background: var(--red); color: #fff; border-color: var(--red); font-weight: 700; }
@media (max-width: 760px) {
  .track-form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { text-align: left; padding: 8px 12px; }
}

/* ===== Нова: шар-аватар (тёплое золото → бирюза) ===== */
.orb { display: inline-block; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4d2 0 14%, var(--gold-2) 34%, #2fb7a9 82%, #1c7f86 100%);
  box-shadow: 0 0 0 3px rgba(47,183,169,.18), 0 0 18px rgba(227,194,114,.35); }
.orb.sm { width: 28px; height: 28px; }
.orb.live { animation: breathe 3s ease-in-out infinite; }
.thinking .orb, .typing-row .orb { animation: pulse 1.1s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.94); box-shadow: 0 0 0 5px rgba(47,183,169,.12), 0 0 26px rgba(227,194,114,.5); } }
@keyframes pulse { 50% { transform: scale(.85); } }
.chat-id { display: flex; gap: 12px; align-items: center; }
.row { display: flex; gap: 8px; align-items: flex-end; }
.row.bot { align-self: flex-start; max-width: 92%; }
.row.bot .msg { max-width: 100%; }
.row .orb { margin-bottom: 2px; }

/* Облачко «Нова встречает» — слева от кнопки чата, не перекрывает WhatsApp */
.nova-hi { position: fixed; right: 88px; bottom: 26px; z-index: 31; max-width: min(270px, calc(100vw - 104px));
  background: var(--navy-2); border: 1px solid var(--gold); border-radius: 16px 16px 4px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.45);
  animation: hiIn .45s cubic-bezier(.2,1.4,.4,1); }
.nova-hi[hidden] { display: none; }
.nova-hi-body { display: flex; gap: 10px; align-items: center; background: none; border: 0; color: var(--text); text-align: left; padding: 12px 34px 12px 12px; cursor: pointer; font-size: .9rem; line-height: 1.35; }
.nova-hi-close { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
@keyframes hiIn { from { opacity: 0; transform: translateY(12px) scale(.9); } }

/* Кнопка звука */
.mute-btn { position: fixed; left: 16px; bottom: 18px; z-index: 30; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20,29,63,.85); color: var(--text); font-size: 1.05rem; cursor: pointer; }

/* Бегущая строка */
.marquee { position: fixed; inset: 0 0 auto 0; height: 30px; z-index: 21; overflow: hidden; background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); color: var(--ink); font-size: .78rem; font-weight: 600; letter-spacing: .04em; display: flex; align-items: center; }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; white-space: nowrap; }
.marquee-track span { padding: 0 28px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.topbar { top: 30px; }

/* Параллакс: фото флаконов слегка смещаются и наклоняются при прокрутке */
.card-img { perspective: 700px; }
.card-img img { transform: translateY(var(--py, 0px)) rotateX(var(--rx, 0deg)) scale(var(--sc, 1.06)); transition: transform .25s ease-out; will-change: transform; }
.card:hover .card-img img { --sc: 1.12; }
.card.single .card-img img { --sc: 1; }
.card.single:hover .card-img img { --sc: 1.06; }

/* Интро-заставка */
.intro { position: fixed; inset: 0; z-index: 100; background: radial-gradient(circle at 50% 45%, #18224a, var(--ink) 70%); display: grid; place-content: center; justify-items: center; gap: 18px; cursor: pointer; animation: introOut .5s ease 2.4s forwards; }
.intro.hide { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; animation: none; }
.intro.off { display: none; }
.intro-horse { width: 120px; height: 166px; opacity: 0; transform: translateY(10px) scale(.96);
  background: linear-gradient(110deg, #8a6a2a 0%, #c9a24a 30%, #fff3c4 46%, #c9a24a 60%, #8a6a2a 100%); background-size: 260% 100%;
  -webkit-mask: var(--horse) center / contain no-repeat; mask: var(--horse) center / contain no-repeat; }
.intro-horse.ready { animation: introIn .6s ease .1s forwards, shine 1.3s ease .5s forwards; }
.intro-word { font-family: "Cormorant Garamond", serif; font-size: clamp(2.4rem, 9vw, 4rem); letter-spacing: .25em; text-align: center; line-height: 1; opacity: 0; animation: introIn .6s ease .3s forwards, shine 1.3s ease .6s forwards;
  background: linear-gradient(110deg, #8a6a2a 0%, #c9a24a 30%, #fff3c4 46%, #c9a24a 60%, #8a6a2a 100%); background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-word span { display: block; font-family: "Montserrat"; font-size: .7rem; letter-spacing: .5em; margin-top: 10px; }
@keyframes introIn { to { opacity: 1; transform: none; } }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .marquee-track { animation-duration: 80s; }
  .card-img img, .hero-photo { transition: none; }
  .hero-glow { animation: none; }
  .orb, .chat-float .orb { animation: none !important; }
}

/* Планшет и телефон */
@media (max-width: 960px) {
  .why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .topbar { padding: 10px 16px; }
  .marquee { font-size: .72rem; }
  .hero-inner { grid-template-columns: 1fr; padding: 96px 16px 64px; gap: 8px; }
  .hero-photos { order: -1; height: 300px; max-width: 360px; width: 100%; margin: 0 auto; }
  .hero-photo { width: 50%; }
  .hero-photo:nth-child(2) { width: 54%; left: 23%; }
  .hero-glow { right: -30vmax; top: 30%; }
  .mute-btn { width: 38px; height: 38px; left: 12px; }
  .nova-hi { right: 16px; bottom: 90px; max-width: min(270px, calc(100vw - 32px)); border-radius: 16px 16px 4px 16px; }
  .perks { grid-template-columns: 1fr; }
  .perks div { padding: 14px; }
  .viewer { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 56px 16px; }
  .zoom:hover img { transform: none; }
  .zoom.zoomed img { transform: scale(2.2); }
  .why { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px; gap: 8px; }
  .card-body h3 { font-size: 1.2rem; }
  .card-actions { grid-template-columns: 1fr; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .btn-sm { padding: 9px 10px; font-size: .8rem; }
  .price { font-size: .95rem; }
  s.old { display: block; font-size: .8rem; }
}
@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
}
