/* =========================================================
   Профессиональный трейдер — лендинг
   Премиальная финансовая тема: чёрный/графит + золото.
   Mobile-first.
   ========================================================= */

:root {
  --bg: #08080a;
  --bg-soft: #0e0e12;
  --panel: #16161b;
  --panel-2: #1c1c22;
  --border: rgba(212, 175, 55, 0.16);
  --border-strong: rgba(212, 175, 55, 0.38);

  --gold-100: #f3d78a;
  --gold-300: #d4af37;
  --gold-500: #b8912a;
  --gold-600: #8f6f1f;

  --text: #f4f2ec;
  --text-muted: #a7a5ad;
  --text-faint: #6f6d76;

  --radius-l: 20px;
  --radius-m: 14px;
  --radius-s: 10px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 8px 24px rgba(212, 175, 55, 0.22);

  --container: 1360px;
  --gutter: clamp(18px, 5vw, 40px);

  --ease: cubic-bezier(.22, .8, .28, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  position: relative;
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-color: #08090b;
  background-image:
    radial-gradient(ellipse 1100px 720px at 10% -6%, rgba(212, 175, 55, 0.22), transparent 62%),
    radial-gradient(ellipse 1200px 820px at 106% 14%, rgba(64, 104, 182, 0.26), transparent 62%),
    radial-gradient(ellipse 1000px 760px at 92% 96%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(ellipse 900px 600px at -6% 60%, rgba(64, 104, 182, 0.14), transparent 58%),
    linear-gradient(180deg, #0e1017 0%, #08080a 20%, #0a0b0f 50%, #0d0e13 78%, #08080a 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* сетка биржевого графика + мягкое золотое сияние поверх фона, на всю страницу */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 95% 80% at 50% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(ellipse 95% 80% at 50% 0%, #000 0%, transparent 78%);
  opacity: .7;
}

main, footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- заголовки секций ---------- */

.section-title {
  font-family: "Oswald", "Manrope", sans-serif;
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.1;
  margin: 0 0 clamp(14px, 2.4vw, 20px);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-300) 55%, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(212, 175, 55, 0.22);
}

.section-subtitle {
  margin: 0 0 clamp(28px, 5vw, 44px);
  color: var(--text-muted);
  font-size: clamp(14.5px, 2vw, 16.5px);
  max-width: 62ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

section + section { border-top: 1px solid rgba(255, 255, 255, 0.05); }

/* ---------- кнопки: базовое поведение везде одинаковое ---------- */

.btn {
  --btn-h: 52px;
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 26px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease), background .2s var(--ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn--gold {
  background: linear-gradient(180deg, var(--gold-100), var(--gold-300) 60%, var(--gold-500));
  color: #1a1406;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { filter: brightness(1.08); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.34); transform: translateY(-1px); }
.btn--gold:active { transform: translateY(0) scale(0.98); filter: brightness(0.96); }

.btn:focus-visible {
  outline: 2px solid var(--gold-100);
  outline-offset: 3px;
}

/* =========================================================
   БЛОК 1 — ШАПКА / ТЕКСТ / ВИДЕО
   ========================================================= */

.hero { position: relative; padding-bottom: clamp(40px, 7vw, 72px); }

/* декор-график на всю ширину секции (реальный ассет с сайта клиента, не наша
   картинка) — привязан к нижним ~60% секции, под шапкой-баннером, не мешает
   фото и не залезает на текст сверху. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  z-index: 0;
  pointer-events: none;
  background-image: url("/storage/app/media/site-content/home/decor/market-chart.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  opacity: .5;
}
.hero > * { position: relative; z-index: 1; }

.hero__media {
  width: 100%;
  line-height: 0;
  border-bottom: 1px solid var(--border);
}
.hero__image { width: 100%; height: auto; object-fit: cover; }

.hero__h1 {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* крупный заголовок «БАЗА ЗНАНИЙ ТРЕЙДЕРА» — над баннером (по просьбе клиента).
   Симметричные отступы сверху/снизу — чтобы заголовок стоял по центру своей
   зоны, а не был прижат вплотную к баннеру. */
.hero__kicker-wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(26px, 5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__kicker {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-family: "Oswald", "Manrope", sans-serif;
  font-size: clamp(28px, 6.5vw, 54px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--gold-100), var(--gold-300) 55%, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 36px rgba(212, 175, 55, 0.25);
}

.hero__text {
  position: relative;
  z-index: 1;
  margin: clamp(18px, 3.5vw, 26px) auto 0;
  padding-left: 16px;
  border-left: 3px solid var(--gold-300);
  max-width: 62ch;
  text-align: left;
  color: #f0eee8;
  font-size: clamp(16px, 2.2vw, 18.5px);
  font-weight: 500;
  line-height: 1.7;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.hero__text p { margin: 0; }

/* ---- видео ---- */

.video {
  position: relative;
  margin: clamp(26px, 5vw, 40px) auto 0;
  max-width: 900px;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.video__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: block;
  z-index: 2;
}
.video__cover[hidden] { display: none; }
.video__poster {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video__cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.55) 100%);
}

/* такая же полупрозрачная кнопка, как на превью плейлиста (.slide__play) —
   единый стиль play-кнопок по всему сайту (по просьбе клиента) */
.video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 47, 47, .55);
  border: 2px solid rgba(255, 255, 255, .55);
  backdrop-filter: unset;
  -webkit-backdrop-filter: unset;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(212,175,55,.5), 0 6px 20px rgba(0,0,0,.35);
  transition: transform .2s var(--ease), filter .2s var(--ease), background .2s var(--ease);
  animation: pulse-ring 2.6s ease-out infinite;
  z-index: 1;
}
.video__play svg { margin-left: 3px; }

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(212,175,55,.45), var(--shadow-gold); }
  70%  { box-shadow: 0 0 0 18px rgba(212,175,55,0), var(--shadow-gold); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0), var(--shadow-gold); }
}

