@font-face {
  font-family: "Gotham";
  src: url("./elements/fonts/GOTHAM-BOOK.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("./elements/fonts/GOTHAM-MEDIUM.TTF") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("./elements/fonts/GOTHAM-BOLD.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham Display";
  src: url("./elements/fonts/GOTHAM-BLACK.TTF") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #0f1210;
  --green: #1d3a2a;
  --green-soft: #2b543f;
  --wine: #5f1420;
  --gold: #d8b56a;
  --gold-soft: #f0deae;
  --text: #f7f5ef;
  --muted: #d8d1c2;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Gotham", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(216, 181, 106, 0.12), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(95, 20, 32, 0.35), transparent 45%),
    linear-gradient(160deg, #0f1210 0%, #132319 35%, #102017 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.fs-lock {
  overflow: hidden;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ─── Прелоадер ─────────────────────────────────────────────────────────── */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  background: radial-gradient(circle, #1b241d 0%, #0d110f 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__star {
  width: 64px;
  aspect-ratio: 1;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 14px rgba(216, 181, 106, 0.5));
  animation: pulse 1.6s infinite ease-in-out;
}

.preloader__text {
  margin: 0;
  color: var(--muted);
}

/* ─── Частицы-искры ──────────────────────────────────────────────────────── */

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  /* Три слоя с искрами разного цвета и ритма */
  background-image:
    radial-gradient(circle at 15% 30%, rgba(216, 181, 106, 0.22) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 40%, rgba(255, 160, 60, 0.18) 0 1.5px, transparent 1.5px),
    radial-gradient(circle at 85% 80%, rgba(216, 181, 106, 0.15) 0 2px, transparent 2px),
    radial-gradient(circle at 40% 60%, rgba(255, 200, 80, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 60% 15%, rgba(255, 140, 40, 0.14) 0 1.5px, transparent 1.5px);
  background-size: 220px 220px, 170px 170px, 260px 260px, 140px 140px, 190px 190px;
  animation: emberFloat1 18s linear infinite, emberFloat2 26s linear infinite reverse;
}

/* ─── Декоративные звёзды в hero ────────────────────────────────────────── */

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hstar {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--sz);
  height: var(--sz);
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.55;
  filter: drop-shadow(0 0 6px rgba(216, 181, 106, 0.7));
  animation: starPulse var(--dur, 4s) var(--del, 0s) ease-in-out infinite;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 5rem 0 4rem;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(7, 8, 8, 0.76), rgba(7, 8, 8, 0.42)),
    radial-gradient(circle at 80% 20%, rgba(216, 181, 106, 0.18), transparent 32%),
    url("./elements/hero.jpg") center top / cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(84px, 10vw, 148px);
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
  z-index: -1;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, transparent, rgba(8, 8, 8, 0.45));
  z-index: -1;
}

.hero__content {
  transform: translateY(0);
  transition: transform 0.15s linear;
}

.hero__tag {
  margin: 0 0 1rem;
  color: var(--gold-soft);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

/* Звёздочка по бокам тега */
.hero__tag::before,
.hero__tag::after {
  content: "★";
  font-size: 0.75em;
  opacity: 0.7;
}

.hero__logo {
  width: clamp(130px, 20vw, 240px);
  height: auto;
  object-fit: contain;
  margin-bottom: 1.15rem;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.38));
}

/* ─── Типографика ───────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: "Gotham Display", "Gotham", Arial, sans-serif;
  margin: 0;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.04;
  text-wrap: balance;
}

.hero__subtitle {
  max-width: 720px;
  margin: 1.2rem 0 2.2rem;
  color: #f0ece0;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  font-weight: 400;
}

/* ─── Кнопки ────────────────────────────────────────────────────────────── */

.btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  font-weight: 500;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--gold {
  color: #261f0f;
  background: linear-gradient(135deg, var(--gold), #f0d89c);
  box-shadow: 0 12px 26px rgba(216, 181, 106, 0.28);
  position: relative;
  overflow: hidden;
}

/* Блик, пробегающий по кнопке */
.btn--gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: btnShine 4s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 70% { left: -75%; }
  85%     { left: 125%; }
  100%    { left: 125%; }
}

