@charset "UTF-8";

/* ============================================================
   KRASNOVA.SPACE — style
   Version 4.0 (каталог, товары, комплекты, банка тем, статьи)
   ============================================================ */

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/caveat-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/caveat-semibold.woff2') format('woff2');
}

:root {
  --paper:        #FDF6E3;
  --ink:          #111E38;
  --sage:         #6B7F6E;
  --sage-deep:    #4A5A4C;
  --berry:        #8C3B3E;
  --amethyst:     #8B7E94;
  --amethyst-deep: #5A4A6A;

  --font-head:    'Forum', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'PT Serif', Georgia, 'Times New Roman', serif;
  --font-hand:    'Caveat', 'Neucha', cursive;

  --max-width:    820px;
  --radius:       2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--berry);
  text-decoration-color: var(--berry);
}

a:focus-visible,
button:focus-visible,
.doc-download:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--amethyst);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 0.6em;
  letter-spacing: -0.2px;
  text-wrap: balance;
}

h1 { font-size: 2.4rem; margin-top: 0; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
  margin: 0 0 1.1em 0;
}

ul, ol {
  margin: 0 0 1.2em 0;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 28px 80px;
  background: var(--paper);
}

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 28px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header .logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--ink);
}

.site-header .logo:hover {
  color: var(--berry);
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover {
  border-bottom-color: var(--sage);
  color: var(--ink);
}

.divider {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 0 28px;
}

.divider hr {
  border: none;
  border-top: 1px solid var(--sage);
  opacity: 0.5;
  margin: 0;
}

.toc {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 28px 10px;
}

.toc h2 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.8em;
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: 0.2px;
}

.toc ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 0.5em;
  font-size: 1rem;
}

.toc li::before {
  content: counter(toc) ".";
  display: inline-block;
  width: 1.8em;
  color: var(--sage);
  font-family: var(--font-head);
}

.toc a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.toc a:hover {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

.document {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 28px 100px;
  line-height: 1.78;
}

.document h1 {
  font-size: 1.9rem;
  text-align: center;
  margin-bottom: 0.4em;
}

.document .doc-subtitle {
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 2em;
}

.document .doc-meta {
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.85;
  margin-bottom: 2.5em;
}

.document h2 {
  font-size: 1.25rem;
  margin-top: 2.2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--sage);
  border-bottom-color: rgba(107, 127, 110, 0.4);
}

.document h3 {
  font-size: 1.05rem;
  margin-top: 1.6em;
  font-family: var(--font-body);
  font-weight: 700;
}

.document p,
.document li {
  font-size: 0.98rem;
  text-align: justify;
  hyphens: auto;
}

.document .doc-footer-note {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--sage);
  border-top-color: rgba(107, 127, 110, 0.4);
  font-size: 0.9rem;
  opacity: 0.8;
}

.doc-download {
  display: inline-block;
  margin: 0.5em 0 2em;
  padding: 10px 22px;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
}

.doc-download:hover {
  background: var(--berry);
  color: var(--paper);
  border-color: var(--berry);
  text-decoration: none;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 28px 48px;
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.85;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 10px;
}

.footer-label {
  opacity: 0.65;
}

.footer-dot {
  opacity: 0.5;
  user-select: none;
}

.footer-divider {
  opacity: 0.4;
  font-size: 0.9em;
  user-select: none;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-footer a:hover {
  border-bottom-color: var(--sage);
  color: var(--ink);
}

.footer-legal {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(107, 127, 110, 0.25);
  font-size: 0.82rem;
  color: var(--amethyst-deep);
  opacity: 0.9;
  text-align: center;
  line-height: 1.5;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 28px 40px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 0.5em;
  letter-spacing: -0.5px;
}

.hero .subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.92;
  margin-bottom: 2em;
  max-width: 640px;
}

.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2em;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.btn.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn.btn-primary:hover {
  background: var(--berry);
  border-color: var(--berry);
  color: var(--paper);
}

.btn.btn-ghost {
  border-color: var(--sage);
}

.btn.btn-ghost:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--paper);
}

.btn.btn-amethyst {
  border-color: var(--amethyst);
  color: var(--ink);
  background: transparent;
}

.btn.btn-amethyst:hover {
  background: var(--amethyst);
  border-color: var(--amethyst);
  color: var(--paper);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 28px;
}

.section h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1em;
  letter-spacing: -0.3px;
}

.section p {
  font-size: 1.05rem;
  margin-bottom: 1.1em;
}

p.note {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
  padding: 4px 20px 4px 0;
  border-right: 2px solid var(--sage);
  border-left: none;
  margin: 1.8em 0 1.8em auto;
  max-width: 75%;
  text-align: right;
  transform: rotate(0.4deg);
}

.note.berry {
  border-right-color: var(--berry);
  color: var(--berry);
}

.note.amethyst {
  border-right-color: var(--amethyst);
}

