:root {
  --cream: #F3EEE6;
  --paper: #FAF8F4;
  --sand: #EBE2D2;
  --line: #E3DACB;
  --black: #171512;
  --ink-2: #5E574D;
  --ink-3: #8D857A;
  --gold: #B08D45;
  --gold-light: #D9B977;
  --gold-dark: #8C6D2F;
  --kaspi: #F14635;
  --green: #1FA45B;
  --green-bg: #E1F2E6;
  --red: #C0392B;
  --r: 16px;
  --r-sm: 12px;
  --head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font: 400 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 16px env(safe-area-inset-bottom);
}
main { flex: 1; }

/* шапка */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px 14px;
  border-bottom: 1px solid var(--line);
  margin: 0 -16px; padding-left: 18px; padding-right: 18px;
}
.logo img { width: 112px; height: auto; }
.lang {
  display: flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--gold-light); border-radius: 999px;
  padding: 5px 12px; font: 600 12px/1 var(--body); color: var(--ink-3);
}
.lang a { color: inherit; text-decoration: none; padding: 2px 1px; }
.lang a.on { color: var(--black); font-weight: 700; }

/* прогресс */
.progress { display: none; gap: 6px; padding-top: 14px; }
.app .progress { display: flex; }
.app[data-screen="done"] .progress { display: none; }
.pr { flex: 1; }
.pr i { display: block; height: 3px; border-radius: 2px; background: var(--line); transition: background .3s; }
.pr span { display: block; margin-top: 6px; font: 600 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pr.on i { background: var(--gold); }
.pr.on span { color: var(--gold-dark); }

.screen { padding: 16px 0 8px; animation: in .35s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } * { transition: none !important; } }

