/* ==========================================================================
   Aegitas — главная страница
   Шрифты: Nunito (заголовки), Inter (текст)
   Палитра: #E8001C (красный), #FFFFFF, #F7F7F7, #1A1A1A, #6B6B6B, #1C1C2E
   ========================================================================== */

:root {
  --red: #E8001C;
  --red-dark: #C40017;
  /* кремовая «книжная» палитра: тёплая бумага вместо стерильно-белого */
  --paper: #FFFDF7;   /* карточки / самый светлый слой */
  --bg: #FBF7EF;      /* основной фон секций — кремовый */
  --bg-soft: #F3ECDE; /* чередующийся фон — глубже кремовый */
  --ink: #1A1A1A;
  --ink-soft: #6B6B6B;
  --navy: #1C1C2E;
  --navy-soft: #2A2A40;
  --line: rgba(26, 26, 26, 0.08);

  --font-display: 'Nunito', sans-serif;
  --font-text: 'Inter', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;

  --container: 1280px;
  --radius: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 10px rgba(26,26,26,0.05);
  --shadow-md: 0 12px 32px rgba(26,26,26,0.08);
  --shadow-red: 0 12px 28px rgba(232,0,28,0.22);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }

.section { padding: 64px 0; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #CE0019; /* чуть темнее брендового: контраст ≥4.5 и на светло-сером фоне */
  margin: 0 0 12px;
}