p.note-left {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
  padding: 4px 0 4px 20px;
  border-right: none;
  border-left: 2px solid var(--sage);
  margin: 1.8em auto 1.8em 0;
  max-width: 75%;
  text-align: left;
  transform: rotate(-0.4deg);
}

.note-left.berry {
  border-left-color: var(--berry);
  color: var(--berry);
}

.note-left.amethyst {
  border-left-color: var(--amethyst);
}

.highlight {
  background: rgba(139, 126, 148, 0.12);
  border-left: 3px solid var(--amethyst);
  padding: 18px 22px;
  margin: 1.8em 0;
  border-radius: var(--radius);
}

.highlight p:last-child {
  margin-bottom: 0;
}

.nb {
  color: var(--berry);
  font-weight: 700;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 1.5em;
}

.card {
  padding: 24px 26px;
  background: rgba(253, 246, 227, 0.6);
  border: 1px solid rgba(107, 127, 110, 0.35);
  border-radius: var(--radius);
}

.card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 0.6em;
}

.card p {
  font-size: 1rem;
  margin-bottom: 0;
}

.case-block {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 28px;
}

.case-block .case-inner {
  background: rgba(139, 126, 148, 0.10);
  border-left: 4px solid var(--amethyst);
  padding: 28px 30px;
  border-radius: var(--radius);
}

.case-block h2 {
  margin-top: 0;
  font-size: 1.6rem;
  margin-bottom: 1em;
}

.case-block dl {
  margin: 0;
}

.case-block dt {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 1em;
  margin-bottom: 0.2em;
}

.case-block dt:first-child {
  margin-top: 0;
}

.case-block dd {
  margin: 0 0 1em 0;
  font-size: 1rem;
  line-height: 1.65;
}

.cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 28px 60px;
  text-align: center;
}

.cta p {
  font-size: 1.15rem;
  margin-bottom: 1.8em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.card-meta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 0.8em;
  margin-top: -0.4em;
}

.price-list {
  list-style: none;
  padding-left: 0;
  margin: 1em 0;
}

.price-list li {
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 0.6em;
  font-size: 1rem;
}

.price-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--sage);
}

.price-note {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
}

.card-includes {
  font-size: 0.95rem;
  margin-top: 1em;
  margin-bottom: 0;
  padding-top: 0.8em;
  border-top: 1px solid rgba(107, 127, 110, 0.3);
}

.card-accent {
  background: rgba(139, 126, 148, 0.10);
  border-left: 3px solid var(--amethyst);
}

.steps {
  margin-top: 1.5em;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 2em;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.step-body h3 {
  margin-top: 0;
  margin-bottom: 0.3em;
  font-size: 1.15rem;
}

.step-body p {
  margin-bottom: 0;
  font-size: 1rem;
}

.faq {
  margin-top: 1.5em;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(107, 127, 110, 0.3);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.15rem;
  font-family: var(--font-head);
}

.faq-item p {
  margin-bottom: 0;
  font-size: 1rem;
}

.cta-email {
  margin-top: 1.5em;
  font-size: 1rem;
  opacity: 0.85;
}

.product {
  margin: 2em 0;
  padding: 28px 30px;
  background: rgba(253, 246, 227, 0.5);
  border: 1px solid rgba(107, 127, 110, 0.4);
  border-radius: var(--radius);
  position: relative;
}

.product h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.35rem;
}

.product-desc {
  font-size: 1rem;
  margin-bottom: 1em;
  line-height: 1.65;
}

.product-includes {
  list-style: none;
  padding-left: 0;
  margin: 1em 0 1.2em;
  font-size: 0.95rem;
}

.product-includes li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 0.4em;
  opacity: 0.9;
}

.product-includes li::before {
  content: "·";
  position: absolute;
  left: 0.4em;
  color: var(--sage);
  font-weight: 700;
  font-size: 1.2rem;
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 1.2em 0;
}

.price-current {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--ink);
  font-weight: 500;
}

.price-old {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  opacity: 0.5;
  text-decoration: line-through;
}

.price-save {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--berry);
  margin-left: auto;
}

.product-buy {
  display: inline-block;
  margin-top: 0.5em;
}

.product-bundle {
  background: rgba(139, 126, 148, 0.10);
  border: 2px solid var(--amethyst);
  position: relative;
  padding-top: 40px;
}

.product-badge {
  position: absolute;
  top: -14px;
  left: 30px;
  background: var(--amethyst);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: var(--radius);
  text-transform: uppercase;
}

.card-link {
  margin-top: 0.8em;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.card-link a {
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
}

.card-link a:hover {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

.free-more {
  text-align: center;
  margin-top: 2em;
  margin-bottom: 0;
}

.subsection {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 1em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid rgba(107, 127, 110, 0.4);
}

.subsection:first-of-type {
  margin-top: 1em;
}

.tariffs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 1.5em;
}

.tariff {
  padding: 20px 22px;
  background: rgba(253, 246, 227, 0.7);
  border: 1px solid rgba(107, 127, 110, 0.4);
  border-radius: var(--radius);
  position: relative;
  display: flex;
  flex-direction: column;
}

.tariff h4 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.1rem;
  font-family: var(--font-head);
}

