/* ============================================================
   Витрина звёзд — светлая товарная страница
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-tint: #fbfcfd;
  --ink: #0e1116;
  --ink-2: #39424f;
  --muted: #6b7484;
  --muted-2: #98a1b0;
  --line: #e6e9ef;
  --line-2: #f0f2f6;
  --blue: #1677c8;
  --blue-tint: #eef6fd;
  --gold: #e0a437;
  --gold-soft: #fdf4e3;
  --green: #12855f;
  --green-tint: #ecf8f3;
  --btn: #0f1115;
  --btn-hover: #1c212b;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(14, 17, 22, .05);
  --shadow-md: 0 8px 24px -12px rgba(14, 17, 22, .18);
  --shadow-lg: 0 24px 60px -28px rgba(14, 17, 22, .28);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------ header */
.head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.head__in { display: flex; align-items: center; gap: 14px; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo__mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
}
.logo__name {
  font-size: 15px; font-weight: 650; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.head__nav { margin-left: auto; display: none; gap: 22px; }
.head__nav a { font-size: 14px; color: var(--ink-2); }
.head__nav a:hover { color: var(--ink); }

.head__cta {
  margin-left: auto;
  height: 40px; padding: 0 18px;
  display: inline-flex; align-items: center;
  border-radius: var(--r-full);
  background: var(--btn); color: #fff;
  font-size: 14px; font-weight: 600;
  transition: background .15s var(--ease);
}
.head__cta:hover { background: var(--btn-hover); }

/* ------------------------------------------------------------ layout */
.page { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 28px 0 40px; }

.crumbs { font-size: 13px; color: var(--muted-2); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink-2); }

h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 780;
}
h1 .accent { color: var(--gold); }

.lede { margin: 0 0 22px; color: var(--ink-2); font-size: 17px; max-width: 44ch; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 13px; color: var(--ink-2);
  background: var(--bg-tint);
}
.badge svg { width: 14px; height: 14px; color: var(--green); flex: 0 0 14px; }

/* ------------------------------------------------------------ buy card */
.buy {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.buy__top {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--bg-tint), #fff);
}

.star-tile {
  width: 62px; height: 62px; flex: 0 0 62px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, #fff8e8, var(--gold-soft));
  border: 1px solid #f3e3c4;
}
.star-tile svg { width: 34px; height: 34px; }

.buy__title { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.buy__sub { font-size: 13px; color: var(--muted); }

.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 22px 6px; }

.pack {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 11px 10px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .14s var(--ease), background .14s var(--ease),
              box-shadow .14s var(--ease), transform .14s var(--ease);
}
.pack:hover { border-color: #cfd6e0; background: var(--bg-soft); }
.pack:active { transform: scale(.985); }
.pack:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.pack__n {
  display: block;
  font-size: 17px; font-weight: 720; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.pack__n span { font-size: 12px; color: var(--gold); margin-left: 3px; }
.pack__p { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.pack[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--bg);
}

.buy__sum {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; padding: 18px 22px 4px;
}
.buy__price {
  font-size: 32px; font-weight: 780; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.buy__price small { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.buy__per { font-size: 12.5px; color: var(--muted); padding-bottom: 6px; }

.buy__actions { padding: 14px 22px 22px; display: grid; gap: 10px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px;
  border: 0; border-radius: var(--r-md);
  background: var(--btn); color: #fff;
  font-size: 16px; font-weight: 650; letter-spacing: -.01em;
  cursor: pointer;
  transition: background .15s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--bg-soft); }

.buy__note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12.5px; color: var(--muted);
}
.buy__note svg { width: 13px; height: 13px; }

/* ------------------------------------------------------------ sections */
.sec { margin-top: 56px; }
.sec__h { font-size: 24px; letter-spacing: -.025em; font-weight: 720; margin: 0 0 20px; }

.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.step__n {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; color: var(--ink-2);
}
.step h3 { margin: 6px 0 3px; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

.feats { display: grid; gap: 12px; }
.feat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-tint);
}
.feat__i {
  width: 36px; height: 36px; border-radius: 10px; margin-bottom: 12px;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line);
}
.feat__i svg { width: 18px; height: 18px; color: var(--ink-2); }
.feat h3 { margin: 0 0 4px; font-size: 15px; font-weight: 650; }
.feat p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 17px 0;
  font-size: 15px; font-weight: 600;
  display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted-2); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 17px; font-size: 14px; color: var(--ink-2); max-width: 66ch; }

/* ------------------------------------------------------------ footer */
.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  margin-top: 64px;
  padding: 36px 0 110px;
  font-size: 13px; color: var(--muted);
}
.foot__grid { display: grid; gap: 26px; }
.foot__brand { font-size: 15px; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.foot__cols { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.foot h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.foot a { display: block; padding: 3px 0; }
.foot a:hover { color: var(--ink); }
.foot__legal {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.65; color: var(--muted-2);
}

/* ------------------------------------------------------------ checkout */
.checkout { display: grid; gap: 24px; padding: 28px 0 40px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  padding: 22px;
}
.card--soft { background: var(--bg-tint); }
.card h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.02em; font-weight: 700; }
.card .hint { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; height: 50px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; padding: 0 14px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,17,22,.07); }
.field input[aria-invalid="true"] { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214,69,69,.08); }

.rows { display: grid; gap: 0; margin: 0; }
.row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.row:last-child { border-bottom: 0; }
.row dt { color: var(--muted); margin: 0; }
.row dd { margin: 0; font-weight: 600; text-align: right; }
.row--total { padding-top: 16px; }
.row--total dt { color: var(--ink); font-weight: 600; }
.row--total dd { font-size: 22px; letter-spacing: -.03em; font-weight: 780; font-variant-numeric: tabular-nums; }

.pay-method {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff;
}
.pay-method__ic {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px;
  display: grid; place-items: center; background: var(--blue-tint); color: var(--blue);
  font-weight: 800; font-size: 12px;
}
.pay-method b { display: block; font-size: 14px; font-weight: 650; }
.pay-method small { font-size: 12.5px; color: var(--muted); }
.pay-method__ok { margin-left: auto; color: var(--green); font-size: 13px; font-weight: 600; }

.err { color: #c0392b; font-size: 13px; margin: 10px 0 0; min-height: 18px; }

/* ------------------------------------------------------------ success */
.done { max-width: 560px; margin: 0 auto; padding: 56px 0 40px; text-align: center; }
.done__ic {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-tint); color: var(--green);
}
.done h1 { font-size: 32px; margin-bottom: 10px; }
.done p { color: var(--ink-2); margin: 0 0 24px; }
.done .card { text-align: left; margin-bottom: 20px; }

/* ------------------------------------------------------------ mobile cta */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
}
.mobile-cta__price { font-size: 20px; font-weight: 780; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mobile-cta__label { font-size: 11.5px; color: var(--muted); }
.mobile-cta .btn { min-height: 48px; flex: 1; }

/* ------------------------------------------------------------ desktop */
@media (min-width: 900px) {
  .page { grid-template-columns: 1fr 424px; gap: 56px; padding: 40px 0 56px; align-items: start; }
  .page__side { position: sticky; top: 88px; }
  .head__nav { display: flex; }
  .head__cta { margin-left: 0; }
  .feats { grid-template-columns: repeat(3, 1fr); }
  .foot__grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot { padding-bottom: 40px; }
  .mobile-cta { display: none; }
  .checkout { grid-template-columns: 1fr 392px; gap: 40px; align-items: start; padding: 36px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ legal */
.legal p { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); line-height: 1.7; max-width: 70ch; }
.legal b { color: var(--ink); }
.legal a { color: var(--blue); }