.section__head { max-width: 640px; margin-bottom: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.section__head--center { border-top: none; }
.section__head--center { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(232,0,28,0.28); }

.btn--secondary {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn--secondary:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

.btn--block { width: 100%; }

.btn--primary-sm, .btn--ghost-sm {
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: all 0.2s ease;
}
.btn--primary-sm { background: var(--red); color: #fff; }
.btn--primary-sm:hover { background: var(--red-dark); }
.btn--ghost-sm {
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn--ghost-sm:hover { border-color: var(--red); color: var(--red); }

.link-arrow {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow:hover { gap: 14px; color: var(--red); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 254, 251, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(26,26,26,0.04);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; height: 36px; width: auto; flex-shrink: 0; }

.nav { display: none; gap: 28px; flex-shrink: 0; }
.nav__link {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--red);
  transition: right 0.25s ease;
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { right: 0; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__actions .btn--ghost-sm { display: none; }

@media (min-width: 1100px) {
  .nav { display: flex; }
  .header__actions .btn--ghost-sm { display: inline-flex; }
}

/* burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1100px) { .burger { display: none; } }

.nav-mobile {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
/* 10 пунктов меню ≈ 546 px — при 480 px «Кабинет правообладателя» и часть «Контактов» обрезались (10.11.2026).
   Шапка «липкая», поэтому на низких экранах меню прокручивается внутри себя. */
.nav-mobile.is-open { max-height: min(640px, calc(100vh - 120px)); overflow-y: auto; }
.nav-mobile a {
  padding: 14px 24px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav-mobile__cabinet { color: var(--red) !important; font-weight: 800 !important; }

@media (min-width: 1100px) { .nav-mobile { display: none !important; } }

/* ==========================================================================
   HERO
   ========================================================================== */
/* ==========================================================================
   HOME HERO — «Разворот»: десктоп = открытая книга, мобильный = hero-баннер
   ========================================================================== */
.home-hero { padding: 44px 0 64px; }
@media (min-width: 1024px) { .home-hero { padding: 56px 0 80px; } }

.home-hero .spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  border-radius: 6px 10px 10px 6px;
  box-shadow: 0 30px 70px rgba(38, 32, 22, 0.26), 0 6px 18px rgba(38, 32, 22, 0.16);
}
.home-hero .page {
  background:
    repeating-linear-gradient(2deg, transparent 0 3px, rgba(120, 100, 70, 0.012) 3px 6px),
    linear-gradient(180deg, #FBF7EE 0%, #F7F2E6 100%);
  padding: 68px 60px 52px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.home-hero .page--left { border-radius: 6px 0 0 6px; }
.home-hero .page--right { border-radius: 0 10px 10px 0; }
.home-hero .page--left::after, .home-hero .page--right::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 56px; pointer-events: none;
}
.home-hero .page--left::after { right: 0; background: linear-gradient(90deg, transparent, rgba(60, 48, 30, 0.14)); }
.home-hero .page--right::before { left: 0; background: linear-gradient(270deg, transparent, rgba(60, 48, 30, 0.10)); }
.home-hero .spread::before, .home-hero .spread::after {
  content: ''; position: absolute; top: 5px; bottom: 5px; width: 7px; z-index: -1;
  background: repeating-linear-gradient(90deg, #EFE9DB 0 1.6px, #DDD5C2 1.6px 2.4px);
}
.home-hero .spread::before { left: -6px; border-radius: 4px 0 0 4px; }
.home-hero .spread::after { right: -6px; border-radius: 0 4px 4px 0; }

/* левая страница — титул */
.home-hero .titul { align-items: center; text-align: center; justify-content: space-between; }
.home-hero .titul__top {
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-soft);
}
.home-hero .titul__mid { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.home-hero .titul__vignette { color: #C9993A; font-size: 18px; letter-spacing: 0.6em; padding-left: 0.6em; }
.home-hero .titul__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(38px, 4.6vw, 62px); line-height: 1.12; margin: 0;
}
.home-hero .titul__title em { font-style: italic; }
.home-hero .titul__title .accent { color: var(--red); }
.home-hero .titul__sub { font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 42ch; }
.home-hero .titul__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.home-hero .titul__link {
  font-family: var(--font-display); font-weight: 800; font-size: 14.5px;
  color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.home-hero .titul__trust {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; margin-top: 20px;
}

/* правая страница — живой текст изданной книги */
.home-hero .live__running {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-right: 64px;
  font-family: var(--font-display); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: #B4AA96;
  border-bottom: 1px solid #E6DFCE; padding-bottom: 10px; margin-bottom: 34px;
}
.home-hero .live__chapter {
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: 24px; text-align: center; margin: 0 0 24px;
}
.home-hero .live__text {
  font-family: var(--font-serif); font-size: 17px; line-height: 1.72;
  color: #2A2620; text-align: justify; text-indent: 1.4em; margin: 0 0 6px;
}
.home-hero .live__text--drop { text-indent: 0; }
.home-hero .live__text--drop::first-letter {
  font-weight: 700; font-size: 3.2em; line-height: 0.74; float: left; margin: 0.05em 0.12em 0 0;
}
.home-hero .live__note {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid #E6DFCE;
  font-size: 13px; line-height: 1.6; color: var(--ink-soft); font-family: var(--font-text);
}
.home-hero .live__note a { color: var(--red); border-bottom: 1px solid rgba(232,0,28,0.35); }
.home-hero .live__folio {
  margin-top: auto; text-align: center; font-family: var(--font-serif);
  font-size: 13.5px; color: #B4AA96; padding-top: 20px;
}

/* ляссе — тонкая декоративная ленточка-закладка (без текста) */
.home-hero .book-ribbon {
  position: absolute; top: 0; right: 58px; width: 20px; height: 116px; z-index: 5;
  background: linear-gradient(90deg, #B80016 0%, #E8001C 55%, #C7001A 100%);
  box-shadow: 0 6px 14px rgba(180, 0, 22, 0.28);
  /* «хвост» ленты — уголком внизу */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
}
.home-hero .book-ribbon::before {
  /* лёгкий блик вдоль левого края ленты */
  content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: rgba(255, 255, 255, 0.18);
}

/* планшет: разворот сжимается, но остаётся разворотом */
@media (max-width: 980px) and (min-width: 641px) {
  .home-hero .page { padding: 52px 36px 40px; }
  .home-hero .titul__title { font-size: clamp(32px, 5vw, 48px); }
  .home-hero .live__text { font-size: 15.5px; }
  .home-hero .live__running { padding-right: 56px; }
}

/* телефон: обычный hero-баннер — оффер сразу, разворот прячем */
@media (max-width: 640px) {
  .home-hero { padding: 16px 0 36px; }
  .home-hero .book-ribbon { display: none; }
  .home-hero .page--right { display: none; }
  .home-hero .spread::before, .home-hero .spread::after { display: none; }
  .home-hero .page--left::after { display: none; }
  .home-hero .spread {
    grid-template-columns: 1fr; min-height: 0; border-radius: 12px;
    box-shadow: 0 16px 40px rgba(38, 32, 22, 0.14);
  }
  .home-hero .page--left { border-radius: 12px; padding: 38px 24px 32px; }
  .home-hero .titul { text-align: left; align-items: stretch; gap: 22px; }
  .home-hero .titul__top { text-align: left; font-size: 11px; letter-spacing: 0.2em; }
  .home-hero .titul__mid { align-items: flex-start; text-align: left; gap: 16px; }
  .home-hero .titul__vignette { padding-left: 0; font-size: 15px; }
  .home-hero .titul__title { font-size: clamp(33px, 9.4vw, 46px); }
  .home-hero .titul__sub { max-width: none; font-size: 16px; }
  .home-hero .titul__cta { align-items: stretch; gap: 12px; }
  .home-hero .titul__cta .btn--primary { text-align: center; padding-top: 15px; padding-bottom: 15px; }
  .home-hero .titul__link { align-self: flex-start; }
  .home-hero .titul__trust { text-align: left; }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 80px;
}
@media (min-width: 1024px) { .hero { padding: 88px 0 110px; } }

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

.hero__inner {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
}

.eyebrow + .hero__title { margin-top: 0; }

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 14ch;
}
.hero__title-accent { font-style: italic; font-weight: 700; }
.hero__title-accent {
  position: relative;
  white-space: nowrap;
}
.hero__title-accent::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 6px;
  height: 0.32em;
  background: var(--red);
  opacity: 0.18;
  z-index: -1;
  border-radius: 4px;
}

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

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
}
.hero__trust strong { color: var(--ink); font-weight: 700; }
.hero__trust .dot { color: var(--line); padding: 0 2px; }

/* --- book stack visual: реальные обложки --- */
.hero__visual { position: relative; }
.book-stack {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book {
  position: absolute;
  width: 160px;
  border-radius: 4px 10px 10px 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book img {
  width: 100%;
  height: auto;
  display: block;
}
.book::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 6px 0 12px rgba(0,0,0,0.15), inset 0 0 0 1px rgba(0,0,0,0.06);
  pointer-events: none;
}
.book:hover { transform: scale(1.04) !important; box-shadow: 0 20px 44px rgba(26,26,26,0.18); z-index: 5; }

.book--1 { transform: rotate(-7deg) translate(-58%, -10%); z-index: 3; }
.book--1:hover { transform: rotate(-7deg) translate(-58%, -10%) scale(1.04); }
.book--2 { transform: rotate(4deg) translate(2%, -26%); z-index: 2; }
.book--2:hover { transform: rotate(4deg) translate(2%, -26%) scale(1.04); }
.book--3 { transform: rotate(-2deg) translate(58%, 8%); z-index: 1; }
.book--3:hover { transform: rotate(-2deg) translate(58%, 8%) scale(1.04); }
.book--4 { transform: rotate(9deg) translate(-14%, 30%); z-index: 0; }
.book--4:hover { transform: rotate(9deg) translate(-14%, 30%) scale(1.04); }

.hero__caption {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 20px;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 16px;
}

@media (max-width: 640px) {
  .book-stack { min-height: 320px; }
  .book { width: 124px; }
}

/* ==========================================================================
   PUBLISHER BANNER
   ========================================================================== */
.publisher-banner {
  display: block;
  background: var(--navy);
  color: #fff;
  transition: background 0.2s ease;
}
.publisher-banner:hover { background: var(--navy-soft); }
.publisher-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  text-align: center;
  font-size: 15px;
  flex-wrap: wrap;
}
.publisher-banner__inner strong { font-family: var(--font-display); font-weight: 800; margin-right: 6px; }
.publisher-banner__arrow {
  color: var(--red);
  font-weight: 900;
  transition: transform 0.2s ease;
}
.publisher-banner:hover .publisher-banner__arrow { transform: translateX(4px); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--bg); }

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card--featured { background: var(--bg-soft); }

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(232,0,28,0.07);
}
.service-card__icon svg { width: 30px; height: 30px; }

.service-card__title {
  font-size: 22px;
  font-weight: 800;
}
.service-card__text {
  color: var(--ink-soft);
  font-size: 15px;
  flex-grow: 1;
}
.service-card__link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.service-card:hover .service-card__link { gap: 10px; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how { background: var(--bg-soft); }

.how__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .how__list { grid-template-columns: repeat(2, 1fr); } }

.how__step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .how__step:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 40px; }
  .how__step:nth-child(even) { padding-left: 40px; }
}

.how__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  color: var(--red);
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
}
.how__body h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}
.how__body p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ==========================================================================
   PLATFORMS
   ========================================================================== */
.platforms { background: var(--bg); }

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

/* ----- Books carousel ----- */
.books-carousel {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}
.books-carousel__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: carousel-scroll 50s linear infinite;
}
.books-carousel:hover .books-carousel__track { animation-play-state: paused; }

