/* MMShop public page. Palette and fonts are the storefront's (frontend/src/styles.css);
   everything is local so the page opens from Russia without a VPN. */
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("fonts/onest-cyrillic-400.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("fonts/onest-cyrillic-500.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("fonts/onest-cyrillic-600.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url("fonts/onest-cyrillic-700.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("fonts/onest-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url("fonts/onest-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("fonts/onest-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Onest"; font-weight: 700; font-display: swap; src: url("fonts/onest-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --page: #f7f4ee;
  --card: #ffffff;
  --text: #18212c;
  --muted: #626d79;
  --line: #dedfe0;
  --accent: #ff8b25;
  --accent-strong: #cf6500;
  --focus: #d56a00;
  --soft: #ffedda;
  --good: #28715c;
  --on-accent: #211407;
  --hero: #19283a;
  --hero-2: #223650;
  --hero-text: #d9e1ea;
  --r-card: 20px;
  --r-block: 14px;
  --r-pill: 28px;
  --gutter: clamp(18px, 4vw, 48px);
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --title: Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/1.5 var(--font); overflow-x: hidden; }
@media (min-width: 900px) { body { font-size: 18px; line-height: 1.55; } }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-strong); }
h1, h2, h3, h4 { margin: 0; font-family: var(--title); font-weight: 400; letter-spacing: -.01em; overflow-wrap: anywhere; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; margin-bottom: 14px; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); font-weight: 600; margin-bottom: 10px; }
.eyebrow--light { color: #ffb26b; }
.lead { color: var(--muted); max-width: 62ch; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: transform .16s var(--ease), background .16s; }
.btn:hover { background: #ff9c45; transform: translateY(-1px); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--ghost { background: transparent; border: 1.5px solid var(--text); color: var(--text); margin-top: 22px; }
.btn--ghost:hover { background: var(--card); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(25, 40, 58, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--hero-text); }
.top__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { font: 700 22px/1 var(--font); color: #fff; text-decoration: none; letter-spacing: -.02em; }
.logo i { font-style: normal; color: var(--accent); }
.logo--small { font-size: 18px; color: var(--text); }
.top__nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top__nav a { color: var(--hero-text); text-decoration: none; }
.top__nav a:hover { color: #fff; }
@media (max-width: 860px) { .top__nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 10%, var(--hero-2), transparent 60%), var(--hero); color: var(--hero-text); padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 70px); line-height: 1.04; margin-bottom: 18px; }
.hero__lead { font-size: clamp(17px, 1.7vw, 20px); max-width: 34em; }
@media (max-width: 900px) { .hero__in { grid-template-columns: minmax(0, 1fr); } }

/* Shop name field: the name appears in every demo on the page */
.sign { display: block; margin-top: 28px; max-width: 420px; }
.sign__label { display: block; font-size: 14px; color: #93a2b4; margin-bottom: 8px; }
.sign__input { width: 100%; min-height: 50px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r-block); color: #fff; font: inherit; font-size: 18px; padding: 0 16px; }
.sign__input::placeholder { color: #c4cfdb; }
.sign__input:focus { outline: none; border-color: var(--accent); }

/* Phone with the storefront */
.hero__demo { position: relative; display: flex; flex-direction: column; align-items: center; }
.phone { position: relative; width: min(300px, 100%); aspect-ratio: 9 / 18.5; min-height: 0; background: #0c1520; border-radius: 40px; padding: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.phone__notch { position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; margin-left: -38px; background: #0c1520; border-radius: 12px; z-index: 3; }
.phone__screen { height: 100%; scroll-margin-top: 76px; border-radius: 31px; background: var(--page); overflow: hidden; position: relative; }

/* Telegram-like notification */
.toast { position: absolute; top: -8px; left: 50%; width: min(290px, 92%); display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .97); color: var(--text); border-radius: 16px; padding: 10px 12px; font-size: 12px; line-height: 1.35; box-shadow: 0 16px 34px rgba(0, 0, 0, .3); z-index: 5; transform: translateX(-50%); animation: toast-in-c .45s var(--ease) both; }
.toast[hidden] { display: none; }
.toast b { font-weight: 600; }
.toast__icon { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.toast.is-out { animation: toast-out-c .35s var(--ease) both; }
@keyframes toast-in-c { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toast-out-c { to { opacity: 0; transform: translate(-50%, -8px); } }

/* Sections */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--card { background: var(--card); }

/* Goods: asymmetric grid, the AI tile is the big one */
.goods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.good { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: transform .16s var(--ease), box-shadow .16s; }
.good:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(24, 33, 44, .08); }
.good p { color: var(--muted); font-size: 15px; }
.good__imgs { display: flex; margin-bottom: 8px; }
.good__imgs img { flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; border: 3px solid var(--card); margin-right: -12px; }
.good--wide { grid-column: span 2; grid-row: span 2; background: var(--hero); color: var(--hero-text); border-color: var(--hero); justify-content: space-between; }
.good--wide h3 { color: #fff; font-size: clamp(28px, 3vw, 38px); margin-bottom: 8px; }
.good--wide p { color: var(--hero-text); font-size: 16px; max-width: 32ch; }
.good__mascots { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; justify-items: center; gap: clamp(10px, 1.6vw, 20px); margin-bottom: 18px; }
.good__mascots img { width: 100%; max-width: 128px; aspect-ratio: 1; border-radius: 22px; object-fit: cover; }
.good__mascots img:nth-child(odd) { transform: rotate(-3deg); }
.good__mascots img:nth-child(even) { transform: translateY(8px) rotate(3deg); }
@media (max-width: 1000px) { .goods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .good--wide { grid-row: auto; } }
@media (max-width: 520px) { .goods { gap: 10px; } .good { padding: 14px; } .good p { font-size: 14px; } .good__imgs img { width: 44px; height: 44px; } }

/* Steps */
.steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.steplist { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.step { width: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: left; background: transparent; border: 1px solid var(--line); border-radius: var(--r-block); padding: 16px; cursor: pointer; transition: border-color .18s, background .18s; }
.step b { display: block; font-weight: 600; font-size: clamp(17px, 1.6vw, 20px); }
.step small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.step__n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--title); font-size: 18px; background: var(--page); }
.step.is-on { border-color: var(--accent); background: var(--soft); }
.step.is-on .step__n { background: var(--accent); color: var(--on-accent); }
.steps__view { background: var(--page); border-radius: var(--r-card); padding: clamp(18px, 3vw, 32px); min-height: 330px; display: flex; align-items: center; }
.steps__view > * { width: 100%; animation: fade .18s ease both; }
.steps__view > [hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.chat { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.chat p { max-width: 85%; padding: 10px 14px; border-radius: 16px; overflow-wrap: anywhere; }
.chat__bot { background: var(--card); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat__me { background: #dcf3c8; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat__btn { align-self: flex-start; border: 1px solid var(--accent); color: var(--accent-strong); border-radius: 12px; padding: 8px 16px; font-weight: 600; font-size: 14px; background: var(--card); }
.markup { display: grid; gap: 12px; font-size: 15px; }
.markup__title { font-weight: 600; }
.markup__row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 10px; }
.markup__row i { height: 8px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.markup__row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); border-radius: 4px; animation: grow .7s var(--ease) both; }
@keyframes grow { from { width: 0; } }
.markup__row b { text-align: right; }
.markup__post { background: var(--card); border-radius: var(--r-block); padding: 14px; margin-top: 6px; }
.markup__post p { margin: 6px 0 10px; color: var(--muted); }
.markup__link { color: var(--accent-strong); font-weight: 600; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps__view { min-height: 0; } }

/* Why: the list highlights a part of the mini storefront */

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.field { margin-top: 22px; }
.field label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 15px; }
.field__row { display: flex; gap: 14px; align-items: center; }
.field__row input[type="range"] { flex: 1 1 auto; min-width: 0; accent-color: var(--accent); height: 28px; }
.field__num { flex: none; width: 96px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; font: inherit; font-size: 16px; text-align: right; background: var(--page); }
.sheet { background: var(--page); border-radius: var(--r-card); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); }
.sheet__shop { font-family: var(--title); font-size: 18px; margin-bottom: 14px; overflow-wrap: anywhere; }
.sheet__label { color: var(--muted); font-size: 15px; }
.sheet__sum { font-weight: 700; font-size: clamp(38px, 5vw, 58px); line-height: 1.1; letter-spacing: -.02em; margin: 4px 0 18px; font-variant-numeric: tabular-nums; }
.split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); }
.split i { display: block; height: 100%; transition: width .18s var(--ease); }
.split__cost { background: #c9ced4; }
.split__you { background: var(--accent); }
.sheet__rows { margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; }
.sheet__rows div { display: flex; justify-content: space-between; gap: 12px; }
.sheet__rows dt { color: var(--muted); }
.sheet__rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet__rows .is-you dt, .sheet__rows .is-you dd { color: var(--accent-strong); }
.sheet__note { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* API */
.api { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .api { grid-template-columns: minmax(0, 1fr); } }

/* FAQ and contacts */
.faq { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__list { margin-top: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--accent-strong); transition: transform .16s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 60ch; animation: fade .16s ease both; }
.contact { background: var(--page); border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); position: sticky; top: 88px; }
.contact h3 { margin-bottom: 6px; }
.contact p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.contact .btn { width: 100%; }
.contact h4 { font-size: 18px; margin: 22px 0 8px; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } .contact { position: static; } }

/* Final call */
.final { padding: clamp(40px, 6vw, 72px) 0; }
.final__in { max-width: 560px; margin-inline: auto; padding: clamp(28px, 4vw, 44px) 24px; border-radius: var(--r-block); background: var(--hero); color: #fff; display: grid; justify-items: center; gap: 20px; text-align: center; }
.final h2 { margin: 0; max-width: 16ch; }
.final h2 span { color: var(--accent); }
@media (max-width: 600px) { .final .btn { width: 100%; } }

.foot { padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }

/* Reveal on scroll; without JS or with reduced motion everything is simply visible */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .phone { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- Clickable storefront in the phone (store-demo.js) */
.phone__screen { display: flex; flex-direction: column; color: var(--text); font-size: 12px; line-height: 1.3; }
.sd-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 38px 12px 8px; min-height: 64px; }
.sd-top__name { font-weight: 700; font-size: 14px; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-top__demo { flex: none; font-size: 9.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 2px 7px; }
.sd-hint { font-size: 11px; color: var(--accent-strong); background: var(--soft); border-radius: 10px; padding: 6px 10px; margin: 0 0 8px; }
.sd-hint + .sd-cats .sd-cat:first-child { box-shadow: 0 0 0 2px var(--accent); animation: nudge 1.6s var(--ease) 1s 2 both; }
@keyframes nudge { 50% { transform: scale(1.06); } }
.sd-back { border: 0; background: none; color: var(--accent-strong); font-weight: 600; font-size: 13px; padding: 4px 0; cursor: pointer; }
.sd-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 14px; scrollbar-width: none; }
.sd-body::-webkit-scrollbar { display: none; }
.sd-view.sd-in-right { animation: sd-right .22s var(--ease) both; }
.sd-view.sd-in-left { animation: sd-left .22s var(--ease) both; }
@keyframes sd-right { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes sd-left { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.sd-nav { flex: none; display: flex; background: var(--card); border-top: 1px solid var(--line); padding: 6px 6px 14px; }
.sd-nav button { flex: 1; border: 0; background: none; font-size: 10px; color: var(--muted); padding: 6px 2px; cursor: pointer; }
.sd-nav .is-on { color: var(--accent-strong); font-weight: 600; }
.phone__screen button { font: inherit; cursor: pointer; }
.sd-search { display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; color: var(--muted); margin-bottom: 10px; }
.sd-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 12px; padding: 7px 0; }
.sd-search input:focus { outline: none; }
.sd-banner { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--hero); color: #fff; text-align: left; margin-bottom: 10px; }
/* The picture keeps its lower part: the mascot stays whole, the empty sky above it goes. */
.sd-banner img { width: 100%; aspect-ratio: 2.3; object-fit: cover; object-position: 50% 100%; opacity: .9; }
.sd-banner span { position: absolute; inset: 0 45% 0 0; padding: 0 10px; display: flex; flex-direction: column; justify-content: center; }
.sd-banner b { display: block; font-family: var(--title); font-weight: 400; font-size: 14px; line-height: 1.1; }
.sd-banner small { font-size: 9px; color: var(--hero-text); }
.sd-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.sd-cat { border: 0; background: var(--card); border-radius: 10px; padding: 5px; font-size: 9.5px; text-align: center; transition: transform .14s var(--ease); }
.sd-cat:active, .sd-hit:active, .sd-row:active { transform: scale(.97); }
.sd-cat img { border-radius: 7px; aspect-ratio: 1; object-fit: cover; margin-bottom: 3px; }
.sd-cat span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-h { font-weight: 600; margin: 4px 0 6px; }
.sd-title { font-family: var(--title); font-size: 18px; margin: 2px 0 10px; }
.sd-hits { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sd-hit { border: 0; background: var(--card); border-radius: 12px; padding: 6px; display: grid; gap: 2px; text-align: left; transition: transform .14s var(--ease); }
.sd-hit img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; margin-bottom: 3px; }
.sd-hit span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-hit b { font-size: 11px; }
.sd-list { display: grid; gap: 6px; }
.sd-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; border: 0; background: var(--card); border-radius: 12px; padding: 6px 8px 6px 6px; text-align: left; color: var(--text); text-decoration: none; transition: transform .14s var(--ease); }
.sd-row--text { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; }
.sd-row--text:active { transform: none; }
.sd-row img { border-radius: 9px; }
.sd-row span { font-size: 12px; overflow: hidden; }
.sd-row small { display: block; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-row b { font-size: 11px; white-space: nowrap; }
.sd-empty { color: var(--muted); padding: 16px 4px; }
.sd-phead { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; margin: 2px 0 10px; }
.sd-phead img { border-radius: 14px; }
.sd-phead b { display: block; font-family: var(--title); font-weight: 400; font-size: 17px; line-height: 1.15; }
.sd-phead small { color: var(--muted); font-size: 11px; }
.sd-variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; }
.sd-variants button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; min-height: 34px; padding: 4px; font-size: 10.5px; line-height: 1.15; }
.sd-variants .is-on { border-color: var(--accent); background: var(--soft); font-weight: 600; }
.sd-amount p { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.sd-facts { margin: 0 0 12px; background: var(--card); border-radius: 12px; padding: 4px 10px; }
.sd-facts div { padding: 7px 0; border-bottom: 1px solid var(--line); }
.sd-facts div:last-child { border-bottom: 0; }
.sd-facts dt { font-size: 10px; color: var(--muted); }
.sd-facts dd { margin: 1px 0 0; font-size: 11px; }
.sd-buy { width: 100%; min-height: 40px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 13px; position: sticky; bottom: 0; box-shadow: 0 -8px 16px var(--page); }
.sd-form { display: grid; gap: 10px; }
.sd-line { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; align-items: center; background: var(--card); border-radius: 12px; padding: 6px; }
.sd-line img { border-radius: 8px; }
.sd-field { display: grid; gap: 4px; font-size: 11px; color: var(--muted); }
.sd-field input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--text); background: var(--card); }
.sd-field input[aria-invalid="true"] { border-color: #c0392b; }
.sd-small { font-size: 10px; color: var(--muted); text-align: center; }
.sd-done { display: grid; gap: 10px; justify-items: center; text-align: center; padding-top: 18px; }
.sd-check { width: 56px; height: 56px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; font-size: 28px; animation: pop .35s var(--ease) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.sd-done .sd-title { margin: 0; }
.sd-code { background: var(--card); border: 1px dashed var(--accent); border-radius: 12px; padding: 8px 12px; width: 100%; }
.sd-code small { display: block; color: var(--muted); font-size: 10px; }
.sd-code b { font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .03em; overflow-wrap: anywhere; }
.phone__screen :focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* Phones: the storefront goes full width, no device frame, no scroll inside the page */
@media (max-width: 600px) {
  .phone { width: 100%; aspect-ratio: auto; background: none; padding: 0; border-radius: 0; box-shadow: none; }
  .phone__notch { display: none; }
  .phone__screen { height: auto; border-radius: 22px; overflow: visible; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
  .sd-top { padding-top: 14px; min-height: 0; }
  .sd-body { overflow: visible; }
  .sd-nav { border-radius: 0 0 22px 22px; }
  .phone__screen { font-size: 13px; }
}

/* Order from both sides */
.sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.switch { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; margin-top: 22px; }
.switch__btn { border: 0; background: none; border-radius: var(--r-pill); padding: 10px 20px; font-weight: 600; cursor: pointer; }
.switch__btn.is-on { background: var(--hero); color: #fff; }
.sides__view { background: var(--hero); border-radius: var(--r-card); padding: clamp(18px, 3vw, 36px); min-height: 340px; display: flex; align-items: center; justify-content: center; }
.side { width: min(340px, 100%); background: var(--page); border-radius: 22px; padding: 22px; animation: fade .18s ease both; }
.side[hidden] { display: none; }
.side--buyer { text-align: center; display: grid; gap: 6px; justify-items: center; }
.side__check { width: 52px; height: 52px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; font-size: 26px; }
.side__title { font-family: var(--title); font-size: 24px; }
.side__item { font-weight: 600; }
.side__price { color: var(--muted); }
.side__code { width: 100%; background: var(--card); border: 1px dashed var(--accent); border-radius: 12px; padding: 8px 12px; margin-top: 6px; }
.side__code[hidden] { display: none; }
.side__code small { display: block; color: var(--muted); font-size: 12px; }
.side__code b { font-family: ui-monospace, Menlo, monospace; letter-spacing: .03em; overflow-wrap: anywhere; }
.side__small { font-size: 13px; color: var(--muted); margin-top: 8px; }
.side__bot { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 10px; }
.side__msg { background: var(--card); border-radius: 16px 16px 16px 4px; padding: 14px 16px; display: grid; gap: 4px; font-size: 15px; overflow-wrap: anywhere; }
.side__earn { color: var(--accent-strong); margin-top: 4px; }
@media (max-width: 900px) { .sides { grid-template-columns: minmax(0, 1fr); } .sides__view { min-height: 0; } }

/* API facts and exchange scheme */
.facts { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.facts li { padding-left: 22px; position: relative; color: var(--muted); }
.facts li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.exchange { display: grid; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; gap: 8px; }
.exchange__box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-block); padding: 16px; font-size: 14px; min-width: 0; }
.exchange__box--mm { background: var(--hero); border-color: var(--hero); color: var(--hero-text); }
.exchange__head { font-weight: 700; margin-bottom: 8px; color: inherit; }
.exchange__box--mm .exchange__head { color: #fff; }
.exchange dl { margin: 0; display: grid; gap: 8px; }
.exchange dt { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--accent-strong); }
.exchange__box--mm dt { color: #ffb26b; }
.exchange dd { margin: 0; overflow-wrap: anywhere; }
.exchange__arrow { text-align: center; font-size: 22px; color: var(--accent-strong); }
.exchange__note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 600px) { .exchange { grid-template-columns: minmax(0, 1fr); } .exchange__arrow { transform: rotate(90deg); } }
.contact__supply { margin-top: 14px !important; font-size: 14px !important; }