.tariff-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1em;
  flex-grow: 1;
  opacity: 0.9;
}

.tariff-price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.tariff-price .price-old {
  font-size: 0.95rem;
}

.tariff-price .price-current {
  font-size: 1.5rem;
}

.tariff .btn {
  align-self: flex-start;
  width: 100%;
  text-align: center;
}

.tariff-bundle {
  background: rgba(139, 126, 148, 0.12);
  border: 2px solid var(--amethyst);
  padding-top: 34px;
}

.tariff-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--amethyst);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius);
  text-transform: uppercase;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 1.5em 0;
}

.contact-email-block {
  margin-top: 2em;
}

.contact-email-block p {
  margin-bottom: 0.5em;
}

.contact-email-block p:last-child {
  margin-bottom: 0;
}

.contact-note {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.8em !important;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 0.8em 0 0;
}

.contact-list li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 0.4em;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--sage);
}

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(17, 30, 56, 0.25);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--berry);
  color: var(--paper);
  text-decoration: none;
}

.product-preview {
  margin: 0.8em 0 1em;
  font-size: 0.95rem;
}

.product-preview a {
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
}

.product-preview a:hover {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

.author-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid rgba(107, 127, 110, 0.4);
  box-shadow: 0 4px 14px rgba(17, 30, 56, 0.12);
}

.about-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2em;
  align-items: start;
  margin-top: 1.1em;
}

.about-photo {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.about-text p:first-child { margin-top: 0; }
.about-text p:last-child { margin-bottom: 0; }

.word-list {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
  margin: 0 0 2em 0;
  padding: 0;
  color: var(--ink);
  column-count: 3;
  column-gap: 2em;
  column-rule: 1px solid rgba(107, 127, 110, 0.3);
}

.word-list span {
  display: block;
  break-inside: avoid;
  padding: 0.15em 0;
}

/* ============================================================
   TRENER
   ============================================================ */

.trener-page { max-width: 760px; }
.trener-app { text-align: center; }

.trener-loading {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--ink);
  opacity: 0.6;
  margin-top: 3em;
}

.trener-instruction {
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 2em;
}

.trener-dynamic { min-height: 400px; }

.trener-menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 420px;
  margin: 2em auto;
}

.trener-menu-btn {
  width: 100%;
  text-align: center;
  padding: 18px 26px;
  font-size: 1.15rem;
}

.trener-cat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 2em auto;
}

.trener-cat-btn {
  width: 100%;
  text-align: left;
  padding: 16px 24px;
  font-size: 1.05rem;
}

.trener-back { margin-top: 2em; font-size: 0.95rem; }

.trener-cat-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--ink);
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.6em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid rgba(107, 127, 110, 0.4);
}

.trener-progress { margin-bottom: 2em; }

.trener-progress-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trener-progress-count {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.75;
  flex-shrink: 0;
}