.btn--dark {
  color: #f4efe4;
  background: linear-gradient(140deg, rgba(95, 20, 32, 0.92), rgba(29, 58, 42, 0.88));
  border: 1px solid rgba(216, 181, 106, 0.35);
}

/* Квадратная кнопка (иконка) */
.btn--square {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  flex-shrink: 0;
}

/* Иконки внутри кнопки fullscreen — переключаются классом fs-active */
.btn--square .icon-collapse {
  display: none;
}
.btn--square.fs-active .icon-expand {
  display: none;
}
.btn--square.fs-active .icon-collapse {
  display: block;
}

/* ─── Секция с книгой ───────────────────────────────────────────────────── */

.book-section {
  position: relative;
  padding: 4rem 0 2rem;
  isolation: isolate;
  overflow: hidden;
}

.book-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./elements/Georg_lent.png") center / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

.book-section .container {
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section-head p {
  color: var(--muted);
  margin: 0.4rem 0 0;
}

/* ─── Обёртка книги ─────────────────────────────────────────────────────── */

.book-wrap {
  background: linear-gradient(170deg, rgba(17, 22, 18, 0.92), rgba(15, 17, 16, 0.94));
  border: 1px solid rgba(216, 181, 106, 0.22);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.book-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(95, 20, 32, 0.16), rgba(29, 58, 42, 0.08));
  pointer-events: none;
  z-index: 0;
}

.book-wrap > * {
  position: relative;
  z-index: 1;
}

/* ─── Музыкальная панель ────────────────────────────────────────────────── */

.music-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
  padding: 0.45rem 0.85rem;
  background: rgba(216, 181, 106, 0.07);
  border: 1px solid rgba(216, 181, 106, 0.18);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.music-btn {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.music-btn:hover {
  transform: scale(1.1);
}

/* Пульсация пока музыка ждёт первого жеста пользователя */
.music-btn.waiting {
  animation: musicWait 1.8s ease-in-out infinite;
}

@keyframes musicWait {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 181, 106, 0); }
  50%       { box-shadow: 0 0 0 6px rgba(216, 181, 106, 0.35); }
}

/* Иконки мута — переключаются классом .muted на кнопке */
.music-btn .icon-sound-off {
  display: none;
}
.music-btn.muted .icon-sound-on {
  display: none;
}
.music-btn.muted .icon-sound-off {
  display: block;
}

/* Ползунок громкости */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 4px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--gold) 0%,
    var(--gold) var(--vol, 25%),
    rgba(216, 181, 106, 0.22) var(--vol, 25%),
    rgba(216, 181, 106, 0.22) 100%
  );
  transition: background 0.1s;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(216, 181, 106, 0.7);
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(216, 181, 106, 0.7);
}

.volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(216, 181, 106, 0.22);
}


/* ─── Панель управления ─────────────────────────────────────────────────── */

.book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.page-counter {
  min-width: 200px;
  text-align: center;
  color: #ece4d0;
  font-size: 0.92rem;
}

/* ─── Прогресс-бар загрузки ─────────────────────────────────────────────── */

.pdf-progress {
  margin: 0 auto 0.75rem;
  max-width: 560px;
  text-align: center;
}

.pdf-progress__bar {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #f0d89c);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(216, 181, 106, 0.45);
}

.pdf-progress__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ─── Область книги + боковые кнопки ───────────────────────────────────── */