.eyebrow { font: 600 10.5px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.gold { color: var(--gold-light); }
.gold-dark { color: var(--gold-dark); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }

/* кнопки */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 54px; padding: 14px 20px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 700 15px/1.2 var(--head); text-decoration: none; text-align: center;
  transition: transform .12s ease, filter .15s ease, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold {
  background: linear-gradient(180deg, #E2C487, #C9A45C);
  color: var(--black);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 18px -8px rgba(176,141,69,.7);
}
.btn-gold:hover:not(:disabled) { filter: brightness(1.04); }
.btn-gold:disabled { background: #DCCDAE; box-shadow: none; opacity: 1; color: #7F7563; }
.btn .ico { flex: none; transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn-green .ico { margin-right: 2px; }
.btn:focus-visible, .qty button:focus-visible, .back:focus-visible, .lang a:focus-visible, .link:focus-visible {
  outline: 3px solid rgba(176,141,69,.45); outline-offset: 2px;
}
.btn-kaspi { background: var(--kaspi); color: #fff; box-shadow: 0 6px 18px -8px rgba(241,70,53,.7); }
.btn-kaspi:hover:not(:disabled) { filter: brightness(1.05); }
.btn-kaspi-outline { background: transparent; color: var(--kaspi); border: 1.5px solid var(--kaspi); min-height: 48px; margin-top: 14px; }
.btn-green { background: var(--green); color: #fff; margin-top: 12px; }
.btn.loading { pointer-events: none; }
.btn.loading > span, .btn.loading .ico { visibility: hidden; }
.btn { position: relative; }
.btn.loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.link { background: none; border: 0; padding: 12px 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13.5px; display: block; }
.link.center { margin: 6px auto 0; }

/* главная */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.mini { display: flex; align-items: center; gap: 10px; padding: 12px; }
.mi { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sand); color: var(--gold-dark); }
.mi.kaspi { background: #FDE6E3; color: var(--kaspi); }
.mini b { display: block; font: 700 14.5px/1.25 var(--head); }
.mini span { display: block; font-size: 11.5px; line-height: 1.3; color: var(--ink-3); margin-top: 2px; }
/* экран 2 */
.step-n { margin-top: 2px; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.back { display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; padding: 6px 8px 6px 4px; border: 0; background: none; border-radius: 999px;
  color: var(--ink-2); font: 500 13px/1 var(--body); cursor: pointer; }
.back:hover { background: var(--sand); }
.screen h2 { font-size: 22px; line-height: 1.25; margin: 4px 0 14px; }
.product { padding: 0; overflow: hidden; }
.product img { width: 100%; height: auto; aspect-ratio: 640 / 368; object-fit: cover; background: var(--sand); }
.product-body { padding: 14px 16px 16px; }
.product h3 { font-size: 16px; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.price { font: 700 26px/1 var(--head); font-variant-numeric: tabular-nums; }
.unit { display: block; font-size: 12px; margin-top: 4px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 18px; cursor: pointer; border-radius: 999px; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 22px; text-align: center; font-weight: 600; }

form { margin-top: 14px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font: 600 12px/1.3 var(--body); color: var(--ink-2); margin-bottom: 6px; }
.field em { color: var(--kaspi); font-style: normal; }
.field small { display: block; margin-top: 6px; font-size: 12px; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  font: 400 16px/1 var(--body); color: var(--black); outline: none;
  appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #A9A196; }
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,69,.18); }
.field input.bad { border-color: var(--red); background: #FFF7F6; }
.field input.ok { border-color: #BFD9C7; }
.select { position: relative; display: block; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 0; height: 0; margin-top: -2px;
  border: 5px solid transparent; border-top-color: var(--ink-3); pointer-events: none; }
.note { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.err { color: var(--red); font-size: 13px; margin: 2px 0 10px; text-align: center; }
.band { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; background: var(--sand); border-color: transparent; padding: 14px 16px; font-size: 13.5px; }
.band b { white-space: nowrap; }

.wait { text-align: center; margin-top: 14px; padding: 22px 18px 12px; }
.wait .link { margin: 4px auto 0; }
.wait h3 { font-size: 16px; margin: 14px 0 6px; }
.spinner { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; border: 3px solid #F9D3CF; border-top-color: var(--kaspi); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* экран 3 */
.paid-badge { display: flex; align-items: center; gap: 8px; background: var(--green-bg); color: #17663B; border-radius: var(--r-sm); padding: 11px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }

/* экран 4 */
.done-head { text-align: center; padding: 18px 0 6px; }
.check { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; }
.done-head h2 { margin: 0 0 4px; font-size: 23px; }
.summary { margin-top: 14px; }
.summary .row, .next .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.summary .row + .row { margin-top: 14px; }
.summary small { display: block; font-size: 12px; margin-top: 2px; }
.summary b { white-space: nowrap; }
.summary .row > div b { white-space: normal; }
.dark { background: var(--black); color: #EDE6DA; border-color: var(--black); margin-top: 12px; }
.next .eyebrow { margin-bottom: 6px; }
.next .row { padding: 6px 0; font-size: 13.5px; }
.next .row b { color: var(--gold-light); white-space: nowrap; }

.foot { text-align: center; color: var(--ink-3); font-size: 11.5px; letter-spacing: .08em; padding: 28px 0 18px; }

@media (min-width: 560px) {
  body { padding: 24px 0; }
  .app { background: var(--cream); min-height: auto; }
}

/* оплата: ссылка Kaspi + QR на компьютере */
.wait .btn-kaspi { margin-top: 16px; }
.qr { margin: 16px auto 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr img { width: 180px; height: 180px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.qr small { font-size: 12px; }
.timer { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.js-expired h3 { margin-top: 4px; }
.wait-s b { color: var(--black); font-weight: 600; }
/* «Бас тарту»: вторая кнопка — заметная, но тише красной «Kaspi-ді ашу» */
.btn-cancel { background: #fff; color: var(--black); border: 1.5px solid #CFC4B2; min-height: 46px; padding: 11px 20px;
  font-size: 14.5px; font-weight: 600; margin: 10px 0 8px; }
.btn-cancel:hover { border-color: var(--ink-3); }

/* логотип Kaspi и 3D-коробка в карточках на главной */
.mi-logo { flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.mi-logo svg { width: 40px; height: 40px; display: block; }
.kaspi3d svg { border-radius: 9px; filter: drop-shadow(0 4px 6px rgba(241,70,53,.35)) drop-shadow(0 1px 1px rgba(0,0,0,.15)); }

/* коробка доставки плавно покачивается, тень под ней дышит в такт */
.box-float { animation: box-float 2.6s ease-in-out infinite; }
.box-shadow { transform-box: fill-box; transform-origin: center; animation: box-shadow 2.6s ease-in-out infinite; }
@keyframes box-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes box-shadow { 0%, 100% { transform: scaleX(1); opacity: .12; } 50% { transform: scaleX(.78); opacity: .07; } }
@media (prefers-reduced-motion: reduce) { .box-float, .box-shadow { animation: none; } }

/* подарок на экране «Заказ принят» */
.gift { margin-top: 14px; padding: 14px 14px 12px; border-radius: var(--r); border: 1.5px solid #E6CF9C;
  background: linear-gradient(160deg, #FBF1DD, #F2E2BF); }
.gift-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.gift-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gift-list li { min-width: 0; }
.gift-list img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; object-fit: cover; display: block; background: #fff;
  border: 2px solid #fff; box-shadow: 0 3px 10px -4px rgba(140,109,47,.45); }
.gift-list b { display: block; margin-top: 6px; font: 700 11.5px/1.2 var(--head); overflow-wrap: anywhere; }
.gift-list span { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.3; color: var(--ink-2); -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
.gift-value { margin: 10px 0 0; font-size: 13px; line-height: 1.45; font-weight: 500; color: #6E5524; }
.summary b.free { color: #17663B; }
.gift-list li { display: flex; flex-direction: column; }
.gift-price { margin-top: auto; padding-top: 4px; font: 700 11.5px/1.2 var(--head); color: #9A8A6C; white-space: nowrap;
  text-decoration: line-through; text-decoration-color: #D0453A; text-decoration-thickness: 1.5px; font-variant-numeric: tabular-nums; }

/* согласие с условиями перед оплатой */
.agree { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 12px; cursor: pointer; font-size: 14px; line-height: 1.45; }
.agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree .box { flex: none; width: 22px; height: 22px; margin-top: 0; border-radius: 6px; border: 1.5px solid #C8BBA5; background: #fff;
  display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s, color .15s; }
.agree input:checked + .box { background: var(--black); border-color: var(--black); color: #fff; }
.agree input:focus-visible + .box { outline: 3px solid rgba(176,141,69,.45); outline-offset: 2px; }
.agree.shake .box { border-color: var(--red); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.terms-link { padding: 0; border: 0; background: none; font: inherit; color: var(--black); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: pointer; }
/* предупреждение: вернуться на сайт после Kaspi */
.warn { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 11px 12px; border-radius: 12px;
  background: #FFF4D9; border: 1px solid #F2D58A; color: #5A4210; font-size: 13.5px; font-weight: 600; line-height: 1.4; text-align: left; }
.warn svg { flex: none; margin-top: 1px; }
.wait .warn { margin-top: 14px; margin-bottom: 0; }
/* модалка с условиями */
.terms { width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px; background: var(--paper); color: var(--black);
  box-shadow: 0 24px 60px -20px rgba(23,21,18,.5); }
.terms::backdrop { background: rgba(23,21,18,.45); }
.terms[open] { animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.terms form { margin: 0; padding: 20px 20px 14px; }
.terms h3 { font-size: 18px; margin: 0 0 12px; }
.terms ul { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.5; }
.terms li + li { margin-top: 8px; }
.terms-btns { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .terms[open], .agree.shake .box { animation: none; } }

/* ===== оплата: счёт в Kaspi по номеру ===== */
.kaspi-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 10px; margin-top: 14px; }
.kaspi-field { margin-bottom: 12px; }
.kaspi-field > span { color: var(--black); font-size: 13px; }
.kaspi-field input { border: 1.5px solid #F3A39A; background: #fff; font-size: 17px; letter-spacing: .02em; }
.kaspi-field input:focus { border-color: var(--kaspi); box-shadow: 0 0 0 3px rgba(241,70,53,.16); }
.kaspi-box .note { margin-top: 8px; line-height: 1.4; }
.sent-ico { width: 56px; height: 56px; margin: 2px auto 12px; display: grid; place-items: center; }
.sent-ico svg { width: 56px; height: 56px; display: block; border-radius: 13px; }
.wait h3 { margin: 0 0 6px; }
.sent-s { font-size: 14.5px; margin: 0; }
.sent-s b { font-family: var(--head); }
.sent-phone { margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 2px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); min-height: 20px; }
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--kaspi); animation: dpulse 1.2s ease-in-out infinite; }
@keyframes dpulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .dot-pulse { animation: none; } }
.wait .err { margin: 10px 0 0; }
.wait .btn-kaspi { margin-top: 12px; }
.wait .btn-kaspi-outline { margin-top: 8px; }
.wait .link.center { margin: 4px auto 0; }
.wa-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--gold-dark); }

/* ===== экран 1: товар + оплата (по ТЗ «3 экрана») ===== */
.ph { position: relative; overflow: hidden; border-radius: 20px; background: var(--black); color: #F7F3EC; }
.ph-img { width: 100%; height: auto; aspect-ratio: 640 / 368; object-fit: cover; display: block; }
.ph-media { position: relative; }
.ph-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 62%;
  background: linear-gradient(to bottom, rgba(23,21,18,0), rgba(23,21,18,.78) 55%, var(--black)); pointer-events: none; }
.ph-body { position: relative; z-index: 1; margin-top: -56px; padding: 0 18px 16px; }
.ph-eyebrow { margin: 0; font: italic 500 17px/1.25 Georgia, "Times New Roman", serif; color: var(--gold-light); }
.ph h1 { margin: 4px 0 4px; font-size: 26px; line-height: 1.15; }
.ph-sub { margin: 0; font-size: 12.5px; color: #CFC7BA; }
.ph-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.ph-price { font: 700 28px/1 var(--head); font-variant-numeric: tabular-nums; }
.ph .unit { display: block; margin-top: 4px; font-size: 12px; color: #CFC7BA; }
.ph-qty { text-align: right; }
.ph-qty small { display: block; margin-bottom: 5px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #A89F92; }
.qty.dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.qty.dark button { color: #fff; }
#s-home .kaspi-box { margin-top: 12px; }
#s-home .trust { margin-top: 12px; }
@media (min-width: 560px) { .ph h1 { font-size: 30px; } }
.btn-ghost { background: #fff; color: var(--black); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: #CDBFA8; }
.wait .btn-ghost { margin-top: 14px; }

/* ===== компактная карточка «Счёт отправлен» + адрес, пока ждём оплату ===== */
.wait { padding: 14px; text-align: left; }
.sent-head { display: flex; align-items: center; gap: 12px; }
.sent-head .sent-ico { width: 40px; height: 40px; margin: 0; flex: none; }
.sent-head .sent-ico svg { width: 40px; height: 40px; border-radius: 10px; }
.sent-head h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.sent-head .sent-s { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wait .waiting { justify-content: flex-start; margin: 10px 0 0; font-size: 13px; }
.wait .err { text-align: left; margin-top: 8px; }
.warn.sm { margin: 10px 0 0; padding: 8px 10px; font-size: 12.5px; gap: 8px; border-radius: 10px; }
.sent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.btn.sm { min-height: 44px; padding: 10px 8px; font-size: 13.5px; margin: 0 !important; }
.wait #mock-pay { text-align: center; margin-top: 6px; }
.early { margin-top: 12px; padding: 14px; }
.early h3 { margin: 0 0 4px; font-size: 16px; }
.early > p.muted { margin: 0 0 10px; }
.early form { margin-top: 4px; }
.early-saved { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 0; padding: 10px 12px; border-radius: 10px;
  background: var(--green-bg); color: #17663B; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.early-saved svg { flex: none; margin-top: 2px; }
.early-saved .link { margin-left: auto; padding: 0; color: #17663B; font-size: 13px; }

/* ===== курсоры: везде, где можно нажать или тянуть ===== */
a[href], button:not(:disabled), [role="button"], [role="radio"], [role="tab"], summary, select,
label:has(input[type="checkbox"]), label:has(input[type="radio"]), input[type="checkbox"], input[type="radio"],
input[type="file"], .js-copy, [data-go], [data-t] { cursor: pointer; }
button:disabled, input:disabled, select:disabled, [aria-disabled="true"], .btn:disabled { cursor: not-allowed; }
input[type="text"], input[type="tel"], input[type="search"], input[type="number"], input:not([type]), textarea { cursor: text; }

/* ===== ТЗ «3 экрана» · экран 1: шампунь + косметика (1+1) ===== */
.ph-collage { position: relative; display: grid; grid-template-columns: 54% 1fr; gap: 3px; aspect-ratio: 16 / 10; background: #E9E0D2; }
.ph-shampoo { overflow: hidden; }
.ph-shampoo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.ph-cosm { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; gap: 3px; }
.ph-cosm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-cosm img:nth-child(5) { grid-column: 1 / -1; object-position: 50% 30%; }
.ph-plus { position: absolute; left: 54%; top: 46%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: #E2C487; color: var(--black); font: 700 20px/1 var(--head); box-shadow: 0 2px 8px rgba(23,21,18,.35); z-index: 2; }
.ph-tag { position: absolute; bottom: 62px; z-index: 2; display: flex; flex-direction: column; padding: 5px 9px; border-radius: 9px;
  background: rgba(23,21,18,.78); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); line-height: 1.15; }
.ph-tag.left { left: 10px; }
.ph-tag.right { right: 10px; text-align: right; }
.ph-tag small { font: 700 9.5px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #E2C487; }
.ph-tag b { font: 700 12.5px/1.3 var(--head); }
.ph-tag s { color: #CFC7BA; font-weight: 600; text-decoration-color: #F14635; text-decoration-thickness: 1.5px; }
.ph .ph-body { margin-top: -50px; }
.ph-row { align-items: flex-end; }
.ph-prices { display: flex; flex-direction: column; }
.ph-old { font: 600 13px/1.2 var(--head); color: #A89F92; text-decoration-color: #F14635; text-decoration-thickness: 1.5px; font-variant-numeric: tabular-nums; }
.ph-badge { display: inline-flex; flex-direction: column; align-items: center; padding: 5px 11px; border-radius: 10px; background: #F14635; color: #fff;
  line-height: 1.05; transform: rotate(-4deg); box-shadow: 0 4px 12px -4px rgba(241,70,53,.7); margin-bottom: 4px; }
.ph-badge b { font: 800 17px/1 var(--head); }
.ph-badge small { font: 600 10px/1.2 var(--body); }
/* бегущая строка */
.marquee { overflow: hidden; background: linear-gradient(90deg, #C9A45C, #E2C487, #C9A45C); color: var(--black); border-radius: 0 0 20px 20px; }
.marquee-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.marquee-track span { padding: 7px 18px; font: 700 11px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.marquee-track span::after { content: "·"; margin-left: 18px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
/* доставка и состав */
.deliv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mini-d { padding: 11px 12px; text-align: center; }
.mini-d b { display: block; font: 700 13.5px/1.3 var(--head); }
.mini-d span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.composition { margin: 14px 2px 0; font-size: 10.5px; line-height: 1.5; color: #A39A8D; }
.composition b { color: #8D857A; font-weight: 600; }

/* экран 2: имя и фамилия в одной строке */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row .field { min-width: 0; }

/* экран 3: код заказа и карточка WhatsApp */
.order-line { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.order-line b { color: var(--black); font-family: var(--head); letter-spacing: .02em; }
.wa-card { margin-top: 12px; padding: 16px; border-radius: var(--r); background: #E6F4EA; border: 1px solid #BFDFC9; text-align: left; }
.wa-card .eyebrow { margin: 0; color: #17663B; }
.wa-card h3 { margin: 6px 0 4px; font-size: 17px; }
.wa-s { margin: 0 0 12px; font-size: 13px; color: #3D6B4C; }
.wa-card .btn-green { margin-top: 0; }
.wa-num { display: block; margin-top: 10px; text-align: center; color: #17663B; font-weight: 600; font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums; }
.ph-offer { width: 100%; height: auto; aspect-ratio: 720 / 335; object-fit: cover; display: block; }
.ph-tag { bottom: 58px; }
.ph-row { gap: 8px; }
.ph-prices .ph-price { white-space: nowrap; font-size: 27px; }
.ph-badge { flex: none; }
.ph-qty .qty button { width: 38px; height: 38px; }
.ph-offer { aspect-ratio: 720 / 410; }          /* выше, как в макете; края фото чуть обрезаются */
.ph-media .ph-tag { bottom: 12px; }
.ph .ph-body { margin-top: -6px; padding-top: 0; }
.ph-media::after { height: 38%; background: linear-gradient(to bottom, rgba(23,21,18,0), rgba(23,21,18,.55) 60%, var(--black)); }
