/* ============================================================
   Path of Exile 2 — промо-страница
   Стили разбиты по блокам в том же порядке, что и в index.html
   ============================================================ */


/* ------------------------------------------------------------
   1. ПЕРЕМЕННЫЕ
   ------------------------------------------------------------ */
:root {
  /* Цвета фона */
  --bg:            #0a0705;   /* основной, почти чёрный */
  --bg-dark:       #0d0a07;   /* чуть светлее — для чередования секций */
  --bg-footer:     #070504;

  /* Золото — главный акцент */
  --gold:          #d9a441;
  --gold-light:    #e9c67a;
  --gold-pale:     #f4d38c;

  /* Текст */
  --text:          #e8dfce;   /* заголовки */
  --text-muted:    #b2a68f;   /* абзацы */
  --text-dim:      #8d8167;   /* подписи, мета */
  --text-faint:    #6d6149;   /* юр. текст */

  /* Рамки */
  --border:        rgba(217, 164, 65, 0.16);
  --border-strong: rgba(217, 164, 65, 0.32);

  /* Цвета атрибутов классов */
  --attr-str:      #c85a42;   /* сила */
  --attr-dex:      #85b05a;   /* ловкость */
  --attr-int:      #5b93c9;   /* интеллект */
  --attr-dexint:   #7fa6b0;
  --attr-strdex:   #c08a4a;
  --attr-strint:   #9a8f5a;

  /* Оценки в отзывах */
  --positive:      #86b05a;
  --negative:      #c06a4a;

  /* Шрифты */
  --font-display:  'Playfair Display', Georgia, serif;   /* заголовки */
  --font-ui:       'Oswald', 'Arial Narrow', sans-serif; /* интерфейс */
  --font-body:     'EB Garamond', Georgia, serif;        /* текст */
  --font-logo:     'Cinzel', Georgia, serif;             /* логотип */

  /* Размеры */
  --container:     1200px;
  --gutter:        clamp(20px, 4vw, 32px);
  --section-pad:   clamp(72px, 9vw, 116px);
}


/* ------------------------------------------------------------
   2. СБРОС И БАЗОВЫЕ СТИЛИ
   ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.15; }
p           { margin: 0; }
ul, ol      { margin: 0; padding: 0; list-style: none; }
img, video  { display: block; max-width: 100%; }

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--gold-pale); }

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection { background: var(--gold); color: #140f08; }

/* Полоса прокрутки */
::-webkit-scrollbar        { width: 11px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: linear-gradient(#6d4e1e, #3c2a10); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(#8a641f, #4f3714); }


/* ------------------------------------------------------------
   3. ОБЩИЕ ЭЛЕМЕНТЫ
   ------------------------------------------------------------ */

/* Ограничитель ширины контента */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Обычная секция */
.section              { position: relative; padding: var(--section-pad) 0; }
.section--dark        { background: var(--bg-dark); border-top: 1px solid rgba(217,164,65,.08); }

/* Секция с еле заметной картинкой на фоне */
.section--textured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/img/page_bg.jpg') center / cover no-repeat;
  opacity: 0.09;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

/* Заголовок секции */
.section__head          { position: relative; max-width: 760px; }
.section__head--center  { margin: 0 auto; text-align: center; }

.section__eyebrow {
  margin-bottom: 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 48px);
  color: #f0e7d5;
  text-wrap: pretty;
}

.section__lead {
  margin-top: 20px;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.75;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s, border-color 0.25s;
}

.btn--primary {
  color: #150f07;
  background: linear-gradient(180deg, #f0c877, #c8912f);
  box-shadow: 0 12px 36px rgba(201,145,47,.32), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn--primary:hover {
  color: #150f07;
  background: linear-gradient(180deg, #f8d78c, #d89d35);
  transform: translateY(-2px);
}

.btn--ghost {
  color: #efe0c2;
  background: rgba(20,15,9,.45);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
  font-weight: 500;
}
.btn--ghost:hover { background: rgba(38,28,16,.75); border-color: rgba(217,164,65,.85); }

.btn--small  { padding: 10px 20px; font-size: 14px; letter-spacing: 1.5px; font-weight: 500; }
.btn--large  { padding: 18px 40px; font-size: 17px; letter-spacing: 2.2px; }

/* Круглый значок «play» внутри кнопки трейлера */
.btn__play {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
}
.btn__play::after {
  content: '▶';
  margin: auto;
  padding-left: 2px;
  font-size: 10px;
  color: #150f07;
}

/* Плашки-теги */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  padding: 6px 13px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #cfbf9c;
  border: 1px solid var(--border-strong);
}

/* Круглая кнопка (закрыть, вперёд, назад) */
.round-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-size: 20px;
  color: var(--gold-light);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition: background 0.2s;
}
.round-btn:hover { background: rgba(217,164,65,.15); }

/* Ромб из логотипа */
.sigil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.sigil::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #e8b757;
}

/* Звёзды рейтинга */
.stars       { color: var(--gold); letter-spacing: 1px; }
.stars__dim  { color: #6b6150; }

/* Появление блоков при прокрутке (класс is-visible ставит script.js) */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(.2,.7,.2,1),
              transform 0.85s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }


/* ------------------------------------------------------------
   4. ЗЕРНО И СВЕТ ФАКЕЛА (декор поверх страницы)
   ------------------------------------------------------------ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 75;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px;
}

.torch {
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.5s;
}


/* ------------------------------------------------------------
   5. ШАПКА И НАВИГАЦИЯ
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, box-shadow 0.35s, border-color 0.35s;
}

/* Класс добавляется скриптом после прокрутки */
.site-header.is-scrolled {
  background: rgba(9,6,4,.94);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(217,164,65,.2);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 15px var(--gutter);
  transition: padding 0.3s;
}
.site-header.is-scrolled .nav { padding: 10px var(--gutter); }

.nav__logo      { display: flex; align-items: center; gap: 11px; flex: none; }
.nav__logo-text {
  font-family: var(--font-logo);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #efe4d0;
  white-space: nowrap;
}
.nav__logo-text b { color: var(--gold); font-weight: 700; }

.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); }

