/* ==========================================================================
   Aegitas — внутренние страницы (общие стили)
   ========================================================================== */

/* ----- Breadcrumbs ----- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 24px 0 0;
}
.breadcrumbs a { transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span:last-child { color: var(--ink); font-weight: 600; }

.nav__link.is-active { color: var(--red); }
.nav__link.is-active::after { right: 0; }

.section__subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 56ch;
}

/* ==========================================================================
   PAGE HERO
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 72px;
}
@media (min-width: 1024px) { .page-hero { padding: 56px 0 96px; } }

.page-hero__bg {
  position: absolute;
  top: -260px;
  right: -220px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFEAEC 0%, #FBF6EF 55%, transparent 75%);
  z-index: -1;
}

.page-hero__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .page-hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.6vw, 60px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  max-width: 16ch;
}
.page-hero__title-accent { font-style: italic; font-weight: 700; color: var(--red); }

.page-hero__subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 32px;
}

.page-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* page-hero visual: manuscript -> book flow */
.page-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}
@media (min-width: 980px) {
  .page-hero__visual { flex-direction: row; }
}

.flow-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  min-width: 180px;
}
.flow-card--1 { transform: rotate(-3deg); }
.flow-card--2 {
  transform: rotate(2deg);
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.flow-card__label {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
}
.flow-card__sub {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.flow-card--2 .flow-card__sub { color: rgba(255,255,255,0.6); }

.flow-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
}
@media (min-width: 980px) { .flow-arrow { transform: none; } }

/* ==========================================================================
   COMPONENTS TABLE (Блок 2 — что нужно для публикации)
   ========================================================================== */
.components { background: var(--bg); }

.components__table {
  border-top: 1px solid var(--line);
}
.components__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .components__row {
    grid-template-columns: 1.1fr 1fr 1.4fr;
    gap: 24px;
    align-items: center;
    padding: 24px 0;
  }
}
.components__row--head {
  display: none;
}
@media (min-width: 768px) {
  .components__row--head {
    display: grid;
    padding: 0 0 16px;
    border-bottom: 2px solid var(--ink);
  }
  .components__row--head .components__cell {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
  }
}
.components__cell--name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.components__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  color: var(--red);
  opacity: 0.6;
}
.components__cell { font-size: 15px; color: var(--ink-soft); }
.components__row--head .components__cell--name { font-size: 13px; }

/* ==========================================================================
   FORMATS
   ========================================================================== */
.formats { background: var(--bg-soft); }

.formats__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .formats__grid { grid-template-columns: repeat(3, 1fr); } }

.format-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.format-card__tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(232,0,28,0.08);
  border-radius: 999px;
  padding: 5px 12px;
}
.format-card h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
}
.format-card p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ==========================================================================
   PROCESS (5 steps)
   ========================================================================== */
.process { background: var(--bg); }

.process__list {
  display: flex;
  flex-direction: column;
}
.process__step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.process__step:first-child { border-top: 1px solid var(--line); }

.process__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 36px;
  color: var(--red);
  line-height: 1;
}
.process__body h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.process__body p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 64ch;
}

/* ==========================================================================
   REQUIREMENTS
   ========================================================================== */
.requirements { background: var(--bg-soft); }

.requirements__inner {
  display: grid;
  gap: 40px;
}
@media (min-width: 980px) {
  .requirements__inner { grid-template-columns: 1.4fr 0.8fr; align-items: start; }
}

.requirements__cols {
  display: grid;
  gap: 24px;
  margin: 28px 0;
}
@media (min-width: 640px) { .requirements__cols { grid-template-columns: repeat(2, 1fr); } }

.requirements__col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 8px;
}
.requirements__col p {
  color: var(--ink-soft);
  font-size: 15px;
}

.requirements__note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  align-self: start;
}
.requirements__note p { font-size: 15px; }
.requirements__note p:first-child { margin-bottom: 8px; font-family: var(--font-display); font-weight: 800; }
.requirements__note p:last-child { color: var(--ink-soft); }

/* ==========================================================================
   ADDONS
   ========================================================================== */
.addons { background: var(--bg); }