@keyframes pulse-ring-hover {
  0%   { box-shadow: 0 0 0 0 rgba(212,175,55,.65), var(--shadow-gold); }
  100% { box-shadow: 0 0 0 26px rgba(212,175,55,0), var(--shadow-gold); }
}

.video__cover:hover .video__play {
  transform: translate(-50%, -50%) scale(1.08);
  filter: brightness(1.15);
  animation: pulse-ring-hover .9s ease-out infinite;
}
.video__cover:active .video__play { transform: translate(-50%, -50%) scale(0.96); }
.video__cover:focus-visible { outline: 2px solid var(--gold-100); outline-offset: -4px; }

.video__el {
  width: 100%; height: 100%;
  display: block;
  background: #000;
}
.video__el[hidden] { display: none; }

.video__title {
  margin: 20px auto 0;
  max-width: 900px;
  text-align: center;
  padding: 4px 8px 0;
  font-family: "Oswald", "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 2.8vw, 24px);
  letter-spacing: 0.015em;
  line-height: 1.35;
  /* сплошной светлый цвет вместо золотого градиента — тот сливался с золотистым
     фоном/декором позади. Тень для дополнительного отделения от фона. */
  color: #fdfcf9;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .65), 0 1px 3px rgba(0, 0, 0, .6);
}

/* =========================================================
   БЛОК 2 — ПЛЕЙЛИСТЫ / СЛАЙДЕР
   ========================================================= */

.playlists {
  position: relative;
  padding-block: clamp(48px, 8vw, 88px);
}
.playlists > .container:first-child { text-align: left; }
.playlists .section-subtitle { margin-inline: 0; }

/* декор-график на всю ширину секции (реальный ассет с сайта клиента) — тонкая
   полоса «эквалайзера» у верхнего края блока, за заголовком и карточками. */
.playlists::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 320px;
  max-height: 45%;
  z-index: 0;
  pointer-events: none;
  background-image: url("/storage/app/media/site-content/home/decor/equalizer.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  opacity: .3;
}
/* та же линия графика, что в шапке, повторена (отзеркалена) внизу длинного
   блока с 9 карточками — чтобы после бар-декора наверху не было скучного
   пустого чёрного участка на всю прокрутку. */
.playlists::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 380px;
  max-height: 40%;
  z-index: 0;
  pointer-events: none;
  background-image: url("/storage/app/media/site-content/home/decor/market-chart.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  opacity: .35;
  transform: scaleX(-1);
}
.playlists > * { position: relative; z-index: 1; }

/* подсказка "Листайте вправо" — только на мобиле (на десктопе карусель
   превращается в статичную сетку, свайпать нечего) */
