/* Orient Advertising — the client Mini App. One sheet: tokens, then the shell (views, dock, sheet, toast), then the
   screens (home, direction, plan, done). Light and dark follow Telegram's scheme. */

@font-face { font-family: 'Madefor Display'; font-weight: 400 800; font-display: swap; src: url(fonts/wix-madefor-display-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Madefor Display'; font-weight: 400 800; font-display: swap; src: url(fonts/wix-madefor-display-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Madefor Display'; font-weight: 400 800; font-display: swap; src: url(fonts/wix-madefor-display-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Madefor Text'; font-weight: 400 800; font-display: swap; src: url(fonts/wix-madefor-text-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Madefor Text'; font-weight: 400 800; font-display: swap; src: url(fonts/wix-madefor-text-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Madefor Text'; font-weight: 400 800; font-display: swap; src: url(fonts/wix-madefor-text-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #eceef4;
  --ink: #0c1230;
  --ink-2: #474e6c;
  --ink-3: #868ca6;
  --line: rgba(12, 18, 48, .08);
  --brand: #12174e;
  --brand-2: #1d3f72;
  --red: #e3000f;
  --red-press: #c4000d;
  --red-soft: rgba(227, 0, 15, .09);
  --ok: #12a150;
  --glass: rgba(255, 255, 255, .74);
  --glass-line: rgba(255, 255, 255, .6);
  --shadow: 0 1px 2px rgba(12, 18, 48, .04), 0 10px 30px -8px rgba(12, 18, 48, .12);
  --shadow-lg: 0 2px 4px rgba(12, 18, 48, .05), 0 24px 60px -18px rgba(12, 18, 48, .28);
  --display: 'Madefor Display', ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text: 'Madefor Text', ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --pad: 18px;
  --bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #070a18;
  --surface: #10142a;
  --surface-2: #181d38;
  --ink: #f2f4fb;
  --ink-2: #b3b8cf;
  --ink-3: #757b98;
  --line: rgba(255, 255, 255, .08);
  --red-soft: rgba(255, 60, 70, .14);
  --ok: #2ed47a;
  --glass: rgba(16, 20, 42, .72);
  --glass-line: rgba(255, 255, 255, .08);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -10px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 70px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */

.stage { position: fixed; inset: 0; overflow: hidden; }
.view {
  position: absolute; inset: 0;
  overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background: var(--bg);
  transition: transform .5s var(--ease), opacity .5s var(--ease), filter .5s var(--ease);
  will-change: transform;
}
.view.is-enter { transform: translate3d(100%, 0, 0); box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .3); }
.view.is-under { transform: translate3d(-24%, 0, 0); opacity: .5; pointer-events: none; }
.view.is-fade { opacity: 0; transform: translate3d(0, 14px, 0); }
.view__body { padding: 0 var(--pad) calc(120px + var(--bottom)); }
html:not(.in-tg) .view__body { padding-bottom: calc(132px + var(--bottom)); }

/* first paint: the mark breathes while the catalog arrives */
.splash {
  position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.splash.is-gone { opacity: 0; visibility: hidden; }
.splash__mark {
  width: 76px; height: 76px;
  background: linear-gradient(115deg, var(--brand) 0 40%, var(--red) 50%, var(--brand) 60% 100%);
  background-size: 300% 100%;
  -webkit-mask: url(brand/orient-mark.svg) center / contain no-repeat; mask: url(brand/orient-mark.svg) center / contain no-repeat;
  animation: mark-in .9s var(--spring) both, mark-sheen 2.2s .5s ease-in-out infinite;
}
.splash__word {
  /* the lockup's words only: the box shows its right three quarters */
  width: 112px; height: 40px; opacity: .9;
  background: var(--ink);
  -webkit-mask: url(brand/orient-lockup.svg) right center / auto 100% no-repeat; mask: url(brand/orient-lockup.svg) right center / auto 100% no-repeat;
  animation: word-in .9s .15s var(--ease) both;
}
:root[data-theme='dark'] .splash__mark { background-image: linear-gradient(115deg, #fff 0 40%, var(--red) 50%, #fff 60% 100%); }
@keyframes mark-in { from { opacity: 0; transform: scale(.7) rotate(-30deg); } }
@keyframes mark-sheen { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
@keyframes word-in { from { opacity: 0; transform: translateY(8px); } }

/* outside Telegram: our own bottom button (inside, Telegram's MainButton does this) */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px var(--pad) calc(12px + var(--bottom));
  background: linear-gradient(to top, var(--bg) 55%, transparent);
  pointer-events: none;
  transition: transform .45s var(--ease), opacity .3s;
}
.dock.is-off { transform: translateY(110%); opacity: 0; }
.dock__btn {
  pointer-events: auto; position: relative;
  width: 100%; height: 54px; border-radius: 18px;
  background: var(--red); color: #fff;
  font: 650 16px/1 var(--display); letter-spacing: -.01em;
  box-shadow: 0 10px 28px -10px rgba(227, 0, 15, .7);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .2s var(--ease), background .2s;
}
.dock__btn:active { transform: scale(.98); background: var(--red-press); }
.dock__btn[disabled] { opacity: .6; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px));
  max-width: calc(100% - 32px);
  transform: translate(-50%, -140%);
  padding: 11px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font: 600 14px/1.25 var(--text);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 9px;
  transition: transform .5s var(--spring);
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; flex: none; }

.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(5, 8, 20, .45); opacity: 0; transition: opacity .35s; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px var(--pad) calc(20px + var(--bottom));
  background: var(--surface); border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%); transition: transform .5s var(--ease);
}
.sheet.is-on .sheet__scrim { opacity: 1; }
.sheet.is-on .sheet__panel { transform: none; }
.sheet__grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.sheet__title { font: 700 20px/1.2 var(--display); margin-bottom: 6px; }
.sheet__text { color: var(--ink-2); margin-bottom: 16px; }
.opt {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px; margin-bottom: 8px;
  background: var(--surface-2); font-weight: 600; text-align: left;
  transition: transform .2s var(--ease), background .2s;
}
.opt:active { transform: scale(.98); }
.opt.is-on { background: var(--red); color: #fff; }
.opt__flag { font-size: 22px; line-height: 1; }
.opt__check { margin-left: auto; width: 20px; height: 20px; }

/* ---------- shared pieces ---------- */

.press { transition: transform .25s var(--ease); }
.press:active { transform: scale(.975); }

.chip-btn {
  height: 36px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); box-shadow: var(--shadow);
  font: 650 13px/1 var(--text); letter-spacing: .01em;
}
.chip-btn svg { width: 17px; height: 17px; }
.chip-btn .count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 12px;
  display: inline-grid; place-items: center;
}
.chip-btn .count.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.35); } }