.nav__link {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #b3a68d;
  white-space: nowrap;
}
.nav__link:hover { color: var(--gold-pale); }


/* ------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg) url('assets/img/poster-combat.jpg') center / cover no-repeat;
}

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

/* Затемнение, чтобы текст читался поверх видео */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 85% at 50% 20%,
      rgba(10,7,5,.20), rgba(10,7,5,.75) 58%, rgba(10,7,5,.97)),
    linear-gradient(180deg,
      rgba(10,7,5,.60), transparent 32%, transparent 62%, var(--bg));
}

.hero__embers { position: absolute; inset: 0; overflow: hidden; }

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--container);
  padding: 132px var(--gutter) 96px;
  text-align: center;
}

.hero__eyebrow {
  margin-bottom: 22px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__title {
  font-family: var(--font-logo);
  font-size: clamp(38px, 7.4vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f4ecda;
  text-shadow: 0 3px 40px rgba(0,0,0,.75);
}

/* Золотая «II» */
.hero__title-mark {
  display: block;
  background: linear-gradient(180deg, #f3d488, #c58f2c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 600px;
  margin: 24px auto 38px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  line-height: 1.6;
  color: #cdc0a7;
  text-wrap: pretty;
  text-shadow: 0 2px 20px rgba(0,0,0,.85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: center;
  margin-top: 40px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #a1957d;
}

.hero__scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a7d64;
}
.hero__scroll-arrow {
  font-size: 18px;
  color: var(--gold);
  animation: bob 1.9s ease-in-out infinite;
}

/* Угольки, летящие вверх (элементы создаёт script.js) */
.ember {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(240,196,120,.95), rgba(210,110,44,.5) 60%, transparent 72%);
  box-shadow: 0 0 7px rgba(230,155,64,.65);
  animation: ember-rise linear infinite;
}

@keyframes ember-rise {
  0%   { transform: translateY(0);                          opacity: 0; }
  10%  {                                                    opacity: .8; }
  90%  {                                                    opacity: .5; }
  100% { transform: translateY(-88vh) translateX(var(--drift)); opacity: 0; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0);   opacity: .5; }
  50%      { transform: translateY(8px); opacity: 1; }
}

@keyframes spin { to { transform: rotate(360deg); } }


/* ------------------------------------------------------------
   7. ЦИФРЫ (обзор)
   ------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 14px;
  margin-top: clamp(44px, 6vw, 64px);
}

.stat {
  padding: 24px 14px;
  text-align: center;
  background: linear-gradient(165deg, rgba(26,20,12,.72), rgba(13,10,7,.5));
  border: 1px solid var(--border);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1;
  color: var(--gold-light);
}

.stat__label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #93866c;
}


/* ------------------------------------------------------------
   8. ОСОБЕННОСТИ
   ------------------------------------------------------------ */
.features {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5.5vw, 72px);
  margin-top: clamp(48px, 6vw, 72px);
}