.carousel__swipe-hint-wrap { display: none; }
.carousel__swipe-hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(212, 175, 55, .08);
  color: var(--gold-100);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
}
.carousel__swipe-hand {
  animation: swipe-nudge 1.4s var(--ease) infinite;
}
@media (max-width: 1023px) {
  .carousel__swipe-hint-wrap {
    display: block;
    text-align: center; /* плашка по центру блока */
  }
}
@keyframes swipe-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel__viewport {
  flex: 1;
  min-width: 0; /* без этого flex-элемент не даёт треку сжаться и слайд вылезает */
  overflow: hidden;
}

/* МОБИЛА/ПЛАНШЕТ: стрелки-«‹ ›» больше не занимают место в ряду (раньше они
   съедали по ~52px с каждого края, из-за чего вьюпорту оставалось ~274px, а
   карточка 358px — и её обрезало). Теперь стрелки — абсолютный оверлей поверх
   слайдов, а вьюпорт занимает всю ширину экрана. */
@media (max-width: 1023px) {
  .carousel { display: block; }
  .carousel__viewport { width: 100%; }
  .carousel__arrow {
    position: absolute;
    /* по нижней части обложки-превью (16:9 от ширины карточки) + 6px паддинг трека */
    top: calc(6px + min(100vw - 32px, 380px) * 9 / 16 / 1);
    transform: translateY(-50%);
    z-index: 3;
  }
  .carousel__arrow--prev { left: 14px; }
  .carousel__arrow--next { right: 14px; }
}

.carousel__track {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  /* фиксированный "peek" 16px с каждой стороны — гарантированно безопасно
     на любой ширине экрана (раньше здесь была vw-формула, которая на части
     мобильных экранов не совпадала с формулой ширины карточки и обрезала её) */
  padding: 6px 16px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
  .carousel__track { padding-inline: clamp(6vw, calc((100vw - 440px) / 2), 26vw); }
}
@media (min-width: 1024px) {
  .carousel__track { padding-inline: calc((100% - 460px) / 2); }
}

.carousel__slide {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  /* ширина = вся ширина экрана минус 2×16px "peek" из .carousel__track —
     гарантированно совпадает с формулой отступов трека, карточка никогда
     не обрезается вне зависимости от ширины устройства */
  width: min(calc(100vw - 32px), 380px);
  scroll-snap-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), opacity .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
@media (min-width: 640px) { .carousel__slide { width: 420px; } }
@media (min-width: 1024px) { .carousel__slide { width: 460px; } }

/* активный (по центру) слайд на мобиле — крупнее, ярче, золотая рамка;
   соседние слегка приглушены и уменьшены — сразу видно, что слайд переключился */
@media (max-width: 1023px) {
  .carousel__slide {
    transform: scale(.92);
    opacity: .55;
  }
  .carousel__slide.is-active {
    transform: scale(1);
    opacity: 1;
    border-color: var(--border-strong);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 175, 55, .25);
  }
}

.slide__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: #000;
  display: block;
}
.slide__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.slide__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.65) 100%);
  transition: background .2s var(--ease);
}
.slide__thumb:hover::after { background: linear-gradient(180deg, rgba(212,175,55,.1) 0%, rgba(0,0,0,.72) 100%); }
.slide__thumb:hover { box-shadow: inset 0 0 0 3px var(--gold-300); }
.slide__thumb:focus-visible { outline: 2px solid var(--gold-100); outline-offset: -4px; }

/* play-иконка по центру обложки — полупрозрачный красный кружок, чтобы не
   перекрывать текст на самой обложке (по просьбе клиента) */
.slide__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 47, 47, .55);
  border: 2px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  transition: transform .18s var(--ease), filter .18s var(--ease), background .18s var(--ease);
  pointer-events: none;
}
.slide__play svg { margin-left: 1px; width: 26px; height: 26px; }
.slide__thumb:hover .slide__play { transform: translate(-50%, -50%) scale(1.1); filter: brightness(1.1); }

.slide__hint {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  background: rgba(8, 8, 10, .72);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 7px 10px;
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.slide__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 16px 18px;
}

.slide__title {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(19px, 2.3vw, 23px);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: #fff;
}
@media (max-width: 1023px) {
  .slide__title { margin: 13px 0 14px; }
}