.trener-progress-bar {
  flex-grow: 1;
  height: 4px;
  background: rgba(107, 127, 110, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.trener-progress-bar span {
  display: block;
  height: 100%;
  background: var(--sage);
  transition: width 0.3s ease;
}

.trener-card {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2em 0;
}

.trener-card-result {
  display: block;
  text-align: center;
}

.trener-card-result h2,
.trener-card-result h3,
.trener-card-result p {
  text-align: center;
}

.trener-card-result .trener-mistakes {
  text-align: left;
  column-count: 2;
  max-width: 600px;
  margin: 1em auto 2em;
}

.trener-word {
  font-family: var(--font-head);
  font-size: 5rem;
  letter-spacing: 3px;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.trener-consonant { color: var(--ink); }

.trener-vowel {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 4px solid rgba(107, 127, 110, 0.4);
  padding: 0 6px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 0.8em;
}

.trener-vowel:hover {
  color: var(--amethyst);
  border-bottom-color: var(--amethyst);
}

.trener-vowel.trener-correct {
  color: #2E7D32;
  border-bottom-color: #2E7D32;
  font-weight: 700;
}

.trener-vowel.trener-wrong {
  color: var(--berry);
  border-bottom-color: var(--berry);
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.trener-vowel:focus:not(:focus-visible),
.trener-menu-btn:focus:not(:focus-visible),
.trener-cat-btn:focus:not(:focus-visible),
.trener-actions .btn:focus:not(:focus-visible),
.trener-back:focus:not(:focus-visible) {
  outline: none;
}

.trener-comment {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--berry);
  min-height: 1.5em;
  margin-top: 1em;
}

.trener-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 2.5em;
}

.trener-result {
  font-size: 1.15rem;
  margin: 1em 0 1.5em;
}

.trener-result strong {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--ink);
}

.document p.trener-phrase,
p.trener-phrase {
  font-family: var(--font-hand);
  font-size: 5rem;
  line-height: 1.2;
  color: #2E7D32;
  text-align: center;
  margin: 0.3em 0 1em;
  transform: rotate(-1deg);
}

.trener-mistakes {
  text-align: left;
  max-width: 600px;
  margin: 1em auto 2em;
  column-count: 2;
}

.trener-error {
  color: var(--berry);
  font-size: 1.1rem;
  padding: 2em;
}

@media (max-width: 900px) {
  .word-list {
    column-count: 2;
    column-gap: 1.5em;
  }
}

@media (max-width: 640px) {
  html { font-size: 17px; }

  body {
    font-size: 18px;
    line-height: 1.75;
  }

  p, li, .product-desc, .tariff-desc, .card p, .faq-item p {
    font-size: 18px;
    line-height: 1.75;
  }

  .page, .document, .hero, .section, .case-block, .cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .toc { padding: 24px 18px 8px; }
  .toc h2 { font-size: 1.15rem; }
  .toc li { font-size: 1rem; margin-bottom: 0.6em; }

  .hero { padding-top: 40px; padding-bottom: 30px; }
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 1.05rem; line-height: 1.65; }

  .section { padding-top: 36px; padding-bottom: 36px; }
  .section h2 { font-size: 1.45rem; }
  .section p { font-size: 1.05rem; line-height: 1.7; }

  .subsection { font-size: 1.15rem; }

  h1 { font-size: 28px; }
  .document h1 { font-size: 24px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 1rem; }
  .document h2 { font-size: 1.05rem; }

  .product-desc, .tariff-desc, .card p, .faq-item p, .step-body p, .case-block dd {
    font-size: 1rem;
    line-height: 1.7;
  }

  .product-includes, .price-list li, .contact-list li, .card-includes {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .cta p { font-size: 1.05rem; }

  .document { line-height: 1.78; }
  .document p, .document li { font-size: 0.95rem; }

  .site-header { padding: 20px 18px 0; flex-direction: column; align-items: flex-start; }
  .site-nav { font-size: 0.95rem; }
  .divider { padding: 0 18px; }
  .site-footer { padding: 24px 18px 40px; font-size: 0.9rem; }

  .footer-line { flex-direction: column; align-items: center; gap: 8px; }
  .footer-divider, .footer-dot { display: none; }

  .footer-legal {
    font-size: 0.78rem;
    padding-top: 10px;
  }

  .note, .note-left {
    font-size: 1.25rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    padding: 4px 0 4px 16px;
    border-right: none;
    border-left: 2px solid var(--sage);
    transform: none;
  }

  .note.berry, .note-left.berry { border-left-color: var(--berry); border-right-color: transparent; }
  .note.amethyst, .note-left.amethyst { border-left-color: var(--amethyst); border-right-color: transparent; }

  .case-block .case-inner { padding: 22px 20px; }
  .step { gap: 14px; }
  .step-num { width: 36px; height: 36px; font-size: 1.1rem; }
  .step-body h3 { font-size: 1.05rem; }

  .product { padding: 22px 20px; }
  .product-bundle { padding-top: 34px; }
  .product h3 { font-size: 1.1rem; }
  .price-current { font-size: 1.35rem; }
  .price-save { margin-left: 0; width: 100%; }

  .contact-buttons { flex-direction: column; }
  .contact-buttons .btn { width: 100%; text-align: center; }
  .btn { font-size: 1rem; padding: 14px 24px; }

  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; font-size: 1.4rem; }

  .product-preview { font-size: 1rem; }

  .author-photo { width: 130px; height: 130px; }
  .about-grid { grid-template-columns: 1fr; gap: 1.2em; justify-items: center; }
  .about-text { text-align: left; }

  .word-list { column-count: 1; font-size: 1.05rem; line-height: 1.85; }

  .trener-word { font-size: 3rem; letter-spacing: 1.5px; }
  .trener-vowel { border-bottom-width: 3px; padding: 0 4px 6px; }

  .document p.trener-phrase,
  p.trener-phrase {
    font-size: 2.5rem;
  }

  .trener-mistakes { column-count: 1; }
  .trener-menu-btn { font-size: 1.05rem; padding: 16px 20px; }
}

