/* ══════════════════════════════════════════════════
   ПЕРЕМЕННЫЕ
══════════════════════════════════════════════════ */
:root {
  --c-dark:    #1a1a1a;
  --c-mid:     #2d2d2d;
  --c-light:   #e3e1de;
  --c-red:     #8b2635;
  --c-red-hero: #9E0B0F;        /* красный из макета героя */
  --c-white:   #fff;
  --c-text:    #1a1a1a;
  --f-serif:   "Noto Serif", Georgia, serif;
  --f-cursive: "Great Vibes", "GoodVibesPro", cursive;
  --h:         130px;           /* высота хедера */
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,*::before,*::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; display: flex;
  justify-content: center; background-color: #e3e1de; }
body  { width: 100%; margin: 0; max-width: 1920px; overflow-x: hidden;  font-family: var(--f-serif); color: var(--c-text); background: var(--c-light); }
img   { display: block; max-width: 100%; height: auto; }
a     { text-decoration: none; color: inherit; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
ul,ol { margin: 0; padding: 0; list-style: none; }
p     { margin: 0; }

.container {
  width: min(1900px, 100%);
  margin-inline: auto;
  padding-inline: 32px;
}

.section {
  padding-block: clamp(60px, 6vw, 120px);
}

/* ══════════════════════════════════════════════════
   1. ХЕДЕР
══════════════════════════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--h);
  min-height: var(--h);
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(4px);
  color: var(--c-white);
  font-family: var(--f-serif);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2.4vw, 2rem);
  position: relative;
}

/* Логотип — в потоке, без absolute */
.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-left: clamp(20px, 8vw, 200px);
  
}
.header__logo-img {
  width: clamp(80px, 10.4vw, 200px);
  height: clamp(80px, 10.4vw, 200px);
  object-fit: contain;
}

/* Навигация — по центру без absolute; порядок как в макете */
.header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(2px, .5vw, 10px);
  margin-left: clamp(-150px, -15vw, -250px);
  white-space: nowrap;
  min-width: 0;
}
.header__link {
  color: var(--c-white);
  font-size: clamp(16px, 1.25vw, 24px);
  font-weight: bold;
  line-height: 1.0;
  text-align: center;
  padding: 0.35em 0.5em;
  white-space: nowrap;
  transition: opacity .2s;
  margin-top: -5px;
}
.header__link:hover { opacity: .85; }
.header__sep {
  width: 1px;
  height: clamp(36px, 5.4vw, 70px);
  background: rgba(255,255,255,.4);
  flex-shrink: 0;
}
.header__link--dropdown {
  background: none;
  color: inherit;
  font-size: clamp(16px, 1.25vw, 24px);
  font-weight: bold;
  font-family: var(--f-serif);
  line-height: 1.2;
  padding: 0.35em 0.4em 0.35em 0.5em;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
/* Треугольник как в макете (14×7) */
.header__dropdown-arrow {
  display: inline-block;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid currentColor;
  font-size: 0;
  vertical-align: middle;
}
.header__dropdown-wrap  { position: relative; }
.header__dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(.5rem);
  min-width: 180px; background: var(--c-dark);
  padding: .5rem 0; border-radius: 6px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.header__dropdown-wrap.is-open .header__dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.header__dropdown a {
  display: block; padding: .5rem 1rem;
  color: var(--c-white); font-size: 1rem;
}
.header__dropdown a:hover { background: rgba(255,255,255,.08); }
/* Телефон — в потоке справа, без absolute */
.header__phone-wrap {
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--c-white);
  font-size: clamp(16px, 1.25vw, 24px);
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  transition: opacity .2s;
  margin-right: 0;
}
.header__phone-wrap:hover { opacity: .85; }
.header__phone { white-space: nowrap; }
.header__phone-line {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: min(350px, 50vw);
  background: rgba(255,255,255,.5);
  pointer-events: none;
}

/* Кнопка-бургер (по умолчанию скрыта, видна только на мобилке) */
.header__burger {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  background: transparent;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.header__burger-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.header__burger:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════
   УТИЛИТА: появление при скролле
══════════════════════════════════════════════════ */
.animate-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.animate-in.is-visible { opacity: 1; transform: translateY(0); }


/* ══════════════════════════════════════════════════
   2. ГЕРОЙ 
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-height: none; /* Сохраняем фикс разрыва на 2560px из новой версии */
  overflow: hidden;
  /* Возвращаем flex-выравнивание из старой версии */
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 0;
}

.hero__video-wrap { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}


.hero__content {
  position: relative;
  z-index: 2;
  /* Возвращаем твои старые адаптивные отступы */
  padding-left: clamp(20px, 20.5vw, 395px);
  padding-bottom: clamp(60px, 10vh, 105px);
  padding-top: 0;
  margin-top: clamp(250px, 44vh, 550px);
  color: var(--c-white);
  user-select: none;
  text-align: left;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px); /* Стартуем на 40px ниже обычного положения */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* Встаем на свое родное место */
  }
}

.hero__first-name {
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 12vw, 229px);
  font-weight: 400;
  line-height: 1;
  color: var(--c-white);
  margin: 0;
  /* Было -285px. Теперь на 1920px это будет -285px, а на маленьких экранах плавно уменьшится до 0 */
  margin-left: clamp(-285px, -14.8vw, 0px);
}

.hero__surname {
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 12vw, 229px);
  font-weight: 400;
  line-height: 1;
  color: var(--c-white);
  margin: 0 0 0.12em;
  /* Было: margin-top: -20px и margin-left: -135px */
  margin-top: clamp(-20px, -1vw, 0px);
  margin-left: clamp(-135px, -7vw, 0px);
}

.hero__k { color: var(--c-red-hero); }