.addons__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.addon-pill {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.addon-pill:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fff;
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-hero {
  padding: 32px 0 16px;
}
.legal-hero__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 8px;
}
.legal-hero__date {
  color: var(--ink-soft);
  font-size: 14px;
}

.legal { background: var(--bg); padding-top: 24px; }

.legal-content {
  max-width: 760px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  margin: 40px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  margin: 24px 0 8px;
}
.legal-content p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  line-height: 1.7;
}
.legal-content strong { color: var(--ink); }
.legal-content ul, .legal-content ol {
  margin: 0 0 14px;
  padding-left: 24px;
}
.legal-content li {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 6px;
}
.legal-content a { color: var(--red); text-decoration: underline; }
.legal-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.legal-content th {
  background: var(--bg-soft);
  font-family: var(--font-display);
  font-weight: 800;
}

.legal-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 18px;
  transition: all 0.2s ease;
}
.legal-pdf-link:hover { border-color: var(--red); color: var(--red); }

/* form textarea */
.form-field textarea {
  font-family: var(--font-text);
  font-size: 15px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}

/* ==========================================================================
   BEFORE / AFTER — сравнение рукописи и вёрстки
   ========================================================================== */
.beforeafter { background: var(--bg-soft); }

.ba {
  position: relative;
  max-width: 880px;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
  --ba-pos: 50%;
}

.ba__pane {
  position: absolute;
  inset: 0;
}

/* ДО — верхний слой, обрезается по ползунку */
.ba__pane--before {
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
  background: #ECEDEF;
}

/* «рукопись» — имитация текстового документа */
.ba__doc {
  position: absolute;
  inset: 24px;
  right: auto;
  width: min(560px, calc(100% - 48px));
  background: #fff;
  border: 1px solid #D5D7DB;
  border-radius: 6px;
  padding: 0 0 24px;
  overflow: hidden;
}
.ba__doc-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #F3F4F6;
  border-bottom: 1px solid #E2E4E8;
}
.ba__doc-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #D2D5DA;
}
.ba__doc-line {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #9A9DA3;
  padding: 10px 20px 2px;
}
.ba__doc-text {
  font-family: 'Courier New', monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #3C3E44;
  padding: 10px 20px 0;
}
.ba__doc-text--comment {
  color: #C0392B;
  background: #FFF3CD;
  margin: 12px 20px 0;
  padding: 6px 10px;
  font-size: 12.5px;
}

/* ПОСЛЕ — свёрстанная книжная страница */
.ba__pane--after { background: var(--paper); }
.ba__page {
  position: absolute;
  inset: 24px;
  left: auto;
  width: min(560px, calc(100% - 48px));
  background: #FFFDF8;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(26,26,26,0.06), inset 12px 0 24px rgba(0,0,0,0.04);
  padding: 44px 52px 40px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 640px) { .ba__page { padding: 32px 28px 28px; } }

/* важно: внутри «страницы книги» — только чёрно-белое оформление,
   как в реальных EPUB Aegitas (читаемость на монохромных ридерах) */
.ba__chapter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 10px;
}
.ba__book-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 27px;
  text-align: center;
  margin: 0 0 24px;
}
.ba__text {
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  text-align: justify;
  text-indent: 1.4em;
  margin-bottom: 4px;
}
.ba__text--drop { text-indent: 0; }
.ba__text--drop::first-letter {
  font-weight: 700;
  font-size: 3.1em;
  line-height: 0.75;
  float: left;
  margin: 0.06em 0.1em 0 0;
  color: var(--ink);
}
.ba__folio {
  margin-top: auto;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--ink-soft);
}

/* бейджи */
.ba__badge {
  position: absolute;
  top: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 2;
}
.ba__badge--before { left: 16px; background: #3C3E44; color: #fff; }
.ba__badge--after { right: 16px; background: var(--red); color: #fff; }

/* ползунок */
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba-pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--red);
  z-index: 3;
  pointer-events: none;
}
.ba__handle-grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
}

.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px; height: 460px;
}
.ba__range::-moz-range-thumb {
  width: 44px; height: 460px;
  border: none;
  background: transparent;
}
.ba__range:focus-visible ~ * { outline: none; }
.ba:has(.ba__range:focus-visible) { outline: 3px solid rgba(232,0,28,0.4); outline-offset: 3px; }

