:root {
    --accent: #ff7a18;

    --blue1: #132754;
    --blue2: #062b4a;
    --blue3: #132754;

    --ink: #0b1220;
    --paper1: #ffffff;
    --paper2: #f5f7fb;

    --r: 1.4rem;
    --shadow: 0 22px 70px rgba(0, 0, 0, .22);

    /* фото ~80% */
    --mediaH: 62svh;
}

@media (min-width: 768px) {
    :root {
        --mediaH: 72svh;
    }
}

@media (min-width: 992px) {
    :root {
        --mediaH: 80svh;
    }
}

/* /about: убрать зазоры, которые даёт общий header/footer */
body {
    margin: 0;
    background: #050b18;
    overflow-x: hidden;
}

/* убрать боковые паддинги у внешнего контейнера из header.php */
body>.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* убрать отступ под шапкой (mb-4) */
body>nav.navbar {
    margin-bottom: 0 !important;
}

/* убрать отступ над футером (mt-5) */
body footer.mt-5 {
    margin-top: 0 !important;
}

section {
    scroll-margin-top: 18px;
}

/* интерактив: прогресс прокрутки */
.progress-top {
    position: fixed;
    left: 0;
    top: 0;
    height: 3px;
    width: 0%;
    background: var(--accent);
    z-index: 2000;
}

/* интерактив: счетчик + “дальше” */
.hud {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1500;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    pointer-events: none;
}

.hud>* {
    pointer-events: auto;
}

.counter {
    padding: .55rem .85rem;
    /* border-radius:999px; */
    /* border:1px solid rgba(255,255,255,.12); */
    /* background: rgba(0,0,0,.28); */
    /* backdrop-filter: blur(10px); */
    color: rgba(150, 150, 150, .88);
    font-weight: 800;
    letter-spacing: .10em;
    font-size: .85rem;
    user-select: none;
    white-space: nowrap;
}

.counter .accent {
    color: var(--accent);
}

.nextBtn {
    border-radius: 999px;
    padding: .65rem 1rem;
    border: 0px solid rgba(255, 255, 255, .16);
    background: rgba(0, 0, 0, .28);
    color: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.nextBtn:hover {
    border-color: rgba(255, 255, 255, .28);
}

/* слайд базовый */
.slide {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: clamp(1.6rem, 4.5vw, 4rem) 0;
    position: relative;
    overflow: hidden;

    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

/* чередование: синий / белый */
.tone-dark {
    color: rgba(255, 255, 255, .92);
    background:
        radial-gradient(1200px 700px at 12% 12%, rgba(255, 255, 255, .07), transparent 60%),
        linear-gradient(135deg, var(--blue1) 0%, var(--blue2) 55%, var(--blue3) 100%);
}

.tone-light {
    color: var(--ink);
    background: linear-gradient(180deg, var(--paper1) 0%, var(--paper2) 100%);
}

/* чуть текстуры на синем */
.tone-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .06) 0 2px, transparent 3px),
        radial-gradient(circle at 82% 38%, rgba(255, 255, 255, .04) 0 2px, transparent 3px);
    background-size: 240px 240px;
    opacity: .18;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
}

/* типографика (не заезжает на картинку: колонки + max-inline-size) */
.kicker {
    letter-spacing: .22em;
    text-transform: uppercase;
    font-size: .82rem;
    opacity: .75;
}

.title{
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.02;

  /* масштабирование будет ниже (через container units) */
  font-size: clamp(2rem, 9cqw, 5.1rem);

  max-inline-size: 100%;
  text-wrap: balance;

  /* ВАЖНО: не режем слова по буквам */
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}


@media (max-width: 991.98px) {
    .title {
        max-inline-size: 28ch;
    }
}

.leadtext {
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
    opacity: .86;
    max-inline-size: 62ch;
}

.accent {
    color: var(--accent);
}

/* медиа 80% */
.media {
    height: var(--mediaH);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow);
    /* border: 1px solid rgba(255,255,255,.12); */
    background: rgba(255, 255, 255, .05);
}

.tone-light .media {
    border-color: rgba(0, 0, 0, .08);
    box-shadow: 0 22px 70px rgba(15, 23, 42, .12);
    background: #fff;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

/* числа — без плашек */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2.2rem;
    margin-top: 1.1rem;
}

.stat .num {
    font-weight: 900;
    letter-spacing: -0.01em;
    font-size: clamp(1.35rem, 1.9vw, 2.0rem);
    line-height: 1.0;
}

.tone-light .stat .num {
    color: var(--ink);
}

.tone-dark .stat .num {
    color: rgba(255, 255, 255, .92);
}

.stat .lbl {
    margin-top: .2rem;
    font-size: .82rem;
    letter-spacing: .10em;
    text-transform: uppercase;
    opacity: .70;
}

/* feature layout (фото как фон) */
.feature {
    padding: 0;
}

.feature .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.feature .bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 18, 37, .92) 0%, rgba(6, 18, 37, .72) 44%, rgba(6, 18, 37, .18) 70%, rgba(6, 18, 37, .10) 100%);
}

.feature .panel {
    max-width: 760px;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border-radius: var(--r);
    /* border: 1px solid rgba(255, 255, 255, .14); */
    background: rgba(0, 0, 0, .22);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.feature .title {
    max-inline-size: 26ch;
}

/* CTA */
.cta-actions .btn {
    border-radius: 999px;
    padding: .85rem 1.2rem;
    font-weight: 800;
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #111;
}

.btn-accent:hover {
    background: #ff8a33;
    border-color: #ff8a33;
    color: #111;
}

/* разнообразие: в split-слайдах делаем текстовую колонку “min-width:0”, чтобы не было выезда */
.textcol,
.imgcol {
    min-width: 0;
}

/* мобайл: фото сверху, текст ниже — всегда читабельно */
@media (max-width: 991.98px) {
    .stack-mobile .textcol {
        order: 2;
    }

    .stack-mobile .imgcol {
        order: 1;
    }
}

/* reveal */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: .65s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    .reveal {
        transition: none !important;
    }
}

/* Если нет картинки — разрешаем тексту занимать всю ширину колонки */
.no-media .title {
    max-inline-size: none;
}

.no-media .leadtext {
    max-inline-size: none;
}

.media video{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* видео-фон */
/* feature: сплошное затемнение поверх фона */
.feature{ position:relative; }

.feature .bg-video,
.feature .bg{
  position:absolute;
  inset:0;
  z-index:0;
}

.feature .bg-video{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.03);
}

.feature .bg{
  background-size:cover;
  background-position:center;
  transform: scale(1.03);
}

/* СПЛОШНОЕ затемнение */
.feature::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(19,39,84,.65); /* меняйте .55 на нужную плотность */
  z-index:1;
  pointer-events:none;
}

/* контент выше */
.feature .content{
  position:relative;
  z-index:2;
}

/* убрать старый градиент у .bg */
.feature .bg::after{ content:none !important; }

.panel--nobg{
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* если нужно убрать ещё и внутренние отступы подложки */
.panel--nobg{
  padding: 0 !important;
}

.textcol{ 
  container-type: inline-size; 
}

/* если feature с panel — тоже хорошо сделать контейнером */
.feature .panel{
  container-type: inline-size;
}

@supports not (font-size: 1cqw){
  .title{ font-size: clamp(2rem, 5.2vw, 5.1rem); }
}

@container (max-width: 420px){
  .title{
    font-size: clamp(1.55rem, 11cqw, 3rem);
    line-height: 1.05;
  }
}