.hero__slogan {
  font-family: var(--f-cursive);
  font-size: clamp(1.5rem, 3.2vw, 62px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .01em;
  margin: 0;
  /* Было -255px. Превращаем в адаптивный сдвиг */
  margin-left: clamp(-255px, -13.2vw, 0px);
}
.hero__first-name,
.hero__surname,
.hero__slogan {
  opacity: 0; /* Скрываем их до начала анимации */
  /* forwards означает, что после анимации элемент останется видимым (на 100% кадре) */
  animation: fadeInUp 1.2s var(--ease) forwards; 
}

/* 3. Настраиваем задержки, чтобы они появлялись по очереди */
.hero__first-name {
  animation-delay: 0.2s; /* Имя появляется почти сразу */
}

.hero__surname {
  animation-delay: 0.6s; /* Фамилия чуть позже */
}

.hero__slogan {
  animation-delay: 1s; /* Слоган завершает композицию */
}
.hero__slogan-accent { color: var(--c-red-hero); }
.hero__slogan-rest { color: var(--c-white); }

/* ══════════════════════════════════════════════════
   3. ПОЛОСКА-РАЗРЫВ
══════════════════════════════════════════════════ */
/* Полоска-разрыв: перекрывает стык hero↔about на любой высоте экрана */
.strip {
  position: relative;
  z-index: 15;
  line-height: 0;
  width: 102%;

  background: transparent;
  flex-shrink: 0;
  /* clamp: не менее -6rem перекрытия, растёт с шириной — убирает разрыв на 2560px */
  margin-top:    clamp(-5.2em, -5vw, -0.5rem);
  margin-bottom: clamp(-1.5rem, -5vw, -1.5rem);
  left: 0;
  margin-left: -0.5%;
  margin-right: 0;
}
.strip__img {
  width: 100%;
  height: auto;
  display: block;
  min-height: clamp(15px, 4vw, 28px);
  transform: rotate(180deg) scaleY(-1.2);
  object-fit: cover;
}

/* ══════════════════════════════════════════════════
   4. ОБ АВТОРЕ
══════════════════════════════════════════════════ */
.about {
  position: relative;
  z-index: 1;
  width: 100%;
  /* 1000px на 1920 экране, плавно уменьшается до 600px на небольших */
  height: clamp(600px, 52vw, 1000px); 
  min-height: 0; 
  max-width: 1920px;
  margin: 0 auto; 
  color: var(--c-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: -2.5rem;
}

.about__bg {
  position: absolute; 
  inset: 0;
  z-index: 0;
}

.about__bg-img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  object-position: calc(65% + 10px) center;
  background-repeat: no-repeat;
  background-color: #000;
}

/* Параллакс-символы */
.about__par {
  position: absolute;
  font-family: var(--f-serif);
  pointer-events: none;
  will-change: transform;
  line-height: 1;
  z-index: 1;
}

.about__par--sec {
  left: 4%;  
  top: 7%;
  font-size: clamp(80px, 8.8vw, 170px);
  color: var(--c-red-hero); 
  margin-left: -14px;
  margin-top: -5px;
}

.about__par--q1 { 
  /* Было 1000px -> превратили в 52vw */
  left: clamp(500px, 52vw, 1000px);  
  /* Было 325px -> превратили в 16.9vw */
  top: clamp(200px, 14.9vw, 325px);
  /* Было 590px -> превратили в 30.7vw */
  font-size: clamp(250px, 30.7vw, 590px); 
  color: rgba(255, 255, 255, 0.95);
  font-family: "Noto Serif", serif;
}

.about__par--q2 { 
  /* Было 1400px -> превратили в 73vw */
  left: clamp(700px, 73vw, 1400px); 
  /* Было 335px -> превратили в 17.4vw */
  top: clamp(200px, 15.4vw, 335px);
  font-size: clamp(250px, 30.7vw, 590px);
  color: rgb(255, 255, 255);
  font-family: "Noto Serif", serif;
}

/* Основная сетка */
.about__inner {
  position: relative; 
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: clamp(40px, 10vh, 100px) 6vw clamp(20px, 4vh, 40px);
  max-width: 1600px; 
  margin: 0 auto; 
  width: 100%;
}

.about__left {
  /* Ширина плавно меняется, но не больше 590px */
  width: clamp(510px, 30.7vw, 550px);
  max-width: 100%;
  height: auto;
  min-height: clamp(300px, 27.4vw, 527px);
  padding: 0;
  /* Было -110px -> превратили в -5.7vw */
  margin-left: clamp(-150px, -6vw, 0px);
  /* Было 40px */
  margin-top: clamp(30px, 2vw, 60px);
}
@media (max-width: 1600px) {
  .about__left {
    /* Обнуляем сдвиг, чтобы текст не улетал за левый край экрана */
    margin-left: 0; 
  }
}

.about__text {
  font-family: var(--f-serif);
  font-size: clamp(10px, 1.1vw, 12px);
  line-height: 1.75; 
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

.about__text--italic {
  font-style: italic;
  font-family: var(--f-cursive);
  font-size: clamp(1.1rem, 1.4vw, 22px);
  color: rgba(255, 255, 255, 0.8);
}

.about__right { 
  min-height: 1px; 
}

.about__text:nth-child(3) {
  margin-bottom: 1.25em;
}

/* Соцсети: на уровне текста, справа */
.about__social-wrap {
  position: absolute;
  z-index: 2;
  left: calc(50% + clamp(20px, 3.1vw, 60px));
  transform: translateX(-50%);
  top: clamp(110px, 11.7vw, 225px);
}

.about__social {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2.2rem);
}

.about__social-wrap .about__social { 
  margin-bottom: 0; 
}

.about__social-link {
  width: clamp(44px, 3.1vw, 60px); 
  height: clamp(44px, 3.1vw, 60px);
  border-radius: 50%;
  color: #000;
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: transform 0.25s var(--ease), background 0.2s;
}

.about__social-link:hover {
  transform: scale(1.15);
  background: rgba(196, 196, 196, 0.679);
}
.about__social-link:nth-child(3) {
  background-color: #000; 
  width: 45px;
  height: 45px;
  margin-top: 5px;
}

.about__social-link:nth-child(3) img {
  /* Инвертируем цвета: черный фон картинки становится идеально белым */
  filter: invert(1); 
  width: 45px;
  height: 45px;
  
  /* Растягиваем картинку на 100% ссылки, чтобы черный фон <a> не торчал по краям */
  object-fit: cover;
}

/* При наведении оставляем твой стандартный эффект */
.about__social-link:nth-child(3):hover {
  background: rgba(196, 196, 196, 0.679);
}

/* Нижняя плашка */
.about__bottom {
  position: absolute;
  z-index: 2;
  /* Было 655px -> превратили в 34.1vw */
  top: clamp(500px, 35.1vw, 655px);
  left: clamp(10px, 1.5vw, 30px);
  max-width: 1600px;
  width: 100%;
  padding: 0 6vw;
  box-sizing: border-box;
}

.about__title {
  font-family: var(--f-serif);
  font-size: clamp(3rem, 12vw, 229px);
  font-weight: 400;
  line-height: 1;
  text-align: left;
  margin: 0 0 0.15em;
  color: var(--c-white);
}

/* Подпись под заголовком */
.about__subtitle {
  font-family: var(--f-cursive);
  font-size: clamp(1.5rem, 3.2vw, 62px);
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  margin: 0;
  color: var(--c-white);
  /* Было 500px -> 26vw */
  margin-left: clamp(180px, 26vw, 500px);
  /* Было -55px -> -2.8vw */
  margin-top: clamp(-55px, -2.8vw, -15px);
}

.about__subtitle-a { color: var(--c-white); }
.about__subtitle-b { color: var(--c-red-hero); }
/* ══════════════════════════════════════════════════
   5. ФОТОЛЕНТА
══════════════════════════════════════════════════ */
.feed {
  background: #0f0f0f;
  overflow: hidden;
  padding: 0;
}
.feed__track-wrap { overflow: hidden; }
.feed__track {
  display: flex; gap: 4px;
  width: max-content;
  animation: feedScroll 50s linear infinite;
}
@keyframes feedScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.feed__item {
  flex-shrink: 0;
  width: 220px; height: 220px;
  overflow: hidden; display: block;
}
.feed__img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%);
  transition: transform .4s var(--ease);
}
.feed__item:hover .feed__img { transform: scale(1.04); }

/* ══════════════════════════════════════════════════
   6. КНИГИ
══════════════════════════════════════════════════ */
.books {
  background: #ebebeb;
  overflow: clip;
  position: relative;
  /* zoom: 0.85 масштабирует блок целиком включая px-значения и убирает лишнее пространство */
  zoom: 1;
}
@media (max-width: 1600px) {
  .books {
    zoom: 0.85;
  }
}

.books__layout {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 100vh;
  position: relative;
  overflow: clip;
}


/* — Левая колонка — */
.books__main {
  padding: 7vh 4vw 7vh 6vw;
  position: relative; z-index: 2;
}

/* Вступление: заголовок с крестом, три абзаца, три точки (фото 1) */
.books__intro-block {
  margin-bottom: 2.5rem;
  
}

.books__title {
  font-family: var(--f-serif);
  font-size: clamp(3rem, 12vw, 230px);
  font-weight: 400;
  margin: 0em;
  display: inline-block;
  position: relative;
  margin-left: -0.1em;  /* было -25px */
  margin-top: -0.2em;   /* было -50px */
}

/* горизонтальная линия слева */
.books__title::before {
  content: "";
  position: absolute;
  top: 14.2%;
  left: -0.25em;        /* было -55px */
  width: 0.7em;        /* было 160px — относительно размера шрифта */
  height: 2px;
  background: var(--c-text);
}

/* вертикальная линия слева (крест) */
.books__title span::before {
  content: "";
  position: absolute;
  left: -0.13em;       /* было -28px */
  top: 0.07em;          /* было +20px */
  width: 2px;
  height: 0.7em;       /* было 160px */
  background: var(--c-text);
}

/* горизонтальная линия справа */
.books__title::after {
  content: "";
  position: absolute;
  top: 90%;
  right: -0.27em;       /* было -60px */
  width: 0.7em;        /* было 160px */
  height: 2px;
  background: var(--c-text);
}

