/* itunesgifts.xyz storefront. Light, gradient accents, no external fonts or assets (CSP: 'self' only). */
:root {
  --violet: #7c3aed;
  --blue: #2563eb;
  --pink: #ec4899;
  --ink: #16132b;
  --ink-2: #4b4766;
  --muted: #6e6a86;
  --bg: #fbfaff;
  --surface: #ffffff;
  --tint: #f4f1ff;
  --line: #e7e3f5;
  --ok: #0f9d58;
  --warn: #c2410c;
  --bad: #b42318;
  --grad: linear-gradient(120deg, var(--violet) 0%, var(--blue) 50%, var(--pink) 100%);
  --grad-soft: linear-gradient(135deg, #ede9fe 0%, #dbeafe 55%, #fce7f3 100%);
  --radius: 20px;
  --shadow: 0 10px 30px rgba(76, 29, 149, 0.10);
  --shadow-lg: 0 24px 60px rgba(76, 29, 149, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 12px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(124, 58, 237, 0.30); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(124, 58, 237, 0.40); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: #cfc6f5; }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: .92rem; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.icon-btn { border: 0; background: var(--tint); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
:focus-visible { outline: 3px solid rgba(124, 58, 237, .45); outline-offset: 2px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 255, 0.82); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar__row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand__name { font-size: 1.05rem; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--violet); }
.cart-btn { position: relative; border: 1px solid var(--line); background: var(--surface); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.cart-btn__count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pink); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 48px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 35%; height: 620px; background: radial-gradient(closest-side, rgba(236, 72, 153, .18), transparent 70%), radial-gradient(closest-side, rgba(37, 99, 235, .16), transparent 70%) 160px 120px / 100% 100% no-repeat; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--violet); background: #f3efff; padding: 6px 12px; border-radius: 999px; font-size: .85rem; margin-bottom: 16px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.hero__art img { filter: drop-shadow(0 30px 60px rgba(76, 29, 149, .22)); }

/* sections */
.section { padding: 72px 0; }
.section--tint { background: var(--grad-soft); }
.section__head { max-width: 640px; margin-bottom: 28px; }
.section__head p { color: var(--ink-2); }
.card-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(124, 58, 237, .25); }
.status { color: var(--muted); }
.chip { display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 5px; margin-right: 6px;
  border-radius: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; vertical-align: 1px;
  background: rgba(124, 58, 237, .12); color: var(--violet); }