.slide__platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  margin-top: auto;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, .28);
  background: rgba(212, 175, 55, .05);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, .06) inset;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 10px;
  border-radius: var(--radius-s);
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s var(--ease), transform .15s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.platform-btn__icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #0c0c0e;
  overflow: hidden;
  background: var(--platform-accent, var(--panel-2));
}
.platform-btn__icon img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.platform-btn:hover { border-color: var(--border-strong); background: #212128; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.platform-btn:active { transform: translateY(0) scale(0.97); }
.platform-btn:focus-visible { outline: 2px solid var(--gold-100); outline-offset: 2px; }


@media (min-width: 460px) {
  .platform-btn { font-size: 13.5px; }
}

.platform-btn[disabled],
.platform-btn.is-disabled {
  opacity: .38;
  cursor: not-allowed;
  pointer-events: none;
}

/* "нудж" — подсветка блока кнопок, когда тапнули по превью */
.slide__platforms.is-nudged {
  animation: nudge .55s var(--ease);
}
.slide__platforms.is-nudged .platform-btn:not([disabled]) {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(212,175,55,.16);
}
@keyframes nudge {
  0% { transform: translateY(0); }
  30% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

/* стрелки — крупные и с заметным фоном на мобилке, чтобы не терялись на фоне
   с декором (было наоборот: на мобилке стрелки становились МЕНЬШЕ, 38px). */
.carousel__arrow {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: rgba(20,20,24,.88);
  color: var(--gold-100);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  transition: background .18s var(--ease), transform .15s var(--ease), opacity .2s var(--ease);
  z-index: 2;
}
.carousel__arrow:hover { background: rgba(212,175,55,.22); }
.carousel__arrow:active { transform: scale(0.93); }
.carousel__arrow:focus-visible { outline: 2px solid var(--gold-100); outline-offset: 2px; }
.carousel__arrow:disabled { opacity: .35; cursor: default; pointer-events: none; }

/* на мобиле стрелки — золотые «таблетки» поверх обложки, чётко выделяются на фото */
@media (max-width: 1023px) {
  .carousel__arrow {
    width: 46px; height: 46px;
    border: none;
    background: linear-gradient(180deg, var(--gold-100), var(--gold-300) 60%, var(--gold-500));
    color: #1a1406;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 0 2px rgba(0, 0, 0, .25);
  }
  .carousel__arrow:hover { background: linear-gradient(180deg, var(--gold-100), var(--gold-300) 60%, var(--gold-500)); filter: brightness(1.08); }
  /* активная (той стрелки, что transform:translateY уже задан) — важно не перебить трансформ выше */
  .carousel__arrow:active { transform: translateY(-50%) scale(0.93); }
}

.carousel__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}
.carousel__dots { display: flex; gap: 8px; }
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.carousel__dot.is-active { background: var(--gold-300); transform: scale(1.35); }
.carousel__counter {
  font-size: 13px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---- десктоп: слайдер превращается в статичную сетку, без стрелок/точек ---- */
@media (min-width: 1024px) {
  .carousel { display: block; }
  .carousel__arrow { display: none; }
  .carousel__viewport { overflow: visible; }
  .carousel__meta { display: none; }

  .carousel__track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0 auto;
    max-width: var(--container);
    padding-inline: var(--gutter);
    overflow: visible;
    scroll-snap-type: none;
  }

  .carousel__slide { width: auto; scroll-margin-top: 90px; }
  /* карточка, к которой пришли по якорю #playlistN — золотая подсветка,
     чтобы на десктопе-сетке сразу было видно нужный плейлист */
  .carousel__slide.is-target {
    border-color: var(--gold-300);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .55), 0 0 0 2px rgba(212, 175, 55, .45);
  }
  /* 4 кнопки (YouTube/VK/Rutube/Дзен) — ровно 2×2 на десктопе */
  .slide__platforms { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .platform-btn { font-size: 14.5px; }
}

/* =========================================================
   БЛОК 3 — ПЛОЩАДКИ КОММУНИКАЦИИ
   ========================================================= */

.comm { position: relative; padding-block: clamp(48px, 8vw, 88px); text-align: center; }
.comm .section-subtitle { margin-inline: auto; }

/* тот же график, что и в шапке — перевёрнут по вертикали для разнообразия,
   по центру блока, за карточками площадок. */
.comm::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 420px;
  max-height: 70%;
  transform: translateY(-50%) scaleY(-1);
  z-index: 0;
  pointer-events: none;
  background-image: url("/storage/app/media/site-content/home/decor/market-chart.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  opacity: .3;
}
.comm > * { position: relative; z-index: 1; }

.comm__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: clamp(28px, 5vw, 44px);
  text-align: left;
}
@media (min-width: 860px) {
  .comm__grid { grid-template-columns: repeat(3, 1fr); }
}