/* вертикальная линия справа (крест) */
.books__title span::after {
  content: "";
  position: absolute;
  top: 0.65em;          /* было +155px */
  right: -0.15em;       /* было -35px */
  bottom: -0.2em;
  width: 2px;
  height: 0.7em;       /* было 160px */
  background: var(--c-text);
}

/*-------------------------------------------------------*/
.books__intro {
  font-family: var(--f-serif);
  font-size: 14px;
  line-height: 1.714;
  color: rgb(0, 0, 0);
  max-width: 713px;
  width: 100%;
  padding-top: 20px;
  margin-left: -10px;
}

.books__intro p {
  margin: 0 0 1.2em;
  font-size: 14px;
  line-height: 1.714;
}

/* Три точки ровно под текстом, по середине блока */
.books__intro-dots {
  font-family: var(--f-serif);
  font-size: clamp(50px, 12vw, 230px);
  color: rgb(158, 11, 15);
  line-height: 0;
  text-align: center;
  letter-spacing: 0px;
  
  /* Убираем всё, что влияет на поток */
  margin: 0;
  padding: 0;
  height: 0;
  
  /* Центрируем через flex родителя */
  display: block;
  
  /* Сдвиг через transform */
  transform: translateX(-92px) translateY(-0.2em);
  
  /* Обеспечиваем центрирование */
  width: 100%;
}




/* Адаптивность */
@media (max-width: 1200px) {
  .books__intro {
    max-width: 650px;
  }
}

@media (max-width: 1200px) {
  .books__intro-block {
    padding-left: 40px;
  }
  .books__intro {
    max-width: 550px;
  }
}

@media (max-width: 768px) {
  .books__intro-block {
    padding-left: 20px;
    padding-right: 20px;
  }
  .books__intro {
    max-width: 100%;
    font-size: 13px;
  }
  .books__intro p {
    font-size: 13px;
  }
}

/*-------------------------------------------------------*/

/* ── Список книг (по макету из фотошопа) ── */
.books__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Один блок книги: ~1000×auto */
.books__item {
  position: relative;
  display: flex;
  gap: 0;
  padding: 2.5rem 0;
  align-items: flex-start;
  max-width: 100%;
  margin: 0 auto;
  
  /* Убираем padding-left отсюда */
  padding-left: 0;
}


@media (max-width: 1200px) {
  .books__item {
    padding-left: 60px;  /* меньше на узких экранах */
  }
}

@media (max-width: 768px) {
  .books__item {
    padding-left: 20px;
    padding-right: 20px;
    flex-direction: column;
  }
}

/* Большой § — абсолютно, верхний левый угол; при наведении — белый */
.books__item-sym {
  display: block;
  position: absolute;
  left: -0.35em; 
  top: -0.05rem; 
  font-family: var(--f-serif);
  font-size: clamp(80px, 10vw, 151px);
  line-height: 1;
  color: #000;
  font-weight: 400;
  pointer-events: none;
  user-select: none;
  transition: color .25s ease;
  z-index: 100;
}
.books__item:hover .books__item-sym,
.books__item--active .books__item-sym {
  color: #fff;
}

/* Вертикальная линия (left:63px в макете, 2px шириной, 160px высотой) */
.books__item::before {
  content: '';
  position: absolute;
  left: -50px; 
  top: clamp(100px, 20vw, 455px);
  bottom: 0;
  width: 2px;
  background: #252525;
  
}
.books__item::after {
  content: '';
  position: absolute;
  left: -80px;  /* 140px левее от 20px = -120px */
  top: 96.5%;    /* на 30px выше от 10px = -20px */
  width: 955px;
  height: 2px;
  background: #252525;
}



/* Тело: колонка → ссылка (обложка + текст) сверху, кнопки снизу */
.books__item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Ссылка-строка: обложка + текст рядом */
.books__item-link {
  display: flex;
  gap: 2.5rem;
  color: inherit;
  align-items: flex-start;
  
  /* Текст начинается с 410px от левого края */
  /* 105px (padding) + 230px (фото) + 2.5rem (gap) ≈ 410px */
  /* 2.5rem ≈ 40px, значит 105 + 230 + 40 = 375px, нужно добавить ещё ~35px */
}

/* Добавляем дополнительный отступ для точного попадания */


@media (max-width: 1200px) {
  .books__item-info {
    margin-left: 20px;
  }
}

@media (max-width: 768px) {
  .books__item-info {
    margin-left: 0;
    padding-left: 0;
  }
}

/* Обложка: крупная, ЧБ, прямые углы (как в макете) */
.books__cover-wrap {
  flex-shrink: 0;
  width: 230px;
  height: 400px;
  position: relative;
  overflow: hidden;
  background: #bbb;
  
  /* Адаптивность */
  max-width: 230px;
  max-height: 400px;

  transform: translate(-10px, 15px);
}

