/* Внутренние страницы в стиле «Ленты»: подарок, звёзды, Premium. Поверх home.css и gifts.css. */

/* Шапка страницы подарка: большая картинка + цена «от / до» */
.product-head { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 32px; }
.product-img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 32px; background: var(--surface-2); }
.product-info h1 { margin: 0 0 24px; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; }
.product-price { padding: 0; margin: 0; }
.product-price .p-from { font-size: 40px; line-height: 46px; letter-spacing: -.02em; }
.product-price .p-to { font-size: 20px; line-height: 28px; }
.product-note { margin: 16px 0 0; max-width: 34em; font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.product-info .cta-row { margin-top: 32px; }

/* Шаги: три карточки */
.steps { margin-top: 96px; display: block; }
.steps h2, .faq h2, .similar h2 { margin: 0 0 24px; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.steps ol { list-style: none; counter-reset: step; padding: 0; margin: 0; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { display: block; counter-increment: step; margin: 0; padding: 24px; border-radius: 24px; background: var(--surface); color: var(--text); font-size: 17px; line-height: 1.45; box-shadow: none; }
.steps li::before { content: counter(step); display: block; text-align: left; position: static; width: auto; height: auto; margin: 0 0 16px; background: none; color: var(--fill); font: 800 32px/1 var(--num); letter-spacing: -.02em; }

/* Вопросы: одна карточка с разделителями */
.faq { margin-top: 96px; }
.faq-list { border-radius: 24px; background: var(--surface); padding: 0 24px; }
.faq-item { padding: 20px 0; border-top: 1px solid var(--divider, rgba(127,127,127,.18)); }
.faq-item:first-child { border-top: 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; font-weight: 700; }
.faq-item p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-muted); }

.similar { margin-top: 96px; }
.similar .grid { margin-top: 0; }

/* Покупка звёзд / Premium: одна колонка как в Telegram — шапка «Telegram Stars», списки с кружками */
.buy { max-width: 520px; margin: 0 auto; padding-top: 8px; }
.buy-hero { margin: 0 0 24px; text-align: center; }
.buy-art { position: relative; width: 220px; height: 112px; margin: 0 auto; }
.buy-art > img { position: absolute; left: 50%; top: 8px; width: 96px; height: 96px; margin-left: -48px; object-fit: contain; }
.buy-art > i { position: absolute; width: 9px; height: 9px; background-position: center; background-size: contain; background-repeat: no-repeat; opacity: .55; }
.buy-hero h1 { margin: 6px 0 4px; font-size: 28px; line-height: 34px; letter-spacing: -.3px; font-weight: 700; }
.buy-hero p { margin: 0; font-size: 15px; line-height: 20px; color: var(--text-muted); }
.buy-cap { margin: 0 0 6px; padding: 0 16px; font-size: 13px; line-height: 18px; text-transform: uppercase; color: var(--text-muted); }
.buy-list { margin: 0 0 16px; border-radius: 12px; background: var(--surface); overflow: hidden; }
.buy-row { position: relative; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; border: 0; background: none; font: inherit; font-size: 17px; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; }
.buy-row + .buy-row::before { content: ""; position: absolute; top: 0; right: 0; left: 50px; height: 1px; transform: scaleY(.5); background: color-mix(in srgb, var(--text-muted) 35%, transparent); }
a.buy-row:hover, button.buy-row:hover { text-decoration: none; background: color-mix(in srgb, var(--surface) 94%, var(--text)); }
.buy-row:focus-visible, label.buy-row:focus-within { outline: 2px solid var(--fill); outline-offset: -2px; border-radius: 12px; }
.buy-main { flex: 1; min-width: 0; padding: 12px 0; }
.buy-sub { display: block; margin-top: -6px; padding-bottom: 0; font-size: 13px; line-height: 16px; color: var(--text-muted); }
.buy-badge { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--fill); color: #fff; font-size: 12px; font-weight: 600; line-height: 18px; vertical-align: 2px; }
.buy-end { flex: none; white-space: nowrap; font-family: var(--num); font-variant-numeric: tabular-nums; color: var(--text-muted); }
.buy-pick.on .buy-end { color: var(--text); font-weight: 600; }
.buy-radio { flex: none; box-sizing: border-box; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--text-muted) 60%, transparent); }
.buy-pick.on .buy-radio { border: 0; background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.buy-stack { flex: none; position: relative; width: 34px; height: 22px; }
.buy-stack img { position: absolute; top: 0; left: 0; width: 22px; height: 22px; object-fit: contain; }
.buy-stack img:nth-child(2) { left: 5px; }
.buy-stack img:nth-child(3) { left: 10px; }
.buy-gap { flex: none; width: 22px; }
.buy-more .buy-main, .buy-chev { color: var(--fill); }
.buy-chev { flex: none; }
.buy-at { flex: none; width: 22px; text-align: center; color: var(--text-muted); }
.buy-nick, .buy-inp { min-width: 0; padding: 12px 0; border: 0; outline: 0; background: none; color: var(--text); }
.buy-nick { flex: 1; font: inherit; }
.buy-nick::placeholder { color: var(--text-muted); }
.buy-inp { width: 96px; font: 600 17px var(--num); text-align: right; -moz-appearance: textfield; appearance: textfield; }
.buy-inp::-webkit-inner-spin-button, .buy-inp::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy-hint { margin: -10px 0 20px; padding: 0 16px; font-size: 13px; line-height: 18px; color: var(--text-muted); }
.buy-hint-err { color: #d70015; }
.buy-hint-ava { display: inline-block; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; vertical-align: -4px; object-fit: cover; }
.buy-cta.cta-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
.buy-cta .btn { justify-content: center; text-align: center; }

@media (prefers-color-scheme: dark) {
  .steps li, .faq-list { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
  .buy-hint-err { color: #ff453a; }
}
@media (max-width: 900px) {
  .product-head { grid-template-columns: 1fr; gap: 24px; }
  .product-img { max-width: 420px; }
}
@media (max-width: 640px) {
  .product-head { padding-top: 16px; gap: 20px; }
  .product-img { width: 160px; border-radius: 24px; }
  .product-info h1 { font-size: clamp(26px, 7.4vw, 32px); line-height: 1.08; margin-bottom: 16px; }
  .product-price .p-from { font-size: 30px; line-height: 36px; }
  .product-price .p-to { font-size: 17px; line-height: 24px; }
  .product-note { font-size: 15px; }
  .product-info .cta-row { flex-wrap: nowrap; margin-top: 24px; }
  .product-info .cta-row .btn { flex: 1; text-align: center; padding-inline: 12px; white-space: nowrap; font-size: 16px; }
  .steps, .faq, .similar { margin-top: 56px; }
  .steps ol { grid-template-columns: 1fr; gap: 8px; }
  .steps li { padding: 18px 20px; font-size: 16px; display: flex; gap: 16px; align-items: baseline; }
  .steps li::before { margin: 0; font-size: 22px; }
  .faq-list { padding: 0 18px; border-radius: 20px; }
  .faq-item { padding: 16px 0; }
  .faq-item h3 { font-size: 16px; }
  .faq-item p { font-size: 15px; }
  .buy-cta .btn { font-size: 16px; }
}