.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

/* Второй блок — картинка справа, текст слева */
.feature--reverse .feature__media { order: 2; }
.feature--reverse .feature__body  { order: 1; }

.feature__media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217,164,65,.18);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.feature__media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* Внутренняя тень по краям кадра */
.feature__media::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 50px rgba(0,0,0,.45);
  pointer-events: none;
}

.feature__eyebrow {
  margin-bottom: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.feature__eyebrow--fire   { color: #c2693c; }
.feature__eyebrow--water  { color: #5a8fc0; }
.feature__eyebrow--arcane { color: #9a7fc0; }

.feature__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: #efe4d0;
  text-wrap: pretty;
}

.feature__text {
  margin-top: 16px;
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.72;
  color: var(--text-muted);
  text-wrap: pretty;
}


/* ------------------------------------------------------------
   9. КЛАССЫ
   ------------------------------------------------------------ */
.classes { overflow: hidden; }

/* Фоновый кадр секции */
.classes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/img/poster-classes.jpg') center / cover no-repeat;
  opacity: 0.14;
}
.classes::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-dark), rgba(10,7,5,.88) 40%, var(--bg));
}
.classes .container { position: relative; z-index: 1; }

.classes__layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: clamp(40px, 5vw, 56px);
}

/* --- список слева --- */
.class-list { display: flex; flex-direction: column; gap: 5px; }

.class-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  text-align: left;
  background: rgba(20,15,9,.5);
  border: 1px solid rgba(217,164,65,.12);
  transition: background 0.22s, border-color 0.22s;
}
.class-list__item:hover {
  background: rgba(34,25,14,.75);
  border-color: var(--border-strong);
}
.class-list__item.is-active {
  background: rgba(38,28,16,.85);
  border-color: rgba(217,164,65,.45);
  box-shadow: inset 3px 0 0 var(--gold);
}

/* Ромбик с цветом атрибута */
.class-list__marker {
  flex: none;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
}
.class-list__marker--str    { background: var(--attr-str); }
.class-list__marker--dex    { background: var(--attr-dex); }
.class-list__marker--int    { background: var(--attr-int); }
.class-list__marker--dexint { background: var(--attr-dexint); }
.class-list__marker--strdex { background: var(--attr-strdex); }
.class-list__marker--strint { background: var(--attr-strint); }

.class-list__text { display: flex; flex-direction: column; min-width: 0; }

.class-list__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #efe4d0;
}
.class-list__attr {
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* --- карточка справа --- */
.class-panel {
  position: relative;
  min-width: 0;
  padding: clamp(26px, 3.4vw, 38px);
  background: linear-gradient(160deg, rgba(28,21,13,.88), rgba(12,9,6,.82));
  border: 1px solid rgba(217,164,65,.22);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  overflow: hidden;
}

/* Медленно вращающееся кольцо в углу */
.class-panel::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(217,164,65,.1);
  border-radius: 50%;
  animation: spin 44s linear infinite;
}

.class-card { position: relative; }

.class-card__role {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #c4b38d;
}

.class-card__dot { width: 12px; height: 12px; transform: rotate(45deg); }
.class-card__dot--str    { background: var(--attr-str); }
.class-card__dot--dex    { background: var(--attr-dex); }
.class-card__dot--int    { background: var(--attr-int); }
.class-card__dot--dexint { background: var(--attr-dexint); }
.class-card__dot--strdex { background: var(--attr-strdex); }
.class-card__dot--strint { background: var(--attr-strint); }

