@font-face {
  font-family: "Golos Text";
  src: url("GolosText-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  font-family: "Golos Text", "Segoe UI", sans-serif;
  color-scheme: dark;
  color: #f3f3f6;
  background: #11141b;
  --muted: #9da5b4;
  --line: #2c313b;
  --focus: #aab7d3;
  --panel: #171b24;
  --field: #11151d;
  --selection: #282e3a;
  --action: #eeebe4;
  --action-hover: #fffdf8;
  --motion-ease: cubic-bezier(.2, .7, .25, 1);
  --motion-scale: 1;
}
:root[data-motion-preview="slow"] { --motion-scale: 1.8; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  background: radial-gradient(ellipse at 28% 56%, #1b2130 0%, transparent 51%);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  min-height: 68px;
  width: min(1160px, calc(100% - 9vw));
  margin: 0 auto;
  border-bottom: 1px solid #ffffff10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 1 1 0; min-width: 0; font-size: 18px; font-weight: 560; letter-spacing: -.025em; }
.brand-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; min-width: 0; max-height: 2.5em; overflow: hidden; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
.brand-mark { width: 22px; aspect-ratio: 1; flex: none; background: #d9dce6; clip-path: polygon(50% 0, 65% 34%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0 50%, 35% 34%); }
.header-links { display: flex; flex: 0 0 auto; align-items: center; gap: 27px; }
.header-links button { border: 0; padding: 10px 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 440; white-space: nowrap; transition: color 140ms ease; }
.header-links button:hover { color: #fff; }
.header-links a { padding: 10px 0; color: var(--muted); font-size: 13px; font-weight: 440; white-space: nowrap; text-decoration: none; transition: color 140ms ease; }
.header-links a:hover { color: #fff; }

.store {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(365px, 1fr);
  gap: clamp(34px, 5.7vw, 86px);
  align-items: center;
  width: min(1160px, calc(100% - 9vw));
  margin: clamp(28px, 6svh, 68px) auto 36px;
}
.showcase, .checkout { min-width: 0; }
.checkout { width: 100%; max-width: 478px; justify-self: end; }
.product { padding-left: 17px; }
.product h1 { margin: 0; font-size: clamp(38px, 4.45vw, 69px); font-weight: 565; letter-spacing: -.052em; line-height: 1.08; }
.product[data-product="premium"] h1 { font-size: clamp(34px, 4.05vw, 63px); }
.product p { margin: 13px 0 0; color: var(--muted); font-size: clamp(16px, 1.55vw, 22px); line-height: 1.35; }
.art { position: relative; width: min(calc(100% + 17px), 580px); aspect-ratio: 668 / 581; margin: 25px 0 0 -17px; }
.hero-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start center;
  isolation: isolate;
  perspective: 1100px;
  transition: opacity calc(450ms * var(--motion-scale)) var(--motion-ease), transform calc(540ms * var(--motion-scale)) var(--motion-ease), visibility 0s;
}
.product[data-product="premium"] .stars-stage,
.product[data-product="stars"] .premium-stage {
  opacity: 0;
  transform: translateY(18px) scale(.92);
  visibility: hidden;
  transition: opacity calc(380ms * var(--motion-scale)) ease, transform calc(540ms * var(--motion-scale)) var(--motion-ease), visibility 0s calc(540ms * var(--motion-scale));
}
.hero-stage::before, .hero-stage::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}
.hero-stage::before {
  inset: 3% 6% 7%;
  background: radial-gradient(ellipse at 50% 46%, #ca982719, #af7c2108 43%, transparent 69%);
}
.hero-stage::after {
  inset: auto 23% 7% 23%;
  height: 9%;
  background: radial-gradient(ellipse, #879ed62b 0%, #526d9b10 44%, transparent 72%);
}
.premium-stage::before { background: radial-gradient(ellipse at 50% 46%, #916fff30, #8b56e713 45%, transparent 70%); }
.premium-stage::after { background: radial-gradient(ellipse, #a48ce437, #65529213 46%, transparent 72%); }
.hero-object {
  display: block;
  width: 79%;
  height: auto;
  margin-top: 1%;
  user-select: none;
  animation: star-float 7s ease-in-out infinite;
}
.premium-stage .hero-object { width: 81%; margin-top: 1%; animation-name: premium-float; animation-delay: -2s; }
.product[data-product="premium"] .stars-stage .hero-object,
.product[data-product="stars"] .premium-stage .hero-object { animation-play-state: paused; }
@keyframes star-float {
  0%, 100% { transform: translateY(1%) rotateY(-10deg) rotateZ(-5deg); }
  50% { transform: translateY(-4%) rotateY(13deg) rotateZ(3deg); }
}
@keyframes premium-float {
  0%, 100% { transform: translate(-1%, 2%) rotateY(-6deg); }
  50% { transform: translate(2%, -4%) rotateY(8deg); }
}

.order {
  width: 100%;
  border: 1px solid #ffffff0d;
  border-radius: 20px;
  background: var(--panel);
  padding: clamp(22px, 2.4vw, 32px);
}
.order-header { margin-bottom: 24px; }
.product-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0;
  padding: 4px;
  min-width: 0;
  border: 0;
  border-radius: 10px;
  background: var(--field);
}
.product-switch::before {
  position: absolute;
  z-index: -1;
  inset: 4px auto 4px 4px;
  width: calc(50% - 6px);
  box-sizing: border-box;
  border-radius: 7px;
  background: var(--selection);
  content: "";
  transition: transform calc(260ms * var(--motion-scale)) var(--motion-ease);
}
.order[data-product="premium"] .product-switch::before { transform: translateX(calc(100% + 4px)); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice > span { display: grid; place-content: center; color: var(--muted); }
.product-switch .segment {
  display: grid;
  place-items: center;
  min-height: 39px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 510;
  transition: color 150ms ease;
}
.product-switch .choice input:checked + .segment { color: #f5f7ff; }
.choice:hover span { color: #f4f7ff; }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }

.section { margin-bottom: 19px; }
#stars-fields, #premium-fields { min-height: 117px; }
.section label:not(.choice), .section legend, .section-label { display: block; padding: 0; color: #cbd0da; font-size: 13px; font-weight: 485; line-height: 1.4; }
.field {
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 8px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
  transition: border-color 160ms ease;
}
.field:focus-within { border-color: #747e93; }
.field:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.field:has([aria-invalid="true"]) { border-color: #fa9da8; }
.field input {
  width: 100%;
  min-width: 0;
  padding: 9px 13px;
  border: 0;
  outline: 0;
  border-radius: inherit;
  background: transparent;
  font-size: 16px;
  line-height: 1.3;
}
.field input::placeholder { color: var(--muted); }
.quantity-field input { appearance: textfield; font-weight: 545; font-variant-numeric: tabular-nums; font-size: 19px; }
.quantity-field input::-webkit-inner-spin-button, .quantity-field input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.unit { padding-right: 13px; color: var(--muted); font-size: 12px; }
.help { color: var(--muted); margin: 6px 0 0; font-size: 12px; line-height: 1.4; }
.help[data-error="true"] { color: #ffb2ba; }

.presets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin-top: 8px; }
.presets button {
  border: 1px solid #303641;
  border-radius: 7px;
  padding: 0 3px;
  min-height: 36px;
  background: #1c212b;
  color: #aeb6c3;
  font-size: 13px;
  font-weight: 470;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.presets button:hover { color: #f3f3f6; background: #252b37; border-color: #424956; }
.presets button[aria-pressed="true"] { color: #f8f4ec; background: #303642; border-color: #5e6676; }
.duration { padding: 0; margin: 0; border: 0; min-width: 0; }
.duration-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-top: 8px; padding: 4px; border-radius: 9px; background: var(--field); }
.duration-options span {
  min-height: 68px;
  padding: 4px;
  text-align: center;
  border-radius: 6px;
  color: #f6f7fb;
  font-size: 15px;
  line-height: 1.35;
}
.duration-options small { margin-top: 3px; font-size: 12px; font-weight: 420; color: var(--muted); }
.duration-options .choice > input + span { transition: background-color 150ms ease; }
.duration-options .choice:hover > input + span { background: #ffffff08; }
.duration-options .choice input:checked + span { background: var(--selection); }

.payment { margin-bottom: 22px; }
.payment-picker { position: relative; margin-top: 8px; }
.payment-trigger, .payment-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-weight: 490;
}
.payment-trigger {
  min-height: 48px;
  padding: 6px 15px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--field);
  transition: border-color 150ms ease;
}
.payment-trigger:hover, .payment-trigger[aria-expanded="true"] { border-color: #565e6e; }
.payment-chevron { width: 8px; height: 8px; border: solid #a5adbb; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform calc(210ms * var(--motion-scale)) var(--motion-ease); }
.payment-trigger[aria-expanded="true"] .payment-chevron { transform: translateY(2px) rotate(225deg); }
.payment-icon {
  display: grid;
  place-items: center;
  width: 23px;
  aspect-ratio: 1;
}
.payment-icon img { display: block; width: 90%; height: 90%; object-fit: contain; }
.payment-menu {
  position: absolute;
  z-index: 5;
  inset: calc(100% + 7px) 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #545c6a var(--panel);
  padding: 4px;
  border: 1px solid #343a47;
  border-radius: 11px;
  background: #1b202a;
  box-shadow: 0 14px 36px #07080b93;
}
.payment-picker.opens-up .payment-menu { inset: auto 0 calc(100% + 7px); }
.payment-option {
  min-height: 50px;
  padding: 6px 11px 6px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  transition: background-color 140ms ease;
}
.payment-option:hover, .payment-option:focus-visible { background: #2a303b; }
.payment-option:focus-visible { outline-offset: -2px; }
.payment-option[aria-selected="true"] { background: var(--selection); }
.payment-copy { display: grid; gap: 2px; }
.payment-detail { color: var(--muted); font-size: 12px; font-weight: 425; }
.payment-check { width: 6px; height: 10px; margin-right: 5px; border: solid var(--action); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); visibility: hidden; }
.payment-option[aria-selected="true"] .payment-check { visibility: visible; }

.total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.total-label { font-size: 14px; font-weight: 500; }
.moving-text { display: inline-grid; overflow: hidden; vertical-align: middle; }
.moving-text > * { grid-area: 1 / 1; white-space: nowrap; }
.amount-stack { justify-items: end; }
.amount { font-size: 29px; font-weight: 595; letter-spacing: -.036em; line-height: 1.16; white-space: nowrap; font-variant-numeric: tabular-nums; }
.total .help { grid-column: 1 / -1; margin-top: 4px; }
.primary {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--action);
  color: #171821;
  font-size: 15px;
  font-weight: 575;
  transition: background-color 150ms ease;
}
.primary:hover { background: var(--action-hover); }
.primary:active { background: #d9d5cb; }
.total .primary {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 49px;
  margin-top: 18px;
}
dialog { width: min(430px, calc(100% - 32px)); padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: inherit; }
dialog[open], dialog[open]::backdrop { animation: dialog-fade calc(180ms * var(--motion-scale)) ease both; }
dialog::backdrop { background: #070910a6; }
dialog.is-closing[open]::backdrop { animation: dialog-fade-out calc(180ms * var(--motion-scale)) ease both; }
@keyframes dialog-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-fade-out { from { opacity: 1; } to { opacity: 0; } }
dialog h2 { margin: 0 0 10px; font-size: 22px; font-weight: 560; letter-spacing: -.028em; }
dialog p { margin: 8px 0 18px; color: var(--muted); line-height: 1.5; }

@media (max-width: 820px) {
  body { background: radial-gradient(ellipse 55% 175px at 78% 135px, #1b2130, transparent); }
  .site-header { width: calc(100% - 36px); min-height: 60px; }
  .brand { font-size: 16px; gap: 9px; }
  .brand-mark { width: 20px; }
  .header-links { gap: 14px; }
  .header-links button { font-size: 12px; }
  .store { width: min(520px, calc(100% - 36px)); grid-template-columns: 1fr; gap: 24px; margin-top: 20px; }
  .checkout { max-width: none; }
  .product { display: grid; grid-template-columns: 1fr 43%; grid-template-rows: 1fr 1fr; gap: 0 4px; align-items: start; padding: 0; }
  .product h1, .product[data-product="premium"] h1 { align-self: end; font-size: clamp(26px, 7vw, 43px); line-height: 1.08; }
  .product p { margin-top: 7px; font-size: 14px; }
  .art { grid-column: 2; grid-row: 1 / 3; width: 100%; align-self: center; margin: 0; }
  .order { padding: 0; border: 0; border-radius: 0; background: transparent; }
  .order-header { margin-bottom: 21px; }
  .presets button { min-height: 43px; }
  .total .primary { margin-top: 15px; }
}
@media (max-width: 385px) {
  .site-header { gap: 10px; }
  .header-links { flex-wrap: wrap; justify-content: flex-end; gap: 0 8px; }
  .header-links button { padding-block: 7px; font-size: 12px; }
  .brand { gap: 6px; font-size: 15px; }
  .presets button { font-size: 12px; }
  .amount { font-size: 26px; }
}
@media (max-width: 360px) {
  .presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-object,
  dialog[open], dialog[open]::backdrop, dialog.is-closing[open]::backdrop { animation: none; }
  .product[data-product] .hero-stage, .product-switch::before, .segment,
  .field, .presets button, .duration-options .choice > input + span, .payment-trigger,
  .payment-chevron, .payment-option, .primary, .header-links button { transition: none; }
}

.hero-stage::before{background:radial-gradient(ellipse,var(--art-color,#efbe57) 0%,transparent 67%);opacity:.12}
.hero-stage::after{background:radial-gradient(ellipse,var(--art-color,#efbe57) 0%,transparent 70%);opacity:.12}
