/* ronic.kz — сайт Виктора Рогожкина. Локальная версия. */
:root {
  color-scheme: dark;
  --bg: #050a14;
  --panel: rgba(12, 18, 32, 0.86);
  --panel-solid: #0c1220;
  --line: rgba(150, 170, 210, 0.22);
  --text: #eef1f7;
  --muted: #b3bccc;
  --blue: #7cc0ff;
  --pink: #f48fc0;
  --gold: #f3c77a;
  --radius: 16px;
  --head: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); }
[hidden] { display: none !important; }
a { color: var(--blue); }
a:hover { color: #b9dcff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
img, video { display: block; max-width: 100%; }

/* Космический фон: статичный, за содержимым, с затемнением. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-color: #030914;
  background-image: linear-gradient(rgba(3,8,18,.45), rgba(3,8,18,.78)), url("assets/background/cosmos-loop-poster-1920.jpg");
  background-image: linear-gradient(rgba(3,8,18,.45), rgba(3,8,18,.78)), image-set(url("assets/background/cosmos-loop-poster-1920.webp") type("image/webp") 1x, url("assets/background/cosmos-loop-poster-1920.jpg") type("image/jpeg") 1x);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
@media (max-width: 700px) {
  body::before { background-image: linear-gradient(rgba(3,8,18,.55), rgba(3,8,18,.82)), url("assets/background/cosmos-loop-poster-720.webp"); }
}
/* Анимированный фон: видео поверх статичной картинки, сверху затемнение для читаемости текста. */
.bg-video { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; background: #030914; }
.bg-shade { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, rgba(3,8,18,.38), rgba(3,8,18,.62) 70%), linear-gradient(rgba(3,8,18,.18), rgba(3,8,18,.42)); }
@media (max-width: 700px) { .bg-shade { background: linear-gradient(rgba(3,8,18,.5), rgba(3,8,18,.72)); } }

.wrap { position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(4, 8, 16, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--text); line-height: 1.2; padding: 8px 0; }
.brand b { font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: .03em; }
.brand span { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; padding: 12px 0; }
.nav a:hover { color: var(--blue); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: 500 15px var(--body); cursor: pointer; }
.cart-btn:hover { border-color: var(--blue); }
.cart-count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--pink); color: #1a0a12; font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 16px var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--blue); color: #04101f; }
.btn-primary:hover { background: #a9d6ff; color: #04101f; }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--text); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 15px; }

/* Первый экран */
.hero { padding: 72px 0 56px; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 999 1 460px; min-width: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.hero h1 { font-family: var(--head); font-weight: 700; font-size: clamp(38px, 6vw, 72px); line-height: 1.04; margin: 0 0 18px; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 19px; color: #d6dcea; max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 22px; font-size: 15px; color: var(--muted); }
.hero-covers { flex: 1 1 380px; display: flex; justify-content: center; align-items: flex-end; min-height: 380px; }
.hero-covers img { width: 34%; max-width: 190px; height: auto; border-radius: 4px; box-shadow: 0 24px 50px rgba(0,0,0,.7); }
.hero-covers img:nth-child(1) { transform: rotate(-7deg) translateX(22%); }
.hero-covers img:nth-child(2) { position: relative; z-index: 2; width: 40%; max-width: 230px; }
.hero-covers img:nth-child(3) { transform: rotate(7deg) translateX(-22%); }

/* Витрина: окно из двух частей (как страница игры на VK Play) */
/* Узкая тёмная полоса в самом верху сайта */
.top-strip { position: relative; z-index: 21; background: #02040a; border-bottom: 1px solid rgba(150,170,210,.14); }
.top-strip .container { display: flex; justify-content: center; align-items: center; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.top-strip h1 { margin: 0; font-family: var(--body); font-weight: 500; font-size: clamp(16px, 4.3vw, 28px); line-height: 1.3; letter-spacing: .06em; color: #c9d1de; text-align: center; }
.top-strip h1 span { color: #e9edf5; }
@media (max-width: 480px) { .top-strip h1 { letter-spacing: .01em; white-space: nowrap; } }
.showcase { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: rgba(6, 10, 20, 0.72); backdrop-filter: blur(6px); }
.sc-media { position: relative; min-height: 560px; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 55%, rgba(124,192,255,.12), transparent 70%), rgba(2,4,10,.55); border-right: 1px solid var(--line); }
.sc-media video, .sc-media img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.sc-toggle { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(4,8,16,.8); color: var(--text); font: 500 14px var(--body); cursor: pointer; }
.sc-toggle:hover { border-color: var(--blue); }
.sc-info { padding: 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.chip-blue { background: rgba(124,192,255,.16); border-color: rgba(124,192,255,.45); color: #cfe7ff; }
.chip-gold { color: var(--gold); }
.chip-pink { color: #ffd1e6; background: rgba(244,143,192,.14); border-color: rgba(244,143,192,.5); }
.sc-title { font-family: var(--head); font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; margin: 0; }
.sc-sub { margin: -6px 0 0; color: var(--muted); }
.sc-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sc-price { display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; }
.sc-price span { font-size: 13px; color: var(--muted); }
.sc-price b { font-size: 20px; }
.sc-facts { display: grid; gap: 8px; margin: 0; font-size: 15px; }
.sc-facts div { display: flex; justify-content: space-between; gap: 12px; }
.sc-facts dt { color: var(--muted); }
.sc-facts dd { margin: 0; text-align: right; font-weight: 500; }
.sc-thumbs-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 4px 0 -6px; }
.sc-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sc-thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; background: #060a12; cursor: pointer; aspect-ratio: 2 / 3; overflow: hidden; opacity: .7; }
.sc-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sc-thumb:hover { opacity: 1; }
.sc-thumb[aria-pressed="true"] { border-color: var(--blue); opacity: 1; }
.sc-groups { display: flex; gap: 12px; align-items: flex-start; }
.sc-group { flex: 1 1 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sc-group + .sc-group { border-left: 1px solid var(--line); padding-left: 12px; }
.sc-group-label { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.3; min-height: 2.6em; }
.g-blue .sc-group-label { color: var(--blue); }
.g-pink .sc-group-label { color: var(--pink); }
.g-gold .sc-group-label { color: var(--gold); }
.sc-thumbs { gap: 8px; }

/* Трилогия — отдельный выделенный блок */
.series-block { border-radius: 24px; padding: 32px; background: linear-gradient(135deg, rgba(124,192,255,.14), rgba(6,10,20,.75) 45%); border: 1px solid rgba(124,192,255,.4); box-shadow: 0 0 0 1px rgba(124,192,255,.08) inset, 0 30px 80px rgba(0,0,0,.35); }
.series-block .book { background: rgba(8, 14, 28, .9); }
.fans-block { background: linear-gradient(135deg, rgba(244,143,192,.16), rgba(6,10,20,.75) 45%); border-color: rgba(244,143,192,.45); }
.fans-block .eyebrow { color: var(--pink); }
.fantasy-block { background: linear-gradient(135deg, rgba(243,199,122,.14), rgba(6,10,20,.75) 45%); border-color: rgba(243,199,122,.4); }
.fantasy-block .eyebrow { color: var(--gold); }
.fans-block .book .series { color: #ffb3d6; }
.series-new { color: var(--pink) !important; font-weight: 600; }
.badge-new { color: #ffd1e6; border-color: rgba(244,143,192,.6); background: rgba(60,12,36,.9); }
@media (max-width: 640px) { .series-block { padding: 18px; border-radius: 18px; } }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .sc-media { min-height: 0; aspect-ratio: 4 / 5; border-right: 0; border-bottom: 1px solid var(--line); }
  .sc-info { padding: 22px; }
}

/* Преимущества */
.perks { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(4, 8, 16, 0.7); }
.perks .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; padding-top: 24px; padding-bottom: 24px; }
.perk { display: flex; gap: 12px; align-items: flex-start; }
.perk svg { flex: none; color: var(--blue); }
.perk b { display: block; font-weight: 600; }
.perk span { font-size: 15px; color: var(--muted); }

/* Разделы */
.section { padding: 72px 0 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section h2 { font-family: var(--head); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0; }
.section-sub { color: var(--muted); margin: 6px 0 0; }

/* Карточки книг */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.book { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.media { position: relative; aspect-ratio: 2 / 3; background: #060a12; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.media picture, .media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.media picture { display: block; }
.media img, .media video { width: 100%; height: 100%; object-fit: contain; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(4,8,16,.85); border: 1px solid var(--line); color: var(--gold); }
.book h3 { font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1.25; margin: 16px 0 4px; }
.book .series { font-size: 14px; color: var(--gold); margin: 0; }
.book .meta { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.book .price { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.book .price span { color: var(--muted); }
.book .price b { font-weight: 600; }
.book-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.book-actions .btn { width: 100%; }
.anim-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.status { color: #ffc2b0; font-size: 14px; margin: 8px 0 0; }
.status:empty { display: none; }
.sound-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.in-work .book { opacity: .95; }
.in-work .note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

/* Экранизация */
.film { margin-top: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.film-text { flex: 999 1 380px; min-width: 0; }
.film-text h2 { margin-bottom: 12px; }
.film-text p { color: #d6dcea; margin: 0 0 20px; }
.film-slot { flex: 1 1 320px; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px dashed rgba(180,195,225,.4); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 15px; padding: 16px; background: rgba(0,0,0,.35); }

/* Об авторе */
.author { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.author-photo { flex: 0 1 300px; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.author-photo img { width: 100%; height: auto; display: block; }
.author-text { flex: 999 1 380px; min-width: 0; }
.todo { border: 1px dashed rgba(243,199,122,.6); border-radius: 10px; padding: 12px 14px; color: var(--gold); font-size: 15px; background: rgba(243,199,122,.06); }

/* Подписка */
.subscribe { margin: 72px 0 0; border-radius: 20px; padding: 36px; background: linear-gradient(120deg, rgba(124,192,255,.18), rgba(244,143,192,.18)); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.subscribe h2 { font-family: var(--head); font-size: 26px; margin: 0 0 6px; }
.subscribe p { margin: 0; color: #d6dcea; }
.subscribe form { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 360px; }
.subscribe input { flex: 1 1 200px; }

/* Поля форм */
label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; color: #d6dcea; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(180,195,225,.35); background: rgba(3,6,12,.75); color: var(--text); font: 16px var(--body); }
textarea { min-height: 90px; resize: vertical; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Подвал */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); background: rgba(2, 5, 10, 0.88); }
.site-footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-top: 40px; padding-bottom: 40px; font-size: 15px; }
.site-footer h3 { font-size: 15px; margin: 0 0 10px; }
.site-footer p { margin: 0 0 6px; color: var(--muted); }
.site-footer a { display: block; margin: 0 0 6px; }

/* Корзина */
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(100%, 460px); background: var(--panel-solid); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--head); font-size: 20px; margin: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 56px; height: auto; border-radius: 3px; flex: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info b { display: block; font-size: 15px; }
.cart-item-info select { min-height: 40px; margin-top: 6px; font-size: 14px; padding: 6px 10px; }
.remove-btn { background: none; border: 0; color: var(--muted); font: 14px var(--body); cursor: pointer; text-decoration: underline; min-height: 44px; padding: 0 4px; }
.cart-empty { color: var(--muted); }
.kaspi-box { border-radius: 12px; padding: 14px 16px; background: rgba(241,70,53,.1); border: 1px solid rgba(241,70,53,.45); font-size: 15px; }
.kaspi-box b { color: #ff8c80; }
.form-grid { display: grid; gap: 12px; }
.btn-kaspi { background: #c8321f; color: #fff; width: 100%; }
.btn-kaspi:hover { background: #dd3d29; color: #fff; }
.form-msg { font-size: 15px; border-radius: 10px; padding: 12px 14px; background: rgba(124,192,255,.12); border: 1px solid rgba(124,192,255,.4); }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 40px; }
  .hero-covers { min-height: 260px; }
  .film, .author, .subscribe { padding: 22px; }
  .site-header .container { gap: 0 12px; min-height: 0; padding-top: 6px; padding-bottom: 4px; }
  .brand { order: 1; }
  .cart-btn { order: 2; }
  .nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 0 18px; scrollbar-width: none; }
  .nav a { white-space: nowrap; font-size: 14px; }
  .cart-btn span:not(.cart-count) { display: none; }
  .cart-btn span:not(.cart-count) + .cart-count { display: inline-grid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.author-bio p { margin: 0 0 14px; font-size: 18px; line-height: 1.7; color: #dde3ee; }
.author-bio p:last-child { margin-bottom: 0; }

/* Искры по заголовку: блик бежит по буквам, вдоль текста пролетают искры */
.spark-title { position: relative; display: inline-block; }
.spark-title::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, transparent 42%, rgba(255,255,255,.0) 44%, #fff 48%, #ffe7a8 50%, #fff 52%, rgba(255,255,255,0) 56%, transparent 100%);
  background-size: 250% 100%; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 3px rgba(255,220,150,.55));
  animation: spark-sweep 6s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes spark-sweep { 0% { background-position: 130% 0; } 70%, 100% { background-position: -30% 0; } }
.spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: #fff6d8; box-shadow: 0 0 4px 1px rgba(255,214,120,.8);
  animation: spark-fly 6s linear infinite; }
.spark.s2, .spark.s5 { background: #e6f4ff; box-shadow: 0 0 4px 1px rgba(124,192,255,.8); }
.spark.s4 { background: #ffe6f2; box-shadow: 0 0 4px 1px rgba(244,143,192,.8); }
.spark.s1 { top: 18%; animation-delay: 0s; }
.spark.s2 { top: 62%; animation-delay: .35s;  }
.spark.s3 { top: 38%; animation-delay: .7s; }
.spark.s4 { top: 80%; animation-delay: 1.05s;  }
.spark.s5 { top: 8%; animation-delay: 1.9s;  }
.spark.s6 { top: 50%; animation-delay: 2.3s; }
.spark.s7 { top: 72%; animation-delay: 2.8s;  }
@keyframes spark-fly {
  0% { left: -2%; opacity: 0; transform: translateY(0) scale(.6); }
  8% { opacity: 1; transform: translateY(-3px) scale(1.2); }
  30% { opacity: .9; transform: translateY(2px) scale(.9); }
  50% { opacity: 1; transform: translateY(-2px) scale(1.1); }
  65% { left: 102%; opacity: 0; transform: translateY(1px) scale(.5); }
  100% { left: 102%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .spark-title::after, .spark { animation: none; display: none; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); background: rgba(4,8,16,.6); }
.tag-work { color: #ffd59a; border-color: rgba(243,199,122,.45); }

.sc-about { margin: 0; font-size: 16px; line-height: 1.65; color: #d6dcea; white-space: pre-line; }

/* Обложка и название в каталоге открывают книгу в большом окне наверху */
button.media { width: 100%; padding: 0; border: 0; cursor: pointer; font: inherit; color: inherit; }
button.media:hover { outline: 2px solid rgba(124,192,255,.55); outline-offset: 2px; }
.title-btn { all: unset; cursor: pointer; }
.title-btn:hover { color: var(--blue); }
.title-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 560px) {
  .sc-groups { flex-wrap: wrap; row-gap: 14px; }
  .sc-group { flex: 1 1 100%; }
  .sc-group.g-pink, .sc-group.g-gold { flex: 1 1 0; }
  .sc-group.g-pink { border-left: 0; padding-left: 0; }
  .sc-group .sc-thumbs { max-width: 260px; }
}

/* Тизер сериала */
.film-player { position: relative; flex: 1 1 420px; min-width: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.film-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

.sound-btn { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(4,8,16,.82); color: #fff; font: 600 15px var(--body); cursor: pointer; }
.sound-btn:hover { background: rgba(124,192,255,.9); color: #04101f; border-color: transparent; }

/* Аудиокнига */
.tag-audio { color: #cfe7ff; border-color: rgba(124,192,255,.5); background: rgba(124,192,255,.12); }
.sc-audio { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; background: rgba(124,192,255,.08); border: 1px solid rgba(124,192,255,.3); }
.sc-audio-title { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: #cfe7ff; }
.sc-audio audio { width: 100%; }
.sc-audio .todo { margin: 0; font-size: 14px; }

/* Кадр-заставка сериала на главной */
.film-poster { position: relative; display: block; flex: 1 1 420px; min-width: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.film-poster img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.film-poster:hover img { transform: scale(1.03); }
.film-play { position: absolute; left: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(4,8,16,.75); border: 1px solid rgba(255,255,255,.4); color: #fff; }
.film-poster:hover .film-play { background: var(--blue); color: #04101f; }

/* Страница сериала */
.serial-hero { padding-top: 32px; }
.back-link { margin: 0 0 16px; }
.back-link a { text-decoration: none; font-weight: 500; }
.serial-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.serial-card .film-player { border-radius: 0; border: 0; box-shadow: none; }
.serial-text { padding: 32px 36px 36px; max-width: 860px; }
.serial-title { font-family: var(--head); font-weight: 700; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; margin: 0 0 18px; }
.serial-text p { font-size: 18px; line-height: 1.7; color: #dde3ee; margin: 0 0 14px; }
.serial-text .eyebrow { font-size: 13px; margin-bottom: 10px; }
.serial-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 640px) { .serial-text { padding: 22px; } .serial-text p { font-size: 16px; } }
.sc-narrators { margin: 0; font-size: 15px; line-height: 1.5; color: #dde3ee; }
.sc-narrators a { font-weight: 600; }
.sc-narrators { display: flex; flex-direction: column; gap: 2px; }
.nar-label { color: var(--muted); font-size: 14px; }
.nar-names a { white-space: nowrap; }

/* Выбор страны в корзине */
.country-pick { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; }
.country-pick legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 6px; }
.country-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.country-opts label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; font-size: 15px; color: var(--text); cursor: pointer; }
.country-opts input { width: 18px; height: 18px; min-height: 0; accent-color: var(--blue); }
.country-note { margin: -4px 0 0; font-size: 14px; color: var(--muted); }
.store-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.store-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(124,192,255,.45); text-decoration: none; font-size: 14px; font-weight: 600; }
.store-links a:hover { background: var(--blue); color: #04101f; }
.ru-stores { font-size: 14px; color: var(--muted); border-radius: 12px; padding: 12px 14px; background: rgba(124,192,255,.08); border: 1px solid rgba(124,192,255,.3); }
.card-box { border-radius: 12px; padding: 14px 16px; background: rgba(124,192,255,.1); border: 1px solid rgba(124,192,255,.45); font-size: 15px; }
.card-box b { color: #cfe7ff; }
select:disabled { opacity: .8; }

/* Шапка: кабинет и корзина рядом */
.head-actions { display: flex; align-items: center; gap: 8px; }
.account-btn { text-decoration: none; }
@media (max-width: 640px) { .account-btn span { display: none; } .head-actions { order: 2; } }

/* Личный кабинет */
.account-hero { padding-top: 32px; }
.account-head { margin-bottom: 24px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; align-items: start; }
.account-grid.single { grid-template-columns: minmax(0, 560px); }
.acc-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.section .acc-card .acc-card-title { font-family: var(--head); font-size: 22px; line-height: 1.25; margin: 0 0 18px; }
.acc-card p { color: #d6dcea; margin: 0 0 12px; }
.acc-forgot { margin: -4px 0 4px !important; }
.acc-perks { margin: 0 0 20px; padding-left: 20px; color: #d6dcea; line-height: 1.6; }
.acc-perks li { margin-bottom: 6px; }
.acc-new { border-color: rgba(124,192,255,.35); }
.acc-check { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 400; font-size: 15px; color: #d6dcea; cursor: pointer; }
.acc-check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--blue); flex: none; }
.acc-switch { font-size: 15px; margin: 4px 0 0 !important; }

/* Шапка в одну строку: «Книги» слева, меню точно по центру, кабинет и корзина справа */
.site-header .container { max-width: 1440px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 20px; flex-wrap: nowrap; }
.site-header .brand { justify-self: start; }
.site-header .nav { justify-content: center; flex-wrap: nowrap; gap: 0 clamp(12px, 1.4vw, 22px); }
.site-header .nav a { white-space: nowrap; }
.head-actions { justify-self: end; }
@media (max-width: 1700px) { .account-btn span { display: none; } .account-btn { padding: 0 12px; } }
@media (max-width: 1180px) {
  .site-header .container { grid-template-columns: auto 1fr; row-gap: 4px; padding-top: 6px; padding-bottom: 4px; }
  .site-header .nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .site-header .nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
}

/* Пункты меню — такие же овальные кнопки, как «Личный кабинет» и «Корзина» */
.site-header .nav { gap: 8px; }
.site-header .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; transition: border-color .2s, background .2s; }
.site-header .nav a:hover { border-color: var(--blue); color: var(--text); background: rgba(124,192,255,.08); }
.cart-btn:hover, .account-btn:hover { background: rgba(124,192,255,.08); }
@media (max-width: 1380px) { .site-header .nav a { padding: 0 12px; font-size: 14px; } .site-header .nav { gap: 6px; } }
@media (max-width: 1280px) {
  .site-header .container { grid-template-columns: auto 1fr; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .site-header .nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 640px) {
  .site-header .nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .site-header .nav a { min-height: 38px; }
}
.site-header .container { max-width: 1680px; }

/* Ряд меток всегда занимает место — карточки с меткой и без выровнены */
.book .tags { min-height: 30px; align-items: flex-start; }

/* Нижняя часть карточек (цена + кнопка) всегда прижата к низу — кнопки на одной линии */
.book .price { margin-top: auto; }
.book .tags + .price, .book h3 ~ .price { margin-top: auto; }
.book .book-actions .btn { min-height: 52px; }
.book .tags { margin-bottom: 14px; }

/* Цены в корзине, итог, скрытое поле-ловушка для ботов */
.cart-price { display: block; margin-top: 6px; font-size: 14px; color: var(--gold); font-variant-numeric: tabular-nums; }
.cart-total { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book .price b, .sc-price b { font-variant-numeric: tabular-nums; }
#sc-formats .fmt-row { display: flex; justify-content: flex-end; gap: 12px; white-space: nowrap; }
#sc-formats .fmt-row b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 9.5em; text-align: right; }

/* Вход для автора — в самом низу подвала */
.footer-admin { border-top: 1px solid var(--line); padding-top: 14px !important; padding-bottom: 18px !important; display: flex !important; justify-content: flex-end; }
.admin-login { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 14px; }
.admin-login label { color: var(--muted); margin-right: 4px; }
.admin-login input { width: 170px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: inherit; }
.admin-login input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.admin-login button { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.admin-login button:hover { border-color: var(--blue); background: rgba(124,192,255,.1); }
@media (max-width: 640px) { .footer-admin { justify-content: flex-start; } .admin-login input { flex: 1 1 140px; } }
.admin-login label { margin: 0 4px 0 0 !important; line-height: 40px; display: inline !important; }

/* Скидка: старая цена зачёркнута, метка «Скидка N % до …» */
.price-old { color: var(--muted); font-weight: 400; text-decoration-thickness: 1.5px; margin-right: 2px; }
.tag-sale { color: #1a0a12; background: var(--pink); border-color: var(--pink); }
#sc-sale { margin-top: 6px; display: inline-flex; width: max-content; }
#sc-sale[hidden] { display: none; }

/* ---------- Личный кабинет: сообщения, кабинет, полка ---------- */
.form-msg.is-err { background: rgba(244,143,192,.12); border-color: rgba(244,143,192,.5); }
.acc-notice { margin: 0 0 20px; }
.acc-notice a { color: var(--blue); }
.cab-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cab-hello { font-family: var(--head); font-size: clamp(22px, 2.6vw, 30px) !important; margin: 0 !important; }
.cab-head .btn, .cab-confirm .btn, .acc-card .btn, .nn-actions .btn, .apply-form .btn { border-radius: 999px; }
.cab-confirm { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 20px; border-radius: 14px; border: 1px solid rgba(243,199,122,.45); background: rgba(243,199,122,.08); }
.cab-confirm p { margin: 0; flex: 1 1 320px; }
.sub-status { margin: 0 0 14px; color: #d6dcea; }
.sub-price { margin: 4px 0; font-size: 20px; font-weight: 600; color: var(--gold); }
.shelf { display: grid; gap: 12px; }
.shelf-book { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 12px; border: 1px solid transparent; color: var(--text); text-decoration: none; }
.shelf-book:hover { border-color: var(--line); background: rgba(255,255,255,.03); }
.shelf-book img { width: 56px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; flex: none; }
.shelf-title { display: block; font-weight: 600; }
.shelf-meta { display: block; font-size: 14px; color: var(--muted); }
.shelf-empty { color: var(--muted); }
.cab-settings { margin-top: 24px; }
.cab-settings summary { cursor: pointer; font-weight: 600; }
.cab-settings .acc-check { margin: 16px 0; }
.cab-settings h3 { margin: 8px 0 0; font-size: 17px; }
.cab-settings .form-grid { max-width: 420px; }

/* ---------- «Новые имена» ---------- */
.newnames { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.newnames-head p:not(.eyebrow) { max-width: 640px; color: #d6dcea; margin: 12px 0 0; }
.nn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; margin-top: 28px; }
.nn-grid[hidden] { display: none; }
.nn-card { display: flex; gap: 18px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.nn-card.is-featured { border-color: rgba(244,143,192,.55); }
.nn-card img { width: 120px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; flex: none; align-self: flex-start; }
.nn-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.nn-badge { margin-bottom: 4px; }
.nn-title { font-family: var(--head); font-size: 18px; line-height: 1.25; margin: 0; }
.nn-author { margin: 0; font-weight: 600; color: var(--gold); }
.nn-meta { margin: 0; font-size: 14px; color: var(--muted); }
.nn-annot { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: #d6dcea; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.nn-annot.is-open { display: block; -webkit-line-clamp: unset; }
.nn-more { background: none; border: 0; padding: 4px 0; color: var(--blue); font: 500 14px var(--body); cursor: pointer; }
.nn-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.nn-link { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 999px; }
.nn-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.nn-lead { max-width: 720px; color: #d6dcea; font-size: 17px; line-height: 1.6; margin: 0; }
.nn-empty { margin-top: 24px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.apply-text h2 { margin-bottom: 18px; }
.apply-text h3 { font-size: 18px; margin: 28px 0 12px; }
.apply-steps { padding-left: 22px; line-height: 1.6; color: #d6dcea; margin: 0; }
.apply-steps li { margin-bottom: 8px; }
.nn-packages { display: grid; gap: 12px; }
.nn-pk { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); display: grid; gap: 2px; }
.nn-pk.is-featured { border-color: rgba(244,143,192,.55); }
.nn-pk-price { color: var(--gold); font-weight: 600; }
.nn-pk-days { font-size: 14px; color: var(--muted); }
.nn-pk p { margin: 6px 0 0; font-size: 14px; color: #d6dcea; }
.apply-rules { font-size: 14px; color: var(--muted); line-height: 1.55; margin-top: 20px; }
.apply-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apply-form textarea { width: 100%; min-height: 140px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font: inherit; resize: vertical; }
.apply-count { display: block; text-align: right; color: var(--muted); font-size: 13px; margin-top: 4px; }
.apply-links { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.apply-links legend { padding: 0; margin-bottom: 6px; font-weight: 500; }
.apply-form input[type=file] { padding: 10px 0; min-height: 0; border: 0; background: none; }
@media (max-width: 900px) { .apply { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .newnames { padding: 22px; }
  .nn-card { flex-direction: column; }
  .nn-card img { width: 140px; }
  .apply-row { grid-template-columns: 1fr; }
}
#sub-form .country-pick { display: flex; flex-wrap: wrap; gap: 6px 18px; }
#sub-form .country-pick label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; cursor: pointer; min-height: 36px; }
#sub-form .country-pick input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--blue); flex: none; }

/* Площадки сериала */
.serial-where { font-family: var(--head); font-size: 22px; margin: 28px 0 10px; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 8px; }
.platform { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
.platform svg { width: 24px; height: 24px; flex: none; }
a.platform:hover { border-color: var(--blue); background: rgba(124,192,255,.08); }
.platform.is-soon { opacity: .55; cursor: default; }
.platform small { font-weight: 400; font-size: 13px; color: var(--muted); }
.section .serial-text h2.serial-where { font-size: 22px; line-height: 1.3; margin: 30px 0 6px; }
.meta-note { font-size: 13px !important; line-height: 1.5 !important; color: var(--muted) !important; margin: 6px 0 0 !important; }
.platform img { width: 28px; height: 28px; flex: none; border-radius: 7px; }
.platform.is-soon img { filter: grayscale(.4); }
.site-footer .credits { font-size: 12px; color: var(--muted); }
.site-footer .credits a { color: inherit; }

/* «Поддержать сериал» */
.support { margin: 6px 0 4px; }
.support-open { border-radius: 999px; }
.support-box { margin-top: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.03); display: grid; gap: 16px; max-width: 720px; }
.support-box[hidden] { display: none; }
.section .support-box h3 { font-family: var(--head); font-size: 20px; margin: 0; }
.support-box fieldset { border: 0; padding: 0; margin: 0; }
.support-box legend { padding: 0; margin-bottom: 8px; font-weight: 500; }
.support-country { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.support-country legend { width: 100%; }
.support-country label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
.support-country input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--blue); }
.support-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.support-preset { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: 600 15px var(--body); cursor: pointer; font-variant-numeric: tabular-nums; }
.support-preset:hover { border-color: var(--blue); }
.support-preset[aria-pressed="true"] { border-color: var(--blue); background: rgba(124,192,255,.16); }
.support-own { display: inline-flex; align-items: center; gap: 10px; }
.support-own input { width: 140px; }
.support-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.support-wide { grid-column: 1 / -1; }
.support-box .btn { border-radius: 999px; justify-self: start; }
.section .support-box .support-note { font-size: 13px; color: var(--muted); margin: 0; }
@media (max-width: 560px) { .support-box { padding: 18px; } .support-fields { grid-template-columns: 1fr; } }

/* Страница заказа */
.thanks { max-width: 760px; }
.th-lead { font-size: 18px; line-height: 1.6; color: #d6dcea; margin: 12px 0 18px; }
.th-items { margin: 0 0 22px; padding-left: 20px; color: var(--muted); }
.th-downloads { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); margin-bottom: 22px; }
.section .th-downloads h2 { font-family: var(--head); font-size: 20px; margin: 0 0 14px; }
.th-downloads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.th-downloads li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.th-dl-title { flex: 1 1 100%; font-weight: 600; }
.th-dl { border-radius: 999px; min-height: 44px; padding: 0 20px; }
.th-dl.is-off { opacity: .45; pointer-events: none; }
.th-dl-left { font-size: 14px; color: var(--muted); }
.th-note, .section .th-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.th-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.th-actions .btn { border-radius: 999px; }
.th-actions .th-note { flex-basis: 100%; }
.cab-orders { margin-top: 24px; }
.cab-orders-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cab-orders-list a { color: var(--blue); font-weight: 600; }
.cab-order-st { color: var(--muted); font-size: 14px; }
.cab-order-items { display: block; font-size: 14px; color: #d6dcea; }

/* Под обложкой в витрине — объём и «Читать фрагмент» (как на Литресе) */
.sc-media.has-read video, .sc-media.has-read img { height: calc(100% - 48px); cursor: pointer; }
.sc-read-box { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 10px; justify-items: center; }
.sc-read-box[hidden] { display: none; }
.sc-volume { margin: 0; font-size: 13px; color: var(--muted); }
.sc-read-btn { display: flex; align-items: center; justify-content: center; width: min(100%, 360px); min-height: 48px; border-radius: 999px; background: rgba(124,192,255,.16); border: 1px solid rgba(124,192,255,.5); color: var(--text); font-weight: 600; text-decoration: none; transition: background .2s; }
.sc-read-btn:hover, .sc-read-btn:focus-visible { background: rgba(124,192,255,.3); }
.sc-media.has-read .sc-toggle { bottom: 58px; }

/* Публичная оферта */
.offer .serial-text { max-width: 900px; }
.offer h2 { font-family: var(--head); font-size: 20px; line-height: 1.3; margin: 34px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.offer .serial-text p { font-size: 16px; line-height: 1.65; }
.offer .serial-text p b { color: var(--gold); font-weight: 600; }
.offer .serial-text p.sub { padding-left: 28px; }
.offer-seller { margin: 6px 0 8px; }
.offer-seller dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 16px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); font-size: 15px; }
.offer-seller dt { color: var(--muted, #9aa4b5); }
.offer-seller dd { margin: 0; color: #dde3ee; }
.offer-final { margin-top: 30px; padding: 18px 20px; border: 1px solid rgba(243,199,122,.4); border-radius: 14px; background: rgba(243,199,122,.06); }
.offer-final p:last-child { margin-bottom: 0; }
.offer-note { font-size: 13px; color: var(--muted, #9aa4b5); margin: 10px 0 0; text-align: center; }
@media (max-width: 640px) { .offer-seller dl { grid-template-columns: 1fr; gap: 2px; } .offer-seller dd { margin-bottom: 8px; } .offer .serial-text p.sub { padding-left: 14px; } }