.ba__note {
  margin-top: 16px;
  font-size: 13.5px;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--ink-soft);
  max-width: 880px;
}

/* на мобильных шторка нечитаема — показываем «до» и «после» друг под другом */
@media (max-width: 640px) {
  .ba {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
    box-shadow: none;
    user-select: auto;
  }
  .ba__pane {
    position: relative;
    inset: auto;
    clip-path: none !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding: 52px 16px 16px;
  }
  .ba__doc, .ba__page {
    position: relative;
    inset: auto;
    width: 100%;
  }
  .ba__pane--before { order: -1; }
  .ba__handle, .ba__range { display: none; }
}

/* ==========================================================================
   BOOK PAGE — страница книги
   ========================================================================== */
.book-hero {
  padding: 40px 0 72px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .book-hero { padding: 56px 0 96px; } }

.book-hero__inner {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 860px) {
  .book-hero__inner { grid-template-columns: 320px 1fr; gap: 64px; }
}

/* объёмная «физическая» обложка, как в Apple Books */
.book-hero__cover {
  max-width: 280px;
  margin: 0 auto;
  perspective: 1400px;
}
@media (min-width: 860px) { .book-hero__cover { max-width: 320px; margin: 0; } }

.book-hero__cover .book3d {
  position: relative;
  display: block;
  transform: rotateY(-18deg);
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}
.book-hero__cover:hover .book3d { transform: rotateY(-8deg); }

.book-hero__cover img {
  width: 100%;
  display: block;
  border-radius: 3px 14px 14px 3px;
  box-shadow:
    14px 20px 32px rgba(26, 26, 26, 0.22),
    32px 42px 80px rgba(26, 26, 26, 0.16);
}

/* корешок: блик и заглубление у левого края */
.book3d::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-radius: 3px 14px 14px 3px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(0, 0, 0, 0.22) 2.5%,
    rgba(255, 255, 255, 0.12) 5%,
    transparent 9%);
  pointer-events: none;
  z-index: 2;
}

/* стопка страниц у правого обреза */
.book3d::after {
  content: '';
  position: absolute;
  top: 1.2%;
  bottom: 1.2%;
  right: -9px;
  width: 9px;
  border-radius: 0 3px 3px 0;
  background:
    repeating-linear-gradient(180deg,
      #F6F2E9 0px, #F6F2E9 2px,
      #E5E0D4 2.6px, #F6F2E9 3.2px);
  transform: rotateY(24deg) translateZ(-4px);
  transform-origin: left center;
  box-shadow: 2px 3px 8px rgba(26, 26, 26, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .book-hero__cover .book3d,
  .book-hero__cover:hover .book3d { transform: none; transition: none; }
}

.book-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 8px;
}
.book-hero__subtitle {
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.book-hero__author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 32px;
}
.book-hero__author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.book-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  max-width: 560px;
}
.book-meta__item { display: flex; flex-direction: column; gap: 2px; }
.book-meta__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.book-meta__value { font-size: 15px; font-weight: 600; }

.book-hero__buy-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 12px;
  line-height: 1.4;
}
.book-hero__buy-seo {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 58ch;
}
.book-hero__buy-links { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: #fff;
  transition: all 0.2s ease;
}
.buy-link:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.buy-link--more { border-style: dashed; color: var(--ink-soft); }

/* где читать книги (раскрывающийся блок) */
.where-read {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.where-read summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  user-select: none;
  transition: color 0.2s ease;
}
.where-read summary::-webkit-details-marker { display: none; }
.where-read summary:hover { color: var(--red); }
.where-read__chev { transition: transform 0.25s ease; color: var(--ink-soft); }
.where-read[open] .where-read__chev { transform: rotate(180deg); }

.where-read__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px 0 20px;
}
.where-read__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.where-read__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.where-read__row h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  margin: 0 0 4px;
}
.where-read__row p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.where-read__row a {
  color: var(--red);
  border-bottom: 1px solid rgba(232, 0, 28, 0.3);
  transition: border-color 0.2s ease;
}
.where-read__row a:hover { border-color: var(--red); }