@media (min-width: 720px) {
  .tariffs { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .tariff-bundle { transform: scale(1.02); }
}

@media print {
  @page { size: A4; margin: 15mm 12mm; }

  body { background: #fff; color: #000; font-size: 10pt; line-height: 1.5; }

  .site-header, .site-footer, .doc-download, .hero-actions, .cta-actions, .toc, .to-top, .divider { display: none; }

  p.note, p.note-left { display: none; }

  .document { max-width: 100%; padding: 0; line-height: 1.5; }

  .document h1 { font-size: 16pt; text-align: center; page-break-after: avoid; break-after: avoid; }

  .document .doc-subtitle, .document .doc-meta { text-align: center; page-break-after: avoid; break-after: avoid; }

  .document h2 {
    font-size: 12pt;
    border-bottom: 1px solid #999;
    page-break-after: avoid;
    break-after: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-top: 1.2em;
    padding-bottom: 0.2em;
  }

  .document h3 { page-break-after: avoid; break-after: avoid; }

  .document p { orphans: 3; widows: 3; text-align: left; hyphens: none; }

  .document p, .document li { font-size: 10pt; }

  a { color: #000; text-decoration: none; }

  .document a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }

  .word-list {
    font-size: 9pt;
    line-height: 1.5;
    column-count: 3;
    column-gap: 8mm;
    column-rule: 1px solid #ccc;
    margin-bottom: 1.2em;
    break-inside: auto;
    page-break-inside: auto;
  }

  .word-list span {
    display: block;
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 0.08em 0;
  }
}

/* ============================================================
   TRENER — option-pick (паронимы)
   ============================================================ */

.trener-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.trener-sentence {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1.65;
  color: var(--ink);
  text-align: center;
  margin: 0 0 2em 0;
  padding: 0 1em;
}

.trener-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

.trener-option {
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 100%;
  text-align: center;
  font-size: 1.15rem;
  padding: 14px 28px;
  white-space: nowrap;
  box-sizing: border-box;
}

.trener-option.btn.btn-ghost:hover {
  background: var(--amethyst);
  border-color: var(--amethyst);
  color: var(--paper);
}

.trener-option.trener-correct,
.trener-option.btn.btn-ghost.trener-correct:hover {
  background: #2E7D32;
  border-color: #2E7D32;
  color: var(--paper);
}

.trener-option.trener-wrong,
.trener-option.btn.btn-ghost.trener-wrong:hover {
  background: var(--berry);
  border-color: var(--berry);
  color: var(--paper);
  animation: shake 0.3s ease;
}

.trener-comment {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: rgba(139, 126, 148, 0.10);
  border-left: 3px solid var(--amethyst);
  padding: 14px 18px;
  margin-top: 1.5em;
  border-radius: var(--radius);
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.trener-comment.is-visible {
  display: block;
}

.trener-comment.is-correct {
  background: rgba(46, 125, 50, 0.08);
  border-left-color: #2E7D32;
}

.trener-comment.is-error {
  background: rgba(139, 126, 148, 0.10);
  border-left-color: var(--amethyst);
}

@media (max-width: 640px) {
  .trener-sentence {
    font-size: 1.1rem;
    padding: 0 0.5em;
  }
  .trener-option {
    min-width: 100%;
    font-size: 1.05rem;
    padding: 14px 20px;
    white-space: normal;
  }
  .trener-comment {
    font-size: 0.95rem;
    padding: 12px 14px;
  }
}

/* ============================================================
   Ссылки на тренажёр в словнике
   ============================================================ */

.trener-link-top,
.trener-link-bottom {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  margin: 1.5em 0;
}

.trener-link-top {
  text-align: center;
}

.trener-link-bottom {
  text-align: center;
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(107, 127, 110, 0.3);
}

.trener-link-top a,
.trener-link-bottom a {
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
}

.trener-link-top a:hover,
.trener-link-bottom a:hover {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

/* ============================================================
   DOORS — навигатор по аудитории на главной
   ============================================================ */

.doors {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.door {
  padding: 28px 30px;
  background: rgba(253, 246, 227, 0.6);
  border: 1px solid rgba(107, 127, 110, 0.35);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.door:hover {
  border-color: var(--amethyst);
  background: rgba(139, 126, 148, 0.06);
}

.door h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.4rem;
  font-family: var(--font-head);
}

.door p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1em;
  opacity: 0.9;
}

.door-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.door-links li {
  margin-bottom: 0.5em;
  font-size: 0.95rem;
}

.door-links a {
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.door-links a:hover {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

.case-link {
  margin-top: 1.5em;
  margin-bottom: 0;
  font-size: 1rem;
}

.case-link a {
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
}

.case-link a:hover {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

@media (min-width: 720px) {
  .doors {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .doors {
    padding: 24px 18px;
    gap: 16px;
  }
  .door {
    padding: 22px 20px;
  }
  .door h3 {
    font-size: 1.2rem;
  }
}

/* ============================================================
   CASES — страница кейсов
   ============================================================ */

.case {
  margin-bottom: 3em;
  padding-bottom: 2em;
  border-bottom: 1px solid rgba(107, 127, 110, 0.3);
}

.case:last-child {
  border-bottom: none;
}

.case h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.3em;
}

.case-meta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.75;
  margin-bottom: 1.2em;
}

.case-details {
  margin: 0;
}

.case-details dt {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--ink);
  margin-top: 1em;
  margin-bottom: 0.2em;
}

.case-details dt:first-child {
  margin-top: 0;
}

.case-details dd {
  margin: 0 0 1em 0;
  font-size: 1rem;
  line-height: 1.65;
}

.case-link {
  margin-top: 1em;
  margin-bottom: 0;
  font-size: 1rem;
}

.case-link a {
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
}

.case-link a:hover {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

.case-cta {
  text-align: center;
}

.case-note {
  font-family: var(--font-hand) !important;
  font-size: 2rem !important;
  line-height: 1.35 !important;
  color: var(--ink) !important;
  max-width: 760px !important;
  margin: 0 auto 2em !important;
  transform: rotate(-0.3deg) !important;
  font-weight: 640 !important;
}

.case-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

@media (max-width: 640px) {
  .case h2 {
    font-size: 1.2rem;
  }
  .case-note {
    font-size: 1.2rem;
  }
  .case-cta-actions {
    flex-direction: column;
  }
  .case-cta-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   SPRAVOCHNIK — справочник по 7 заданию
   ============================================================ */

.ref-topic {
  margin-bottom: 4em;
}

.ref-topic h2 {
  font-size: 1.5rem;
  margin-top: 0;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--sage);
  margin-bottom: 1.2em;
}

.ref-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.ref-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.8em;
  font-size: 0.98rem;
}

.ref-table th {
  font-family: var(--font-head);
  font-weight: 500;
  text-align: left;
  padding: 10px 14px;
  background: rgba(139, 126, 148, 0.12);
  border-bottom: 2px solid var(--sage);
}

.ref-table td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(107, 127, 110, 0.2);
}

.ref-table tbody tr:hover {
  background: rgba(253, 246, 227, 0.6);
}

.ref-table b {
  color: var(--amethyst-deep);
  font-weight: 700;
}

.ref-table-double td:nth-child(3) {
  border-left: 1px solid rgba(107, 127, 110, 0.2);
}

.ref-answers-details {
  margin: 1.5em 0;
  padding: 14px 18px;
  background: rgba(139, 126, 148, 0.08);
  border-left: 3px solid var(--amethyst);
  border-radius: var(--radius);
}

.ref-answers-details summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
}

.ref-answers-details summary::-webkit-details-marker {
  display: none;
}

.ref-answers-details summary::before {
  content: "→ ";
  color: var(--amethyst-deep);
}

.ref-answers-details[open] summary::before {
  content: "↓ ";
}

.ref-answers-details p {
  margin: 1em 0 0;
  font-size: 0.98rem;
}

.ref-back {
  margin-top: 2em;
  text-align: right;
  font-size: 0.95rem;
}

.ref-back a {
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
}

.ref-back a:hover {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

.ref-cta {
  margin: 3em 0 2em;
  padding: 28px 30px;
  background: rgba(139, 126, 148, 0.10);
  border-left: 3px solid var(--amethyst);
  border-radius: var(--radius);
  text-align: center;
}

.ref-cta-text {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.8em;
}

.ref-cta p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1em;
}

.ref-cta-actions {
  margin-top: 1.5em;
  margin-bottom: 0;
}

.ref-cta-actions .btn {
  text-decoration: none;
}

@media (max-width: 640px) {
  .ref-topic h2 { font-size: 1.2rem; }
  .ref-table { font-size: 0.85rem; }
  .ref-table th, .ref-table td { padding: 6px 8px; }

  .ref-table-double thead tr { display: none; }
  .ref-table-double tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    border-bottom: 1px solid rgba(107, 127, 110, 0.3);
    padding: 8px 0;
  }
  .ref-table-double td {
    padding: 2px 0;
    border: none;
  }
  .ref-table-double td:nth-child(1),
  .ref-table-double td:nth-child(3) {
    grid-column: 1;
  }
  .ref-table-double td:nth-child(2),
  .ref-table-double td:nth-child(4) {
    grid-column: 2;
  }
  .ref-table-double td:nth-child(3) {
    border-left: none;
  }

  .ref-cta {
    padding: 22px 20px;
  }
  .ref-cta-text {
    font-size: 1.2rem;
  }
  .ref-cta-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   PRODUCT PAGE — страница товара
   ============================================================ */

.page-product .site-header,
.page-product .site-footer,
.page-product .divider {
  max-width: 1100px;
  padding-left: 32px;
  padding-right: 32px;
}

.pp-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.pp-crumbs {
  font-size: 0.9rem;
  opacity: 0.7;
  padding: 28px 0 0;
}

.pp-crumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.pp-crumbs a:hover {
  border-bottom-color: var(--sage);
}

.pp-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 36px 0 80px;
}

.pp-cover {
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pp-cover img {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(17, 30, 56, 0.08);
}

body.bundle-page .pp-cover img {
  box-shadow: none;
  border: none;
  outline: none;
}

.pp-frag {
  margin: 0;
  align-self: flex-start;
}

.pp-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pp-facts li {
  padding-left: 1.1em;
  position: relative;
  margin-bottom: 0.45em;
  opacity: 0.85;
}

.pp-facts li::before {
  content: "·";
  position: absolute;
  left: 0.2em;
  color: var(--sage);
  font-weight: 700;
}

.pp-main {
  min-width: 0;
}

.pp-eyebrow {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.75;
  margin: 0 0 0.5em;
}

.pp-main h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.3px;
}

.pp-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  opacity: 0.92;
  margin: 0 0 1.8em;
}

.pp-main h2 {
  font-size: 1.35rem;
  margin: 2em 0 0.8em;
}

.pp-main p,
.pp-main li {
  text-align: left;
  hyphens: none;
}

.pp-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 20px 24px;
  margin: 0 0 2em;
  background: rgba(253, 246, 227, 0.55);
  border: 1px solid rgba(107, 127, 110, 0.4);
  border-radius: var(--radius);
}