.books-carousel__item {
  flex-shrink: 0;
  width: 140px;
  border-radius: 4px 8px 8px 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.books-carousel__item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.books-carousel__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .books-carousel__item { width: 110px; }
  .books-carousel__item img { height: 165px; }
}

@media (prefers-reduced-motion: reduce) {
  .books-carousel__track { animation: none; }
}

.platforms__more {
  margin-top: 40px;
  text-align: center;
}

/* ==========================================================================
   FACTS
   ========================================================================== */
.facts {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.facts__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(232,0,28,0.25) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(232,0,28,0.15) 0%, transparent 40%);
}
.facts .container { position: relative; }

.facts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 640px) { .facts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .facts__grid { grid-template-columns: repeat(6, 1fr); gap: 24px; } }

.fact { display: flex; flex-direction: column; gap: 8px; }
.fact__num {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(44px, 5.6vw, 64px);
  letter-spacing: -0.01em;
  color: #fff;
}
.fact__unit {
  color: var(--red);
  font-size: 0.6em;
  margin-left: 2px;
}
.fact__label {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 22ch;
}
.fact--highlight .fact__num,
.fact--highlight .fact__unit { color: var(--red); }
.fact--highlight .fact__label { color: rgba(255,255,255,0.85); }

@media (min-width: 1100px) {
  .fact--highlight {
    grid-column: span 2;
    border-left: 1px solid rgba(255,255,255,0.12);
    padding-left: 24px;
  }
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.reviews { background: var(--bg-soft); }

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

.review-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.review-card__cover {
  width: 64px;
  height: 92px;
  object-fit: cover;
  border-radius: 3px 8px 8px 3px;
  box-shadow: var(--shadow-sm);
}

.review-card__quote {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
  flex-grow: 1;
  font-style: italic;
}
.review-card:first-child .review-card__quote::first-letter {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.7;
  float: left;
  margin: 0.08em 0.08em 0 0;
  color: var(--red);
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.review-card__author strong { display: block; font-weight: 800; }
.review-card__author span { color: var(--ink-soft); }
.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: linear-gradient(135deg, #FBE3E5, #F2A359);
}

/* ==========================================================================
   GUARANTEE
   ========================================================================== */
.guarantee { background: var(--bg); padding-top: 96px; padding-bottom: 48px; }
@media (min-width: 1024px) { .guarantee { padding-top: 130px; padding-bottom: 64px; } }

.guarantee__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  background: var(--paper);
}
@media (min-width: 768px) {
  .guarantee__inner { flex-direction: row; align-items: center; gap: 40px; padding: 48px 56px; }
}

.guarantee__mark { flex-shrink: 0; }

.guarantee__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 34px);
  margin-bottom: 12px;
}
.guarantee__text {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 64ch;
}