/* о книге */
.book-about { background: var(--bg-soft); }
.book-about__inner {
  display: grid;
  gap: 40px;
}
@media (min-width: 980px) { .book-about__inner { grid-template-columns: 1.4fr 0.8fr; gap: 64px; align-items: start; } }

.book-about__text p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 64ch;
}
.book-about__text .book-about__stat {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink);
  border-left: 3px solid var(--red);
  padding-left: 20px;
  margin-top: 28px;
}

.book-about__toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.book-about__toc h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
}
.book-about__toc ul { display: flex; flex-direction: column; }
.book-about__toc li {
  font-family: var(--font-serif);
  font-size: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.book-about__toc li:last-child { border-bottom: none; }

.book-cta { background: var(--bg); }
.book-cta .guarantee__inner { justify-content: space-between; }
.book-cta .btn { flex-shrink: 0; }

/* другие книги автора */
.author-books { background: var(--bg); }

.author-books__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (min-width: 640px) { .author-books__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .author-books__grid { grid-template-columns: repeat(5, 1fr); } }

.abook-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.abook-card__cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.abook-card:hover .abook-card__cover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* заглушка-обложка для книг без изображения: типографская */
.abook-card__cover--text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
  position: relative;
  overflow: hidden;
}
.abook-card__cover--text::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px 6px 6px 2px;
}
.abook-card__cover--text span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: #fff;
}

.abook-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.abook-card:hover .abook-card__title { color: var(--red); }

.author-books__more { margin-top: 36px; }

/* ==========================================================================
   CATALOG — каталог книг
   ========================================================================== */
.catalog { background: var(--bg); padding-top: 32px; }

/* фильтры */
.catalog__filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.catalog__search {
  position: relative;
  display: flex;
  align-items: center;
}
.catalog__search svg {
  position: absolute;
  left: 16px;
  color: var(--ink-soft);
  pointer-events: none;
}
.catalog__search input {
  width: 100%;
  font-family: var(--font-text);
  font-size: 15px;
  padding: 13px 16px 13px 46px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: #fff;
  transition: border-color 0.2s ease;
}
.catalog__search input:focus { outline: none; border-color: var(--red); }

/* minmax(0, 1fr) и width:100% у select: иначе колонка растягивалась по самому длинному пункту списка,
   и на телефоне правый столбец фильтров вылезал за край и обрезался (10.11.2026) */
.catalog__selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) { .catalog__selects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .catalog__selects { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.catalog__selects select {
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  font-family: var(--font-text);
  font-size: 14px;
  padding: 11px 32px 11px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236B6B6B' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.catalog__selects select:focus { outline: none; border-color: var(--red); }

.catalog__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.catalog__count { font-size: 14px; color: var(--ink-soft); }
.catalog__reset {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--red);
  border-bottom: 1.5px dashed var(--red);
  transition: opacity 0.2s ease;
}
.catalog__reset:hover { opacity: 0.7; }

/* сетка */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
@media (min-width: 640px) { .catalog__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .catalog__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .catalog__grid { grid-template-columns: repeat(6, 1fr); } }

.catalog-card { position: relative; }
.catalog-card.is-hidden { display: none; }
.catalog-card__author {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: -6px;
}
.catalog-card__meta {
  font-size: 12px;
  color: var(--ink-soft);
  opacity: 0.75;
}
.catalog-card__badge {
  position: absolute;
  top: 10px;
  left: -6px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 5px 12px;
  border-radius: 0 999px 999px 0;
  box-shadow: var(--shadow-sm);
}
.catalog-card__badge--audio { background: var(--navy); }

/* Аудиокниги — квадратная обложка (как у альбома), а не книжная 2:3 */
.catalog-card[data-format="audio"] .abook-card__cover {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

/* пустой результат */
.catalog__empty {
  text-align: center;
  padding: 72px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.catalog__empty-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 8px;
}
.catalog__empty-text { color: var(--ink-soft); font-size: 15px; }

/* ==========================================================================
   CENY — тарифы и прайс
   ========================================================================== */
.tariffs { background: var(--bg); padding-top: 40px; }

.tariffs__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 720px) { .tariffs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tariffs__grid { grid-template-columns: repeat(4, 1fr); } }

.tariff {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.tariff--featured {
  border: 2px solid var(--red);
  box-shadow: var(--shadow-md);
}
.tariff__badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.tariff__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
}
.tariff__price {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1;
}
.tariff__for {
  font-size: 14px;
  color: var(--ink-soft);
  min-height: 42px;
}
.tariff__list {
  list-style: none;
  padding: 14px 0 0;
  margin: 0 0 8px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tariff__list li {
  font-size: 14.5px;
  padding-left: 24px;
  position: relative;
}
.tariff__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}

.tariffs__note {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 76ch;
}
.tariffs__note a { color: var(--red); text-decoration: underline; }

/* уровни сложности */
.complexity { background: var(--bg-soft); }

.complexity__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .complexity__grid { grid-template-columns: repeat(3, 1fr); } }

.complexity__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.complexity__card h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 6px;
}
.complexity__card p { font-size: 14px; color: var(--ink-soft); }