.comm__card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.comm__card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.comm__card:active { transform: translateY(0) scale(.99); }
.comm__card:focus-visible { outline: 2px solid var(--gold-100); outline-offset: 2px; }

.comm__banner-wrap {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #000;
  flex: none;
}
.comm__banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.comm__cta {
  margin: 16px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 16px;
  text-align: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .01em;
  transition: filter .18s var(--ease), transform .15s var(--ease);
  background: var(--comm-accent, var(--gold-300));
}
.comm__card:hover .comm__cta { filter: brightness(1.1); }

/* фирменные цвета: MAX — официальный градиент бренда, Telegram/VK — официальный синий */
.comm__card--max .comm__cta { background: linear-gradient(135deg, #44ccff, #5533ee 55%, #9933dd); }
.comm__card--telegram .comm__cta { background: #26a5e4; }
.comm__card--vk .comm__cta { background: #0077ff; }
.comm__cta-icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

/* =========================================================
   БЛОК 4 — ПОЛНАЯ ПРОГРАММА ОБУЧЕНИЯ
   ========================================================= */

.program { position: relative; padding-block: clamp(48px, 8vw, 96px); text-align: center; }

/* свечной график — свой ассет (сгенерирован под палитру сайта), т.к. у клиента
   для этого блока похожей картинки не нашлось. Полоса за карточкой программы. */
.program::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 340px;
  max-height: 55%;
  z-index: 0;
  pointer-events: none;
  background-image: url("/storage/app/media/site-content/home/decor/bg-candles.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  opacity: .4;
}
.program > * { position: relative; z-index: 1; }

.program__text {
  max-width: 68ch;
  margin: 0 auto clamp(28px, 5vw, 40px);
  color: var(--text-muted);
  font-size: clamp(15px, 2.1vw, 17px);
}
.program__text p { margin: 0; }

.program__card {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.program__card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.program__card:focus-visible { outline: 2px solid var(--gold-100); outline-offset: 2px; }
.program__banner { width: 100%; height: auto; }

.program__cta { margin-top: clamp(24px, 4vw, 34px); }

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding-block: 28px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  font-size: 12.5px;
}
.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.footer__links a:hover { color: var(--gold-100); border-color: var(--border-strong); }
.footer__links a:focus-visible { outline: 2px solid var(--gold-100); outline-offset: 2px; }
.footer__pending { color: var(--text-faint); cursor: default; }
.footer__dot { color: var(--text-faint); }
.footer__copy { margin: 0; font-size: 12px; color: var(--text-faint); }
.footer__details { display: flex; flex-direction: column; gap: 3px; color: var(--text-faint); font-size: 12px; }
.footer__details a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.footer__details a:hover { color: var(--gold-100); border-color: var(--border-strong); }

.footer__modal-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.footer__modal-btn:hover { color: var(--gold-100); border-color: var(--border-strong); }
.footer__modal-btn:focus-visible { outline: 2px solid var(--gold-100); outline-offset: 2px; }

/* =========================================================
   МОДАЛКИ (политика конфиденциальности / согласие)
   ========================================================= */

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.72);
  backdrop-filter: blur(2px);
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 82vh;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  padding: 26px 22px 28px;
  overflow-y: auto;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55);
  animation: modal-up .22s var(--ease);
}
@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal__dialog { border-radius: var(--radius-l); border-bottom: 1px solid var(--border-strong); padding: 34px 34px 36px; }
}
@keyframes modal-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.modal__close:hover { color: var(--gold-100); border-color: var(--border-strong); }
.modal__close:focus-visible { outline: 2px solid var(--gold-100); outline-offset: 2px; }

.modal__title {
  font-family: "Oswald", "Manrope", sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 40px 16px 0;
}
.modal__body { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }
.modal__body p { margin: 0 0 14px; }
.modal__body p:last-child { margin-bottom: 0; }

/* =========================================================
   LEGAL PAGES AND COOKIE CONSENT
   ========================================================= */