.class-card__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  color: #f4ecda;
}

.class-card__meta {
  margin-top: 6px;
  font-size: 16px;
  font-style: italic;
  color: var(--text-dim);
}

.class-card__text {
  max-width: 56ch;
  margin-top: 20px;
  font-size: clamp(17px, 1.9vw, 19.5px);
  line-height: 1.72;
  color: #c0b499;
  text-wrap: pretty;
}

.class-card__asc-label {
  margin: 26px 0 11px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ascendancies { display: flex; flex-wrap: wrap; gap: 9px; }

.ascendancy {
  padding: 8px 15px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(217,164,65,.1);
  border: 1px solid var(--border-strong);
}


/* ------------------------------------------------------------
   10. ЭНДГЕЙМ
   ------------------------------------------------------------ */
.endgame {
  position: relative;
  padding: clamp(80px, 11vw, 150px) 0;
  overflow: hidden;
}
.endgame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/img/poster-endgame.jpg') center / cover no-repeat;
}
/* Затемнение слева, чтобы читался текст */
.endgame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 5%, rgba(10,7,5,.80) 45%, rgba(10,7,5,.35) 82%),
    linear-gradient(180deg, var(--bg), transparent 25%, transparent 75%, var(--bg));
}
.endgame .container { position: relative; z-index: 1; }

.endgame__inner { max-width: 540px; }

.endgame__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
}

.endgame-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  line-height: 1;
  color: var(--gold-light);
}
.endgame-stat__label {
  display: block;
  margin-top: 7px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #93866c;
}


/* ------------------------------------------------------------
   11. ГАЛЕРЕЯ
   ------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 14px;
  margin-top: clamp(36px, 4.5vw, 52px);
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #100c08;
  border: 1px solid var(--border);
  transition: border-color 0.25s;
}
.gallery__item:hover              { border-color: rgba(217,164,65,.55); }
.gallery__item:hover .gallery__img { transform: scale(1.05); }

.gallery__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #150f07;
  background: rgba(217,164,65,.94);
}

.gallery__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 12px 10px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-align: left;
  color: #e2d1ad;
  background: linear-gradient(transparent, rgba(8,5,3,.9));
}


/* ------------------------------------------------------------
   12. ОТЗЫВЫ
   ------------------------------------------------------------ */
.reviews__head {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.reviews__score-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--positive);
}
.reviews__score-note {
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #93866c;
}

.reviews__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.filter {
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(20,15,9,.45);
  border: 1px solid rgba(217,164,65,.28);
  transition: all 0.22s;
}
.filter:hover { border-color: var(--border-strong); color: var(--gold-pale); }
.filter.is-active {
  color: #150f07;
  background: linear-gradient(180deg, #f0c877, #c8912f);
  border-color: transparent;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 16px;
  align-items: start;
}

.review {
  padding: 24px;
  background: linear-gradient(165deg, rgba(26,20,12,.7), rgba(13,10,7,.58));
  border: 1px solid rgba(217,164,65,.15);
}

.review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.review__avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  background: linear-gradient(150deg, #2c2114, #151009);
  border: 1px solid var(--border-strong);
}

.review__meta { flex: 1 1 auto; min-width: 0; }

.review__user {
  display: block;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .5px;
  color: #e4d7bd;
}
.review__hours {
  display: block;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7d7156;
}

.review__verdict {
  flex: none;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.review__verdict--yes { color: var(--positive); }
.review__verdict--no  { color: var(--negative); }

.review__title {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #efe4d0;
  text-wrap: pretty;
}

.review__text {
  font-size: 17px;
  line-height: 1.62;
  color: #ada289;
  text-wrap: pretty;
}

.review__helpful {
  margin-top: 16px;
  padding-top: 13px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .4px;
  color: var(--text-faint);
  border-top: 1px solid rgba(217,164,65,.1);
}


/* ------------------------------------------------------------
   13. СКАЧАТЬ + ТРЕБОВАНИЯ
   ------------------------------------------------------------ */
.download {
  position: relative;
  padding: clamp(80px, 10vw, 130px) 0;
  overflow: hidden;
  border-top: 1px solid rgba(217,164,65,.08);
}
.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/img/library_hero.jpg') center / cover no-repeat;
  opacity: 0.45;
}
.download::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(85% 100% at 50% 40%,
    rgba(10,7,5,.6), rgba(10,7,5,.93) 72%, var(--bg));
}
.download .container { position: relative; z-index: 1; }