/* аккордеоны прайса */
.price-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.price-acc { border-bottom: 1px solid var(--line); }
.price-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 2.2vw, 20px);
  user-select: none;
  transition: color 0.2s ease;
}
.price-acc summary::-webkit-details-marker { display: none; }
.price-acc summary:hover { color: var(--red); }
.price-acc[open] summary { color: var(--red); }
.price-acc[open] .where-read__chev { transform: rotate(180deg); }

.price-acc__body { padding: 0 4px 28px; }
.price-acc__body > p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 76ch;
  margin-bottom: 18px;
}
.price-acc__body a { color: var(--red); text-decoration: underline; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}
.price-table th, .price-table td {
  border: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
}
.price-table th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
}
.price-table td:not(:first-child) {
  font-weight: 700;
  white-space: nowrap;
}
.price-table tr:nth-child(even) td { background: var(--bg-soft); }

.price-table__note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 76ch;
}

/* всплывающая подсказка (hover и фокус с клавиатуры) */
.tip {
  position: relative;
  border-bottom: 1.5px dotted var(--red);
  cursor: help;
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  padding: 9px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: max-content;
  max-width: 240px;
  white-space: normal;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}
.tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 20;
}
.tip:hover::after, .tip:focus-visible::after,
.tip:hover::before, .tip:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.tip:focus-visible { outline: none; }

@media (max-width: 640px) {
  .price-table { display: block; overflow-x: auto; }
}

/* ==========================================================================
   PRODAVAT — площадки и роялти
   ========================================================================== */
.formats__grid--two { grid-template-columns: 1fr; }
@media (min-width: 768px) { .formats__grid--two { grid-template-columns: repeat(2, 1fr); } }

.stores { background: var(--bg-soft); }

.stores__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .stores__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stores__grid { grid-template-columns: repeat(4, 1fr); } }

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.store-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.store-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
}
.store-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
}
.store-card__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--red);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
}
.store-card:hover .store-card__arrow { opacity: 1; transform: none; }

.stores__note {
  margin-top: 24px;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
}

/* роялти — три факта */
.royalty { background: var(--bg); }

.royalty__facts {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .royalty__facts { grid-template-columns: repeat(3, 1fr); } }

.royalty__fact {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.royalty__fact strong {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  margin-bottom: 12px;
}
.royalty__fact p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.royalty__note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 72ch;
}

/* ==========================================================================
   PRINT CALC — калькулятор печати (/napechatat)
   ========================================================================== */
.print-calc { background: var(--bg-soft); }

.calc {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 980px) { .calc { grid-template-columns: 1.5fr 0.9fr; gap: 40px; } }

.calc__params {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.calc__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  margin-bottom: 12px;
  display: block;
}
.calc__label strong { color: var(--red); }

/* радио-чипы */
.calc__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.calc__chip { cursor: pointer; }
.calc__chip input { position: absolute; opacity: 0; pointer-events: none; }
.calc__chip span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}
.calc__chip em {
  font-style: normal;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-soft);
}
.calc__chip:hover span { border-color: var(--red); }
.calc__chip input:checked + span {
  border-color: var(--red);
  background: rgba(232, 0, 28, 0.06);
  color: var(--red);
}
.calc__chip input:checked + span em { color: var(--red); opacity: 0.75; }
.calc__chip input:focus-visible + span { outline: 3px solid rgba(232,0,28,0.35); outline-offset: 2px; }

