/* =========================================================
   Лендинг книги «Как починить тестостерон без врачей и таблеток».
   Палитра и типографика повторяют PDF (см. _typst/styles.typ).
   ========================================================= */

/* ---------- Переменные палитры ---------- */
:root {
  --bg:        #0F0F12;
  --bg-soft:   #16151A;
  --bg-card:   #1B1A20;
  --text:      #E8DDD0;
  --muted:     #A89B8A;
  --amber:     #C99A4B;
  --amber-soft:#D4A04A;
  --rule:      #3A352F;

  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--amber-soft); }

button { font: inherit; }

/* ---------- Контейнер ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Eyebrow / акцентные подписи ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.amber { color: var(--amber); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 24px;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--amber);
  color: #1A1206;
  box-shadow: 0 8px 30px -8px rgba(201, 154, 75, 0.55);
}
.btn--primary:hover {
  background: var(--amber-soft);
  color: #1A1206;
  transform: translateY(-1px);
  box-shadow: 0 14px 40px -12px rgba(201, 154, 75, 0.7);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}
.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.btn--lg { padding: 17px 32px; font-size: 17px; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 600;
}
.nav__brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--amber);
  color: #1A1206;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.nav__brand-text { font-size: 14px; }
.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.nav__links a:hover { color: var(--text); }

@media (max-width: 800px) {
  .nav__brand-text { display: none; }
  .nav__links { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 700px; height: 700px;
  top: -200px; right: -250px;
  background: radial-gradient(circle, rgba(201,154,75,0.18) 0%, transparent 60%);
  filter: blur(20px);
}
.hero::after {
  width: 500px; height: 500px;
  bottom: -150px; left: -150px;
  background: radial-gradient(circle, rgba(201,154,75,0.08) 0%, transparent 60%);
  filter: blur(20px);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.hero__lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 32px;
  max-width: 580px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}
.hero__bullets li::before {
  content: "✓";
  color: var(--amber);
  font-weight: 700;
  margin-right: 8px;
}

.cover-wrap {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
/* Обложка идёт PNG-ом с прозрачным фоном.
   Используем filter:drop-shadow вместо box-shadow,
   чтобы тень повторяла силуэт книги, а не описывающий прямоугольник. */
.cover-img {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
  filter:
    drop-shadow(0 25px 40px rgba(0, 0, 0, 0.55))
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  transform: rotate(-2deg);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.cover-wrap:hover .cover-img {
  transform: rotate(0deg) scale(1.02);
  filter:
    drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 30px rgba(201, 154, 75, 0.25));
}
.cover-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse at center, rgba(201,154,75,0.32) 0%, transparent 60%);
  z-index: 0;
  filter: blur(40px);
}

@media (max-width: 900px) {
  .hero { padding: 60px 0 70px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__cover { order: -1; }
  .cover-img { max-width: 320px; }
}

/* ---------- Секции ---------- */
.section {
  position: relative;
  padding: 90px 0;
}
.section--pain  { background: var(--bg-soft); }
.section--stat  { background: var(--bg); }
.section--quote { background: var(--bg-soft); padding: 70px 0; }
.section--what  { background: var(--bg); }
.section--author{ background: var(--bg-soft); }
.section--cases { background: var(--bg); }
.section--get   { background: var(--bg-soft); }
.section--buy   {
  background: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(201,154,75,0.12) 0%, transparent 50%);
}
.section--faq   { background: var(--bg-soft); }

.section__title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 24px;
  max-width: 900px;
  letter-spacing: -0.005em;
}
.section__lead {
  font-size: 18px;
  color: var(--text);
  max-width: 760px;
  margin: 0 0 40px;
}

@media (max-width: 700px) {
  .section { padding: 60px 0; }
}

/* ---------- PAIN GRID ---------- */
.pain-grid {
  list-style: none;
  padding: 0;
  margin: 50px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pain-grid li {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pain-grid li:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
}
.pain-grid__num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--amber);
  display: block;
  margin-bottom: 12px;
}
.pain-grid h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.pain-grid p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) { .pain-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pain-grid { grid-template-columns: 1fr; } }

/* ---------- STAT (поколение) ---------- */
.stat__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.stat__source {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.stat__figure {
  margin: 0;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.stat__figure img { border-radius: 8px; }
.stat__figure figcaption {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 900px) {
  .stat__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- BIG QUOTE ---------- */
.big-quote {
  margin: 0 auto;
  max-width: 880px;
  padding: 0 12px;
  border-left: 3px solid var(--amber);
  padding-left: 32px;
}
.big-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 18px;
}
.big-quote footer {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ---------- WHAT'S INSIDE ---------- */
.what__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.levers-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.levers-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  padding: 14px 18px;
  background: var(--bg-soft);
  border-radius: 10px;
  border: 1px solid var(--rule);
}
.levers-list li span {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--amber);
  color: #1A1206;
  font-weight: 800;
  font-size: 14px;
}
.what__figure {
  margin: 0;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.what__figure img { border-radius: 8px; }

.chapters {
  margin-top: 30px;
  padding: 36px 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.chapters__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--amber);
}
.chapters__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
  counter-reset: ch;
}
.chapters__list li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  align-items: baseline;
}
.chapters__list li:nth-last-child(-n+2) { border-bottom: 0; }
.chapters__list li span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
  text-transform: uppercase;
  min-width: 80px;
}
.chapters__list li em {
  font-family: var(--serif);
  font-style: normal;
  color: var(--text);
  font-size: 16px;
}