.legal-page { padding-block: clamp(48px, 8vw, 92px); }
.legal-page__card { max-width: 860px; margin-inline: auto; padding: clamp(24px, 5vw, 46px); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-l); }
.legal-page__title { font-family: "Oswald", "Manrope", sans-serif; font-size: clamp(28px, 5vw, 44px); font-weight: 600; line-height: 1.1; text-transform: uppercase; color: var(--text); margin: 0 0 24px; }
.legal-page__body { color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.legal-page__body p { margin: 0 0 16px; }
.legal-page__body p:last-child { margin-bottom: 0; }
.legal-page__body a { color: var(--gold-100); }
.legal-page__back { margin: 30px 0 0; }
.legal-page__back--top { margin: 0 0 24px; }

.cookie-consent[hidden] { display: none; }
.cookie-consent { position: fixed; z-index: 100; inset: auto 0 0; display: block; background: #0a0a0d; border-top: 1px solid var(--border-strong); box-shadow: 0 -10px 28px rgba(0, 0, 0, .36); }
.cookie-consent__panel { width: min(100% - 40px, 1180px); margin-inline: auto; padding: 14px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; }
.cookie-consent__title { margin: 0 0 8px; color: var(--text); font-weight: 700; }
.cookie-consent__text { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.cookie-consent__text a { color: var(--gold-100); }
.cookie-consent__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cookie-consent__button { min-height: 38px; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.cookie-consent__button--secondary { background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; color: var(--text); cursor: pointer; }
.cookie-consent__button--link { appearance: none; background: transparent; border: 0; color: var(--text-muted); cursor: pointer; text-decoration: underline; }
.cookie-consent__preferences[hidden] { display: none; }
.cookie-consent__preferences { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, max-content) 1fr; align-items: center; gap: 10px 24px; padding-top: 10px; border-top: 1px solid var(--border); }
.cookie-consent__option { display: flex; gap: 8px; align-items: center; color: var(--text-muted); font-size: 13px; cursor: pointer; }
.cookie-consent__option input { margin: 0; accent-color: var(--gold-300); }
.cookie-consent__option span { color: var(--text); font-weight: 700; }
.cookie-consent__preferences .cookie-consent__button { justify-self: end; }

@media (max-width: 560px) {
  .cookie-consent__panel { width: min(100% - 32px, 1180px); padding: 14px 0; grid-template-columns: 1fr; gap: 12px; }
  .cookie-consent__actions { justify-content: flex-start; }
  .cookie-consent__preferences { grid-template-columns: 1fr 1fr; }
  .cookie-consent__preferences .cookie-consent__button { grid-column: 1 / -1; justify-self: stretch; }
}

/* =========================================================
   Утилиты
   ========================================================= */

@media (min-width: 1024px) {
  .hero__media { border-radius: 0 0 var(--radius-l) var(--radius-l); overflow: hidden; margin-inline: auto; max-width: 1400px; }
}

/* =========================================================
   БЛОК — АНАЛИТИКА РЫНКОВ (статьи с основного сайта)
   Светлые карточки на тёмном фоне, как на обучениетрейдингу.сайт
   ========================================================= */

.analytics { position: relative; padding-block: clamp(48px, 8vw, 88px); }
.analytics > * { position: relative; z-index: 1; }
.analytics .section-subtitle { margin-inline: 0; }

.analytics__preview {
  margin: 0 0 24px;
  padding: 12px 18px;
  border-radius: var(--radius-s);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-300));
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.analytics__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: clamp(24px, 4vw, 36px);
}
@media (min-width: 700px)  { .analytics__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .analytics__grid { grid-template-columns: repeat(3, 1fr); } }

.analytics__card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.analytics__card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }

.analytics__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #f0efe9; overflow: hidden; }
.analytics__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.analytics__card:hover .analytics__media img { transform: scale(1.03); }
.analytics__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #2d9cdb;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.analytics__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; color: #2b2b2b; }
.analytics__date { margin: 0 0 10px; color: #96731f; font-size: 13px; font-weight: 800; letter-spacing: .5px; }
.analytics__title { margin: 0 0 12px; color: #1c1c1c; font-size: clamp(18px, 2.2vw, 21px); font-weight: 800; line-height: 1.28; }
.analytics__excerpt {
  margin: 0 0 20px;
  color: #5c5c5c;
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.analytics__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #111114;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.analytics__more:hover { background: var(--gold-300); color: #1a1a1a; transform: translateY(-1px); }
.analytics__more:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.analytics__all { margin-top: clamp(24px, 4vw, 36px); text-align: center; }

/* на телефоне только одна, самая свежая статья (на планшете и компьютере — три) */
@media (max-width: 699px) {
  .analytics__card:nth-child(n+2) { display: none; }
}
