/* Подарки Telegram за рубли: витрина, оформление, страница заказа */
.gs { max-width: 1280px; margin: 0 auto; padding: 32px 32px 48px; display: flex; flex-direction: column; gap: 24px; color: #8794a1; font-family: Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.gs a { color: #4db2ff; text-decoration: none; }
.gs a:hover { color: #248bda; }
.gs button { font: inherit; }
.gs [hidden] { display: none !important; }
.gs :focus-visible { outline: 2px solid #4db2ff; outline-offset: 2px; }

.gs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.gs-head h1 { margin: 0; font-family: ProductSans, Arial, sans-serif; font-size: 40px; line-height: 1.1; font-weight: 600; color: #fff; }
.gs-head p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; max-width: 520px; }
.gs-steps { display: flex; align-items: center; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: #fff; white-space: nowrap; }
.gs-steps li { display: flex; align-items: center; gap: 8px; }
.gs-steps li + li::before { content: ""; width: 28px; height: 1px; background: #354352; margin-right: 4px; }
.gs-steps i { width: 24px; height: 24px; border-radius: 50%; background: #293440; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 12px; }
.gs-steps li.is-on i { background: #4db2ff; }
.gs-notice { background: rgba(255, 153, 83, .08); color: #ff9953; border-radius: 12px; padding: 14px 18px; font-size: 14px; line-height: 1.5; }

.gs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.gs-shop { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gs-occs { display: flex; gap: 8px; flex-wrap: wrap; }
.gs-occ { padding: 10px 16px; border: 0; border-radius: 10px; background: #212a33; font-size: 14px; font-weight: 500; color: #fff; cursor: pointer; }
.gs-occ:hover { background: #293440; }
.gs-occ.is-on { background: #4db2ff; }

.gs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gs-card { position: relative; background: #212a33; border-radius: 14px; overflow: hidden; }
.gs-card.is-on::after { content: ""; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 2px #4db2ff; pointer-events: none; }
.gs-card-art { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.gs-card-art img { position: relative; width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .3)); transition: transform .2s; }
.gs-card-art .gs-emoji { position: absolute; font-size: 64px; line-height: 1; }
.gs-card-art img + .gs-stars, .gs-card-art .gs-stars { position: absolute; top: 10px; left: 10px; padding: 4px 8px; background: rgba(0, 0, 0, .6); border-radius: 6px; font-size: 11px; font-weight: 600; color: #fbbf24; }
/* Картинка загрузилась — эмодзи-заглушка под ней не нужна */
.gs-card-art .gs-season { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 5px 8px; background: rgba(0, 0, 0, .62); border-radius: 6px; font-size: 11px; font-weight: 600; color: #fff; text-align: center; }
.gs-card-art:has(img) .gs-emoji { opacity: 0; }
.gs-card-art lottie-player { position: absolute; inset: 19%; width: 62%; height: 62%; opacity: 0; pointer-events: none; }
.gs-card-art.has-anim[data-play="1"] lottie-player { opacity: 1; }
.gs-card-art.has-anim[data-play="1"] img, .gs-card-art.has-anim[data-play="1"] .gs-emoji { opacity: 0; }
@media (hover: hover) { .gs-card-art:hover img { transform: scale(1.08); } }
.gs-card-body { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.gs-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gs-card-text h2 { margin: 0; font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-card-text b { font-size: 16px; font-weight: 700; color: #fff; }
.gs-plus { width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 10px; background: rgba(77, 178, 255, .12); color: #4db2ff; font-size: 22px; line-height: 1; cursor: pointer; }
.gs-plus:hover { background: rgba(77, 178, 255, .22); }
.gs-stepper { display: flex; align-items: center; flex-shrink: 0; background: #4db2ff; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 700; }
.gs-stepper button { width: 32px; height: 36px; border: 0; background: none; color: #fff; font-size: 18px; cursor: pointer; border-radius: 10px; }
.gs-stepper button:hover { background: rgba(255, 255, 255, .15); }
.gs-stepper span { min-width: 16px; text-align: center; }

.gs-order { background: #212a33; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; position: sticky; top: 84px; }
.gs-order-top { display: none; }
.gs-preview { background: #17212b; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.gs-preview-label { font-size: 11px; font-weight: 600; color: #6d8394; text-transform: uppercase; letter-spacing: .5px; }
.gs-bubble { align-self: center; width: 240px; max-width: 100%; box-sizing: border-box; background: #242e38; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.gs-bubble-art { position: relative; width: 128px; height: 128px; display: flex; align-items: center; justify-content: center; }
.gs-bubble-art::before, .gs-result-art::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: var(--bg, #3a4a5a); filter: blur(22px); opacity: .45; }
.gs-bubble-art > *, .gs-result-art > * { position: relative; }
.gs-bubble-art .gs-emoji { font-size: 52px; line-height: 1; }
.gs-bubble-art lottie-player { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .2s; }
.gs-bubble-art.has-anim lottie-player { opacity: 1; }
.gs-bubble-art.has-anim .gs-emoji { opacity: 0; }
.gs-bubble-name { font-size: 15px; font-weight: 600; color: #fff; }
.gs-bubble-caption { font-size: 14px; line-height: 1.4; color: #fff; overflow-wrap: anywhere; }
.gs-bubble-caption.is-empty { color: #6d8394; }
.gs-bubble-meta { font-size: 12px; color: #6d8394; overflow-wrap: anywhere; }

.gs-form { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.gs-field { display: flex; flex-direction: column; gap: 8px; }
.gs-field-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.gs-field-head label { color: #fff; }
.gs-link { border: 0; background: none; padding: 0; color: #4db2ff; cursor: pointer; font-size: 14px; }
.gs-link:hover { color: #248bda; }
.gs-count { font-size: 12px; color: #6d8394; }
.gs-input { display: flex; align-items: center; background: #242e38; border-radius: 10px; padding: 0 14px; color: #6d8394; font-size: 15px; border: 1px solid transparent; }
.gs-input:focus-within { border-color: #4db2ff; }
.gs-input.is-bad { border-color: rgba(255, 88, 99, .7); }
.gs-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; padding: 12px 0 12px 2px; }
.gs-form textarea { background: #242e38; border: 1px solid transparent; outline: 0; border-radius: 10px; padding: 12px 14px; color: #fff; font: inherit; font-size: 14px; line-height: 1.4; resize: none; }
.gs-form textarea:focus { border-color: #4db2ff; }
.gs-form input::placeholder, .gs-form textarea::placeholder { color: #6d8394; }
.gs-hint { font-size: 12px; line-height: 1.4; min-height: 17px; }
.gs-hint.is-good { color: #5ebd72; }
.gs-hint.is-bad { color: #ff5863; }
.gs-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.gs-quick button { padding: 7px 10px; border: 0; border-radius: 8px; background: #242e38; font-size: 12px; color: #fff; cursor: pointer; }
.gs-quick button:hover { background: #293440; }
.gs-sum { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 16px; font-size: 14px; }
.gs-lines { display: flex; flex-direction: column; gap: 8px; }
.gs-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.gs-lines > div span:last-child { color: #fff; white-space: nowrap; }
.gs-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.gs-total span { color: #fff; }
.gs-total b { font-size: 28px; font-weight: 700; color: #fff; }
.gs-pay { border: 0; border-radius: 10px; padding: 15px; text-align: center; font-size: 15px; font-weight: 600; color: #fff; background: #4db2ff; cursor: pointer; }
.gs-pay:hover { background: #248bda; }
.gs-pay:disabled { background: #354352; cursor: default; }
.gs-error { background: rgba(255, 88, 99, .1); color: #ff8a92; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.4; }
.gs-note { margin: 0; font-size: 12px; line-height: 1.5; text-align: center; color: #6d8394; }
.gs-bar { display: none; }

/* Текст под витриной */
.gs-seo { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.gs-seo h2 { margin: 16px 0 0; font-family: ProductSans, Arial, sans-serif; font-size: 24px; font-weight: 600; color: #fff; }
.gs-seo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gs-seo-steps > div { background: #212a33; border-radius: 14px; padding: 18px; }
.gs-seo-steps b { color: #fff; font-size: 15px; }
.gs-seo-steps p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }
.gs-faq { display: flex; flex-direction: column; gap: 8px; }
.gs-faq details { background: #212a33; border-radius: 12px; padding: 0 18px; }
.gs-faq summary { cursor: pointer; padding: 14px 0; color: #fff; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.gs-faq summary::-webkit-details-marker { display: none; }
.gs-faq summary::after { content: "+"; color: #6d8394; font-weight: 400; font-size: 20px; line-height: 1; }
.gs-faq details[open] summary::after { content: "−"; }
.gs-faq p { margin: 0; padding: 0 0 16px; font-size: 14px; line-height: 1.55; }

/* ===== Страница заказа ===== */
.gs-result { max-width: 420px; width: 100%; margin: 24px auto; box-sizing: border-box; background: #212a33; border-radius: 16px; padding: 32px 24px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.gs-result-art { position: relative; width: 128px; height: 128px; display: flex; align-items: center; justify-content: center; }
.gs-result-art .gs-emoji { font-size: 56px; line-height: 1; }
.gs-result-art lottie-player { position: absolute; inset: 0; width: 100%; height: 100%; }
.gs-result h1 { margin: 0; font-family: ProductSans, Arial, sans-serif; font-size: 24px; font-weight: 600; color: #fff; }
.gs-result-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.gs-result-list { align-self: stretch; background: #242e38; border-radius: 10px; padding: 4px 14px; font-size: 14px; text-align: left; }
.gs-result-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.gs-result-list > div:last-child { border-bottom: 0; }
.gs-result-list .ok { color: #5ebd72; font-weight: 600; }
.gs-result-list .wait { color: #fbbf24; font-weight: 600; }
.gs-result-list .bad { color: #ff5863; font-weight: 600; text-align: right; }
.gs-result-list .white { color: #fff; }
.gs-result-actions { align-self: stretch; display: flex; gap: 12px; }
.gs-result-actions a { flex: 1; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 600; background: #242e38; color: #fff; }
.gs-result-actions a:hover { background: #293440; color: #fff; }
.gs-result-actions a.primary { background: #4db2ff; }
.gs-result-actions a.primary:hover { background: #248bda; }
.gs-result-note { font-size: 13px; line-height: 1.5; margin: 0; }
.gs-spin { width: 18px; height: 18px; border: 3px solid rgba(251, 191, 36, .3); border-top-color: #fbbf24; border-radius: 50%; animation: gs-spin 1s linear infinite; display: inline-block; vertical-align: -3px; margin-right: 6px; }
@keyframes gs-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .gs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gs-steps { display: none; }
}

@media (max-width: 860px) {
  .gs { padding: 20px 16px 96px; gap: 14px; }
  .gs-head h1 { font-size: 26px; line-height: 1.15; }
  .gs-head p { font-size: 14px; margin-top: 6px; }
  .gs-layout { display: block; }
  .gs-occs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .gs-occs::-webkit-scrollbar { display: none; }
  .gs-occ { height: 44px; padding: 0 14px; flex: none; white-space: nowrap; }
  .gs-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gs-card-body { padding: 10px 12px; gap: 6px; }
  .gs-card-text b { font-size: 15px; }
  .gs-card-art .gs-stars { top: 8px; left: 8px; }
  .gs-plus { width: 44px; height: 44px; font-size: 24px; }
  .gs-stepper button { width: 30px; height: 44px; }

  /* Два шага: витрина, затем оформление на весь экран */
  .gs-order { display: none; position: static; border-radius: 0; margin: -20px -16px 0; background: none; }
  .gs.is-checkout .gs-order { display: flex; }
  .gs.is-checkout .gs-shop, .gs.is-checkout .gs-head, .gs.is-checkout .gs-bar, .gs.is-checkout .gs-seo, .gs.is-checkout .gs-notice { display: none; }
  .gs-order-top { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; font-size: 16px; font-weight: 600; color: #fff; }
  .gs-back { width: 44px; height: 44px; margin-left: -12px; border: 0; background: none; color: #4db2ff; font-size: 28px; line-height: 1; cursor: pointer; }
  .gs-preview { padding: 16px; align-items: center; }
  .gs-preview-label { display: none; }
  .gs-bubble { width: 220px; padding: 14px; gap: 8px; }
  .gs-bubble-art { width: 104px; height: 104px; }
  .gs-bubble-art .gs-emoji { font-size: 42px; }
  .gs-form { padding: 16px; gap: 14px; }
  .gs-input { height: 48px; background: #212a33; font-size: 16px; }
  .gs-input input { padding: 0 0 0 2px; height: 48px; }
  .gs-form textarea { background: #212a33; font-size: 16px; }
  .gs-quick button { min-height: 36px; background: #212a33; }
  .gs-sum { background: #212a33; border-radius: 12px; padding: 14px; border-top: 0; }
  .gs-total { border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 8px; margin-top: 0; }
  .gs-total b { font-size: 22px; }
  .gs-pay { height: 52px; padding: 0 15px; font-size: 16px; }

  .gs-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: rgba(13, 17, 23, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid rgba(255, 255, 255, .06); }
  .gs-bar > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .gs-bar span { font-size: 12px; }
  .gs-bar b { font-size: 20px; font-weight: 700; color: #fff; }
  .gs-bar button { height: 48px; padding: 0 24px; border: 0; border-radius: 10px; background: #4db2ff; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
  .gs-bar button:disabled { background: #354352; }
  .gs-seo-steps { grid-template-columns: 1fr; }
  .gs-seo h2 { font-size: 20px; }
  .gs-result { margin: 16px auto; }
}

@media (prefers-reduced-motion: reduce) {
  .gs-card-art img, .gs-bubble-art lottie-player { transition: none; }
  .gs-spin { animation: none; }
}