/* ==========================================================================
   HOME FAQ
   ========================================================================== */
.home-faq { background: var(--bg); }

.home-faq__list {
  border-top: 1px solid var(--line);
  max-width: 880px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  padding: 22px 40px 22px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--red);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--red); }
.faq-item p {
  padding: 0 40px 24px 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 72ch;
}
.faq-item p a { color: var(--red); font-weight: 600; }
.faq-item p a:hover { text-decoration: underline; }

.home-faq__more { margin-top: 36px; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.final-cta__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(232,0,28,0.3) 0%, transparent 50%);
}
.final-cta__inner {
  position: relative;
  display: grid;
  gap: 48px;
}
@media (min-width: 940px) { .final-cta__inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }

.final-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 16px;
}
.final-cta__subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 24px;
}
.final-cta__list { display: flex; flex-direction: column; gap: 12px; }
.final-cta__list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}
.final-cta__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--red);
}

.final-cta__form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.final-cta__form-title { font-size: 22px; font-weight: 800; }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.form-field input {
  font-family: var(--font-text);
  font-size: 15px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}
.form-checkbox input { margin-top: 3px; accent-color: var(--red); }
.form-checkbox a { color: var(--red); text-decoration: underline; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--bg-soft); padding-top: 64px; }

.footer__top {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.4fr repeat(3, 1fr); } }