.download__inner { max-width: 640px; margin: 0 auto; text-align: center; }

.download__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  color: #f6eedb;
  text-wrap: pretty;
  text-shadow: 0 4px 40px rgba(0,0,0,.7);
}

.download__lead {
  max-width: 500px;
  margin: 18px auto 34px;
  font-size: clamp(17px, 2vw, 22px);
  font-style: italic;
  color: #c8bca3;
}

.download__note {
  margin-top: 18px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Таблица требований */
.specs {
  max-width: 680px;
  margin: clamp(44px, 5.5vw, 60px) auto 0;
  background: linear-gradient(160deg, rgba(22,16,10,.86), rgba(11,8,5,.82));
  border: 1px solid rgba(217,164,65,.22);
}

.specs__tabs { display: flex; }

.specs__tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 15px 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: all 0.22s;
}
.specs__tab:hover      { color: var(--gold-pale); }
.specs__tab.is-active  {
  color: var(--gold-light);
  background: rgba(217,164,65,.12);
  border-bottom-color: var(--gold);
}

.specs__list { margin: 0; padding: 8px clamp(20px, 3vw, 28px) 20px; }

.specs__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(217,164,65,.09);
}
.specs__row:last-child { border-bottom: none; }

.specs__row dt {
  flex: 0 0 120px;
  padding-top: 2px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.specs__row dd {
  flex: 1 1 240px;
  min-width: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #c7bba1;
}


/* ------------------------------------------------------------
   14. ПОДВАЛ
   ------------------------------------------------------------ */
.site-footer {
  padding: 48px 0 40px;
  background: var(--bg-footer);
  border-top: 1px solid rgba(217,164,65,.14);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(217,164,65,.1);
}

.site-footer__link {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b3a68d;
}

.site-footer__legal {
  max-width: 800px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-faint);
  text-wrap: pretty;
}


/* ------------------------------------------------------------
   15. МОДАЛЬНЫЕ ОКНА (лайтбокс и трейлер)
   ------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 44px);
}

/* Закрытое окно. Нужно явно: наш display:flex выше перебивает
   браузерное правило [hidden] { display: none }. */
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,3,2,.94);
  backdrop-filter: blur(7px);
}

.modal__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1150px;
}
.modal__body--trailer { max-width: 1050px; }

.modal__close { position: absolute; top: 20px; right: 22px; z-index: 2; }

.lightbox__stage {
  width: 100%;
  background: #000;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px rgba(0,0,0,.8);
  overflow: hidden;
}
.lightbox__image,
.lightbox__video {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #000;
}

.lightbox__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.lightbox__caption {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #ada289;
}

.trailer__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 110px rgba(0,0,0,.85);
}

.trailer__caption {
  position: absolute;
  left: 14px;
  bottom: 42px;
  padding: 5px 11px;
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(8,5,3,.6);
  pointer-events: none;
}


/* ------------------------------------------------------------
   16. АДАПТИВ
   ------------------------------------------------------------ */

/* Планшеты: особенности — в одну колонку */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .feature--reverse .feature__body  { order: 0; }
}

/* Прячем меню в шапке — остаются логотип и кнопка */
@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* Классы: список над карточкой */
@media (max-width: 760px) {
  .classes__layout { grid-template-columns: minmax(0, 1fr); }
}

/* Телефоны */
@media (max-width: 560px) {
  body { font-size: 17px; }

  .hero__content   { padding-top: 118px; padding-bottom: 84px; }
  .hero__actions   { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }

  .reviews__head   { flex-direction: column; align-items: flex-start; }
  .specs__row dt   { flex-basis: 100%; }
  .endgame__stats  { gap: 20px; }
}

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ember  { display: none; }
}