.book-area {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* ─── Книга (FlipBook) ──────────────────────────────────────────────────── */

.book {
  flex: 1;
  min-width: 0;
  height: min(78vh, 780px);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(130deg, #4c0f1a 0%, #264735 100%);
  border: 1px solid rgba(216, 181, 106, 0.35);
}

.book .page {
  background: linear-gradient(180deg, #f6f2e8 0%, #fefdf9 100%);
  color: #28231a;
  position: relative;
}

.book .page img,
.book .page canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.book .stf__item {
  will-change: transform;
  transform-style: preserve-3d;
}

.book .stf__item * {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.page-number {
  position: absolute;
  right: 0.7rem;
  bottom: 0.55rem;
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.48);
}

/* ─── Боковые кнопки листания (только в fullscreen) ─────────────────────── */

.btn-fs-side {
  display: none; /* скрыты вне fullscreen */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(216, 181, 106, 0.18);
  color: #f0deae;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.btn-fs-side:hover {
  background: rgba(216, 181, 106, 0.38);
  transform: translateY(-50%) scale(1.08);
}

.btn-fs-side--prev { left: 0.5rem; }
.btn-fs-side--next { right: 0.5rem; }

/* ─── Ошибка PDF ─────────────────────────────────────────────────────────── */

.pdf-error {
  margin: 1rem auto 0;
  max-width: 760px;
  text-align: center;
  background: rgba(95, 20, 32, 0.34);
  border: 1px solid rgba(216, 181, 106, 0.35);
  border-radius: 12px;
  padding: 1rem;
}

.pdf-error p {
  margin-top: 0.4rem;
  color: #f1e8d6;
}

.pdf-error__actions {
  margin-top: 0.8rem;
}

/* ─── О проекте ─────────────────────────────────────────────────────────── */

.about {
  padding: 4rem 0 5rem;
}

.about .container {
  max-width: 860px;
  text-align: center;
  position: relative;
}

.about .container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  width: min(420px, 70%);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(216, 181, 106, 0), rgba(216, 181, 106, 0.85), rgba(216, 181, 106, 0));
}

.about h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
}

