/* win.digi-keys.ru v2 — фиолетовый первый экран как в рекламных картинках digi-keys,
   белый чек-форма с жёлтой кнопкой оплаты, ниже доверие: отзывы, гарантия, письмо. */
:root {
  --brand: #4B1FC0;       /* фиолетовый с рекламных картинок фида */
  --brand-deep: #2A1170;
  --brand-ink: #1B0B4D;
  --brand-soft: #F0ECFC;
  --bg: #F5F4F9;
  --paper: #FFFFFF;
  --ink: #000000;
  --text: #2A2833;
  --muted: #66636F;
  --line: #DEDBE6;
  --pay: #FFD400;
  --pay-hover: #F4C900;
  --pay-edge: #C9A300;
  --link: #3C17B0;
  --ok: #157347;
  --bad: #B42318;
  --r-s: 8px;
  --r-m: 14px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "PT Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #7C5CFF; outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.12; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 650; margin-bottom: 6px; }
p { margin: 0 0 14px; }
b, strong { font-weight: 650; }
kbd, code { font: 14px/1 var(--mono); border-radius: 4px; padding: 2px 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow > * { max-width: 780px; }
.ic { width: 24px; height: 24px; flex: none; }
.linkish { font: inherit; color: var(--link); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Верхняя полоса промокода */
.promo { background: var(--brand-ink); color: #E4DCFF; font-size: 14px; text-align: center; padding: 8px 0; }
.promo b { color: var(--pay); font-weight: 700; letter-spacing: .02em; }

/* Первый экран */
.hero-bg {
  color: #fff;
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(124, 92, 255, .38), transparent 70%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 78%);
  padding-bottom: 64px;
}
.top { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; letter-spacing: .03em; text-decoration: none; }
.brand__mark { width: 26px; height: 26px; color: var(--pay); }
.top__nav { display: flex; gap: 22px; margin-left: 12px; }
.top__nav a { color: #DCD3FF; text-decoration: none; font-size: 15px; }
.top__nav a:hover { color: #fff; text-decoration: underline; }
.top__contacts { margin-left: auto; text-align: right; }
.top__contacts a { color: #fff; font-weight: 700; text-decoration: none; font-size: 17px; }
.top__contacts small { display: block; font-weight: 400; font-size: 12px; color: #BFB2F2; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; padding-top: 28px; }
.rating {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: #fff; text-decoration: none; font-size: 15px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; padding: 6px 14px 6px 12px; margin-bottom: 20px;
}
.rating:hover { background: rgba(255, 255, 255, .16); }
.rating__stars { color: var(--pay); letter-spacing: 1px; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.hero__lead { font-size: 19px; color: #E6E0FF; max-width: 33em; margin-bottom: 26px; }

.benefits { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; color: #D9D0FF; }
.benefits .ic { color: var(--pay); margin-top: 1px; }
.benefits b { color: #fff; }

.pick { border: 0; margin: 0; padding: 0; }
.pick legend { font-size: 15px; color: #CFC4FF; margin-bottom: 10px; padding: 0; }
.pick__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick__opt {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "img name" "img price";
  column-gap: 12px; align-items: center;
  padding: 10px 14px 10px 10px;
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-m);
  cursor: pointer; color: #fff;
  transition: background-color .12s ease, border-color .12s ease;
}
.pick__opt:hover { background: rgba(255, 255, 255, .14); }
.pick__opt input { position: absolute; opacity: 0; pointer-events: none; }
.pick__opt:has(input:checked) { background: #fff; border-color: #fff; color: var(--ink); box-shadow: 0 0 0 3px var(--pay); }
.pick__opt:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.pick__img { grid-area: img; width: 56px; height: 56px; border-radius: 10px; }
.pick__name { grid-area: name; font-size: 15px; line-height: 1.2; }
.pick__name b { font-size: 18px; }
.pick__price { grid-area: price; font-weight: 800; font-size: 18px; white-space: nowrap; }
.pick__price s { font-weight: 400; font-size: 13px; opacity: .65; margin-left: 4px; }
.pick__hint { font-size: 14px; color: #BFB2F2; margin: 14px 0 0; line-height: 1.8; }
.pick__hint kbd, .pick__hint code { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }

/* Чек-форма */
.receipt {
  position: relative; color: var(--ink);
  background: var(--paper);
  padding: 22px 24px 32px;
  border-radius: var(--r-s) var(--r-s) 0 0;
  box-shadow: 0 30px 60px -30px rgba(10, 0, 40, .75);
  --tooth: 9px;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
          mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
}
.receipt__head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); padding-bottom: 12px; border-bottom: 1.5px dashed #C4BFD3; margin-bottom: 16px; }
.receipt__shop { letter-spacing: .16em; margin: 0; font-size: 15px; }
.receipt__title { margin: 0; font-size: 13px; color: var(--muted); }
.receipt__item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.receipt__img { width: 96px; height: 96px; border-radius: 12px; }
.receipt__name { font-size: 20px; font-weight: 800; margin: 0 0 4px; line-height: 1.15; }
.receipt__meta { font-size: 13px; color: var(--muted); margin: 0 0 6px; line-height: 1.4; }
.receipt__stock { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ok); margin: 0; font-weight: 600; }
.receipt__stock .ic { width: 16px; height: 16px; }
.receipt__lines { margin: 0 0 16px; font-family: var(--mono); }
.rl { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 3px 0; }
.rl dt, .rl dd { margin: 0; }
.rl dd { white-space: nowrap; }
.rl--promo dd { color: var(--ok); }
.rl--total { border-top: 1.5px dashed #C4BFD3; margin-top: 8px; padding-top: 10px; font-size: 20px; font-weight: 700; align-items: baseline; }
.rl--total dd { font-size: 26px; }

.field { display: block; margin-bottom: 12px; }
.field__label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; font: 17px/1.3 var(--font); color: var(--ink);
  padding: 13px 14px; border: 1.5px solid #B9B4C7; border-radius: var(--r-s); background: #fff;
}
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(75, 31, 192, .22); }
.field input[aria-invalid="true"] { border-color: var(--bad); }

.pay {
  display: block; width: 100%;
  font: 800 19px/1 var(--font); color: #000;
  background: var(--pay); border: 0; border-radius: var(--r-s);
  padding: 18px; cursor: pointer;
  box-shadow: 0 3px 0 var(--pay-edge);
  transition: background-color .12s ease, transform .06s ease;
}
.pay:hover { background: var(--pay-hover); }
.pay:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pay-edge); }
.pay[aria-busy="true"] { cursor: progress; opacity: .75; }
.receipt__error { color: var(--bad); font-size: 15px; font-weight: 500; margin: 12px 0 0; }

.paymarks { display: flex; gap: 8px; justify-content: center; margin: 14px 0 12px; }
.pm { display: inline-grid; place-items: center; height: 26px; min-width: 46px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; font: 800 12px/1 var(--font); letter-spacing: .02em; background: #fff; }
.pm--mir { color: #0F754E; }
.pm--sbp { color: #5B2AB3; }
.pm--visa { color: #1A1F71; font-style: italic; font-size: 13px; }
.pm--mc { position: relative; }
.pm--mc i { position: absolute; top: 5px; width: 16px; height: 16px; border-radius: 50%; }
.pm--mc i:first-child { left: 10px; background: #EB001B; }
.pm--mc i:last-child { left: 20px; background: #F79E1B; mix-blend-mode: multiply; }

.receipt__trust { list-style: none; margin: 0 0 12px; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.receipt__trust li { display: flex; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--text); }
.receipt__trust .ic { width: 18px; height: 18px; color: var(--brand); margin-top: 1px; }
.receipt__small { font-size: 12px; color: var(--muted); margin: 0; }

.reprint [data-bind], .reprint [data-bind-src] { animation: reprint .26s ease-out; }
@keyframes reprint { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Полоса фактов */
.facts-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts-strip__list { list-style: none; margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.facts-strip li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.4; }
.facts-strip .ic { color: var(--brand); width: 28px; height: 28px; }
.facts-strip b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }

/* Секции */
.sec { padding-block: 72px; }
.sec__head { max-width: 760px; margin-bottom: 28px; }
.sec__head p { color: var(--muted); }
.sec__more { margin: 20px 0 0; font-weight: 600; }

.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; display: flex; flex-direction: column; }
.review__top { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.review__ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.review__who { font-size: 14px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.review__who small { display: block; color: var(--muted); font-weight: 400; }
.review__stars { color: #E7A800; font-size: 14px; letter-spacing: 1px; }
.review blockquote { margin: 0 0 12px; flex: 1; }
.review p { margin: 0; color: var(--ink); }
.review figcaption { font-size: 13px; color: var(--muted); }

.guarantee { background: var(--brand-soft); padding-block: 72px; }
.guarantee__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.guarantee__lead { font-size: 18px; max-width: 36em; margin-bottom: 28px; }
.gsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.gsteps li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; }
.gsteps .ic { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: #fff; color: var(--brand); }
.gsteps p { margin: 0; }
.vs { background: #fff; border-radius: var(--r-m); padding: 26px; box-shadow: 0 1px 0 var(--line); }
.vs h3 { font-size: 21px; margin-bottom: 14px; }
.vs__quote { margin: 0 0 18px; padding: 14px 16px; background: #FFF8D6; border-radius: var(--r-s); color: var(--ink); font-size: 16px; }
.vs__quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--muted); }
.vs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.vs__list li { display: flex; gap: 10px; }
.vs__list .ic { width: 20px; height: 20px; color: var(--ok); }

.after { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.steps p { margin: 0; }
.mail { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 24px; box-shadow: 0 20px 40px -30px rgba(30, 10, 80, .35); }
.mail__label { font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.mail__row { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mail__k { font-size: 13px; color: var(--muted); }
.mail__key { font: 17px/1.3 var(--mono); color: var(--brand); background: var(--brand-soft); padding: 8px 10px; border-radius: 6px; overflow-wrap: anywhere; }

.band { background: var(--paper); padding-block: 72px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split p { max-width: 36em; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 14px; color: var(--muted); font-weight: 500; }
.compare tbody th { font-weight: 500; color: var(--ink); }
.compare td { white-space: nowrap; color: var(--muted); }
.compare td:last-child { color: var(--ok); font-weight: 700; }

.facts { margin: 0; padding: 0 0 0 1.1em; }
.facts li { margin-bottom: 14px; padding-left: 4px; }
.facts strong { color: var(--ink); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; max-width: 40em; }

.final { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 80%); color: #fff; padding-block: 72px; }
.final h2 { color: #fff; }
.final__lead { color: #DCD3FF; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; color: var(--text); border-radius: var(--r-m); padding: 14px 14px 18px; display: flex; flex-direction: column; }
.card img { border-radius: 10px; margin-bottom: 14px; aspect-ratio: 1; object-fit: cover; }
.card h3 { font-size: 19px; }
.card__lead { font-size: 14px; color: var(--muted); flex: 1; margin-bottom: 8px; }
.card__hw { font-size: 13px; color: var(--text); margin-bottom: 12px; }
.card__price { margin-bottom: 12px; }
.card__price b { font-size: 24px; color: var(--ink); font-weight: 800; }
.card__price s { color: var(--muted); margin-left: 6px; font-size: 14px; }
.pay--card { font-size: 16px; padding: 14px; }

.foot { background: #16151B; color: #B9B6C4; padding-block: 40px 100px; font-size: 15px; }
.foot strong { color: #fff; }
.foot a, .foot .linkish { color: #fff; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__muted { color: #8A8796; }

/* Закреплённая панель на мобильном */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 88px calc(10px + env(safe-area-inset-bottom)) 16px;
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(30, 10, 80, .4);
}
.sticky[hidden] { display: none; }
.sticky__what { display: grid; font-size: 14px; color: var(--muted); line-height: 1.25; }
.sticky__what b { color: var(--ink); font-size: 18px; font-weight: 800; }
.pay--small { width: auto; font-size: 16px; padding: 13px 18px; }

@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .receipt { max-width: 520px; }
  .facts-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guarantee__grid, .after, .split { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { gap: 12px; }
  .top__nav { display: none; }
  .top__contacts a { font-size: 15px; }
  .hero-bg { padding-bottom: 40px; }
  .hero { padding-top: 8px; }
  .hero__lead { font-size: 17px; }
  .benefits { margin-bottom: 24px; }
  .pick__opt { grid-template-columns: 44px 1fr; padding: 8px 10px 8px 8px; column-gap: 10px; }
  .pick__img { width: 44px; height: 44px; border-radius: 8px; }
  .pick__name { font-size: 13px; }
  .pick__name b { font-size: 15px; }
  .pick__price { font-size: 16px; }
  .pick__price s { display: none; }
  .receipt { padding: 18px 16px 28px; }
  .receipt__item { grid-template-columns: 72px 1fr; }
  .receipt__img { width: 72px; height: 72px; }
  .facts-strip__list { gap: 16px; }
  .sec, .band, .guarantee, .final { padding-block: 48px; }
  .reviews { grid-template-columns: 1fr; }
  .cards { gap: 10px; }
  .card { padding: 10px 10px 14px; }
  .card__lead { display: none; }
  .card h3 { font-size: 16px; }
  .card__price b { font-size: 20px; }
  .pay--card { font-size: 14px; padding: 12px 8px; }
  .compare th, .compare td { padding: 10px 8px; font-size: 15px; }
}
@media (min-width: 1041px) { .sticky { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
