/* =============================================================================
   Buy page. Loaded only on /buy — shared tokens/header/footer live in site.css.
   ========================================================================== */

.buy { color: var(--ink); background: var(--bg); overflow-x: hidden; }
.buy-inner { max-width: 1180px; margin: 0 auto; }

/* section heading kit (local, so the page is self-contained) */
.buy-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.buy-eyebrow--center { display: inline-flex; }
.buy-eyebrow__rule { width: 26px; height: 2px; background: #05a558; }
.buy-eyebrow__text {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #05a558; font-weight: 600;
}

.buy-h2 {
  margin: 0; font-size: 36px; line-height: 1.12; padding-bottom: 3px;
  letter-spacing: -.03em; font-weight: 700; color: var(--ink);
}
.buy-sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }

/* ------------------------------------------------------------ hero + card -- */
.buy-hero { padding: 84px 32px 40px; text-align: center; }
.buy-hero__head { max-width: 640px; margin: 0 auto 48px; }
.buy-hero__title {
  margin: 0 0 14px; font-size: 56px; line-height: 1.04;
  letter-spacing: -.04em; font-weight: 700; color: var(--ink);
}
.buy-hero__lede { margin: 0; font-size: 18px; line-height: 1.55; color: #565a4f; }

.buy-card {
  max-width: 560px; margin: 0 auto; text-align: left;
  background: #fff; border: 1px solid rgba(20,22,15,.1); border-radius: 22px;
  padding: 40px; box-shadow: 0 40px 80px -40px rgba(18,40,28,.35);
  position: relative; overflow: hidden;
}
.buy-card__badge {
  position: absolute; top: 22px; right: 22px;
  background: var(--accent); color: #05130c;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 13px; border-radius: 100px;
}
.buy-card__logo { height: 20px; width: auto; display: block; }

.buy-card__price { display: flex; align-items: flex-end; gap: 12px; margin-top: 14px; }
.buy-card__amount {
  font-size: 64px; font-weight: 800; letter-spacing: -.03em;
  color: var(--ink); line-height: 1;
  /* The no-break spaces in $money() already stop "5 490 ₽" from splitting; this
     is the belt to that pair of braces, for any currency added later. */
  white-space: nowrap;
}
/* min-width:0 lets the meta column give up room to the price instead of forcing
   the card wider — a flex item refuses to shrink past its content without it. */
.buy-card__pricemeta { padding-bottom: 10px; min-width: 0; }
.buy-card__list { font-size: 20px; color: #a6a99d; text-decoration: line-through; }
.buy-card__terms { font-size: 13px; color: #6b6f63; }

.buy-region { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.buy-region__label {
  font-size: 12.5px; letter-spacing: .02em; color: #8b8f82;
  font-weight: 600; text-transform: uppercase;
}
.buy-region__select {
  flex: 1; min-width: 0; background: #f5f6f8;
  border: 1px solid rgba(20,22,15,.14); border-radius: 10px; padding: 9px 12px;
  color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600;
  outline: none; cursor: pointer;
}
.buy-region__go {
  flex: none; background: var(--ink); color: #eef2f7;
  border: 0; border-radius: 10px; padding: 9px 15px;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.buy-region__go[hidden] { display: none; }

.buy-card__divider { height: 1px; background: rgba(20,22,15,.09); margin: 26px 0; }

.buy-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.buy-perks__item { display: flex; align-items: center; gap: 11px; font-size: 15px; color: #2c3026; }
.buy-perks__mark {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,214,119,.16); display: flex; align-items: center; justify-content: center;
}
.buy-perks__mark::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.buy-stores { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.buy-stores__pair { display: flex; gap: 10px; }
.buy-store {
  text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; border-radius: 12px;
}
.buy-store__icon { flex: none; display: block; }
.buy-store--steam {
  background: #1b2838; color: #fff; font-size: 15px; padding: 14px;
}
.buy-store--light {
  flex: 1; background: #fff; border: 1px solid rgba(20,22,15,.14);
  color: var(--ink); font-size: 14px; padding: 13px;
}
.buy-card__note { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: #8b8f82; }

/* ---------------------------------------------------------- system specs -- */
.buy-specs-sec { padding: 64px 32px; background: var(--bg); }
.buy-specs { display: grid; gap: 20px; margin: 0 auto; }
.buy-specs--single { grid-template-columns: 1fr; max-width: 440px; }
.buy-specs--dual   { grid-template-columns: 1fr 1fr; max-width: 900px; }

.buy-spec { background: #fff; border: 1px solid rgba(20,22,15,.09); border-radius: 16px; padding: 28px; }
.buy-spec__head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.buy-spec__logo { flex: none; display: block; }
.buy-spec__os { font-size: 19px; font-weight: 700; }
.buy-spec__list { margin: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; color: #3d4136; }
.buy-spec__row { display: flex; gap: 10px; }
.buy-spec__key { margin: 0; color: #8b8f82; min-width: 64px; }
.buy-spec__val { margin: 0; }
.buy-specs__note { text-align: center; font-size: 13.5px; color: #8b8f82; margin: 24px auto 0; }

/* ------------------------------------------------------------------- FAQ -- */
.buy-faq-sec { padding: 40px 32px 90px; background: var(--bg); }
.buy-faq-wrap { max-width: 760px; margin: 0 auto; }
.buy-sec-head + .buy-faq { margin-top: 0; }

.buy-faq { background: #fff; border: 1px solid rgba(20,22,15,.09); border-radius: 16px; padding: 6px 24px; }
.buy-faq__item { border-bottom: 1px solid rgba(20,22,15,.1); }
.buy-faq__item:last-child { border-bottom: 0; }
.buy-faq__q {
  list-style: none; cursor: pointer; padding: 20px 4px;
  font-size: 17px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.buy-faq__q::-webkit-details-marker { display: none; }
.buy-faq__plus { flex: none; width: 20px; height: 20px; position: relative; transition: transform .2s ease; }
.buy-faq__plus::before,
.buy-faq__plus::after { content: ""; position: absolute; background: #05a558; border-radius: 2px; }
.buy-faq__plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.buy-faq__plus::after  { left: 9px; top: 0; width: 2px; height: 20px; }
.buy-faq__item[open] .buy-faq__plus { transform: rotate(45deg); }
.buy-faq__a { margin: 0 4px 20px; font-size: 15.5px; line-height: 1.6; color: #565a4f; }

@media (prefers-reduced-motion: reduce) {
  .buy-faq__plus { transition: none; }
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 860px) {
  .buy-specs--dual { grid-template-columns: 1fr; max-width: 440px; }
}
@media (max-width: 640px) {
  .buy section, .buy-hero, .buy-specs-sec, .buy-faq-sec { padding-left: 20px; padding-right: 20px; }
  .buy-hero__title { font-size: 42px; }
  .buy-h2 { font-size: 28px; }
  .buy-card { padding: 32px 24px; }
  .buy-card__amount { font-size: 52px; }
  .buy-stores__pair { flex-direction: column; }
}

/* fix: brand row wrapper */
.buy-card__brand { display: flex; align-items: center; gap: 10px; }