.pp-price {
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}

.pp-old-price {
  font-size: 1.1rem;
  opacity: 0.5;
  text-decoration: line-through;
  margin-right: 8px;
}

.pp-buy .btn {
  padding: 14px 34px;
}

.pp-buy-note {
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
}

.pp-cta-block {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid rgba(107, 127, 110, 0.3);
}

.pp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1em;
}

@media (max-width: 900px) {
  .page-product .site-header,
  .page-product .site-footer,
  .page-product .divider {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pp-wrap {
    padding: 0 20px;
  }

  .pp-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 0 56px;
  }

  .pp-cover {
    position: static;
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
  }

  .pp-main h1 {
    font-size: 1.7rem;
  }
}

/* ============================================================
   CATALOG — карточки товаров (одна в ряд)
   ============================================================ */

.section-note {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 1.5em;
}

.catalog-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 1.5em;
}

.catalog-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 28px;
  background: rgba(253, 246, 227, 0.6);
  border: 1px solid rgba(107, 127, 110, 0.35);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  align-items: center;
}

.catalog-card:hover {
  border-color: var(--amethyst);
  background: rgba(139, 126, 148, 0.06);
  transform: translateY(-2px);
}

.catalog-card-cover {
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-card-cover img {
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(17, 30, 56, 0.12);
}

.catalog-card-bundle .catalog-card-cover img {
  box-shadow: none;
}

.catalog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.catalog-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--paper);
  background: var(--amethyst);
  padding: 3px 10px;
  border-radius: var(--radius);
  text-transform: uppercase;
}

