/* =====================================================
   «Как заработать на хейте?» — Андрей Яшин
   Полная адаптивная вёрстка (mobile-first)
   ===================================================== */

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.6; color: #1a1a1a; background: #fafafa;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #c0392b; text-decoration: none; transition: color .2s; }
a:hover { color: #8e2a1f; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

/* ---------- Обёртка ---------- */
.wrap {
  width: 100%; max-width: 1140px;
  margin: 0 auto; padding: 0 20px;
}
.wrap-narrow { max-width: 720px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .2s, background .2s, color .2s;
  text-align: center; white-space: nowrap;
  font-family: inherit; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff; box-shadow: 0 6px 16px rgba(192, 57, 43, .25);
  position: relative; overflow: hidden;
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(192, 57, 43, .35); }
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-ghost { background: transparent; color: #1a1a1a; border-color: #d0d0d0; }
.btn-ghost:hover { border-color: #c0392b; color: #c0392b; }

.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #8e2a1f; color: #fff; }

.btn-big { padding: 17px 34px; font-size: 1.08rem; width: 100%; max-width: 420px; }

/* ---------- Топбар ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #ececec;
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px; gap: 16px;
}
.logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em;
  white-space: nowrap; color: #1a1a1a;
}
.logo:hover { color: #1a1a1a; }
.logo .accent { color: #c0392b; }
.topbar nav { display: flex; gap: 22px; font-size: .95rem; align-items: center; }
.topbar nav a { color: #1a1a1a; }
.topbar nav a:hover { color: #c0392b; }
.topbar nav .nav-cta {
  background: #c0392b; color: #fff;
  padding: 8px 16px; border-radius: 8px;
}
.topbar nav .nav-cta:hover { background: #8e2a1f; color: #fff; }
@media (max-width: 860px) { .topbar nav a:not(.nav-cta) { display: none; } }

/* =====================================================
   HERO — интерактивный с анимированным фоном
   ===================================================== */
.hero {
  position: relative; overflow: hidden; background: #fff;
  padding: 60px 0 70px;
  border-bottom: 1px solid #f0f0f0;
}

/* Слой фона */
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-bg-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
}

/* Градиентные пятна */
.hero-bg-blob {
  position: absolute; width: 60vmin; height: 60vmin;
  border-radius: 50%; filter: blur(70px);
  opacity: .55; mix-blend-mode: multiply;
  animation: blobFloat 22s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-bg-blob.b1 { background: #ff3b3b; top: -15%; left: -10%; animation-duration: 18s; }
.hero-bg-blob.b2 { background: #ff8a3b; top: 30%; right: -20%; animation-duration: 26s; animation-delay: -4s; }
.hero-bg-blob.b3 { background: #b83bff; bottom: -25%; left: 25%; animation-duration: 30s; animation-delay: -8s; }
.hero-bg-blob.b4 { background: #ff2b6b; top: -10%; right: 10%; animation-duration: 24s; animation-delay: -12s; }
@keyframes blobFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(8%, 12%, 0) scale(1.15); }
  100% { transform: translate3d(-6%, -10%, 0) scale(.95); }
}

/* Пробегающие слова-ругательства */
.hero-bg-words {
  position: absolute; inset: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800; pointer-events: none; opacity: .07; overflow: hidden;
}
.hero-bg-words span {
  position: absolute; color: #c0392b; white-space: nowrap;
  animation: drift linear infinite; will-change: transform; user-select: none;
}
@keyframes drift {
  from { transform: translate3d(-10%, 0, 0); }
  to   { transform: translate3d(110%, 0, 0); }
}

/* Слой контента hero поверх фона */
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 60px; align-items: center;
}

/* Пульсирующий жирный красный заголовок */
.hero-title-pulse {
  position: relative; z-index: 2;
  font-weight: 900; color: #d40f0f; letter-spacing: -.03em; line-height: 1.05;
  animation:
    pulseColor 1.8s ease-in-out infinite,
    pulseShadow 1.8s ease-in-out infinite,
    wobble 6s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulseColor {
  0%, 100% { color: #c0392b; }
  50%      { color: #ff1818; }
}
@keyframes pulseShadow {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(255, 24, 24, .35),
      0 0 22px rgba(255, 24, 24, .18),
      2px 2px 0 rgba(0,0,0,.06);
  }
  50% {
    text-shadow:
      0 0 18px rgba(255, 24, 24, .65),
      0 0 44px rgba(255, 24, 24, .38),
      0 0 80px rgba(255, 24, 24, .22),
      2px 2px 0 rgba(0,0,0,.06);
  }
}
@keyframes wobble {
  0%, 100% { transform: rotate(-.35deg) translateY(0); }
  50%      { transform: rotate(.35deg) translateY(-2px); }
}

.hero-sub { font-size: 1.15rem; color: #555; max-width: 560px; }
.hero-bullets { list-style: none; padding: 0; margin: 22px 0 28px; }
.hero-bullets li {
  position: relative; padding-left: 30px;
  margin-bottom: 10px; font-weight: 500;
}
.hero-bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #27ae60; font-weight: 800;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; margin-bottom: 18px;
}
.hero-note { color: #777; font-size: .9rem; max-width: 520px; }

/* ---------- Обложка книги ---------- */
.hero-right { text-align: center; }
.book-cover-real {
  display: block; max-width: 380px; margin: 0 auto 20px;
  border-radius: 8px; overflow: hidden; background: #111; line-height: 0;
  box-shadow:
    0 30px 50px -20px rgba(0, 0, 0, .45),
    0 10px 20px -10px rgba(0, 0, 0, .3);
}
.book-cover-real img { display: block; width: 100%; height: auto; border-radius: 8px; }

.book-cover {
  width: 100%; max-width: 340px; aspect-ratio: 3 / 4;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 60%, #0f1620 100%);
  color: #fff; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  padding: 30px 24px; position: relative; overflow: hidden;
  box-shadow:
    0 30px 50px -20px rgba(0, 0, 0, .35),
    0 10px 20px -10px rgba(0, 0, 0, .25),
    inset 0 0 0 1px rgba(255,255,255,.06);
}
.book-cover::after {
  content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(255,255,255,.02));
}
.book-cover.small { max-width: 220px; padding: 20px 16px; }
.cover-text { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.cover-title {
  font-size: 1.4rem; font-weight: 800; letter-spacing: .04em;
  line-height: 1.2; color: #e74c3c;
  text-shadow: 0 1px 0 rgba(0,0,0,.5);
}
.book-cover.small .cover-title { font-size: 1rem; }
.cover-sub { font-size: .85rem; color: #bdc3c7; }
.cover-author {
  font-size: .95rem; letter-spacing: .1em;
  text-transform: uppercase; color: #ecf0f1; margin-top: 10px;
}
.price-badge { display: inline-flex; align-items: baseline; gap: 12px; font-weight: 700; }
.price-old { color: #999; text-decoration: line-through; font-size: 1.05rem; }
.price-now { color: #c0392b; font-size: 1.8rem; position: relative; }
.price-now::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c0392b, transparent);
  animation: priceUnderline 2.4s ease-in-out infinite;
}
@keyframes priceUnderline {
  0%, 100% { opacity: .35; transform: scaleX(.6); }
  50%      { opacity: 1;   transform: scaleX(1); }
}

@media (max-width: 900px) {
  .hero { padding: 40px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
  .book-cover-real { max-width: 280px; }
  .book-cover { max-width: 260px; }
}

/* =====================================================
   REVEAL — появление блоков при скролле
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Секции ---------- */
.section { padding: 70px 0; }
.section-alt { background: #fff; }
.section-buy {
  background: linear-gradient(135deg, #fff5f2 0%, #fff 100%);
  border-top: 1px solid #f5e5e0; border-bottom: 1px solid #f5e5e0;
}
.section-promo {
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
  border-top: 1px solid #e0ecf7; border-bottom: 1px solid #e0ecf7;
}
.section-sub { color: #666; margin-bottom: 24px; }

/* О книге */
.about-text { font-size: 1.05rem; color: #333; max-width: 780px; margin-bottom: 30px; }
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-top: 20px;
}
.benefit {
  background: #fff; border: 1px solid #eee; border-radius: 10px;
  padding: 16px 18px 16px 46px; position: relative; font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
  transition: transform .2s ease, box-shadow .2s ease;
}
.benefit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -10px rgba(192, 57, 43, .25);
}
.benefit-check {
  position: absolute; left: 16px; top: 16px;
  color: #27ae60; font-weight: 800;
}

/* Оглавление */
.toc-list { counter-reset: toc; list-style: none; padding: 0; max-width: 760px; }
.toc-list li {
  counter-increment: toc; position: relative;
  padding: 10px 0 10px 46px; border-bottom: 1px dashed #e5e5e5;
}
.toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  color: #c0392b; font-weight: 700;
  font-size: .85rem; letter-spacing: .05em;
}

/* Отзывы */
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.review {
  background: #fff; border-left: 4px solid #c0392b;
  padding: 20px 22px; border-radius: 8px; margin: 0;
  font-style: italic; color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.review:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -14px rgba(0,0,0,.18);
}

/* FAQ */
.faq-list { max-width: 780px; }
.faq-item {
  background: #fff; border: 1px solid #eee; border-radius: 10px;
  padding: 16px 20px; margin-bottom: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.faq-item:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.faq-item[open] { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none;
  position: relative; padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; color: #c0392b; font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 12px 0 0; color: #444; }

/* ---------- Купить ---------- */
.buy-grid {
  display: grid; grid-template-columns: 1.3fr .7fr;
  gap: 50px; align-items: center;
}
.buy-form {
  display: flex; flex-direction: column;
  gap: 14px; max-width: 480px; margin-top: 18px;
}
.small-note { font-size: .85rem; color: #777; margin-top: 14px; max-width: 500px; }
.buy-cover-mini { text-align: center; }
.buy-cover-img {
  max-width: 240px; height: auto; margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.4);
}
@media (max-width: 860px) {
  .buy-grid { grid-template-columns: 1fr; gap: 30px; }
  .buy-cover-mini { order: -1; }
}

/* ---------- Способы оплаты ---------- */
.pay-methods {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin: 2px 0 4px;
}
@media (min-width: 520px) { .pay-methods { grid-template-columns: repeat(4, 1fr); } }
.pay-method {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 12px 8px;
  border: 1.5px solid #ddd; border-radius: 10px;
  cursor: pointer; font-size: .82rem; font-weight: 600;
  color: #444; background: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s, transform .1s;
  user-select: none; text-align: center;
}
.pay-method:hover { border-color: #c0392b; }
.pay-method input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.pay-method input[type="radio"]:checked ~ .pm-text { color: #c0392b; }
.pay-method:has(input[type="radio"]:checked) {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
  background: #fff7f5;
}
.pay-method input[type="radio"]:checked + .pm-icon + .pm-text { color: #c0392b; }
.pm-icon { font-size: 1.4rem; line-height: 1; }
.pm-text { font-size: .8rem; }

/* ---------- Чекбокс оферты ---------- */
.terms-check {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px;
  padding: 14px 16px; cursor: pointer;
  font-size: .88rem; line-height: 1.5; color: #333;
  transition: border-color .2s, box-shadow .2s, background .2s;
  margin: 4px 0 2px;
}
.terms-check:hover { border-color: #c0392b; }
.terms-check input[type="checkbox"] {
  flex-shrink: 0; width: 20px; height: 20px;
  margin: 2px 0 0; accent-color: #c0392b; cursor: pointer;
}
.terms-check-text { display: block; }
.terms-check-text a {
  color: #c0392b; text-decoration: underline; text-underline-offset: 2px;
}
.terms-check-text a:hover { color: #8e2a1f; }
.terms-check-text b { color: #111; }
.terms-version {
  display: block; margin-top: 6px;
  font-size: .78rem; color: #999; font-style: italic;
}
.terms-check-error {
  border-color: #c0392b !important;
  background: #fdecea !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .18);
  animation: shakeTerms .35s ease-in-out;
}
@keyframes shakeTerms {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

/* ---------- Формы ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid #ddd; border-radius: 10px;
  font: inherit; color: #1a1a1a; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}
textarea { resize: vertical; min-height: 100px; }

.q-form {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; padding: 26px;
  border-radius: 14px; border: 1px solid #eee;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.q-form .btn { align-self: flex-start; }

/* ---------- Алерты ---------- */
.alert {
  padding: 14px 18px; border-radius: 10px;
  margin: 16px 0; font-size: .95rem;
}
.alert-ok    { background: #e8f8ef; color: #1e7e46; border: 1px solid #c3ecd2; }
.alert-error { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }
.alert-warn  { background: #fff8e5; color: #8a6400; border: 1px solid #f0d68a; }

/* ---------- Донаты ---------- */
.section-donate {
  background:
    radial-gradient(circle at 15% 20%, rgba(231, 76, 60, .10), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(155, 89, 182, .08), transparent 55%),
    #fff8f6;
  border-top: 1px solid #f5e5e0; border-bottom: 1px solid #f5e5e0;
}
.donate-grid {
  display: grid; grid-template-columns: 1.4fr .6fr;
  gap: 50px; align-items: center;
}
.donate-text h2 { margin-bottom: 12px; }
.donate-hint { color: #666; font-size: .95rem; }
.donate-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 18px 0 10px;
}
.donate-url {
  font-size: .85rem; color: #777;
  margin: 6px 0 0; word-break: break-all;
}
.donate-url code {
  background: #fff; padding: 3px 8px;
  border-radius: 6px; border: 1px solid #eee;
}
.donate-qr { text-align: center; }
.donate-qr a {
  display: inline-block; padding: 14px; background: #fff;
  border-radius: 14px; border: 1px solid #eee;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.18);
  transition: transform .15s, box-shadow .2s;
}
.donate-qr a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.25);
}
.donate-qr img { display: block; width: 220px; height: 220px; border-radius: 6px; }
.donate-qr-caption {
  margin-top: 10px; font-size: .85rem; color: #777;
  letter-spacing: .05em; text-transform: uppercase;
}
@media (max-width: 860px) {
  .donate-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .donate-actions { justify-content: center; }
  .donate-url { text-align: center; }
}

/* ---------- Промокод ---------- */
.promo-form {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; padding: 26px;
  border-radius: 14px; border: 1px solid #e0ecf7;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  max-width: 520px; margin: 0 auto;
}
.promo-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-weight: 600; font-size: .92rem; color: #333;
}
.promo-form .btn { align-self: stretch; }
.promo-hint { font-size: .85rem; color: #666; margin: 4px 0 0; line-height: 1.5; }

.promo-success {
  background: #e8f8ef; border: 1px solid #c3ecd2;
  color: #1e7e46; padding: 24px 26px;
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 520px; margin: 0 auto;
}
.promo-success b { color: #0e5c2f; }
.promo-success .btn { align-self: flex-start; }
.promo-code-row { display: flex; gap: 10px; }

/* ---------- Футер ---------- */
.footer {
  background: #1a1a1a; color: #aaa;
  padding: 28px 0; font-size: .88rem;
}
.footer-in {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
}
.footer a { color: #e74c3c; }
.footer a:hover { color: #fff; }

/* ---------- Статусные страницы ---------- */
.page-status {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}
.status-card {
  background: #fff; border-radius: 18px;
  padding: 44px 36px; max-width: 520px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.15);
}
.status-card h1 { margin-bottom: 14px; }
.status-card .btn { margin: 8px 6px 0; }

/* ---------- Legal ---------- */
.page-legal { background: #fafafa; }
.legal-wrap { max-width: 860px; margin: 0 auto; padding: 40px 20px 80px; }
.legal-doc {
  background: #fff; border-radius: 16px;
  padding: 44px 48px; border: 1px solid #ececec;
  box-shadow: 0 6px 24px -12px rgba(0,0,0,.08);
  color: #222; line-height: 1.7;
}
.legal-doc h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 14px; }
.legal-doc h2 {
  font-size: 1.2rem; margin-top: 34px; margin-bottom: 12px;
  color: #c0392b; border-top: 1px solid #f0f0f0; padding-top: 20px;
}
.legal-doc h2:first-of-type { border-top: none; padding-top: 0; }
.legal-doc ol, .legal-doc ul { padding-left: 1.4em; }
.legal-doc ol > li, .legal-doc ul > li { margin-bottom: .6em; }
.legal-doc b { color: #111; }
.legal-meta {
  color: #666; font-size: .92rem;
  border-bottom: 1px dashed #e0e0e0;
  padding-bottom: 16px; margin-bottom: 24px;
}
.legal-notice {
  background: #fff8e5; border-left: 4px solid #f0b400;
  padding: 16px 20px; border-radius: 8px;
  margin: 22px 0; font-size: .96rem;
}
.legal-warning {
  background: #fdecea; border-left: 4px solid #c0392b;
  padding: 14px 20px; border-radius: 8px;
  margin: 20px 0; font-size: .96rem;
}
.legal-warning-strong {
  background: #c0392b; color: #fff;
  font-weight: 700; text-align: center;
  font-size: 1.05rem;
}
.legal-warning-strong b { color: #fff; }
.legal-accept {
  background: #eef6ff; border-left: 4px solid #2b7cff;
  padding: 20px 24px; border-radius: 10px;
  margin: 32px 0 18px;
}
.legal-accept ul { margin-bottom: 0; }
.legal-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px;
}
@media (max-width: 640px) {
  .legal-doc { padding: 26px 20px; border-radius: 12px; }
  .legal-wrap { padding: 20px 14px 60px; }
}

/* =====================================================
   АДМИНКА
   ===================================================== */
.admin-body { background: #f4f5f7; min-height: 100vh; }
.admin-topbar {
  background: #1a1a1a; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; flex-wrap: wrap; gap: 12px;
}
.admin-logo { font-weight: 700; letter-spacing: .02em; }
.admin-topbar nav {
  display: flex; flex-wrap: wrap;
  gap: 18px; font-size: .92rem; align-items: center;
}
.admin-topbar nav a { color: #ccc; }
.admin-topbar nav a:hover { color: #fff; }
.admin-topbar .admin-logout { color: #e74c3c; }

.admin-main {
  max-width: 1140px; margin: 0 auto;
  padding: 30px 24px 60px;
}
.admin-main h1 { font-size: 1.8rem; margin-bottom: 22px; }
.admin-main h3 {
  font-size: 1.1rem; color: #333;
  margin: 26px 0 12px; font-weight: 700;
}
.admin-main .admin-form-section + .admin-cards { margin-top: 0; }

/* Карточки */
.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 30px;
}
.admin-card {
  background: #fff; border-radius: 12px;
  padding: 22px; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.admin-card-num {
  font-size: 1.8rem; font-weight: 800;
  color: #c0392b; margin-bottom: 6px;
}
.admin-card-lbl { color: #666; font-size: .9rem; }

/* Формы */
.admin-form {
  display: flex; flex-direction: column; gap: 18px;
  background: #fff; padding: 28px;
  border-radius: 14px; border: 1px solid #e5e7eb;
  max-width: 900px;
}
.admin-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-weight: 600; font-size: .92rem; color: #333;
}
.admin-form .btn { align-self: flex-start; }
.admin-form-section {
  font-size: 1.05rem; color: #c0392b;
  margin: 26px 0 8px; padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0; font-weight: 700;
}
.admin-form-section:first-child { margin-top: 0; }
.admin-hint {
  display: block; font-weight: 400;
  font-size: .82rem; color: #777;
  margin-top: 4px; line-height: 1.5;
}
.admin-hint code {
  background: #f3f4f6; padding: 2px 6px;
  border-radius: 5px; font-size: .8rem;
}

/* Статус-строка */
.admin-status {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 10px; padding: 14px 20px;
  margin-bottom: 22px;
  display: flex; align-items: center;
  gap: 14px; flex-wrap: wrap; font-size: .92rem;
}

/* Инфо-блок */
.admin-info-block {
  background: #eef6ff; border-left: 4px solid #2b7cff;
  padding: 14px 18px; border-radius: 8px;
  font-size: .9rem; color: #1a3555;
  margin: 12px 0 6px; line-height: 1.6;
}
.admin-info-block code {
  background: #fff; padding: 3px 8px;
  border-radius: 5px; font-size: .85rem;
  border: 1px solid #d6e4ff; word-break: break-all;
}

/* Действия */
.admin-actions {
  display: flex; flex-wrap: wrap;
  gap: 12px; margin-top: 10px;
}

/* Бейджи */
.badge {
  display: inline-block; padding: 4px 10px;
  border-radius: 20px; font-size: .82rem;
  font-weight: 600; letter-spacing: .02em;
}
.badge-ok    { background: #e8f8ef; color: #1e7e46; border: 1px solid #c3ecd2; }
.badge-warn  { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }
.badge-info  { background: #fff8e5; color: #8a6400; border: 1px solid #f0d68a; }
.badge-gray  { background: #f3f4f6; color: #555;    border: 1px solid #e5e7eb; }

/* Таблицы */
.admin-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 10px;
  overflow: hidden; border: 1px solid #e5e7eb;
  font-size: .92rem;
}
.admin-table th,
.admin-table td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
.admin-table th {
  background: #f9fafb; font-weight: 700;
  color: #444; white-space: nowrap;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { margin-right: 8px; }
.admin-table code {
  background: #f3f4f6; padding: 2px 6px;
  border-radius: 5px; font-size: .82rem;
  word-break: break-all;
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.admin-table code.small {
  font-size: .72rem;
  letter-spacing: -.02em;
}
.admin-table td.actions { white-space: nowrap; }
.admin-table .row-inactive { background: #fafafa; color: #888; }

@media (max-width: 700px) {
  .admin-table { font-size: .85rem; }
  .admin-table th, .admin-table td { padding: 9px 8px; }
}
@media (max-width: 900px) {
  .admin-cards { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .admin-card { padding: 16px; }
  .admin-card-num { font-size: 1.4rem; }
  .admin-main h3 { font-size: 1rem; }
}

/* Превью книги в админке */
.admin-book-preview {
  display: flex; gap: 22px;
  align-items: center; flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-book-preview .preview-icon { font-size: 3rem; }
.admin-book-preview .preview-info { flex: 1 1 240px; }

/* =====================================================
   Утилиты
   ===================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
[hidden] { display: none !important; }

/* =====================================================
   Печать — запрещена
   ===================================================== */
@media print {
  body * { display: none !important; }
  body::after {
    content: "Печать защищённого контента запрещена. © Андрей Яшин.";
    display: block !important;
    font-size: 18px; text-align: center;
    padding: 40px; color: #000;
  }
}

/* =====================================================
   Reduce motion — отключение всех анимаций
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }

  /* Явно выключаем интерактивные анимации главной */
  .hero-bg-blob,
  .hero-bg-words span,
  .hero-title-pulse,
  .price-now::after,
  .btn-primary::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-bg-canvas { display: none; }
  .reveal { opacity: 1; transform: none; }
}