.about p {
  color: #efe8d8;
  line-height: 1.8;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

/* ─── Звёзды на заголовках секций ───────────────────────────────────────── */

.section-head h2::before,
.section-head h2::after,
.about h2::before,
.about h2::after {
  content: "★";
  font-size: 0.55em;
  color: var(--gold);
  vertical-align: middle;
  opacity: 0.8;
  filter: drop-shadow(0 0 4px rgba(216, 181, 106, 0.6));
}

.section-head h2::before,
.about h2::before {
  margin-right: 0.55em;
}

.section-head h2::after,
.about h2::after {
  margin-left: 0.55em;
}

/* ─── Вечный огонь ──────────────────────────────────────────────────────── */

.eternal-flame {
  position: relative;
  width: 52px;
  height: 72px;
  margin: 0 auto 1.6rem;
}

/* Основание (подставка) */
.flame__base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 12px;
  background: linear-gradient(to bottom, #b8860b, #8b6914);
  border-radius: 4px 4px 6px 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Общие свойства слоёв пламени */
.flame {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  transform-origin: bottom center;
}

/* Внешнее пламя — тёмно-оранжевое */
.flame--outer {
  bottom: 11px;
  width: 34px;
  height: 50px;
  background: linear-gradient(to top, #c0392b 0%, #e67e22 45%, #f39c12 80%, rgba(255, 220, 80, 0) 100%);
  filter: blur(1px);
  animation: flicker 2.1s ease-in-out infinite alternate;
}

/* Среднее пламя — оранжевое */
.flame--mid {
  bottom: 12px;
  width: 22px;
  height: 38px;
  background: linear-gradient(to top, #e67e22 0%, #f1c40f 55%, rgba(255, 240, 100, 0) 100%);
  filter: blur(0.5px);
  animation: flicker 1.7s ease-in-out infinite alternate-reverse;
}

/* Внутреннее пламя — ярко-жёлтое ядро */
.flame--inner {
  bottom: 13px;
  width: 10px;
  height: 22px;
  background: linear-gradient(to top, #fff7aa 0%, rgba(255, 255, 180, 0) 100%);
  animation: flicker 1.3s ease-in-out infinite alternate;
}

/* ─── Подвал ─────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid rgba(216, 181, 106, 0.3);
  background: rgba(10, 10, 10, 0.35);
}

.footer__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e8dfcb;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── Анимации появления ─────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Полноэкранный режим ────────────────────────────────────────────────── */

/* Нативный fullscreen (Chrome, Firefox, Android Chrome) */
.book-wrap:fullscreen,
.book-wrap:-webkit-full-screen {
  background: #0a0d0b;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0.6rem 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.book-wrap:fullscreen::before,
.book-wrap:-webkit-full-screen::before {
  display: none;
}

.book-wrap:fullscreen .book-area,
.book-wrap:-webkit-full-screen .book-area {
  flex: 1;
  min-height: 0;
}

.book-wrap:fullscreen .book,
.book-wrap:-webkit-full-screen .book {
  height: 100%;
  max-height: none;
  border-radius: 10px;
}

.book-wrap:fullscreen .btn-fs-side,
.book-wrap:-webkit-full-screen .btn-fs-side {
  display: flex;
}

/* iOS / fallback: элемент переносится в <body>, поэтому position:fixed
   гарантированно работает относительно вьюпорта без помех от родителей. */
.book-wrap.fake-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0d0b;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0.6rem 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.book-wrap.fake-fullscreen::before {
  display: none;
}

.book-wrap.fake-fullscreen .book-area {
  flex: 1;
  min-height: 0;
}

.book-wrap.fake-fullscreen .book {
  height: 100%;
  max-height: none;
  border-radius: 10px;
}

.book-wrap.fake-fullscreen .btn-fs-side {
  display: flex;
}

/* ─── Keyframes ─────────────────────────────────────────────────────────── */

/* Искры — два независимых слоя дрейфуют в разных направлениях */
@keyframes emberFloat1 {
  0%   { background-position: 0 0,       0 0,       0 0,       0 0,       0 0; }
  100% { background-position: 220px -260px, 170px -200px, -260px -180px, 140px -160px, -190px -220px; }
}

@keyframes emberFloat2 {
  0%   { opacity: 0.6; }
  50%  { opacity: 1;   }
  100% { opacity: 0.6; }
}

/* Пульсация звёзд */
@keyframes starPulse {
  0%, 100% {
    opacity: 0.35;
    filter: drop-shadow(0 0 4px rgba(216, 181, 106, 0.4));
    transform: scale(0.9);
  }
  50% {
    opacity: 0.75;
    filter: drop-shadow(0 0 10px rgba(216, 181, 106, 0.9));
    transform: scale(1.08);
  }
}

/* Мерцание пламени */
@keyframes flicker {
  0%   { transform: translateX(-50%) scaleX(1)    scaleY(1);    }
  25%  { transform: translateX(-52%) scaleX(0.93) scaleY(1.04); }
  50%  { transform: translateX(-50%) scaleX(1.05) scaleY(0.97); }
  75%  { transform: translateX(-48%) scaleX(0.96) scaleY(1.03); }
  100% { transform: translateX(-50%) scaleX(1)    scaleY(1);    }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.92); }
  50%       { transform: scale(1.05); }
}

/* ─── Адаптив ────────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .book {
    height: min(72vh, 700px);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 86vh;
    padding-top: 4rem;
  }

  .hero::before {
    background:
      linear-gradient(to bottom, rgba(7, 8, 8, 0.55), rgba(7, 8, 8, 0.62)),
      radial-gradient(circle at 80% 20%, rgba(216, 181, 106, 0.18), transparent 32%),
      url("./elements/mobile_hero.jpg") center center / cover no-repeat;
  }

  .book-section {
    padding: 2rem 0 1.5rem;
  }

  .section-head {
    margin-bottom: 1rem;
  }

  .section-head p {
    font-size: 0.9rem;
  }

  .book-wrap {
    padding: 0.75rem;
    border-radius: 16px;
  }

  .book-controls {
    gap: 0.5rem;
    margin-bottom: 0.6rem;
  }

  /* На мобильном: счётчик сверху на всю ширину, кнопки снизу */
  .page-counter {
    min-width: 100%;
    order: -1;
    font-size: 0.85rem;
  }

  .btn--dark {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .book {
    height: min(60vh, 560px);
  }

  .footer__inner {
    justify-content: center;
  }

  .volume-slider {
    width: 85px;
  }

  /* В fullscreen на мобильном боковые кнопки меньше */
  .btn-fs-side {
    width: 2.5rem;
    height: 2.5rem;
  }

  .btn-fs-side--prev { left: 0.25rem; }
  .btn-fs-side--next { right: 0.25rem; }
}