.catalog-card h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.3;
}

.catalog-card-desc {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0;
}

.catalog-card-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 0.3em;
}

.catalog-card-price .price-current {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--ink);
}

.catalog-card-price .price-old {
  font-size: 1rem;
  opacity: 0.5;
  text-decoration: line-through;
}

.catalog-card-link {
  font-size: 1rem;
  border-bottom: 1px solid var(--sage);
  align-self: flex-start;
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.catalog-card:hover .catalog-card-link {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

@media (max-width: 640px) {
  .catalog-card {
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 18px;
  }
  .catalog-card-cover img {
    max-width: 100px;
  }
  .catalog-card h3 {
    font-size: 1.1rem;
  }
  .catalog-card-desc {
    font-size: 0.9rem;
  }
  .catalog-card-price .price-current {
    font-size: 1.3rem;
  }
}

/* ============================================================
   DOORS — ссылки на секции каталога
   ============================================================ */

.door-link {
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.door-link:hover {
  text-decoration: none;
  color: var(--ink);
}

.door-arrow {
  display: inline-block;
  margin-top: 1em;
  font-size: 0.95rem;
  color: var(--amethyst-deep);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.door-link:hover .door-arrow {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

/* ============================================================
   BANK-TEM — Всё для страницы генератора и всех тем
   ============================================================ */

/* --- СТРАНИЦА ВСЕХ ТЕМ (bank-tem-all) --- */

.bank-header-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 20px;
  text-align: center;
}

.bank-header-wrapper h1 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--ink);
  margin: 0 0 0.2em 0;
  letter-spacing: -0.5px;
}

.bank-header-wrapper .doc-subtitle {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--ink);
  opacity: 0.8;
  margin: 0;
}

.bank-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px 0;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  min-height: 60vh;
}

.bank-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 30px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding-right: 20px;
  border-right: 1px solid rgba(107, 127, 110, 0.2);
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-height: 200px;
}

.bank-sidebar::-webkit-scrollbar { width: 4px; }
.bank-sidebar::-webkit-scrollbar-thumb { background: rgba(107, 127, 110, 0.3); }

.bank-sidebar-inner { padding: 10px 0; }
.bank-nav-section { margin-bottom: 1.5em; }

.bank-nav-section-link {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 0.5em;
  line-height: 1.3;
  border-bottom: 1px solid transparent;
}

.bank-nav-section-link:hover {
  color: var(--berry);
  border-bottom-color: var(--berry);
}

.toc-details { margin-left: 0.5em; font-size: 0.9rem; }
.toc-details summary {
  cursor: pointer;
  color: var(--sage-deep);
  font-style: italic;
  list-style: none;
  display: inline-block;
  padding: 2px 0;
}
.toc-details summary::-webkit-details-marker { display: none; }
.toc-details summary::before { content: "→ "; font-style: normal; }
.toc-details[open] summary::before { content: "↓ "; }

.toc-sub { list-style: none; padding-left: 1em; margin-top: 0.4em; }
.toc-sub li { margin-bottom: 0.2em; }
.toc-sub a { color: var(--ink); text-decoration: none; font-size: 0.85rem; }
.toc-sub a:hover { color: var(--berry); }