.kicker { font: 700 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.muted { color: var(--ink-3); }

/* images fade in over a soft placeholder */
.ph { background: var(--surface-2); overflow: hidden; position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform 1.2s var(--ease); }
.ph img.is-loaded { opacity: 1; transform: none; }

/* term switch: solid red marks the chosen term */
.seg {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 4px; border-radius: 16px; background: var(--surface-2);
}
.seg__pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 12px; background: var(--red);
  box-shadow: 0 6px 16px -6px rgba(227, 0, 15, .6);
  transition: transform .45s var(--spring);
}
.seg button {
  position: relative; z-index: 1; height: 44px; border-radius: 12px;
  font: 650 15px/1 var(--display); color: var(--ink-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: color .25s;
}
.seg button small { font: 600 10px/1 var(--text); letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.seg button.is-on { color: #fff; }
.term-row { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 10px; }
.term-row h3 { font-size: 17px; }
.term-row span { font-size: 13px; color: var(--ink-3); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 34px 2px 14px; }
.section-head h2 { font-size: 24px; line-height: 1.1; }
.section-head p { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.btn {
  height: 52px; border-radius: 17px; padding: 0 20px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 650 15px/1 var(--display); letter-spacing: -.01em;
  transition: transform .2s var(--ease), background .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--soft { background: var(--surface); box-shadow: var(--shadow); }
.btn--red { background: var(--red); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn.is-busy { opacity: .6; pointer-events: none; }

/* ---------- home ---------- */

.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 calc(-1 * var(--pad)); padding: 12px var(--pad);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.is-stuck { border-color: var(--line); }
.top__logo {
  width: 136px; height: 36px; background: var(--ink);
  -webkit-mask: url(brand/orient-lockup.svg) left center / contain no-repeat; mask: url(brand/orient-lockup.svg) left center / contain no-repeat;
}
.top__side { display: flex; gap: 8px; }

.hero { padding: 22px 2px 6px; }
.hero .kicker { animation: rise .7s .05s var(--ease) both; }
.hero h1 { font-size: 33px; line-height: 1.04; font-weight: 750; margin-top: 12px; animation: rise .8s .1s var(--ease) both; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { color: var(--ink-2); margin-top: 12px; font-size: 15.5px; max-width: 34ch; animation: rise .8s .18s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.stats {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 22px calc(-1 * var(--pad)) 0; padding: 4px var(--pad) 12px;
  scrollbar-width: none;
  animation: rise .8s .26s var(--ease) both;
}
.stats::-webkit-scrollbar { display: none; }
.stat {
  flex: none; scroll-snap-align: start;
  min-width: 132px; padding: 14px 16px; border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow);
}
.stat b { display: block; font: 750 24px/1 var(--display); letter-spacing: -.03em; }
.stat span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.25; }

.cards { display: grid; gap: 14px; }
.dcard {
  position: relative; display: block; width: 100%; text-align: left;
  aspect-ratio: 16 / 11; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  opacity: 0; transform: translateY(24px);
  transition: transform .25s var(--ease);
}
.dcard.is-in { animation: card-in .8s var(--ease) both; animation-delay: var(--d, 0s); opacity: 1; transform: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px); } }
.dcard:active { transform: scale(.975); }
.dcard .ph { position: absolute; inset: 0; z-index: -2; }
.dcard::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 8, 26, 0) 30%, rgba(4, 8, 26, .55) 62%, rgba(4, 8, 26, .92) 100%);
}
.dcard__logo {
  position: absolute; top: 14px; left: 14px;
  height: 40px; padding: 7px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4);
  display: flex; align-items: center;
}
.dcard__logo img, .dcard__logo .svglogo { height: 100%; width: auto; }
.dcard__hit {
  position: absolute; top: 14px; right: 14px;
  height: 28px; padding: 0 11px; border-radius: 999px;
  display: flex; align-items: center; gap: 5px;
  background: var(--red); color: #fff; font: 700 11px/1 var(--text); letter-spacing: .05em; text-transform: uppercase;
}
.dcard__body { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.dcard__brand { font: 750 24px/1.05 var(--display); letter-spacing: -.02em; }
.dcard__tag { font-size: 14px; opacity: .82; margin-top: 4px; }
.dcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.dcard__from {
  height: 32px; padding: 0 12px; border-radius: 999px;
  display: inline-block; white-space: nowrap;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 600 13px/30px var(--text); /* 30px: the capsule's inner height, so the line sits in the middle */
}
.dcard__from b { font-weight: 750; }
.dcard__go { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #0c1230; display: grid; place-items: center; }
.dcard__go svg { width: 18px; height: 18px; }

.svglogo { display: block; aspect-ratio: 199 / 90; background: #0c1230; -webkit-mask: url(brand/mediaport.svg) center / contain no-repeat; mask: url(brand/mediaport.svg) center / contain no-repeat; }

.promo {
  position: relative; overflow: hidden; margin-top: 34px;
  padding: 24px 22px; border-radius: 26px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #2a3f8f 0%, var(--brand) 55%, #070a24 100%);
  box-shadow: var(--shadow-lg);
  display: block; width: 100%; text-align: left;
}
.promo::before {
  content: ''; position: absolute; right: -40px; bottom: -50px; width: 210px; height: 210px; opacity: .14;
  background: #fff; -webkit-mask: url(brand/orient-mark.svg) center / contain no-repeat; mask: url(brand/orient-mark.svg) center / contain no-repeat;
  animation: turn 60s linear infinite;
}
@keyframes turn { to { transform: rotate(1turn); } }
.promo .kicker { color: #ff5a64; }
.promo h3 { font-size: 22px; line-height: 1.12; margin-top: 10px; max-width: 16ch; }
.promo p { opacity: .78; margin-top: 8px; font-size: 14px; max-width: 30ch; }
.promo__cta { margin-top: 18px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: #0c1230; display: inline-flex; align-items: center; gap: 8px; font: 650 14px/1 var(--display); }
.promo__cta svg { width: 16px; height: 16px; }

.help { margin-top: 14px; padding: 20px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.help h3 { font-size: 18px; }
.help p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.help__row { display: flex; gap: 8px; margin-top: 16px; }
.help__row .btn { height: 46px; font-size: 14px; border-radius: 14px; padding: 0 12px; white-space: nowrap; }
.help__row .btn svg { width: 18px; height: 18px; }
.help__row .btn--soft { background: var(--surface-2); box-shadow: none; }

.foot { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 28px; }

/* ---------- direction ---------- */

.back {
  position: fixed; z-index: 6; top: calc(12px + env(safe-area-inset-top, 0px)); left: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.back svg { width: 22px; height: 22px; }
html.in-tg .back { display: none; }

.gallery { position: relative; margin: 0 calc(-1 * var(--pad)); }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 0 0 30px 30px;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: none; width: 100%; aspect-ratio: 4 / 3; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery::after { content: ''; position: absolute; inset: auto 0 0; height: 90px; border-radius: 0 0 30px 30px; background: linear-gradient(transparent, rgba(4, 8, 26, .55)); pointer-events: none; }
.dots { position: absolute; z-index: 1; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .5); transition: width .35s var(--ease), background .35s; }
.dots i.is-on { width: 20px; background: #fff; }

.dhead { padding: 22px 2px 0; }
.dhead__logo { height: 44px; margin-bottom: 16px; }
.dhead__logo img, .dhead__logo .svglogo { height: 100%; width: auto; }
:root[data-theme='dark'] .dhead__logo .svglogo { background: #fff; }
.dhead h1 { font-size: 28px; line-height: 1.08; margin-top: 8px; }
.dhead p { color: var(--ink-2); margin-top: 10px; font-size: 15.5px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.fact { padding: 15px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.fact b { display: block; font: 750 23px/1.05 var(--display); letter-spacing: -.03em; }
.fact span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.25; }

.list-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 2px 10px; }
.list-head h3 { font-size: 17px; }
.link { color: var(--red); font: 650 14px/1 var(--text); padding: 8px 0; }

.items { display: grid; gap: 10px; }
.item {
  display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 10px 12px 10px 10px; border-radius: 22px;
  background: var(--surface); box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  transition: border-color .3s, transform .25s var(--ease), background .3s;
}
.item:active { transform: scale(.985); }
.item.is-on { border-color: var(--red); background: linear-gradient(var(--red-soft), var(--red-soft)), var(--surface); }
.item__img { width: 68px; height: 68px; border-radius: 16px; }
.item__name { font: 650 15px/1.22 var(--display); letter-spacing: -.01em; }
.item__sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.3; }
.item__price { margin-top: 7px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.item__price b { font: 750 15px/1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.item__price s { color: var(--ink-3); font-size: 12px; }
.item__hit { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 3px 7px; border-radius: 6px; background: var(--red-soft); color: var(--red); font: 700 10px/1 var(--text); letter-spacing: .05em; text-transform: uppercase; }
.tick {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--ink-2);
  transition: background .3s, border-color .3s, color .3s, transform .45s var(--spring);
}
.tick svg { width: 18px; height: 18px; }
.tick .i-check { display: none; }
.item.is-on .tick { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(360deg); }
.item.is-on .tick .i-plus { display: none; }
.item.is-on .tick .i-check { display: block; }

.deck { margin-top: 22px; }
.deck .btn { justify-content: flex-start; height: 62px; padding: 0 16px; }
.deck__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.deck__icon svg { width: 20px; height: 20px; }
.deck__text { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.deck__text small { font: 500 12px/1 var(--text); color: var(--ink-3); }
.deck .btn > svg { margin-left: auto; color: var(--ink-3); }

/* ---------- plan ---------- */

.phead { padding: 22px 2px 0; }
html:not(.in-tg) .phead, html:not(.in-tg) .empty { padding-top: 70px; }
.phead h1 { font-size: 30px; line-height: 1.05; margin-top: 10px; }
.phead p { color: var(--ink-2); margin-top: 8px; }

.pgroup { margin-top: 18px; }
.pgroup__head { display: flex; align-items: center; gap: 10px; margin: 0 4px 8px; font: 650 13px/1 var(--text); color: var(--ink-3); letter-spacing: .02em; }
.pgroup__dot { width: 8px; height: 8px; border-radius: 50%; }
.prow {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  padding: 14px 10px 14px 16px; background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: opacity .35s, transform .35s var(--ease);
}
.prow:first-of-type { border-radius: 20px 20px 0 0; }
.prow:last-child { border-radius: 0 0 20px 20px; border-bottom: 0; }
.prow:only-of-type { border-radius: 20px; }
.prow.is-out { opacity: 0; transform: translateX(30px); }
.prow__name { font: 600 14.5px/1.25 var(--display); }
.prow__price { font: 700 14px/1 var(--display); white-space: nowrap; }
.prow__x { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); background: var(--surface-2); }
.prow__x svg { width: 15px; height: 15px; }
.pgroup__list { border-radius: 20px; box-shadow: var(--shadow); }

.sum {
  position: relative; overflow: hidden; margin-top: 22px;
  padding: 22px 20px; border-radius: 26px; color: #fff;
  background: radial-gradient(130% 120% at 100% 0%, #2a3f8f 0%, var(--brand) 50%, #070a24 100%);
  box-shadow: var(--shadow-lg);
}
.sum::before {
  content: ''; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; opacity: .1;
  background: #fff; -webkit-mask: url(brand/orient-mark.svg) center / contain no-repeat; mask: url(brand/orient-mark.svg) center / contain no-repeat;
}
.sum__label { font: 600 13px/1 var(--text); opacity: .7; }
.sum__big { font: 780 38px/1 var(--display); letter-spacing: -.035em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.sum__big small { font: 600 16px/1 var(--text); letter-spacing: 0; opacity: .75; margin-left: 4px; }
.sum__rows { margin-top: 18px; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); }
.sum__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.sum__row span { opacity: .72; }
.sum__row b { font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.sum__save b { color: #6dffaf; }
.sum__vat { margin-top: 14px; font-size: 12px; opacity: .55; }

.note { margin-top: 22px; }
.note label { display: block; font: 650 15px/1 var(--display); margin: 0 2px 10px; }
.note textarea {
  width: 100%; min-height: 96px; resize: none;
  padding: 14px 16px; border-radius: 18px; border: 1.5px solid transparent;
  background: var(--surface); box-shadow: var(--shadow); color: var(--ink);
  font: 400 15px/1.45 var(--text);
  user-select: text; -webkit-user-select: text;
  transition: border-color .25s;
}
.note textarea:focus { outline: 0; border-color: var(--red); }
.note textarea::placeholder { color: var(--ink-3); }

.trust { display: grid; gap: 10px; margin-top: 22px; }
.trust div { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 1px; }

.empty { text-align: center; padding: 70px 10px 20px; }
.empty__icon {
  width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 32px;
  display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); color: var(--red);
  animation: float 4s ease-in-out infinite;
}
.empty__icon svg { width: 44px; height: 44px; }
@keyframes float { 50% { transform: translateY(-8px); } }
.empty h2 { font-size: 24px; }
.empty p { color: var(--ink-2); margin: 10px auto 24px; max-width: 30ch; }
.empty .btn { width: auto; display: inline-flex; padding: 0 26px; }

/* ---------- done ---------- */

.done { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px var(--pad) calc(140px + var(--bottom)); }
.done__mark { width: 112px; height: 112px; position: relative; margin-bottom: 26px; }
.done__mark::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 161, 80, .22), transparent 70%); animation: halo 1.4s .3s var(--ease) both; }
@keyframes halo { from { transform: scale(.4); opacity: 0; } }
.done__mark svg { width: 100%; height: 100%; position: relative; }
.done__ring { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw .9s .1s var(--ease) forwards; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
.done__check { fill: none; stroke: var(--ok); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .5s .75s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { font-size: 30px; line-height: 1.08; animation: rise .8s .5s var(--ease) both; }
.done p { color: var(--ink-2); margin-top: 12px; max-width: 32ch; animation: rise .8s .6s var(--ease) both; }
.done__card { width: 100%; margin-top: 26px; padding: 18px 20px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); text-align: left; animation: rise .8s .7s var(--ease) both; }
.done__card div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.done__card span { color: var(--ink-3); }
.done__card b { font-family: var(--display); text-align: right; }
.done__more { margin-top: 18px; animation: rise .8s .8s var(--ease) both; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; }

@media (min-width: 560px) {
  .view__body, .done { max-width: 520px; margin: 0 auto; }
  .gallery__track { border-radius: 30px; }
  .gallery { margin: 12px 0 0; }
  .gallery::after { border-radius: 0 0 30px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