@media (max-width: 1200px) {
  .books__cover-wrap {
    width: 180px;
    height: 313px;  /* пропорционально 230/400 ≈ 0.575 */
  }
  .books__item-btns {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .books__cover-wrap {
    width: 150px;
    height: 261px;
    margin-bottom: 1rem;
  }
  .books__item-btns {
    width: 150px;
  }
}
.books__cover {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter .4s ease, opacity .4s ease;
}
.books__item:hover .books__cover { filter: grayscale(0%); }
.books__cover-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.books__item--video-playing .books__cover { opacity: 0; }
.books__item--video-playing .books__cover-video { opacity: 1; }

/* Текстовый блок */

/* Название: при наведении на блок — красный #8e0000 */
.books__item-title {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(22px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  transition: color .25s ease;
  transform: translate(10px, 33px);
  margin-top: -25px;
}
.books__item:hover .books__item-title,
.books__item--active .books__item-title {
  color: #8e0000;
}

/* Год: так же крупно, на следующей строке */
.books__item-year {
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(22px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin: 0;
  opacity: 1;
  transform: translate(10px, 33px);
}

@media (max-width: 768px) {
  .books__item-title,
  .books__item-year {
    transform: none;
  }
}

/* Описание: 14px, line-height 1.714 (из макета) */
.books__item-desc {
  font-family: var(--f-serif);
  font-size: 14px;
  line-height: 1.714;
  color: #000;
  margin: 1.5rem 0 0;
  max-width: 500px;
  transform: translate(10px, 33px);
}
.books__item:nth-child(9) .books__item-desc,
.books__item:nth-child(10) .books__item-desc,
.books__item:nth-child(11) .books__item-desc,
.books__item:nth-child(12) .books__item-desc {
  transform: translate(10px, 23px);
}

/* Кнопки: видны только при наведении, ровно под обложкой по ширине, друг под другом */
.books__item-btns {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  width: 230px;
  margin-top: 1.25rem;
  margin-left: -10px; /* выравнивание под обложкой (у неё transform: translate(-10px, 15px)) */
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .25s ease, max-height .3s ease;
}
.books__item:hover .books__item-btns,
.books__item--active .books__item-btns {
  opacity: 1;
  max-height: 120px;
}
.books__btn {
  width: 100%;
  box-sizing: border-box;
  padding: .5rem 1.25rem;
  font-size: .9rem;
  border-radius: 3px;
  font-family: var(--f-serif);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

/* «Приобрести»: красный фон #8e0000 */
.books__btn--buy {
  background: #8e0000;
  color: #fff;
  border: 1px solid #8e0000;
}
.books__btn--buy:hover { background: #6b0000; border-color: #6b0000; }
/* «Получить бесплатно»: белый фон, красная рамка (как раньше приобрести) */
.books__btn--free {
  background: #fff;
  color: #8e0000;
  border: 1px solid #8e0000;
}
.books__btn--free:hover { background: rgba(142,0,0,.08); }

/* Видео показывается только после задержки (класс .books__item--video-playing в JS) */
/* — Правая декоративная колонка: символы со своим параллаксом — ---------------------------------------------------------------------------------*/
.books__deco {
  position: relative;
  pointer-events: none;
  overflow: visible;
  align-self: stretch;
  min-height: 100%;
}

.books__deco-track {
  position: absolute;
  inset: 0;
  display: block;
}

/* Высота набора теперь зависит от ширины экрана (vw). 
   Увеличь 200vw, если нужно сделать больше расстояние между ПОВТОРАМИ наборов 
*/
.books__deco-set {
  position: relative;
  height: clamp(1000px, 185vw, 4240px); 
}
@media (max-width: 1600px) {
  .books__deco-set {
    height: clamp(1000px, 210vw, 4240px);
  }
}
@media (max-width: 2560px) {
  .books__deco-set {
    height: clamp(800px, 300vw, 3540px);
  }
}

/* Общие свойства всех символов правой колонки */
.books__deco-s1,
.books__deco-s2,
.books__deco-s3,
.books__deco-comma,
.books__deco-colon {
  position: absolute;
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 0.85;
  white-space: nowrap;
  will-change: transform;
  display: block;
}

/* § большая (самая верхняя) */
.books__deco-s1 {
  /* Было top: -25%. Теперь адаптивный сдвиг в vw */
  top: clamp(-750px, -40vw, -200px);
  right: -5%;
  font-size: clamp(300px, 100vw, 1900px);
  color: #252525;
}

/* Запятая красная */
.books__deco-comma {
  top: clamp(200px, 35vw, 650px);
  left: 65%;
  font-size: clamp(120px, 46vw, 888px);
  color: rgb(158, 11, 15);
  line-height: 0.55;
}

/* § маленькая (слева) */
.books__deco-s3 {
  top: clamp(600px, 55vw, 1070px);
  left: -5%;
  font-size: clamp(130px, 42vw, 800px);
  color: #252525;
}

/* § средняя (по центру) */
.books__deco-s2 {
  top: clamp(800px, 75vw, 1490px);
  left: 42%;
  font-size: clamp(220px, 73vw, 1400px);
  color: #252525;
}

/* Двоеточие серое (самое нижнее) */
.books__deco-colon {
  top: clamp(1000px, 100vw, 1980px);
  left: 12%;
  font-size: clamp(90px, 32vw, 616px);
  color: #252525;
  letter-spacing: -0.1em;
}



/* ══════════════════════════════════════════════════
   7. ТВОРЧЕСТВО
══════════════════════════════════════════════════ */
.creativity {
  background: #ebebeb;
  overflow: hidden;
  zoom: 1;
}
@media (max-width: 1600px) {
  .creativity {
    zoom: 0.85;
  }
}
.creativity__inner {
  margin: 0 auto;
  padding: 7vh 6vw;
  max-width: 1920px;
  padding: clamp(40px, 7vh, 100px) clamp(20px, 3vw, 60px);
}


/* Верхняя часть: текст слева (с красными полосами), заголовок справа */
.creativity__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 3rem;
}


/* Левый блок: текст */
.creativity__lead-wrap {
  position: relative; /* ВАЖНО: чтобы полоса позиционировалась относительно этого блока */
  text-align: right;
  /* УБРАЛИ border-top и border-bottom */
  padding-top: clamp(2rem, 5vh, 4rem); /* Сделали отступ сверху чуть больше, чтобы дать место полосе */
  padding-bottom: clamp(1rem, 2vh, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Та самая красная полоса (Rectangle 6) */
.creativity__lead-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  background-color: var(--c-red-hero);
  z-index: 100;

  /* Вылезаем за левый край экрана */
  left: clamp(-200px, -10vw, -20px);
  
  /* Идеально прилипаем к правому краю блока (ровно к центру сетки) */
  right: 0; 
  
  /* ШИРИНА БОЛЬШЕ НЕ НУЖНА, она рассчитывается сама между left и right! */
  height: clamp(10px, 1vw, 19px);
}
.creativity__lead {
  font-size: clamp(.78rem, .9vw, 14px);
  line-height: 1.65;
  color: #000000;
  margin: 0 0 1em;
}
@media (max-width: 1600px) {
  .creativity__lead  {
  font-size: clamp(.7rem, .8vw, 12px);
  line-height: 1.75;
  color: #000000;
  margin: 0 0 1em;
  }
}

.creativity__lead:last-child {
  margin-bottom: 0;
}

/* Правый блок: «Твор...» прижато влево, «чество» — вправо */
.creativity__title {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: var(--f-serif);
  font-weight: 400;
  margin: 0;
  margin-top: -40px;
  width: 100%; /* Жестко растягиваем контейнер на всю ширину правой колонки */
}
.creativity__t1,
.creativity__t2 {
  font-size: clamp(72px, 12vw, 230px);
  line-height: 1;
  color: var(--c-text);
  display: block;
}
.creativity__t1 {
  text-align: left;
  margin-left: -0.05em;
}
/* Правая часть заголовка («чество») */
.creativity__t2 {
  position: relative; /* Чтобы привязать полосу к этому блоку */
  text-align: right;
  
  
  /* Убрали старый border-bottom */
  /* Немного увеличим отступ снизу, чтобы текст не прилипал к нашей новой толстой полосе */
  
  font-size: clamp(72px, 12vw, 230px);
  line-height: 1;
  color: var(--c-text);
  display: block;
  margin-right: -0.05em;
}

/* Зеркальная красная полоса снизу справа */
.creativity__t2::after {
  content: "";
  position: absolute;
  bottom: clamp(-15px, -2vw, -30px);
  background-color: var(--c-red-hero);
  z-index: 100;

  /* Идеально прилипаем к левому краю блока (ровно к центру сетки) */
  left: 0;
  
  /* Вылезаем за правый край экрана (зеркально левой) */
  right: clamp(-200px, -10vw, -20px);
  
  /* ШИРИНА БОЛЬШЕ НЕ НУЖНА */
  height: clamp(10px, 1vw, 19px);
}

/* Сетка 3 × 2 */
.creativity__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px;
  width: 100vw; 
  max-width: 1920px; 
  
  position: relative;
  left: 50%; 
  transform: translateX(-50%);
}

@media (max-width: 1600px) {
  .creativity__grid {
    /* 100vw делим на 0.85, чтобы при сжатии получился ровно 1 экран! */
    width: calc(100vw / 0.85); 
    
    /* Отключаем максимальную ширину, чтобы она не мешала нашей математике */
    max-width: none; 
  }
}

.creativity__item { margin: 0; }
.creativity__link {
  display: block; position: relative;
  aspect-ratio: 1; overflow: hidden;
  background: #999;
}
.creativity__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s var(--ease), filter .3s;
  filter: grayscale(20%);
}
.creativity__link:hover .creativity__img {
  transform: scale(1.06); filter: grayscale(0%);
}
.creativity__cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .75rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: var(--c-white);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.creativity__link:hover .creativity__cap { opacity: 1; transform: translateY(0); }
.creativity__cap-t { display: block; font-weight: 600; font-size: clamp(.9rem,1vw,16px); }
.creativity__cap-s { display: block; font-size: clamp(.78rem,.9vw,14px); opacity: .9; }

.creativity__pager-wrapper {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.creativity__pager {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.4rem;
  min-width: 210px;
  border-radius: 999px;
  background: #5b5b5b;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  gap: 1.6rem;
}

.creativity__pager-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1;
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.creativity__pager-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.creativity__pager-value {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  color: #ffffff;
  font-family: var(--f-serif);
}

.creativity__pager-number {
  font-size: 1.3rem;
  font-weight: 600;
}

.creativity__pager-total {
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .creativity__pager {
    min-width: 190px;
    padding-inline: 1rem;
    gap: 1.2rem;
  }
}

/* ══════════════════════════════════════════════════
   8. МИССИЯ
══════════════════════════════════════════════════ */
.mission {
  position: relative;
  min-height: 1283px;
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: flex-start;
  padding: 0vh 0vw;
  color: var(--c-white);
  text-align: center;
  overflow: hidden;
}
.mission__bg {
  position: absolute; inset: 0;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mission__bg-img {
  width: 1920px;
  height: 1283px;
  object-fit: none;
  object-position: center;
  display: block;
}
.mission__bg::after {
  content: "";
  position: absolute; inset: 0;
}
.mission__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 auto;
  max-width: 1165px;
  height: clamp(800px, 66.8vw, 1283px);

}
/* Первый блок: ~95px сверху, 14px, ширина 1165px */
.mission__lead {
  position: absolute;
  margin: 0;
  margin-top: clamp(50px, 4.95vw, 95px);
  width: 100%;
  font-family: var(--f-serif);
  font-size: clamp(12px, 0.73vw, 14px);
  line-height: 1.7;
  color: rgb(0, 0, 0);
}
.mission__title {
  position: absolute;
  z-index: 3;
  margin: 0;
  
  /* --- НОВЫЙ СПОСОБ ЦЕНТРИРОВАНИЯ (без transform) --- */
  left: 0;
  width: 100%;
  text-align: center;

  top: clamp(-55%, -20vw, -35%);
  
  font-family: var(--f-serif);
  font-size: clamp(100px, 12vw, 230px);
  font-weight: 400;
  font-style: normal;
  color:#7b0002;
  line-height: 1;
  will-change: transform;
  
  /* Отключаем pointer-events, чтобы огромное невидимое поле 
     вокруг слова не перекрывало выделение текста под ним */
  pointer-events: none; 
}

/* Второй блок: от начала блока ~425px (ниже заголовка «Миссия»),  ширина 1165px */
.mission__text {
  position: absolute;
  z-index: 2;
  margin: 0;
  top: clamp(240px, 22.1vw, 425px);
  width: 100%;
  font-family: var(--f-serif);
  font-size: clamp(12px, 0.73vw, 14px);
  line-height: 1.7;
  color: rgb(0, 0, 0);
}


/* ══════════════════════════════════════════════════
   9. ПОДВАЛ
══════════════════════════════════════════════════ */
.footer {
  background: #222;
  color: var(--c-white);
  padding: 2.5rem 3rem;
  min-height: clamp(480px, 33vw, 630px);
  /* Центрируем содержимое по вертикали, если высота больше контента */
  display: flex; 
  align-items: center;
}

.footer__inner {
  width: 100%;
  max-width: 1400px; 
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

/* --- ЛЕВЫЙ И ПРАВЫЙ БЛОКИ (ТЕКСТ) --- */
.footer__col--left,
.footer__col--right {
  display: flex; 
  flex-direction: column; 
  gap: 1.5rem;
}
.footer__col--right {
  align-items: flex-end; /* Прижимаем правый текст вправо */
  text-align: right;
}

/* Применяем 24px ко всем текстовым элементам в этих блоках */
.footer__city,
.footer__email,
.footer__phone-link,
.footer__acquire-label,
.footer__acquire-phone,
.footer__acquire-name {
  font-size: 24px;
  color: var(--c-white);
  text-decoration: none;
  line-height: 1.4;
}
.footer__city {
  font-family: var(--f-serif);
}
.footer__email {
  text-decoration: underline;
  transition: opacity .2s;
}
.footer__email:hover { 
  opacity: .8; 
}

/* --- ЦЕНТРАЛЬНЫЙ БЛОК (ЛОГО, ИКОНКИ, ЛИНИИ) --- */
.footer__col--center {
  position: relative; /* Для позиционирования боковых линий */
  display: flex; 
  flex-direction: column;
  align-items: center; 
  gap: 1.5rem;
  padding: 0 clamp(30px, 5vw, 80px); /* Отступы от текста до разделительных линий */
}

/* Создаем две полоски по бокам с помощью псевдоэлементов */
.footer__col--center::before,
.footer__col--center::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%); /* Центрируем линии по вертикали */
  width: 3px;
  height: 363px; /* Требуемая высота */
  background-color: rgb(255, 255, 255);
}
.footer__col--center::before {
  left: 0; /* Левая линия */
}
.footer__col--center::after {
  right: 0; /* Правая линия */
}

/* Логотип */
.footer__logo-link { 
  display: block; 
}
.footer__logo {
  /* Увеличил значения clamp ровно в 2 раза по сравнению с хедером */
  width: clamp(160px, 20.8vw, 400px);
  height: clamp(160px, 20.8vw, 400px);
  object-fit: contain;
  
  /* Хитрый CSS-фильтр. 
     Сначала делает любую картинку черной (brightness 0), 
     а затем перекрашивает её в точный цвет #7b0002 */
  filter: brightness(0) saturate(100%) invert(11%) sepia(85%) saturate(5434%) hue-rotate(349deg) brightness(60%) contrast(105%);
}

/* Иконки соцсетей */
.footer__icons { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
}
.footer__icon {
  width: 55px;  /* Задали точные 45px */
  height: 55px; /* Задали точные 45px */
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: transform .25s ease, background .2s;
}
.footer__icon:hover { 
  transform: scale(1.12); 
  background: var(--c-red); 
}
.footer__icon img {
  object-fit: contain;
}
.footer__icon.footer__icon--wa {
  background-color: #000;
}

/* Картинка внутри автоматически подстроится под 55px */
.footer__icon.footer__icon--wa img {
  filter: invert(1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .container { padding-inline: 24px; }
  .header { --h: 108px; }
  .header__inner { gap: 1rem; }
  .header__logo-img { width: clamp(62px, 8vw, 120px); height: clamp(62px, 8vw, 120px); }
  .header__link, .header__link--dropdown, .header__phone-wrap { font-size: clamp(13px, 1.1vw, 18px); }
  .header__nav { gap: 0; }
  .header__sep { height: clamp(26px, 4vw, 54px); }
  .hero__content { max-width: 82%; }
  .about__inner { grid-template-columns: 1.1fr .9fr; min-height: 56vh; }
  .books__layout { grid-template-columns: 62% 38%; }
}

@media (max-width: 768px) {
  .container { padding-inline: 20px; }
  .header {
    position: sticky;
    top: 0;
    --h: 78px;
  }
  .header__inner { gap: .5rem; }
  .header__nav {
    position: static;
    transform: none;
    overflow-x: auto;
    justify-content: flex-start;
    max-width: 54vw;
    scrollbar-width: none;
  }
  .header__nav::-webkit-scrollbar { display: none; }
  .header__phone-wrap { display: none; }
  .header__burger { display: flex; }

  .hero__container { min-height: 84vh; }
  .hero__content { max-width: 100%; }
  .hero__first-name,
  .hero__surname { font-size: clamp(42px, 12vw, 108px); }
  .hero__slogan { font-size: clamp(20px, 5.5vw, 42px); }

  .about__container { min-height: auto; }
  .about__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(24px, 5vh, 44px);
  }
  .about__left { max-width: 100%; padding-left: clamp(50px, 11vw, 78px); }
  .about__social-wrap {
    position: static;
    margin: 1rem 0 0;
    left: auto;
    top: auto;
  }
  .about__bottom { margin-top: 1rem; }
  .about__title { font-size: clamp(56px, 12vw, 140px); }
  .about__subtitle { font-size: clamp(28px, 7vw, 52px); margin-left: 0; margin-top: -10px; }
  .about__par--q1, .about__par--q2 { display: none; }

  .books__layout { grid-template-columns: 1fr; }
  .books__deco { display: none; }
  .creativity__top { grid-template-columns: 1fr; gap: 1rem; }
  .creativity__title { align-items: flex-start; text-align: left; }
  .creativity__grid { grid-template-columns: repeat(2, 1fr); }

  .footer { padding: 1.5rem 1rem; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__col--right { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .header__logo-img { width: 56px; height: 56px; }
  .header__link, .header__link--dropdown { font-size: 13px; padding: .25em .35em; }
  .header__sep { height: 22px; }
  .hero__container { min-height: 76vh; }
  .hero__first-name,
  .hero__surname { font-size: clamp(36px, 11vw, 72px); }
  .hero__slogan { font-size: clamp(18px, 5vw, 30px); }
  .about__left { padding-left: 54px; }
  .about__par--sec { left: 10px; font-size: 62px; }
  .about__title { font-size: clamp(44px, 12vw, 84px); }
  .about__subtitle { font-size: clamp(24px, 7.2vw, 38px); }
  .creativity__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   ПЛАНШЕТ — 860px
══════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .container { padding-inline: 18px; }

  /* Хедер */
  .header { --h: 72px; }
  .header__logo-img { width: 56px; height: 56px; }
  .header__link, .header__link--dropdown { font-size: 13px; padding: .25em .4em; }
  .header__sep { height: 24px; }
  .header__phone-wrap { display: none; }

  /* Герой */
  .hero__container { min-height: 78vh; }
  .hero__content { max-width: 92%; margin-top: clamp(180px, 38vh, 320px); }
  .hero__first-name,
  .hero__surname { font-size: clamp(44px, 9vw, 96px); }
  .hero__slogan { font-size: clamp(20px, 4.4vw, 32px); }

  /* Об авторе */
  .about { margin-top: -0.5rem; }
  .about__inner { grid-template-columns: 1fr; min-height: auto; padding: clamp(28px,5vh,40px) 0 32px; }
  .about__left { max-width: 100%; padding-left: clamp(36px, 7vw, 60px); }
  .about__social-wrap { position: static; margin: 1rem 0 0; }
  .about__par--q1, .about__par--q2 { display: none; }
  .about__title { font-size: clamp(50px, 9vw, 120px); }
  .about__subtitle { font-size: clamp(24px, 5.2vw, 40px); margin-left: 0; margin-top: -6px; }

  /* Книги: скрываем декоративную колонку */
  .books__deco { display: none; }
  .books__layout { grid-template-columns: 1fr; }
  .books__main { padding: 2.4rem 1.5rem 2.6rem; }
  .books__title { font-size: clamp(46px, 9vw, 90px); }
  .books__intro { font-size: 13px; }
  .books__item { padding: 1.8rem 0; }
  .books__cover-wrap { width: 160px; height: 278px; }
  .books__item-title,
  .books__item-year { font-size: clamp(20px, 4vw, 30px); }
  .books__item-desc { font-size: 13px; }

  /* Творчество */
  .creativity__top { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.8rem; }
  .creativity__lead { font-size: 0.78rem; }
  .creativity__title { align-items: flex-start; text-align: left; margin-top: -20px; }
  .creativity__t1,
  .creativity__t2 { font-size: clamp(60px, 9vw, 110px); }
  .creativity__grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }

  /* Футер */
  .footer { padding: 1.5rem 1rem; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__col--right { justify-content: center; }

  /* Страница книги (планшет): немного ужимаем */
  .bp-hero {
    height: calc(80vh - var(--h));
    min-height: 460px;
  }
  .bp-hero__content {
    padding: 0 4vw 2.5rem;
  }
  .bp-hero__line { font-size: clamp(2.4rem, 6vw, 80px); }
  .bp-hero__year { font-size: clamp(1.6rem, 4.5vw, 48px); }

  .bp-body__inner {
    grid-template-columns: 1.2fr 0.8fr;
    padding: clamp(2.5rem,5vh,4rem) 4vw clamp(3rem,7vh,4.5rem);
  }
  .bp-body__desc {
    font-size: clamp(.8rem, 1.1vw, 13px);
  }

  .bp-gallery__strip {
    padding-inline: 4vw;
    gap: clamp(.8rem,1.5vw,1.5rem);
  }
  .bp-gallery__img {
    height: clamp(260px, 45vh, 420px);
  }

  .bp-nav {
    padding-inline: 4vw;
  }
  .bp-nav__line {
    height: 6px;
  }
}



/* ══════════════════════════════════════════════════
   МОБИЛЬНАЯ ВЕРСИЯ 460–320 (без хедера)
══════════════════════════════════════════════════ */
@media (max-width: 460px) {
  body, 
  main, 
  .hero {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  
  /* 1) Хедер — убираем текстовые ссылки, оставляем логотип и бургер справа */
  .header__nav {
    display: none;
  }
  .header__phone-wrap {
    display: none;
  }
  .header__inner {
    justify-content: space-between;
  }

  /* Модалка "Получить бесплатно" — уменьшаем типографику */
  .modal.modal--fos .modal__box--form {
    padding: 1.6rem;
  }
  .modal.modal--fos .modal__fos-title {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  .modal.modal--fos .modal__fos-intro,
  .modal.modal--fos .modal__fos-list {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  .modal.modal--fos .modal__label {
    font-size: 0.8rem;
  }
  .modal.modal--fos .modal__input,
  .modal.modal--fos .modal__textarea {
    font-size: 0.9rem;
    padding: 0.45rem 0.65rem;
  }
  .modal.modal--fos .modal__submit {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

    /* ── 2. ГЕРОЙ (Hero) ── */
    .hero__container { 
      min-height: 72vh; 
    }
    
    .hero__content { 
      max-width: 100%; 
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    
    .hero__first-name { 
      font-size: clamp(50px, 9.5vw, 60px); 
      margin-bottom: 0; 
    }
    
    .hero__surname { 
      font-size: clamp(50px, 9.5vw, 60px); 
      line-height: 1;
    }
    .hero__slogan { 
      font-size: clamp(25px, 4.8vw, 26px);  
      line-height: 1.2;
    }

  /* 3) Разрыв — уменьшенный, но на границе блоков */
  .strip {
    width: 100%;
    margin-left: 0;
    margin-bottom: clamp(0.3em, 3vw, 0.6rem);
  }
  .strip__img {
    min-height: clamp(10px, 3.2vw, 18px);
  }

  /* 4) Об авторе — заголовки сверху, затем текст, затем соцсети */
  .about {
    height: auto;
    min-height: 0;
    margin-top: -1rem;
  }
  .about__bg-img {
    object-position: center;
  }
  .about__container {
    display: flex;
    flex-direction: column;
  }
  .about__bottom {
    position: static;
    order: -3;
    width: 100%;
    padding: 0;
    margin: 0 0 1rem;
    margin-top: 1rem;
  }
  .about__title {
    font-size: clamp(50px, 11vw, 60px);
    margin: 0;
  }
  .about__subtitle {
    font-size: clamp(18px, 6.4vw, 30px);
    margin: 0.145rem 0 0;
    margin-left: 1.5rem;

  }

  .about__par--sec{
    margin-top: 2rem;
  }
  .about__inner {
    order: -2;
    padding: clamp(14px, 4.5vw, 22px) 0 0;
    grid-template-columns: 1fr;

  }
  .about__left {
    width: 95%;
    min-height: 0;
    margin: 0;
    padding: 0;
    margin-top: -1rem;
    margin-left: 1rem;
  }
  .about__text {
    font-size: clamp(10px, 3.1vw, 11px);
    line-height: 1.5;
  }
  .about__social-wrap {
    position: static !important;
    order: -1; 
    transform: none !important;
    margin-top: 1rem;
    align-self: center; 
    width: 100%; 
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .about__social-link:nth-child(3) {
    margin-top: -1px;
  }
  .about__par--q1,
  .about__par--q2 {
    display: none;
  }

  /* 6) Книги — только основной блок, ужатый формат */
  .books {
    zoom: 1;
  }
  .books__intro-dots {
    align-self: center; 
    width: 100%; 
    display: flex;
    margin-left: 10rem;
    font-size: clamp(60px, 15vw, 100px); 
  }
  .books__layout {
    grid-template-columns: 1fr;
  }
  .books__deco {
    display: none;
  }
  .books__main {
    padding: 2.2rem 1rem 2rem;
  }
  .books__item {
    padding: 1.4rem 0.25rem;
  }
  .books__item::before,
  .books__item::after {
    display: none;
  }
  .books__item-link {
    gap: 1rem;
  }
  .books__cover-wrap {
    transform: none;
    width: 120px;
    height: 208px;
  }
  .books__item-title,
  .books__item-year,
  .books__item-desc {
    transform: none;
  }
  .books__item-title,
  .books__item-year {
    font-size: clamp(18px, 5.8vw, 28px);
  }
  .books__item-desc {
    font-size: 13px;
    line-height: 1.55;
    margin-top: 0.8rem;
  }
  .books__item-btns {
    opacity: 1 !important;           
    max-height: 300px !important;    
    overflow: visible !important;
    position: absolute !important;
    top: 230px !important;
    margin-left: 0 !important;       
    gap: 0.5rem;
    margin-top: 15px !important;     
    margin-bottom: auto !important;  
    align-self: flex-start !important; 

    width: 100% !important;          
    max-width: 120px !important;     
  }

  
  .books__btn {
    padding: 10px  !important; 
    font-size: 10px !important;
    width: 100% !important;          
  }
  .books__item:nth-child(9) .books__item-desc,
  .books__item:nth-child(10) .books__item-desc,
  .books__item:nth-child(11) .books__item-desc,
  .books__item:nth-child(12) .books__item-desc {
   transform: translate(0px, 0px);
  }

  /* 7) Творчество — заголовок сверху, затем текст, затем свайп одной работы */
  
  .creativity__top {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
  }
  

  .creativity__title {
    order: -1;
    margin-top: 0;
    width: 100%;
    display: block; 
  }
  .creativity__t1,
  .creativity__t2 {
    font-size: clamp(100px, 5vw, 150px);
    line-height: 1;
    color: var(--c-text);
    display: block;
  }


  .creativity__lead-wrap {
    text-align: left;
    padding-top: 0 !important; 
    padding-bottom: 1.5rem !important; 
    border: none !important; 
  }

  .creativity__lead-wrap::before {
    top: auto !important; /* Отрываем от верха */
    bottom: 0 !important; /* Прибиваем к самому низу блока */
    
    height: 8px !important; 
    
    left: -15px !important; 
    right: -15px !important; 
  }

  .creativity__grid {
    display: flex;
    width: 100%;
    max-width: 100%;
    left: 0;
    transform: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
  }
  .creativity__item {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
  }
  .creativity__link {
    width: 100%;
    height: clamp(260px, 78vw, 360px);
    aspect-ratio: auto;
  }
  .creativity__pager-wrapper {
    display: none;
  }

  /* 8) Миссия — компактный одноколоночный блок с новым фоном */
/* ══════════════════════════════════════════════════
   8. МИССИЯ (МОБИЛЬНАЯ ВЕРСИЯ - ТЕКСТ ПОВЕРХ ФОТО)
══════════════════════════════════════════════════ */

/* 1. Главный контейнер */
.mission {
  position: relative; /* Обязательно, чтобы фон не вылетел за пределы */
  min-height: 750px; /* Высота всей секции. Можешь менять (например, 700px или 100vh) */
  display: block; /* Убираем flex-column из прошлой идеи */
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

/* 2. Фотография (Нижний слой) */
.mission__bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important; /* Тянется на все 650px родителя */
  z-index: 1 !important; /* Самый нижний слой */
  
  background-image: url("../assets/extended_white_top.jpg") !important;
  background-size: cover !important;
  /* top center гарантирует, что белая зона сверху не обрежется! */
  background-position: top center !important; 
  background-repeat: no-repeat !important;
}

/* Скрываем старый тег img, раз используем background */
.mission__bg-img {
  display: none !important;
}

/* 3. Обертка для текста (Верхний слой) */
.mission__inner {
  position: relative; /* Чтобы z-index сработал */
  z-index: 10 !important; /* Кладем поверх фотографии */
  
  width: 100%;
  height: auto;
  /* Отступы: 2.2rem сверху, чтобы текст не прилипал к краю экрана, 1.5rem по бокам */
  padding: 2.2rem 1.5rem 0; 
  margin: 0;
}

/* 1. Верхний текст */
.mission__lead {
  position: relative;
  margin: 0 0 0.2rem; 
  font-size: 11px;
  line-height: 1.6;
  text-align: center !important;
  width: 100%;
}

/* 2. Заголовок МИССИЯ */
.mission__title {
  position: relative;
  margin: 0 0 0.5rem; 
  font-size: clamp(44px, 14vw, 70px);
  color: #7b0002;
  will-change: auto !important;
  
  /* --- ЦЕНТРИРУЕМ ПО ГОРИЗОНТАЛИ --- */
  text-align: center !important;
  width: 100%; /* Гарантирует, что центр считается от краев экрана */
  
  /* Твой сдвиг (оставляем, раз он ставит слово куда нужно) */
  top: -500px; 
}

/* 3. Нижний текст */
.mission__text {
  position: relative;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
  
  top: 50px; 
  text-align: center !important;
  width: 100%;
}


  

  /* 9) Подвал — просто ужатый стек */
  .footer {
    min-height: 0;
    padding: 1.25rem 0.85rem;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    text-align: center;
  }
  .footer__col--left,
  .footer__col--center,
  .footer__col--right {
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    padding: 0;
  }
  .footer__col--center::before,
  .footer__col--center::after {
    display: none;
  }
  .footer__city,
  .footer__email,
  .footer__phone-link,
  .footer__acquire-label,
  .footer__acquire-phone,
  .footer__acquire-name {
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.35;
  }
  .footer__logo {
    width: clamp(82px, 24vw, 110px);
    height: clamp(82px, 24vw, 110px);
  }
  .footer__icon {
    width: 40px;
    height: 40px;
  }


  /* ══════════════════════════════════════════════════
     СТРАНИЦА КНИГИ (Мобильная версия)
  ══════════════════════════════════════════════════ */

  /* ── 1. Герой (чуть компактнее для мобилок) ── */
  .bp-hero {
    height: 60vh !important;
    min-height: 400px !important;
  }
  .bp-hero__content {
    padding: 0 15px 2rem !important; /* Убираем огромные отступы по краям */
  }

  /* ── 2. Блок текст + § (Даем тексту всю ширину) ── */
  .bp-body__inner {
    /* ОТКЛЮЧАЕМ 380px колонку! Теперь текст на всю ширину */
    grid-template-columns: 1fr !important; 
    padding: 2.5rem 15px !important;
    gap: 2rem !important;
  }
  .bp-body__text-col {
    /* Обнуляем огромные боковые отступы, которые сдавливали текст */
    padding: 0 !important; 
  }
  
  /* Символ § уходит под текст и центрируется */
  .bp-body__deco-col {
    display: none !important;
  }
  .bp-body__sym {
    font-size: 140px !important; /* Делаем его аккуратнее для телефона */
    margin-top: 0 !important;
  }

  /* Точки (чтобы они не висели криво поверх мобильного текста) */
  .bp-body__dots {
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    font-size: 60px !important;
    margin: 20px 0 !important;
  }

  /* ── 3. Галерея (Фотографии влезают в экран) ── */
  .bp-gallery__strip {
    padding: 0 15px 1.5rem !important;
    justify-content: flex-start !important; /* Для удобного свайпа пальцем с левого края */
    gap: 15px !important;
  }
  .bp-gallery__img {
    /* Ограничиваем высоту, а ширина подстроится. 
       max-width: 90vw не даст фото вылезти за ширину телефона! */
    height: 280px !important; 
    max-width: 90vw !important; 
  }

  /* ── 4. Навигация пред/след (Уменьшаем нижнюю линию) ── */
  .bp-nav {
    padding: 2rem 15px !important;
    gap: 1rem !important;
  }
  .bp-nav__line {
    /* Уменьшаем саму полоску */
    height: 3px !important;   /* Было 10px — делаем тонкой и изящной */
    flex: 0 0 30% !important; /* Было 60% ширины — делаем короче */
    max-width: 30% !important;
  }
}

/* ══════════════════════════════════════════════════
   МОДАЛЬНЫЕ ОКНА
══════════════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal[aria-hidden="false"],
.modal:not([hidden]) { opacity: 1; visibility: visible; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.8); cursor: pointer;
}
.modal__box {
  position: relative;
  background: var(--c-white); border-radius: 8px;
  max-width: 90vw; max-height: 92vh; overflow: auto;
  transform: scale(.94); transition: transform .3s var(--ease);
}
.modal[aria-hidden="false"] .modal__box,
.modal:not([hidden]) .modal__box { transform: scale(1); }

.modal__box--img  { padding: 0; background: transparent; }
.modal__box--menu {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 0;
  background: rgba(0,0,0,.93);
  color: var(--c-white);
  padding: clamp(1.5rem, 5vh, 3rem) clamp(1.5rem, 7vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.modal--header-menu {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}
.modal--header-menu .modal__backdrop {
  background: rgba(0,0,0,.85);
}
.modal--header-menu .modal__close {
  background: transparent;
  font-size: 1.8rem;
}
.modal--header-menu .modal__close:hover {
  background: rgba(255,255,255,.12);
}
.header-menu {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.header-menu__link {
  font-family: var(--f-serif);
  font-size: clamp(1.4rem, 5.8vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--c-white);
  transition: color .2s var(--ease), transform .15s var(--ease), opacity .2s var(--ease);
}
.header-menu__link:hover {
  color: var(--c-red-hero);
  transform: translateX(4px);
  opacity: .9;
}
.modal__close {
  position: absolute; top: .5rem; right: .5rem; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: var(--c-white);
  font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal__close:hover { background: rgba(0,0,0,.85); }
.modal__img {
  max-width: 100%; max-height: 85vh;
  width: auto; height: auto; display: block; margin: 0 auto;
}
.modal__caps {
  background: rgba(0,0,0,.75); color: var(--c-white);
  padding: .9rem 1.2rem; text-align: center;
}
.modal__cap-title { font-weight: 600; font-size: 1.05rem; margin-bottom: .2rem; }
.modal__cap-sub   { font-size: .9rem; opacity: .85; }

/* ФОС форма */
.modal__box--form { padding: 2.25rem; max-width: 540px; width: 100%; }
.modal__fos-title { margin: 0 0 .9rem; font-size: 1.4rem; }
.modal__fos-intro { margin: 0 0 1rem; font-size: .95rem; line-height: 1.6; }
.modal__fos-list  { padding-left: 0.25rem; margin: 0 0 1.5rem; line-height: 1.7; font-size: .95rem; }
.modal__form      { display: flex; flex-direction: column; gap: .9rem; }
.modal__label     { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.modal__input {
  padding: .5rem .75rem; border: 1px solid #ccc;
  border-radius: 4px; font-size: 1rem; font-family: var(--f-serif);
}
.modal__textarea  { resize: vertical; min-height: 90px; }
.modal__submit {
  padding: .75rem 1.5rem; background: var(--c-red);
  color: var(--c-white); border-radius: 4px; font-size: 1rem;
  margin-top: .3rem; transition: background .2s;
}
.modal__submit:hover { background: #6d1e2a; }

/* ══════════════════════════════════════════════════
   СТРАНИЦА КНИГИ (bp-*)
══════════════════════════════════════════════════ */

/* ── 1. Герой ── */
.bp-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--h));
  min-height: 520px;
  overflow: hidden;
  background: #111;
}
.bp-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.55) 60%,
    rgba(0,0,0,.75) 100%
  );
}
.bp-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 6vw clamp(2.5rem, 6vh, 5.5rem);
}
.bp-hero__title {
  display: flex;
  flex-direction: column;
  gap: .1em;
  font-family: var(--f-serif);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-white);
  margin: 0;
}
.bp-hero__line {
  font-size: clamp(3rem, 7.5vw, 110px);
}
.bp-hero__first {
  color: var(--c-red);
}
.bp-hero__rest {
  color: var(--c-white);
}
.bp-hero__year {
  font-size: clamp(2rem, 5.5vw, 80px);
  font-weight: 700;
  color: var(--c-white);
}

/* ── 2. Блок текст + § ── */
.bp-body {
  background: var(--c-light);
}
.bp-body__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  max-width: 1900px;
  margin-inline: auto;
  padding: clamp(3rem, 6vh, 6rem) 6vw clamp(50px, 15vw, 150px);
  align-items: start;
  min-height: 50vh;
}
.bp-body__text-col {
  padding: clamp(1.5rem, 3vh, 3rem) clamp(2rem, 4vw, 5rem) clamp(1.5rem, 3vh, 3rem) 0;
}
.bp-body__desc {
  font-family: var(--f-serif);
  font-size: clamp(.82rem, .95vw, 14px);
  line-height: 1.75;
  color: var(--c-text);
}
.bp-body__desc p {
  margin: 0 0 1em;
}
.bp-body__desc p:last-child { margin-bottom: 0; }
.bp-body__dots {
  font-family: var(--f-serif);
  font-size: clamp(50px, 12vw, 230px);
  color: rgb(158, 11, 15);
  letter-spacing: 0px;
  line-height: 0;
  margin: 0;
  padding: 0;
  height: 0;
  
  /* --- МАГИЯ ЦЕНТРИРОВАНИЯ ПО СТРАНИЦЕ --- */
  position: absolute; 
  left: 50vw; /* Сдвигаем левый край ровно на середину экрана */
  transform: translateX(-50%); /* Смещаем сам элемент на половину его ширины назад */
  width: 100vw; /* Задаем ширину во весь экран */
  text-align: center; /* Центрируем текст внутри этих 100vw */
  
  /* Если точки перекрывают текст и мешают его выделять, добавляем это: */
  pointer-events: none; 
}
.bp-body__deco-col {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: clamp(0.5rem, 1vh, 1.5rem);
  overflow: visible;
  align-self: stretch;
}
.bp-body__sym {
  font-family: var(--f-serif);
  font-size: clamp(200px, 28vw, 520px);
  font-weight: 800;
  color: #252525;
  line-height: .85;
  user-select: none;
  display: block;
  margin-top: clamp(-60px, -6vw, -30px);
}


/* ── 3. Галерея ── */
.bp-gallery {
  background: var(--c-light);
  overflow: hidden;
}

.bp-gallery__strip {
  display: flex;
  
  /* --- ВЫРАВНИВАНИЕ ПО ЦЕНТРУ --- */
  justify-content: center; 
  
  overflow-x: auto;
  scrollbar-width: none;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0 6vw clamp(1rem, 2vh, 2rem);
}

.bp-gallery__strip::-webkit-scrollbar { 
  display: none; 
}

.bp-gallery__img {
  flex: 0 0 auto;
  width: auto;
  
  /* --- АДАПТИВНАЯ ВЫСОТА --- 
     300px - минимальная высота для телефонов
     40vh  - идеальная высота (40% от высоты экрана)
     550px - максимальная высота (чуть больше твоих старых 400px) */
  height: clamp(300px, 40vh, 550px);
  z-index: 100;
  object-fit: contain;
  display: block;
}

/* ── 4. Навигация пред/след ── */
.bp-nav {
  background: var(--c-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: clamp(1.5rem, 3vh, 3rem) 6vw;
}
.bp-nav__link {
  font-family: var(--f-serif);
  font-size: clamp(.85rem, 1.1vw, 16px);
  color: var(--c-red);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
  flex-shrink: 0;
}
.bp-nav__link:hover { opacity: .7; }
.bp-nav__line {
  flex: 0 0 60%;
  max-width: 60%;
  height: 10px;
  background: var(--c-red);
}

/* ── Новый футер на book.html ── */
.footer__city {
  display: block;
  font-family: var(--f-serif);
  color: var(--c-white);
}
.footer__phone-link {
  display: block;
  font-family: var(--f-serif);
  color: var(--c-white);
  text-decoration: none;
  transition: opacity .2s;
}

.footer__acquire-label,
.footer__acquire-phone,
.footer__acquire-name {
  display: block;
  font-family: var(--f-serif);
  color: var(--c-white);
  text-decoration: none;
}
.footer__acquire-phone {
  transition: opacity .2s;
}


/* плейсхолдеры отсутствующих изображений */
img[src=""],img:not([src]) { background: #ccc; min-height: 80px; }
.feed__img[src=""],
.feed__img:not([src]) { background: #333; min-height: 220px; }
.books__cover[src=""],
.books__cover:not([src]) { background: #aaa; }