.tab[aria-selected="true"] .chip { background: rgba(255, 255, 255, .25); color: #fff; }
.status--error { color: var(--bad); }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product__art { position: relative; aspect-ratio: 16 / 10; }
.product__art img { width: 100%; height: 100%; object-fit: cover; }
.product__face { position: absolute; left: 14px; bottom: 12px; color: #fff; background: rgba(22, 19, 43, .86); font-weight: 800; font-size: 1.25rem; line-height: 1; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(22, 19, 43, .25); }
.product__region { position: absolute; right: 14px; top: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.product__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product__title { font-weight: 700; }
.product__meta { color: var(--muted); font-size: .88rem; }
.product__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { font-size: 1.35rem; font-weight: 800; white-space: nowrap; }
.badge { align-self: flex-start; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge--in_stock { background: #e7f8ef; color: var(--ok); }
.badge--few { background: #fff4e6; color: var(--warn); }
.badge--out { background: #fdecec; color: var(--bad); }

/* steps & benefits */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; right: 20px; font-weight: 800; font-size: 2rem; color: #ece8fb; }
.step img { margin-bottom: 14px; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { background: rgba(255, 255, 255, .75); border-radius: var(--radius); padding: 22px; }
.benefit img { margin-bottom: 10px; }
.plain-steps { padding-left: 20px; }
.plain-steps li { margin-bottom: 6px; }
.page-html { color: var(--ink-2); }
.page-html b, .page-html strong { color: var(--ink); }

/* support */
.support { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
picture { display: block; }
.support__art { max-width: 320px; }

/* footer */
.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__disclaimer { max-width: 60em; }

/* cart drawer */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(22, 19, 43, .38); }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; box-shadow: -20px 0 50px rgba(22, 19, 43, .18); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__head h2 { margin: 0; font-size: 1.5rem; }
.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.notice { background: #fff7ed; color: var(--warn); border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.cart-item__title { font-weight: 700; }
.cart-item__sum { font-weight: 800; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 800; }
.total { display: flex; justify-content: space-between; font-size: 1.15rem; padding-top: 8px; border-top: 1px solid var(--line); }

/* responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .hero__grid, .two-col { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; }
  .steps, .benefits { grid-template-columns: 1fr; }
  .support { grid-template-columns: 1fr; }
  .support__art { max-width: 240px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 28px; }
  .section { padding: 52px 0; }
  .card-panel { padding: 20px; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .product { transition: none; }
}
/* on-site checkout (2026-09-28, site separate from the bot) */
.checkout{display:grid;gap:8px;margin:12px 0}
.checkout label{font-weight:700}
.checkout input{border:1px solid #d9d3ee;border-radius:12px;padding:12px 14px;font:inherit}
.checkout-error{margin:0;color:#b42318;font-size:14px;min-height:0}
.checkout-error:empty{display:none}
.checkout-ok{margin:0 0 12px;padding:12px;border-radius:12px;background:#eef8f1;color:#1d6b3a}

/* Документы: два блока подряд в одном разделе + ссылки на них в подвале. */
.legal-doc + .legal-doc { margin-top: 24px; }
.footer__links { margin-bottom: 6px; }
.footer__links a { color: var(--ink-2); text-decoration: underline; }
.footer__links a:hover { color: var(--ink); }

/* ---- v7: banners, newsletter, contacts ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tab[disabled] { opacity: .5; }
.status a { font-weight: 700; }

.announce { background: var(--grad); color: #fff; font-size: .92rem; }
.announce__row { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.announce__text { margin: 0; flex: 1; }
.announce__btn { border: 0; background: rgba(255, 255, 255, .95); color: var(--violet); font: inherit; font-weight: 800; padding: 6px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.announce__close { border: 0; background: transparent; color: #fff; font-size: 1rem; cursor: pointer; padding: 4px 8px; opacity: .85; }

.promos { padding: 8px 0 0; }
.promos__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.promo { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 20px 22px; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow); }
.promo--violet { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.promo--blue { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.promo--pink { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.promo--dark { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.promo__title { margin: 0 0 6px; font-size: 1.12rem; }
.promo__text { margin: 0; font-size: .92rem; opacity: .95; }
.promo__cta { align-self: flex-start; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 800; font-size: .92rem; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--violet); }
.promo__cta:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.promo--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; padding: 24px 28px; }
.promo--wide .promo__title { font-size: 1.3rem; }
.promo--wide .promo__cta { align-self: center; white-space: nowrap; }

.subscribe { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.subscribe h2 { margin-bottom: 8px; }
.subform { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.subform input[type="email"] { min-width: 0; font: inherit; padding: 13px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.subform input[type="email"]:focus { outline: 3px solid rgba(124, 58, 237, .35); border-color: var(--violet); }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--violet); }
.subform__msg { grid-column: 1 / -1; margin: 0; min-height: 1.2em; font-size: .9rem; font-weight: 600; }
.subform__msg.is-error { color: var(--bad); }
.subform__msg.is-ok { color: var(--ok); }
.subform--modal { margin-top: 14px; }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(22, 19, 43, .55); }
.modal__panel { position: relative; width: min(480px, 100%); max-height: 100%; overflow-y: auto; background: var(--surface); border-radius: 24px; padding: 32px 28px 24px; box-shadow: var(--shadow-lg); }
.modal__panel h2 { font-size: 1.6rem; }
.modal__x { position: absolute; right: 14px; top: 14px; }
.link-btn { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; }

.contacts { list-style: none; padding: 0; margin: 0 0 16px; font-weight: 600; }
.footer__contacts { margin: 8px 0; }

@media (max-width: 760px) {
  .subscribe { grid-template-columns: 1fr; padding: 22px; }
  .subform { grid-template-columns: 1fr; }
  .promo--wide { flex-direction: column; align-items: flex-start; }
  .announce__row { flex-wrap: wrap; gap: 8px; }
  .announce__text { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .promo__cta { transition: none; } }

.footer__requisites { margin: 8px 0; color: var(--ink-2); }


/* автовыдача кодов на странице заказа */
.order-codes { max-width: 640px; margin: 12px auto; display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.order-code { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.order-code__title { font-weight: 600; color: var(--ink); }
.order-code__value { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: .04em; word-break: break-all; background: var(--tint); border-radius: 10px; padding: 10px 12px; user-select: all; }
.order-code__meta { font-size: 13px; color: var(--muted); }
.order-code__copy { align-self: flex-start; border: 1px solid var(--violet); color: var(--violet); background: transparent; border-radius: 10px; padding: 6px 14px; cursor: pointer; font: inherit; }

.tabs--brands { margin-bottom: 8px; flex-wrap: wrap; }
.tabs--brands .tab { font-weight: 600; }

/* категории каталога */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.cat { display: flex; flex-direction: column; gap: 4px; text-align: left; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 16px; font: inherit; cursor: pointer; color: inherit; }
.cat strong { font-size: 1rem; }
.cat span { font-size: .82rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat:hover { border-color: #b9a4f5; }
.cat[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(124, 58, 237, .25); }
.cat[aria-selected="true"] span { color: rgba(255, 255, 255, .85); }
@media (max-width: 560px) { .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; } .cat { padding: 12px 14px; } }

/* плашка «Топ-5 в РФ» */
.hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 16px; }
.hero__tags .eyebrow { margin-bottom: 0; }
.top-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 8px 20px rgba(124, 58, 237, .25); }
.top-badge svg { flex: none; }

/* Cart: one button per payment system (2026-10-30) */
.pay-buttons{display:grid;gap:8px}