.bank-main-content {
  flex-grow: 1;
  min-width: 0;
  max-width: 800px;
  margin: 0;
  padding: 0;
  min-height: 400px;
}

.ref-topic h2 {
  font-size: 1.8rem;
  margin-top: 0;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--sage);
  margin-bottom: 1em;
  color: var(--ink);
}

.ref-topic { margin-top: 2em; }

.ref-subtitle {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--amethyst-deep);
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

.bank-direction {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  padding-bottom: 0.2em;
  border-bottom: 1px dotted rgba(107, 127, 110, 0.4);
  opacity: 0.9;
}

.bank-flat-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
}

.bank-flat-list li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 0.6em;
  padding-left: 0;
}

.bank-bottom-actions {
  margin-top: 4em;
  padding-top: 2em;
  border-top: 1px solid rgba(107, 127, 110, 0.3);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Мобильная версия страницы всех тем */
@media (max-width: 900px) {
  .bank-header-wrapper { padding: 20px 20px 10px; }
  .bank-header-wrapper h1 { font-size: 1.8rem; }
  .bank-layout { flex-direction: column; padding: 0 20px; gap: 0; }
  .bank-sidebar { display: none; }
  .bank-main-content { max-width: 100%; }
  .ref-topic h2 { font-size: 1.4rem; }
  .ref-subtitle { font-size: 1.2rem; }
  .bank-flat-list li { font-size: 1rem; }
  .bank-bottom-actions { flex-direction: column; }
  .bank-bottom-actions .btn { width: 100%; text-align: center; }
}

/* --- СТРАНИЦА ГЕНЕРАТОРА ТЕМ (bank-tem) --- */

.bank-interactive-box {
  background: rgba(253, 246, 227, 0.4);
  border: 1px solid rgba(107, 127, 110, 0.3);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin: 2em 0;
  text-align: center;
}

.bank-interactive-box h3 {
  margin-top: 0;
  margin-bottom: 1.2em;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 500;
}

.bank-topic-display {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  padding: 20px;
  border-radius: var(--radius);
  margin: 0 auto 1em;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(107, 127, 110, 0.2);
  text-align: center;
}

.bank-topic-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  text-align: left;
  text-transform: none !important;
}

.bank-combat-set-display {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  text-align: left;
}

.bank-exam-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1em 0;
  counter-reset: exam-item;
  border-top: 1px solid var(--ink);
  width: 100%;
}

.bank-exam-list li {
  position: relative;
  padding: 12px 16px 12px 50px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  text-align: left;
  text-transform: none !important;
}

.bank-exam-list li::before {
  counter-increment: exam-item;
  content: counter(exam-item);
  position: absolute;
  left: 0;
  top: 12px;
  width: 50px;
  text-align: center;
  font-weight: bold;
  color: var(--ink);
}

.bank-exam-note {
  font-family: var(--font-body);
  font-size: 0.7rem !important;
  line-height: 1.4 !important;
  color: var(--ink);
  margin-top: 0.5em;
  padding-top: 0;
  border-top: none;
  text-align: left;
}

.bank-exam-note p {
  font-size: 0.7rem !important;
  line-height: 1.4 !important;
  margin-bottom: 0.6em;
}

.bank-loading-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--sage);
  font-style: italic;
}

.bank-error {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--berry);
  text-align: center;
}

/* --- СЛУЧАЙНАЯ ТЕМА НА ГЛАВНОЙ --- */
.random-theme-block {
  max-width: var(--max-width);
  margin: 0 auto 48px;
  padding: 0 28px;
}

.random-theme-inner {
  border: 1px solid rgba(107, 127, 110, 0.3);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: transparent;
}

.random-theme-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
  padding-bottom: 0.8em;
  border-bottom: 1px solid rgba(107, 127, 110, 0.2);
}

.random-theme-label {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--amethyst-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.random-theme-refresh {
  background: transparent;
  border: 1px solid var(--sage);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--sage-deep);
  font-size: 1.2rem;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.random-theme-refresh:hover {
  background: var(--sage);
  color: var(--paper);
  transform: rotate(45deg);
}

.random-theme-content {
  min-height: 60px;
  display: flex;
  align-items: center;
}

.random-theme-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 640px) {
  .random-theme-block {
    padding: 0 18px;
  }
  .random-theme-inner {
    padding: 18px 20px;
  }
  .random-theme-text {
    font-size: 1rem;
  }
}

/* ============================================================
   МОБИЛЬНЫЕ КНОПКИ (не на всю ширину, по центру)
   ============================================================ */

@media (max-width: 640px) {
  .hero-actions, .cta-actions, .pp-cta-actions, .contact-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .hero-actions .btn, 
  .cta-actions .btn, 
  .pp-cta-actions .btn,
  .contact-buttons .btn {
    width: auto; /* Ширина по содержимому */
    min-width: 200px; /* Но не слишком узкие */
    max-width: 100%; /* И не шире экрана */
    text-align: center;
    margin: 0;
    padding: 14px 24px;
  }
}