.footer__brand .logo { margin-bottom: 16px; }
.footer__tagline { color: var(--ink-soft); font-size: 14px; max-width: 32ch; }

.footer__nav h4, .footer__contacts h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: var(--ink-soft);
}
.footer__nav { display: flex; flex-direction: column; }
.footer__nav a, .footer__contacts a {
  font-size: 14.5px;
  padding: 6px 0;
  color: var(--ink);
  transition: color 0.2s ease;
}
.footer__nav a:hover, .footer__contacts a:hover { color: var(--red); }

.footer__contacts { display: flex; flex-direction: column; }
.footer__messengers { display: flex; gap: 10px; margin-top: 12px; }
.messenger-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.messenger-icon:hover { background: var(--red); color: #fff; border-color: var(--red); }
.messenger-icon svg { width: 18px; height: 18px; display: block; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  /* только сверху и снизу: шорткат «24px 0» обнулял боковые поля .container — на телефоне текст прилипал к краю (06.11.2026) */
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__legal-links a:hover { color: var(--red); }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  max-width: 720px;
  margin: 0 auto;
  transform: translateY(140%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { font-size: 13.5px; color: rgba(255,255,255,0.85); }
.cookie-banner a { color: #FF8A94; text-decoration: underline; } /* светлее брендового красного — контраст ≥4.5 на тёмном фоне */

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__badge { animation: none; }
}

/* ==========================================================================
   NEW BOOKS — «Только что издали»
   ========================================================================== */
.newbooks { background: var(--bg-soft); }

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

.newbook-card {
  min-width: 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.newbook-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.newbook-card__cover {
  width: 92px;
  flex-shrink: 0;
  border-radius: 3px 8px 8px 3px;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.newbook-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.newbook-card__date {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.newbook-card__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}
.newbook-card__author {
  font-size: 14px;
  color: var(--ink-soft);
}
.newbook-card__link {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.newbook-card:hover .newbook-card__link { gap: 10px; }

/* ==========================================================================
   PROMO BAR
   ========================================================================== */
.promo-bar {
  background: var(--red);
  color: #fff;
}
.promo-bar.is-hidden { display: none; }
.promo-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 9px 24px;
  position: relative;
}
.promo-bar p {
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
}
.promo-bar strong {
  font-family: var(--font-display);
  font-weight: 800;
  background: rgba(255,255,255,0.16);
  border-radius: 4px;
  padding: 1px 8px;
  letter-spacing: 0.04em;
}
.promo-bar__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s ease;
}
.promo-bar__close:hover { color: #fff; }

/* ==========================================================================
   HERO — консультация (мягкий CTA)
   ========================================================================== */
.hero__consult {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: -16px 0 32px;
}
.hero__consult a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.hero__consult a:hover { color: var(--red); }

/* ==========================================================================
   FACTS — строка площадок
   ========================================================================== */
.facts__partners {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 900px) {
  .facts__partners { flex-direction: row; align-items: center; gap: 40px; }
}
.facts__partners-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
}
.facts__partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.facts__partners-row span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s ease;
}
.facts__partners-row span:hover { color: #fff; }

/* ==========================================================================
   LAUNCH — флагманский пакет «{{PACKAGE_NAME}}»
   Структура и иллюстрация подготовлены внешним прототипом (ChatGPT), адаптированы
   под токены проекта: шрифты var(--font-serif)/var(--font-display)/var(--font-text),
   var(--red)/var(--ink)/var(--line), брейкпоинты сайта. Текст — наш утверждённый.
   ========================================================================== */
.launch { background: var(--bg); padding-top: 64px; padding-bottom: 64px; }

.launch__panel {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 40px 24px 32px;
  overflow: hidden;
}
@media (min-width: 768px) { .launch__panel { padding: 54px 48px 40px; } }

/* Три коротких выгоды в правом верхнем углу панели (видны от планшета) */
.launch__benefits {
  display: none;
}
@media (min-width: 900px) {
  .launch__benefits {
    display: block;
    position: absolute; z-index: 2; top: 54px; right: 48px;
    text-align: right;
  }
  .launch__benefits li {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    line-height: 1.9;
  }
}

/* Бейдж: AEGITAS WORLD EDITION — линия — Флагманская услуга */
.launch__kicker {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.launch__kicker b { color: var(--red); font-weight: 800; font-size: 13px; }
.launch__kicker i { flex: 0 0 auto; width: 48px; height: 1px; background: var(--line); font-style: normal; }
.launch__kicker span { color: var(--ink-soft); font-weight: 700; }

/* Хиро-пара: текст + иллюстрация */
.launch__hero { display: grid; gap: 36px; align-items: center; margin-bottom: 40px; }
@media (min-width: 860px) { .launch__hero { grid-template-columns: 0.92fr 1.28fr; gap: 32px; } }

.launch__slogan {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 22px;
}
.launch__slogan em { color: var(--red); font-style: normal; }

.launch__lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 28px;
}

.launch__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.launch__cta .btn--primary { white-space: normal; text-align: center; }

@media (max-width: 480px) {
  .launch__kicker { white-space: normal; gap: 10px; margin-bottom: 20px; }
  .launch__kicker b { font-size: 11px; }
  .launch__kicker i { width: 22px; }
  .launch__kicker span { font-size: 10px; }
  .launch__cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .launch__cta .btn--primary { width: 100%; }
  .launch__cta .link-arrow { align-self: flex-start; }
}

/* Иллюстрация: PNG/WebP с альфа-прозрачностью по краям (мягкие тени/дымка),
   плюс дополнительная маска-градиент на левом крае — гасит саму картинку
   до полной прозрачности, чтобы её содержимое никогда не перекрывало текст
   слева, даже когда иллюстрация шире своей колонки. */
.launch__art { position: relative; min-height: 260px; display: flex; align-items: center; justify-content: center; overflow: visible; }
.launch__art-visual {
  width: 100%; max-width: none; height: auto; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
          mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}

@media (min-width: 860px) { .launch__art { min-height: 360px; } .launch__art-visual { width: 110%; } }
@media (min-width: 1100px) { .launch__art-visual { width: 114%; } }

/* Формула 1 → 7 → 3 → 70+ */
.launch__formula {
  display: grid;
  gap: 24px;
  padding: 28px 0;
  margin-bottom: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .launch__formula {
    grid-template-columns: minmax(150px,.85fr) 24px minmax(200px,1.1fr) 24px minmax(210px,1.1fr) 24px minmax(190px,1fr);
    align-items: flex-start;
  }
}

.launch__step { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.launch__step-icon {
  flex: 0 0 44px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(232,0,28,0.07); color: var(--red);
}
.launch__step-icon svg { width: 22px; height: 22px; }
.launch__step header { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; }
.launch__step strong {
  font-family: var(--font-serif); font-weight: 700; font-size: clamp(34px, 4vw, 46px);
  line-height: 0.9; color: var(--red);
}
.launch__step b { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; }
.launch__step p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }

.launch__chips-row, .launch__tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.launch__chips-row span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 26px; padding: 0 6px;
  border-radius: 999px; background: var(--bg-soft);
  font-family: var(--font-display); font-weight: 800; font-size: 10.5px; color: var(--ink-soft);
}
.launch__tags-row span {
  padding: 6px 10px; border-radius: 7px; background: var(--bg-soft);
  font-family: var(--font-display); font-weight: 700; font-size: 11px; color: var(--ink-soft);
}

.launch__arrow { display: none; text-align: center; font-size: 22px; color: var(--ink-soft); opacity: 0.4; }
@media (min-width: 860px) { .launch__arrow { display: block; } }

/* Лента магазинов */
.launch__stores-label {
  text-align: center; margin: 0 0 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.launch__stores-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px 26px;
}
.launch__stores-row span {
  font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--ink-soft);
  transition: color 0.2s ease;
}
.launch__stores-row span:hover { color: var(--ink); }

/* ==========================================================================
   MANIFESTO — editorial-разворот
   ========================================================================== */
.manifesto { background: var(--bg); padding-top: 110px; padding-bottom: 110px; }
@media (min-width: 1024px) { .manifesto { padding-top: 150px; padding-bottom: 150px; } }

.manifesto__quote {
  margin: 0 auto;
  max-width: 880px;
  text-align: center;
  position: relative;
}
.manifesto__quote::before {
  content: '«';
  display: block;
  font-family: var(--font-serif);
  font-size: 110px;
  line-height: 0.5;
  color: var(--red);
  opacity: 0.25;
  margin-bottom: 20px;
}
.manifesto__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.manifesto__quote cite {
  display: block;
  margin-top: 28px;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ==========================================================================
   REVIEWS — строка результата
   ========================================================================== */
.review-card__result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--red);
  background: rgba(232,0,28,0.06);
  border-radius: 999px;
  padding: 7px 14px;
  align-self: flex-start;
}
.review-card__result::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ==========================================================================
   FORM — доп. поля
   ========================================================================== */
.form-field__optional {
  font-weight: 400;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* ==========================================================================
   FOOTER — лид-магнит
   ========================================================================== */
.footer__magnet {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  margin: 40px 0 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
@media (min-width: 860px) {
  .footer__magnet {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
  }
}
.footer__magnet-text h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.footer__magnet-text p {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.footer__magnet-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.footer__magnet-form input {
  font-family: var(--font-text);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  min-width: 220px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.footer__magnet-form input:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}

/* Кнопка в шапке у вошедшего пользователя — «Кабинет» / «Админка» (19.11.2026): отличается от «Войти» цветом */
.btn--ghost-sm.is-authorized { color: var(--red); border-color: rgba(232, 0, 28, 0.35); background: #fff5f6; }
.btn--ghost-sm.is-authorized:hover { border-color: var(--red); }