@media (max-width: 900px) {
  .what__grid { grid-template-columns: 1fr; gap: 40px; }
  .chapters__list { grid-template-columns: 1fr; }
}

/* ---------- AUTHOR ---------- */
.author__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.author__figure {
  margin: 0;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.author__figure img { border-radius: 8px; }
.author__figure figcaption {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.author__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 24px;
  font-family: var(--sans);
  font-weight: 600;
}
@media (max-width: 900px) {
  .author__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- CASES ---------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.case {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.case:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
}
.case header { margin-bottom: 14px; }
.case h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}
.case__meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.case p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 18px;
}
.case__results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.case__results li {
  font-size: 15px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}
.case__results li::before {
  content: "→";
  color: var(--amber);
  position: absolute;
  left: 0;
  font-weight: 700;
}

@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }

/* ---------- WHAT YOU GET ---------- */
.get-grid {
  list-style: none;
  padding: 0;
  margin: 50px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.get-grid li {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.get__icon {
  font-size: 28px;
  margin-bottom: 14px;
  filter: grayscale(0.1);
}
.get-grid h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
}
.get-grid p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}
.get-grid code {
  font-family: var(--sans);
  background: rgba(201,154,75,0.15);
  color: var(--amber);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}
@media (max-width: 900px) { .get-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .get-grid { grid-template-columns: 1fr; } }

/* ---------- BUY CARD ---------- */
.buy-card {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--amber);
  border-radius: 22px;
  padding: 44px 40px;
  box-shadow: var(--shadow), 0 0 60px -20px rgba(201,154,75,0.3);
  position: relative;
  overflow: hidden;
}
.buy-card::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(201,154,75,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.buy-card > * { position: relative; }
.buy-card__head { text-align: center; margin-bottom: 24px; }
.buy-card__head h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.2;
}
.buy-card__author {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.buy-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.buy-card__bullets li {
  font-size: 15px;
  padding-left: 28px;
  position: relative;
}
.buy-card__bullets li::before {
  content: "✓";
  color: var(--amber);
  font-weight: 700;
  position: absolute;
  left: 0;
}
.buy-card__bullets code {
  font-family: var(--sans);
  background: rgba(201,154,75,0.18);
  color: var(--amber);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
}

.buy-card__price { text-align: center; margin: 6px 0 24px; }
.price__amount {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price__note {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.buy-card__legal {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.buy-card__legal a { color: var(--muted); text-decoration: underline; }
.buy-card__legal a:hover { color: var(--amber); }

@media (max-width: 600px) {
  .buy-card { padding: 32px 24px; }
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 40px;
  max-width: 880px;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: var(--amber); }
.faq summary {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.faq details p a { color: var(--amber); }

/* ---------- FOOTER ---------- */
.footer {
  background: #0A0A0D;
  border-top: 1px solid var(--rule);
  padding: 60px 0 30px;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.footer__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.footer__text {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.footer__heading {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer__list a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.footer__list a:hover { color: var(--amber); }

.footer__copy {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Утилиты ---------- */
.price-inline { font-weight: 700; }

/* Скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

/* Selection */
::selection { background: var(--amber); color: #1A1206; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ---------- Buy modal (e-mail перед оплатой) ---------- */
.buy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: var(--sans);
}
.buy-modal[hidden] { display: none; }
.buy-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.buy-modal__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--amber);
  border-radius: 18px;
  padding: 36px 32px 30px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  animation: buyIn 0.18s ease-out;
}
@keyframes buyIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.buy-modal__close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
}
.buy-modal__close:hover { color: var(--amber); }
.buy-modal__card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0 10px;
  color: var(--text);
}
.buy-modal__lead {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.buy-modal__field {
  display: block;
  margin-bottom: 14px;
}
.buy-modal__field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.buy-modal__field input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color 0.15s ease;
}
.buy-modal__field input:focus {
  outline: none;
  border-color: var(--amber);
}
.buy-modal__field input::placeholder { color: #5C5950; }
.buy-modal__error {
  margin: 0 0 12px;
  color: #E58B7B;
  font-size: 13px;
}
.buy-modal__legal {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}
.buy-modal__legal a { color: var(--muted); }
.buy-modal__legal a:hover { color: var(--amber); }

/* Состояние «отправляется» */
.buy-modal__card.is-loading #buy-submit {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}
.buy-modal__card.is-loading #buy-submit::after {
  content: "";
  display: inline-block;
  margin-left: 10px;
  width: 14px; height: 14px;
  border: 2px solid #1A1206;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