/* число страниц + тираж */
.calc__group--row {
  display: grid;
  gap: 28px;
}
@media (min-width: 640px) { .calc__group--row { grid-template-columns: 180px 1fr; } }

.calc__num input {
  width: 100%;
  font-family: var(--font-text);
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: border-color 0.2s ease;
}
.calc__num input:focus { outline: none; border-color: var(--red); background: #fff; }

.calc__range input[type="range"] {
  width: 100%;
  height: 6px;
  margin-top: 14px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.calc__range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
}
.calc__range input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
}
.calc__range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* чекбоксы услуг */
.calc__checks { display: flex; flex-direction: column; gap: 12px; }
.calc__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
}
.calc__check input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--red);
  flex-shrink: 0;
}
.calc__check em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 13.5px;
}

/* сводка */
.calc__summary {
  position: sticky;
  top: 96px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.calc__summary-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.calc__summary-copy {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
}
.calc__summary-unit {
  font-family: var(--font-text);
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
}
.calc__summary-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
}
.calc__summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
}
.calc__summary-row strong { color: #fff; font-weight: 700; }
.calc__summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  font-family: var(--font-display);
  font-weight: 800;
}
.calc__summary-total strong { font-size: 26px; }
.calc__summary-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

/* select в формах */
.form-field select {
  font-family: var(--font-text);
  font-size: 15px;
  padding: 13px 40px 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236B6B6B' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  width: 100%;
}
.form-field select:focus { outline: none; border-color: var(--red); background-color: #fff; }

/* пагинация */
.catalog__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}
a.page-num:hover { border-color: var(--red); color: var(--red); }
.page-num--current { background: var(--red); border-color: var(--red); color: #fff; }
.page-dots { color: var(--ink-soft); padding: 0 4px; }

/* Перенесено из макета 16.11.2026 (books/_detail.php, js/buy.js) */
/* ==========================================================================
   Блок покупки — вариант A (11.11.2026): главная кнопка + остальные магазины ссылками.
   Старые .buy-link оставлены выше на случай отката, в новой разметке не используются.
   ========================================================================== */
.buy-main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.buy-main__cta { gap: 10px; }
.buy-main__cta svg { flex-shrink: 0; transition: transform 0.2s ease; }
.buy-main__cta:hover svg { transform: translateX(3px); }
.buy-main__price { font-weight: 700; opacity: 0.92; }
.buy-main__fragment {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink);
  border-bottom: 2px solid var(--line); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
}
.buy-main__fragment:hover { color: var(--red); border-color: var(--red); }
.buy-main__fragment svg { width: 18px; height: 18px; }
.buy-alt { margin-top: 16px; font-size: 14px; color: var(--ink-soft); line-height: 1.9; max-width: 60ch; }
.buy-alt__links a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.buy-alt__links a:hover { color: var(--red); border-color: var(--red); }
.buy-note { margin-top: 6px; font-size: 12px; color: var(--ink-soft); opacity: 0.85; }
@media (max-width: 559px) {
  .buy-main__cta { width: 100%; }
}

/* Состояния блока покупки: «Скоро в продаже» и «Снята с продажи» (11.11.2026).
   Плашка того же размера, что и главная кнопка, но некликабельная.
   В продаже — фирменный красный (.btn--primary); скоро — тёплый янтарный (ожидание, позитив);
   снята — нейтральный серый (информация, без призыва к действию). */
.buy-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  padding: 15px 28px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: default; user-select: none;
}
.buy-status svg { flex-shrink: 0; }
.buy-status--soon { background: #FFF3D6; color: #8A5300; border-color: #F2C76E; }
.buy-status--withdrawn { background: #EEEBE4; color: #6B6B6B; border-color: #DCD7CC; }
.buy-alt__inline { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.buy-alt__inline:hover { color: var(--red); border-color: var(--red); }
@media (max-width: 559px) { .buy-status { width: 100%; justify-content: center; } }
