/* === Глобальные параметры проекта (из исходника) === */
:root {
    --font-main: "Jost", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    /* Градиент */
    --grad-left: #FA1919;
    --grad-right: #F5B91E;

    --white: #fff;
    --muted: rgba(255, 255, 255, .78);

    --container-w: 1440px;
    --pad: clamp(16px, 4vw, 40px);

    /* управляем вертикальными интервалами секции */
    --hero-gap-top: clamp(6px, 1.5vw, 10px);
    /* между хедером и серединой */
    --hero-gap-bottom: clamp(8px, 2vw, 14px);
    /* между серединой и низом */

    /* z-слои */
    --z-title: 1;
    --z-balloon: 5;
    --z-subtitle: 10;
    --z-header: 20;

    /* шар */
    --balloon-w: clamp(840px, 22vw, 650px);
     /* заголовки */
    --itw-h-size: clamp(38px, 5.5vw, 72px);
}

/* Базовая сцена (фон и сетка) */
body {
    color: var(--white);
    background: #000;
    font-family: var(--font-main);
}

.hero {
    position: relative;
    min-height: 99svh;
    overflow: hidden;
    background: linear-gradient(90deg, var(--grad-left) 0%, var(--grad-right) 100%);
    isolation: isolate;
    max-height: 99svh;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(800px 800px at 18% 72%, rgba(255, 255, 255, .08) 0 1px, transparent 1px 100%),
        radial-gradient(560px 560px at 18% 72%, rgba(255, 255, 255, .08) 0 1px, transparent 1px 100%),
        radial-gradient(360px 360px at 18% 72%, rgba(255, 255, 255, .08) 0 1px, transparent 1px 100%);
    z-index: 0;
    mix-blend-mode: soft-light;
}

/* Контейнер — три строки: верх / середина / низ */
.hero__container {
    width: min(100%, var(--container-w));
    margin-inline: auto;
    padding: 12px var(--pad) 18px;
    box-sizing: border-box;
    min-height: 99svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    row-gap: 0;
    position: relative;
    max-height: 99svh;
}

.her-bottom {
    margin-bottom: 5svh;
}

/* Верхняя полоса (меню, лого, контакты) */
.hero__top {
    position: sticky;
    top: 40px;
    z-index: var(--z-header);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.hero__menu-btn {
    justify-self: start;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.hero__logo {
    justify-self: center;
    height: clamp(28px, 4.2vw, 66px);
}

.hero__contacts {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.hero__contacts img {
    width: 22px;
    height: 22px;
    display: block;
}

.hero__phone {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 400;
}

.hero__phone:hover {
    text-decoration: underline;
}

.menu-icon {
    width: 42px;
    height: 42px;
}

.logo-link {
    display: flex;
    align-items: center;
}

/* Средняя часть (текст + шар) */
.hero__middle {
    position: relative;
    display: grid;
    align-content: center;
    align-items: center;
    padding-block: var(--hero-gap-top) var(--hero-gap-bottom);
    isolation: isolate;
    contain: layout paint;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.hero__title {
    position: relative;
    z-index: var(--z-title);
    font-weight: 700;
    line-height: .9;
    letter-spacing: .02em;
    font-size: clamp(42px, 10vw, 182px);
    text-transform: uppercase;
    margin: 0;
}

.hero__subtitle {
    position: relative;
    z-index: var(--z-subtitle);
    font-weight: 500;
    font-size: clamp(22px, 4.3vw, 86px);
    letter-spacing: .02em;
    text-transform: uppercase;
    justify-self: end;
    margin-top: clamp(4px, 1vw, 8px);
}

/* Шар + тень */
.hero__balloon {
    position: absolute;
    z-index: var(--z-balloon);
    width: var(--balloon-w);
    height: auto;
    left: 0;
    top: 0;
    transform: translate(0, 0);
    pointer-events: none;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .25));
    will-change: transform;
}

.hero__shadow {
    position: absolute;
    z-index: 4;
    width: 320px;
    height: 28px;
    left: 0;
    top: 0;
    transform: translate(0, 0) scale(1, .7);
    background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 70%);
    filter: blur(4px);
    pointer-events: none;
    opacity: .45;
}

/* Низ (статистика, кнопка, услуги) */
.stats {
    display: grid;
    grid-template-columns: auto auto 170px;
    align-items: center;
    gap: clamp(12px, 2.6vw, 12px);
    width: max-content;
}

.stats__value {
    font-size: clamp(56px, 10vw, 120px);
    font-weight: 600;
    line-height: .9;
    opacity: .8;
}

.stats__vlabel {
    font-weight: 700;
    letter-spacing: .08em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: clamp(12px, 1.8vw, 18px);
    margin-bottom: 6px;
    opacity: .9;
}

.stats__note {
    width: 170px;
    font-size: clamp(14px, 2.2vw, 20px);
    color: var(--muted);
    line-height: 1.25;
}

.btn-ghost {
    display: inline-grid;
    grid-template-columns: 1fr 74px;
    align-items: center;
    gap: 0;
    padding: 0;
    height: 64px;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 0;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-weight: 300;
    letter-spacing: .02em;
    user-select: none;
    box-sizing: border-box;
    max-width: 100%;
}

.btn-ghost__text {
    padding-inline: clamp(18px, 3.5vw, 32px);
    display: flex;
    align-items: center;
    font-size: clamp(16px, 2.2vw, 22px);
}

.btn-ghost__arrow {
    position: relative;
    height: 100%;
    border-left: 2px solid rgba(255, 255, 255, .85);
    display: grid;
    place-items: center;
    background-color: #ffffff45;
}

.btn-ghost__arrow::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.cta {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.services {
    margin-left: auto;
    display: flex;
    gap: clamp(10px, 2vw, 24px);
    flex-wrap: wrap;
    font-weight: 600;
    letter-spacing: .02em;
}

.services__item.services__dot a {
    color: #fff;
    text-decoration: none;
}

span.services__item.services__dot {
    font-size: 1.3rem;
    text-transform: uppercase;
    font-weight: 400;
}

/* Круги за статистикой */
.stats-wrapper {
    position: relative;
    isolation: isolate;
    width: max-content;
}

.stats-rings {
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: visible;
}

.stats-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 3s ease-out infinite;
}

.stats-ring:nth-child(1) {
    animation-delay: 0s;
}

.stats-ring:nth-child(2) {
    animation-delay: 1s;
}

.stats-ring:nth-child(3) {
    animation-delay: 2s;
}

@keyframes ringPulse {
    0% {
        width: var(--ring-start, 200px);
        height: var(--ring-start, 200px);
        opacity: .8;
    }

    100% {
        width: var(--ring-end, 400px);
        height: var(--ring-end, 400px);
        opacity: 0;
    }
}

/* Адаптив: на узких ширинах заметку уносим на новую строку */
@media (max-width: 900px) {
    .stats {
        grid-template-columns: auto auto;
        grid-auto-rows: auto;
    }

    .stats__note {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   [itw-about] БЛОК "О НАС" — START
   Изоляция по .itw-about, чтобы не конфликтовать с другими стилями
   ========================================================= */
.itw-about {
    /* Локальные CSS-переменные блока */
    --itw-about-grad-start: #FA1919;
    --itw-about-grad-end: #F5B91E;
    --itw-text-primary: #111;
    --itw-white: #fff;
    --itw-container: 1600px;
    --itw-gutter: clamp(16px, 3vw, 32px);
    --itw-radius-xl: 20px;
    --itw-radius-lg: 14px;
    --itw-h-size: clamp(38px, 5.5vw, 72px);
    --itw-lead: clamp(16px, 1.4vw, 18px);
    --itw-btn: clamp(14px, 1.2vw, 20px);

    color: var(--itw-text-primary);
    font-family: "Jost", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: linear-gradient(90deg, var(--itw-about-grad-start), var(--itw-about-grad-end));
}

/* Контейнеры */
.itw-about__section {
    min-height: max-content;
    padding: clamp(20px, 3vw, 32px);
    padding-bottom: 90px;
    display: grid;
    place-items: start center;
}

.itw-about__inner {
    width: min(100%, var(--itw-container));
}

/* Верхняя строка: заголовок + текст */
.itw-about__head {
    display: grid;
    /* Управляй ширинами колонок тут:
     примеры: 50% 50% | auto 50% | 40% 60% | auto min(50%,600px) */
    grid-template-columns: 50% 50%;
    gap: var(--itw-gutter);
    align-items: end;
    margin-bottom: clamp(24px, 5vw, 48px);
}

.itw-about__title {
    margin: 0;
    line-height: .95;
    font-size: var(--itw-h-size);
    color: var(--itw-white);
    letter-spacing: .02em;
    text-transform: uppercase;
    font-weight: 600;
}

.itw-about__lead {
    margin: 0;
    font-size: var(--itw-lead);
    color: #fff;
    padding: 14px 16px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

/* Две колонки ниже */
.itw-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--itw-gutter);
    align-items: stretch;
}

.itw-about__left {
    border-radius: var(--itw-radius-xl);
    padding: 5% 13%;
    backdrop-filter: blur(2px);
}

/* Белая карточка */
.itw-about-card {
    background: var(--itw-white);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    padding: 8px;
}

.itw-about-card__media {
    aspect-ratio: 56/51;
    display: block;
    width: 100%;
    object-fit: cover;
}

.itw-about-card__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 2px;
    border-top: 1px solid #eee;
    font-size: 16px;
}

.itw-about-card__tg {
    color: #111;
    text-decoration: none;
    white-space: nowrap;
}

.itw-about-card__btn {
    appearance: none;
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 14px;
    font-size: 16px;
    line-height: 1;
    border-radius: 999px;
    cursor: pointer;
    transition: .2s ease;
}

.itw-about-card__btn:hover {
    background: transparent;
    color: #111;
}

.itw-about__desc {
    margin: 14px 4px 0;
    font-size: var(--itw-lead);
    color: #fff;
    padding: 12px 14px;
    border-radius: var(--itw-radius-lg);
    line-height: 1.45;
}

/* Видео справа — квадрат + иконка Play */
.itw-about__right {
    position: relative;
}

.itw-video-square {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    background: #000;
    isolation: isolate;
}

.itw-video-square video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Круглая подложка */
.itw-video-square::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
    pointer-events: none;
}

/* Треугольник Play — визуальная центровка сдвигом влево */
.itw-video-square::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-left: 26px solid rgba(255, 255, 255, .9);
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    transform: translateX(4px);
    pointer-events: none;
}

.itw-video-square__btn {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 0;
    z-index: 2;
}

/* CTA */
.itw-about__cta {
    margin-top: clamp(22px, 4vw, 36px);
    display: grid;
    place-items: center;
}

.itw-btn-cta {
    appearance: none;
    background: #fff;
    color: #111;
    font-size: var(--itw-btn);
    text-transform: uppercase;
    padding: 28px 28px;
    letter-spacing: .06em;
    cursor: pointer;
    transition: .2s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .15);
    font-weight: 600;
    border: none;
    width: 100%;
}

.itw-btn-cta:hover {
    background: #111;
    color: #fff;
}

/* Модалка видео */
.itw-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0, 0, 0, .65);
    z-index: 1000;
    padding: 24px;
}

.itw-modal.is-open {
    display: grid;
}

.itw-modal__content {
    position: relative;
    max-width: min(90vw, var(--itw-container));
    max-height: 90vh;
    width: 100%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.itw-modal__video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 90vh;
    background: #000;
}

.itw-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.itw-modal__close:hover {
    background: rgba(255, 255, 255, .18);
}

/* Адаптив */
@media (max-width:960px) {
    .itw-about__head {
        grid-template-columns: 1fr;
    }

    .itw-about__grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   [itw-about] БЛОК "О НАС" — END
   ========================================================= */


   /* =========================================================
   БЛОК: ITW Dream Team (уникальные классы с префиксом itw-)
   Структура: секция -> лево (заголовок + стрелка) / право (карточки)
   ========================================================= */

:root {
  /* Основные цвета-градиенты для карточек */
  --g-a: linear-gradient(90deg, #FA1919 0%, #F5B91E 100%);
  --g-b: linear-gradient(90deg, #F3B91E 0%, #4ACD4C 100%);
  --g-c: linear-gradient(90deg, #DD7AF3 0%, #3DDFEC 100%);
  --g-d: linear-gradient(90deg, #974CE5 0%, #9A8DF6 100%);
}

/* =========================================================
   ОБЩИЙ КОНТЕЙНЕР СЕКЦИИ
   ========================================================= */
.itw-dream {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(20px, 5vw, 64px);
  overflow: hidden;
  background: radial-gradient(1200px 800px at 70% 40%, #f6f4ff, transparent 60%),
    radial-gradient(900px 600px at 80% 70%, #f3f7ff, transparent 60%), #fff;
}

/* Адаптив: на мобильных — в колонку */
@media (max-width: 900px) {
  .itw-dream {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 96px;
  }
}

/* =========================================================
   ЛЕВАЯ ПАНЕЛЬ: "DREAM TEAM", буквы W и стрелка
   ========================================================= */
.itw-dream__left {
  position: relative;
  min-height: 320px;
  justify-self: center;
}

/* Большая полупрозрачная W позади заголовка */
.itw-dream__w-big {
  position: absolute;
  left: clamp(-8vw, -6vw, -48px);
  top: clamp(-4vw, -2vw, -24px);
  width: clamp(140px, 22vw, 280px);
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
}

.itw-dream__title {
  position: relative;
  z-index: 1;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(44px, 8vw, 128px);
  /* Вертикальный градиент текста: #FA1919 → #F5B91E */
  background: linear-gradient(180deg, #FA1919 0%, #F5B91E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 clamp(20px, 3.5vw, 36px);
}

/* Тонкая W-обводка внутри заголовка (после первой строки) */
.itw-dream__w-thin {
  position: relative;
  display: inline-block;
  width: clamp(64px, 11vw, 120px);
  margin-left: clamp(8px, 1.2vw, 16px);
  vertical-align: baseline;
  transform: translateY(6%);
}

.itw-dream__sub {
  margin-top: clamp(8px, 1.2vw, 16px);
  height: 1px;
  /* визуально разделим от стрелки */
}

/* Стрелка — контейнер */
.itw-dream__arrow {
  margin-top: 0;
  width: 100%;
  max-width: 560px;
  height: 36px;
}

/* Подсветка стрелки при hover карточек справа */
.itw-dream--active .itw-dream__arrow line,
.itw-dream--active .itw-dream__arrow path {
  stroke: url(#itw-grad-arrow);
  filter: drop-shadow(0 0 8px rgba(250, 25, 25, .25));
}
/* Общие настройки строк */
.itw-dream__line {
    display: inline-block;
}

/* Сдвигаем только DREAM */
.itw-dream__line--dream {
    padding-left: 84px; /* регулируемый сдвиг вправо */
}

/* TEAM остаётся как есть */
.itw-dream__line--team {
    padding-left: 0;
}

/* =========================================================
   ПРАВАЯ ПАНЕЛЬ: "рассыпанные карточки"
   ========================================================= */
.itw-dream__cards {
  position: relative;
  min-height: clamp(380px, 40vw, 520px);
  width: 100%;
}

/* Базовый стиль карточки */
.itw-card {
  --depth: 1;
  /* множитель параллакса (ниже в JS) */

  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.6vw, 14px) clamp(18px, 2.6vw, 28px);
  border-radius: 0;
  background: var(--g-a);
  /* по умолчанию первый градиент */
  color: #fff;
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 34px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(20, 20, 20, .10),
    0 1px 0 rgba(255, 255, 255, .25) inset;
  transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg));
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  will-change: transform;
  cursor: default;
  user-select: none;
}

/* Акцент при наведении курсора на область карточек */
.itw-card:hover {
  box-shadow: 0 14px 24px rgba(20, 20, 20, .16),
    0 1px 0 rgba(255, 255, 255, .25) inset;
  transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg)) scale(1.03);
  z-index: 3;
}

/* Варианты градиентов (4 штуки) */
.itw-card[data-g="a"] {
  background: var(--g-a);
}

.itw-card[data-g="b"] {
  background: var(--g-b);
}

.itw-card[data-g="c"] {
  background: var(--g-c);
}

.itw-card[data-g="d"] {
  background: var(--g-d);
}

/* --- Раскладка карточек (точечно положили как "на стол") --- */
/* Подбор позиций сделан под широкие экраны; ниже — адаптивные правки */
.itw-card:nth-child(1) {
  left: 6%;
  top: 6%;
  --rot: -10deg;
  --depth: 1.3;
}

/* ОФИС И УДАЛЁНКА */
.itw-card:nth-child(2) {
  left: 22%;
  top: 18%;
  --rot: 7deg;
  --depth: 2.0;
}

/* КОРПОРАТИВЫ */
.itw-card:nth-child(3) {
  left: 10%;
  top: 34%;
  --rot: -6deg;
  --depth: 1.6;
}

/* САМОПРЕЗЫ */
.itw-card:nth-child(4) {
  left: 5%;
  top: 50%;
  --rot: -12deg;
  --depth: 1.0;
}

/* ПОДДЕРЖКА */
.itw-card:nth-child(5) {
  left: 36%;
  top: 44%;
  --rot: -3deg;
  --depth: 2.2;
}

/* ГИБКИЙ ГРАФИК */
.itw-card:nth-child(6) {
  left: 14%;
  top: 66%;
  --rot: -2deg;
  --depth: 1.5;
}

/* ТИМБИЛДЫ */
.itw-card:nth-child(7) {
  left: 42%;
  top: 64%;
  --rot: 8deg;
  --depth: 2.6;
}

/* ПУТЕШЕСТВИЯ */
.itw-card:nth-child(8) {
  left: 56%;
  top: 54%;
  --rot: -8deg;
  --depth: 2.3;
}

/* ПРИЗЫ И ПРЕМИИ */
.itw-card:nth-child(9) {
  left: 54%;
  top: 34%;
  --rot: -5deg;
  --depth: 2.4;
}

/* ОБУЧЕНИЕ */
.itw-card:nth-child(10) {
  left: 70%;
  top: 62%;
  --rot: 6deg;
  --depth: 2.9;
}

/* ДРАЙВ */

/* Адаптив: планшет/мобайл — уплотняем и раскладываем компактнее */
@media (max-width: 900px) {
  .itw-dream__cards {
    min-height: 440px;
  }

  .itw-card {
    font-size: clamp(14px, 4.2vw, 20px);
  }

  .itw-card:nth-child(1) {
    left: 8%;
    top: 4%;
    --rot: -8deg;
  }

  .itw-card:nth-child(2) {
    left: 42%;
    top: 8%;
    --rot: 5deg;
  }

  .itw-card:nth-child(3) {
    left: 12%;
    top: 26%;
    --rot: -4deg;
  }

  .itw-card:nth-child(4) {
    left: 58%;
    top: 26%;
    --rot: -10deg;
  }

  .itw-card:nth-child(5) {
    left: 10%;
    top: 46%;
    --rot: -2deg;
  }

  .itw-card:nth-child(6) {
    left: 52%;
    top: 46%;
    --rot: 6deg;
  }

  .itw-card:nth-child(7) {
    left: 8%;
    top: 66%;
    --rot: -6deg;
  }

  .itw-card:nth-child(8) {
    left: 50%;
    top: 66%;
    --rot: -6deg;
  }

  .itw-card:nth-child(9) {
    left: 16%;
    top: 86%;
    --rot: -2deg;
  }

  .itw-card:nth-child(10) {
    left: 56%;
    top: 86%;
    --rot: 8deg;
  }
}

/* Небольшая помощь по фокусу с клавиатуры (доступность) */
.itw-card:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .85);
  outline-offset: 2px;
}

/* =========================================================
   БЛОК: ПРИГЛАШАЕМ В КОМАНДУ (itw-join-team)
   ========================================================= */

.itw-join-team {
  position: relative;
  padding: clamp(64px, 8vw, 120px) clamp(20px, 5vw, 64px);
  background: #fff;
  overflow: hidden;
  min-height: 70vh;
}

.itw-join-team__wrapper {
  max-width: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(0, 200px);
  gap: 0;
  align-items: stretch;
}

.itw-join-team__container {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
  position: relative;
  z-index: 1;
  padding-right: clamp(40px, 6vw, 80px);
}

/* Видео во всю ширину */
.itw-join-team__video-wrapper {
  position: relative;
  width: 100%;
}

.itw-join-team__video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.itw-join-team__cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
}

.itw-join-team__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  z-index: 2;
}

.itw-join-team__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.itw-join-team__play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.itw-join-team__play-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.itw-join-team__play-icon {
  width: clamp(100px, 15vw, 150px);
  height: auto;
  display: block;
}

.itw-join-team__video-container.playing .itw-join-team__cover,
.itw-join-team__video-container.playing .itw-join-team__play-btn {
  display: none;
}

.itw-join-team__video-container.playing .itw-join-team__video {
  display: block;
}

/* Контент: заголовок и текст в двух колонках, кнопка */
.itw-join-team__content {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 32px);
  width: 88.5%;
  margin-inline: auto;
}

.itw-join-team__text-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  width: 100%;
}

.itw-join-team__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  color: #333;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.itw-join-team__text {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.itw-join-team__cta-btn {
  display: block;
  width: 100%;
  padding: clamp(16px, 2.5vw, 20px) clamp(40px, 6vw, 64px);
  background: linear-gradient(90deg, #FA1919 0%, #F5B91E 100%);
  color: #fff;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border-radius: 0;
  box-sizing: border-box;
}

.itw-join-team__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(250, 25, 25, 0.3);
}

.itw-join-team__cta-btn:active {
  transform: translateY(0);
}

/* Боковой паттерн справа */
.itw-join-team__pattern {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  max-width: 200px;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.itw-join-team__pattern-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right;
  display: block;
}

/* Адаптив: мобильные устройства */
@media (max-width: 900px) {
  .itw-join-team {
    padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 40px);
    min-height: auto;
  }

  .itw-join-team__wrapper {
    grid-template-columns: 1fr;
  }

  .itw-join-team__container {
    padding-right: 0;
    gap: clamp(32px, 5vw, 48px);
  }

  .itw-join-team__text-wrapper {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 32px);
  }

  .itw-join-team__pattern {
    display: none;
  }

  .itw-join-team__content {
    gap: clamp(24px, 4vw, 32px);
    width: 100%;
    margin-inline: 0;
  }
}

@media (min-width: 901px) and (max-height: 860px) {
  body.home .itw-join-team {
    padding-block: clamp(40px, 6svh, 64px);
    min-height: auto;
  }

  body.home .itw-join-team__container {
    gap: clamp(24px, 3.2svh, 36px);
  }

  body.home .itw-join-team__video-wrapper {
    width: 100%;
  }

  body.home .itw-join-team__video-container {
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 120px);
  }

  body.home .itw-join-team__content {
    gap: clamp(20px, 2.6svh, 28px);
  }

  body.home .itw-join-team__text-wrapper {
    gap: clamp(20px, 3vw, 32px);
  }

  body.home .itw-join-team__title {
    font-size: clamp(30px, 3.6vw, 44px);
  }

  body.home .itw-join-team__text {
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.45;
  }

  body.home .itw-join-team__cta-btn {
    padding-block: 14px;
    font-size: clamp(15px, 1.2vw, 18px);
  }
}

/* ================== СЕКЦИЯ "НАШИ УСЛУГИ" (БАЗОВАЯ СЕТКА) ================== */
/* Оформление общей секции и сетки из двух колонок */

.itw-services {
    padding: 120px 80px;
    background-color: #f5f5f5; /* фоновый цвет секции, при необходимости подгоняем под дизайн */
    font-family: "Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* базовый шрифт секции */
    position: relative;
    isolation: isolate;
    z-index: 0;
}

.itw-services__inner {
    max-width: 1440px;              /* ширина контейнера */
    margin: 0 auto;                 /* центрируем по горизонтали */
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); /* 2 колонки: левая чуть уже правой */
    column-gap: 96px;               /* расстояние между колонками */
    position: relative;
    z-index: 1;
}

.itw-services__decor {
    position: sticky;
    top: 0;
    height: 100vh;
    margin-bottom: -100vh;
    pointer-events: none;
    z-index: 0;
}

.itw-services__glow {
    position: absolute;
    border-radius: 50%;
    will-change: transform, filter;
    transform: translateZ(0);
    filter: blur(140px);
    opacity: 0.95;
}

.itw-services__glow--pink {
    top: 120px;
    left: -150px;
    width: min(34vw, 560px);
    height: min(34vw, 560px);
    background: rgba(255, 183, 209, 0.78);
}

.itw-services__glow--blue {
    top: 70px;
    right: -240px;
    width: min(52vw, 840px);
    height: min(52vw, 840px);
    background: rgba(193, 230, 255, 0.88);
    filter: blur(165px);
}

.itw-services__glow--yellow {
    bottom: -150px;
    left: -30px;
    width: min(30vw, 500px);
    height: min(30vw, 500px);
    background: rgba(255, 238, 176, 0.68);
    filter: blur(150px);
}

/* ================== ЛЕВАЯ КОЛОНКА ================== */
/* Лейбл, заголовок, счётчик, текст-описание */

.itw-services__left {
    display: flex;
    flex-direction: column;
    gap: 32px;                       /* вертикальный отступ между элементами слева */
}

.itw-services__label {
    font-size: 21px; /* было 14px */
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #555;
}

/* Фиксация левой колонки при скролле секции */
.services-left {
    position: sticky;   /* липкое позиционирование внутри секции */
    top: 120px;         /* отступ сверху (учитываем фиксированный хедер, если есть) */
    align-self: flex-start;
}

.services-left-title {
    font-size: 60px; /* было 40px */
    line-height: 1.1;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
}

/* Строка с текущим / общим номером и линией */
.itw-services__index-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 21px; /* было 14px */
    color: #555;
}

.services-left-index-current,
.services-left-index-total {
    min-width: 28px;
    text-align: right;
}

.itw-services__index-separator {
    opacity: 0.6;
}

.itw-services__index-line {
    flex: 1;
    height: 1px;
    background-color: #ddd;
    margin-left: 12px;
}

/* Описание активной услуги (меняется при скролле) */
.services-left-description {
    font-size: 21px; /* было 14px */
    line-height: 1.6;
    color: #444;
    max-width: 520px;
    margin: 0;
}

/* "Ролик" заголовков слева (контейнер и элементы) */
.services-left-title-track {
    display: flex;
    flex-direction: column;
}

.services-left-title-item {
    display: flex;
    align-items: flex-start;
    line-height: 1.1;
}

/* "Ролик" числового индекса (01 / 02 / 03 ...) */
.services-left-index-current {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.services-left-index-track {
    display: flex;
    flex-direction: column;
}

.services-left-index-item {
    display: block;
    line-height: 1;
}

/* ================== ПРАВАЯ КОЛОНКА ================== */
/* Список блоков услуг, заголовки, пункты, разделители */

.itw-services__right {
    border-left: 1px solid #ddd; /* вертикальная линия слева от списка услуг */
    padding-left: 72px;          /* отступ от линии до контента */
}

.service-block {
    padding-top: 72px;           /* отступ сверху между блоками */
    --service-bullet-image: url("../img/punkt.svg");
    --service-blob-gradient: linear-gradient(270deg, #DD7AF3 0%, #3DDFEC 100%);
    --service-blob-size: 260px;
    --service-blob-top: auto;
    --service-blob-right: auto;
    --service-blob-bottom: auto;
    --service-blob-left: auto;
}

/* Заголовок блока услуг справа */
.service-block-heading {
    font-size: 48px; /* было 32px */
    font-weight: 600;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}

.service-block-description {
    display: none;
}

.service-block__mobile-image-wrap,
.service-block__mobile-blob {
    display: none;
}

/* Список услуг внутри блока */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 27px; /* было 18px */
    line-height: 1.5;
    color: #333;
}

/* Пункты списка; анимацией (opacity/transform) управляет GSAP из JS */
.service-item {
    /* намеренно не задаём здесь opacity/transform, чтобы не конфликтовать с GSAP */
}

/* Разделитель между блоками (линия) */
.service-divider {
    height: 1px;
    background-color: #ddd;
    margin: 48px 0 24px;
    opacity: 0;              /* стартовые значения будут анимироваться GSAP */
    transform: translateX(260px);
}

/* ================== АДАПТИВ ================== */
/* Планшеты и ниже */
@media (max-width: 1024px) {
    .itw-services {
        padding: 80px 24px;
    }

    .itw-services__inner {
        grid-template-columns: 1fr; /* одна колонка вместо двух */
        row-gap: 48px;
    }

    .itw-services__glow--pink {
        top: 110px;
        left: -120px;
        width: 420px;
        height: 420px;
    }

    .itw-services__glow--blue {
        top: 150px;
        right: -180px;
        width: 560px;
        height: 560px;
    }

    .itw-services__glow--yellow {
        bottom: -120px;
        left: -70px;
        width: 320px;
        height: 320px;
    }

    .itw-services__right {
        border-left: none;  /* убираем вертикальную линию */
        padding-left: 0;
    }
}

/* Мобильные устройства */
@media (max-width: 600px) {
    .itw-services__decor {
        top: 0;
        height: 100svh;
        margin-bottom: -100svh;
    }

    .itw-services__glow--pink {
        top: 90px;
        left: -120px;
        width: 300px;
        height: 300px;
    }

    .itw-services__glow--blue {
        top: 220px;
        right: -150px;
        width: 360px;
        height: 360px;
    }

    .itw-services__glow--yellow {
        bottom: -70px;
        left: -60px;
        width: 220px;
        height: 220px;
    }

    .services-left-title {
        font-size: 32px;
    }

    .service-block-heading {
        font-size: 20px;
    }

    .itw-services__index-row {
        font-size: 13px;
    }

    .service-list {
        font-size: 14px;
    }
}
/* Цвет заголовков и текста секции "Наши услуги" */
.itw-services {
    color: #111; /* базовый цвет текста внутри секции */
}

/* Левый заголовок */
.services-left-title {
    color: #111; /* переписываем белый цвет темы */
}

/* Правые заголовки блоков */
.service-block-heading {
    color: #111;
}

/* Пункты списка услуг */
.service-list,
.service-item {
    color: #333;
}

/* ================== СЕКЦИЯ "НАШИ УСЛУГИ" (БАЗОВАЯ СЕТКА) ================== */
/* Оформление общей секции и сетки из двух колонок */

.itw-services {
    padding: 120px 80px;
    background-color: #ffffff; /* белый фон секции */
    color: #111111;            /* базовый цвет текста */
    font-family: "Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (max-width: 600px) {
    .services-left-title {
        font-size: 48px; /* было 32px */
    }

    .service-block-heading {
        font-size: 30px; /* было 20px */
    }

    .itw-services__index-row {
        font-size: 20px; /* было 13px */
    }

    .service-list {
        font-size: 21px; /* было 14px */
    }
}
/* Стрелочка перед каждым пунктом списка услуг */
.service-item {
    position: relative;         /* чтобы ::before позиционировать относительно пункта */
    padding-left: 32px;         /* отступ под иконку слева */
}

.service-item__link,
.service-item__text {
    display: inline;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-decoration: none;
}

.service-item__link:hover {
    text-decoration: underline;
}

/* Вставляем punkt.svg перед текстом */
.service-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;                /* чуть ниже, чтобы иконка была по центру строки */
    width: 16px;
    height: 16px;
    background-image: var(--service-bullet-image); /* путь из /assets/css/ в /assets/img/ */
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
/* =========================
   БАЗОВЫЕ НАСТРОЙКИ ШРИФТА
   ========================= */
body {
    font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   СЕКЦИЯ КЕЙСА
   ========================= */
.case-hero {
    position: relative; /* нужно для абсолютных декоративных элементов */
    overflow: hidden;   /* обрезаем всё выходящее за границы */
    padding: 40px 40px; /* внешние отступы секции */
    color: #ffffff;
}
.case-hero--forza {
    background: linear-gradient(90deg, #FA1919 0%, #F5B91E 100%);
}
.case-hero--olimp {
    background: linear-gradient(90deg, #974CE5 0%, #9A8DF6 100%);
}
/* Внутренний контейнер с двумя колонками */
.case-hero__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 80px;
}

/* Левая колонка (текст) */
.case-hero__content {
    flex: 0 0 38%; /* ширина примерно 35–40% */
    z-index: 2;    /* чтобы быть выше декоративного фона */
}

/* Правая колонка (фото) */
.case-hero__media {
    position: relative;
    z-index: 2;
}
.case-hero__media_forza {
    flex: 0 0 90%; /* ширина примерно 60% */
}
.case-hero__media_olimp {
    flex: 0 0 70%; /* ширина примерно 60% */
}

/* =========================
   ДЕКОРАТИВНАЯ ВЕРТИКАЛЬНАЯ НАДПИСЬ "КЕЙСЫ"
   ========================= */

/* Полоса слева, строго по высоте секции */
.case-hero__bg-label {
    position: absolute;
    inset: 0 auto 0 0;                  /* top:0; bottom:0; left:0; */
    width: clamp(120px, 14vw, 210px);   /* ширина вертикальной полосы */
    display: flex;
    align-items: center;                /* текст по центру вертикали */
    justify-content: center;            /* и по горизонтали внутри полосы */
    overflow: hidden;                   /* ничего не вылезает за край полосы */
    pointer-events: none;
    z-index: 1;
}

/* Сам текст — без rotate, используем vertical-writing */
.case-hero__bg-label span {
   display: block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 800;
    text-transform: uppercase;
    color: rgb(255 255 255 / 19%);
    line-height: 1;
    font-size: min(30vh, 230px);
    transform: rotate(180deg);
}

.case-hero__btn {
    text-decoration: none !important;
    text-decoration-skip-ink: none !important;
    -webkit-text-decoration: none !important;
}



/* =========================
   ТЕКСТОВЫЙ БЛОК
   ========================= */
.case-hero__title {
    margin: 0 0 24px;
    font-size: 112px;
    line-height: 1.1;
    font-weight: 500;
    text-transform: uppercase;
        /*font-size: var(--itw-h-size);*/
}

.case-hero__tags {
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.case-hero__tags li {
    font-size: 28px;
    line-height: 1.5;
    text-transform: uppercase;
}

/* =========================
   КНОПКА "ПОДРОБНЕЕ"
   ========================= */
.case-hero__btn {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid #ffffff;
}

/* Левая часть кнопки с текстом */
.case-hero__btn-text {
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* Правая часть кнопки с иконкой */
.case-hero__btn-icon {
    position: relative;
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18));
}

/* Стрелка внутри иконки */
.case-hero__btn-arrow {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #ffffff;
}

/* Ховер-состояние кнопки */
.case-hero__btn:hover .case-hero__btn-text {
    background-color: rgba(255, 255, 255, 0.08);
}

/* =========================
   ФОТО И ДЕКОРАТИВНЫЙ КОНТУР
   ========================= */



/* Обёртка для изображения */
.case-hero__image-wrap {
    position: relative;
    margin: 0;
    z-index: 2;
}

/* Само изображение */
.case-hero__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 40px;
    object-fit: cover;
}

/* =========================
   АДАПТИВ
   ========================= */

/* Планшеты */
@media (max-width: 1024px) {
    .case-hero {
        padding: 60px 24px;
    }

    .case-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 40px;
    }

    .case-hero__content,
    .case-hero__media {
        flex: 0 0 auto;
        width: 100%;
    }

    .case-hero__media {
        align-self: center;
    }

    .case-hero__bg-label {
        font-size: 100px;
        left: -40px;
    }
}

/* Мобилки */
@media (max-width: 640px) {
    .case-hero {
        padding: 40px 16px 48px;
    }

    .case-hero__title {
        font-size: 32px;
    }

    .case-hero__tags li {
        font-size: 14px;
    }

    .case-hero__btn {
        width: 100%;
    }

    .case-hero__btn-text {
        flex: 1 1 auto;
        justify-content: flex-start;
        padding-inline: 20px;
    }

    .case-hero__frame {
        inset: 4% 0 -6% 4%;
        border-radius: 28px;
    }

    .case-hero__image {
        border-radius: 28px;
    }

    .case-hero__bg-label {
        opacity: 0.08;
        font-size: 72px;
        left: -60px;
    }
}

.case-hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20%;                       /* начиная с 20% ширины секции */
    transform: translateY(-50%);     /* центрируем по вертикали */

    width: 155%;                      /* подгоняй как нужно */
    height: auto;
    aspect-ratio: 1.8 / 1;           /* приблизительная форма, можно менять */

    background-image: url("/wp-content/themes/itw-starter/assets/img/wwww.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    opacity: 0.5;                   /* как в макете */
    pointer-events: none;            /* чтобы не перекрывала клики */
    z-index: 0;                      /* под текстом/фото, над фоном */
}


/* ===========================
   HERO-БЛОК С КАРТОЧКАМИ БЛОГА
   =========================== */

/* Сбрасываем базовые отступы и настраиваем коробку */
.hero-blog * {
    box-sizing: border-box; /* Все элементы внутри hero считаем с border-box */
    margin: 0;
    padding: 0;
}

/* Обертка всего героя */
.hero {
    position: relative;
    height: 100vh;             /* Высота экрана */
    padding: 6vh 7vw;          /* Внутренние отступы от краев */
    overflow: hidden;          /* Обрезаем выползающее содержимое */
}
.first-hero {
    padding-top: 0;
}
/* Внутренняя часть героя: текст слева, карточки справа */
.hero-inner {
    position: relative;
    display: flex;             /* Располагаем текст и карточки в одну строку */
    align-items: center;       /* Вертикальное выравнивание по центру */
    justify-content: space-between; /* Разводим блоки по краям */
    height: 100%;
    z-index: 1;                /* Выше фона и градиента */
}

/* Градиентный оверлей поверх фона */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;                  /* Растягиваем на весь hero */
    background: linear-gradient(135deg, #FA1919, #F5B91E); /* Стартовый градиент */
    opacity: 1;                /* Из коробки виден полностью */
    transition: opacity 0.5s ease-out; /* Плавное исчезновение при скролле */
    z-index: 0;
    pointer-events: none;      /* Не перехватывает клики */
}

/* Обертка для SVG-фона */
.hero-bg-svg {
    position: absolute;
    inset: 0;                  /* На всю область hero */
    z-index: 1;                /* Над градиентом, под карточками */
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SVG-фон (буква W) */
.hero-bg-svg img {
    width: 100%;               /* Подгоняем по ширине блока */
    opacity: 1;                /* При необходимости можно уменьшать прозрачность */
    object-fit: contain;       /* Сохраняем пропорции картинки */
    pointer-events: none;
    position: absolute;
    left: 20%;                 /* Сдвигаем вправо от левого края */
    top: 20%;                  /* Сдвигаем вниз от верхнего края */
}

/* Левый текстовый блок */
.hero-text {
    max-width: 40vw;           /* Ограничиваем ширину текста */
}

/* Кикер (подзаголовок над H1) */
.hero-kicker {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    color: #ffffff;
}

/* Главный заголовок */
.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem); /* Адаптивный размер шрифта */
    line-height: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    width: max-content;        /* Ширина по содержимому */
}

/* Область для карточек справа */
.cards-viewport {
    position: relative;
    width: 40vw;
    max-width: 520px;
    height: 70vh;
}

/* Лента карточек, которые горизонтально скроллятся GSAP-ом */
.cards-track {
    position: absolute;
    top: 50%;
    left: 0;
    display: flex;             /* Карточки в ряд */
    gap: 6vw;                  /* Расстояние между карточками */
}

/* Обертка одной карточки */
.card {
    position: relative;
    width: 30vw;
    max-width: 60vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transform-origin: center center; /* Центр трансформаций для вращения/масштаба */
}

.card--clickable {
    cursor: pointer;
}

.card--clickable:focus-visible .card-polaroid,
.card--clickable:hover .card-polaroid {
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
}

/* "Полароид"-карточка */
.card-polaroid {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;       /* Соотношение сторон 3:4 */
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35); /* Тень */
    overflow: hidden;
    z-index: 1;
}

/* Внутренняя область с градиентом/фоном */
.card-inner-photo {
    position: absolute;
    inset: 10px 10px 70px;     /* Отступы от краев полароида */
    border-radius: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
/* Универсальный стиль для <video> и <img> внутри карточки */
.card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* обрезаем по контейнеру, без искажений */
    display: block;
}

/* Маленький "каракули"-эмодзи в углу */
.card-scribble {
    position: absolute;
    bottom: 8px;
    right: 16px;
    font-size: 1.2rem;
    opacity: 0.4;
}

/* Обертка для подписей (едет отдельно от карточек) */
.card-caption-wrap {
    position: absolute;
    left: 14%;
    bottom: 10%;
    display: flex;
    flex-direction: column;
    gap: 12px;                 /* Расстояние между строками подписей */
    z-index: 2;
    pointer-events: none;      /* Подписи не кликабельны */
    transform: translateX(60px); /* Стартовый сдвиг для эффекта "догоняет карточку" */
}

/* Одна строка подписи */
.card-caption {
    display: inline-block;
    background-color: #373737; /* Тёмный фон под текстом */
    color: #ffffff;
    padding: 0.3em 0.6em;
    border-radius: 0;
    white-space: nowrap;       /* Не переносим текст на новую строку */
    transform-origin: left center;
}

/* Заголовок подписи */
.card-caption--title {
    font-size: clamp(2.7rem, 2.2vw, 3.3rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    max-width: max-content;
}

/* Подзаголовок подписи */
.card-caption--sub {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    width: max-content;
}

/* Номер карточки в левом верхнем углу */
.card-index-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #f9fafb;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
    display: none;
}

/* Блок после героя (чтобы было куда скроллить) */
.after {
    min-height: 120vh;
    background: #141414;
    color: #ffffff;
    padding: 8vh 7vw;
}

/* Заголовок блока .after */
.after h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Текст в блоке .after */
.after p {
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.8;
}

/* Отладочная панель внизу экрана */
.debug-panel {
    position: fixed;
    left: 16px;
    bottom: 16px;
    padding: 10px 12px;
    max-width: 320px;
    background: #020617;
    color: #bbf7d0;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    pointer-events: none;
    display: none;             /* ВАЖНО: скрываем панель по умолчанию. Чтобы включить — поменять на block */
}

/* Выделение жирным в отладочной панели */
.debug-panel b {
    color: #6ee7b7;
}

/* Маленький квадратик/свотч цвета (если понадобится) */
.debug-color-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    border-radius: 2px;
    border: 1px solid rgba(15, 23, 42, 0.9);
    vertical-align: -2px;
}

/* ===========================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ
   =========================== */
@media (max-width: 960px) {
    .hero-inner {
        flex-direction: column;      /* Строим текст и карточки вертикально */
        align-items: flex-start;
        justify-content: center;
        gap: 4vh;
    }

    .hero-text {
        max-width: 100%;             /* Текст на всю ширину */
    }

    .cards-viewport {
        width: 100%;
        max-width: none;
        height: 55vh;                /* Чуть ниже высота по вертикали */
    }

    .card {
        width: 280px;                /* Фиксированная ширина карточки на мобиле */
    }

    .card-caption-wrap {
        left: 10%;
        bottom: 8%;
    }

    .card-caption--title {
        font-size: 1.4rem;
    }

    .card-caption--sub {
        font-size: 0.9rem;
    }

    .debug-panel {
        max-width: 260px;
        font-size: 11px;
    }
}

/* =========================================================
   CASES SCROLL EFFECT - Эффект смены блоков для кейсов
   ========================================================= */

/* Скрываем исходные данные секций */
.cases-data {
    display: none;
}

/* Основная обёртка */
.cases-scroll-wrapper {
    position: relative;
    z-index: 1;
}

.cases-mobile-title {
    display: none;
}

/* Контейнер для fixed слоёв */
.cases-layers {
    position: relative;
    z-index: 1;
    /* Фон-подложка на случай зазоров */
    background: #000;
}

/* Fixed слой кейса - теперь с фоном */
.cases-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    will-change: clip-path, transform;
    /* По умолчанию скрыт - JS покажет когда нужно */
    visibility: hidden;
}

/* Внутренний контент слоя (для параллакса и opacity) */
.cases-layer__content {
    width: 100%;
    height: 100%;
    will-change: transform, opacity;
}

/* Убираем фон с case-hero внутри слоёв (фон теперь на cases-layer) */
.cases-layer .case-hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    background: transparent !important;
}

.cases-layer .case-hero__inner {
    width: 100%;
}

/* Scroll-контейнер */
.cases-scroll-container {
    position: relative;
    z-index: 10;
    pointer-events: none;
}

/* Scroll-секция (высота экрана) */
.cases-scroll-section {
    height: 100vh;
    position: relative;
}

/* Разделитель (divider) */
.cases-divider {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background: linear-gradient(90deg, #FA1919 0%, #F5B91E 100%);
    display: flex;
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 100;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Модификаторы цвета divider для разных кейсов */
.cases-divider--forza {
    background: linear-gradient(90deg, #FA1919 0%, #F5B91E 100%);
}

.cases-divider--olimp {
    background: linear-gradient(90deg, #974CE5 0%, #9A8DF6 100%);
}

/* Контент ПОСЛЕ секций кейсов */
.cases-after-sections {
    position: relative;
    z-index: 20;
    background: transparent;
}

/* DEBUG панель для кейсов (опционально) */
.cases-debug {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.9);
    color: #0f0;
    padding: 15px;
    font-family: monospace;
    font-size: 11px;
    z-index: 10000;
    border-radius: 8px;
    min-width: 220px;
    display: none; /* Скрыто по умолчанию, включить через JS */
}

.cases-debug.is-visible {
    display: block;
}

.cases-debug div {
    margin: 4px 0;
}

.cases-debug .label {
    color: #888;
}

.cases-debug .val {
    color: #0ff;
}

/* =========================================================
   АДАПТИВ ДЛЯ CASES SCROLL EFFECT
   ========================================================= */

@media (max-width: 1024px) {
    .cases-divider {
        height: 48px;
        padding-left: 24px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .cases-divider {
        height: 42px;
        padding-left: 16px;
        font-size: 12px;
    }
    
    .cases-layer .case-hero {
        padding: 40px 16px;
    }
}

/* =========================================================
   КОНЕЦ CASES SCROLL EFFECT
   ========================================================= */

/* =========================================================
   ticker section
   ========================================================= */
.begush-stroke-block {
    position: relative;
    z-index: 80 !important; /* Ниже fixed-хедера, чтобы не перекрывать меню */
    background: transparent !important;
    overflow: visible;
    overflow-x: clip;
    margin: 0;
    padding: 0px 0;
    height: 0px;
    top: -51px;
}

.apply-ticker {
    position: relative;
    overflow: hidden;
    height: 100px;
    background: linear-gradient(90deg, #FA1919 0%, #F5B91E 100%);
    transform: skewY(-3deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    width: 100%;
    left: 0;
    /* РЈР±РёСЂР°РµРј РѕС‚СЂРёС†Р°С‚РµР»СЊРЅС‹Рµ РјР°СЂР¶РёРЅС‹ РёР·РЅСѓС‚СЂРё,
       Р»СѓС‡С€Рµ РѕС‚СЂРµРіСѓР»РёСЂРѕРІР°С‚СЊ РѕС‚СЃС‚СѓРїС‹ СЃР°РјРѕРіРѕ Р±Р»РѕРєР° */
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerAnim 40s linear infinite;
    will-change: transform;
}

.ticker-content {
    display: flex;
    flex-shrink: 0;
}

.ticker-link {
    display: inline-block;
    color: #fff !important;
    text-decoration: none !important;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 40px;
    white-space: nowrap;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
    /* РЈР±РёСЂР°РµРј РІСЃРµ РІРѕР·РјРѕР¶РЅС‹Рµ РїРѕРґС‡РµСЂРєРёРІР°РЅРёСЏ */
    border-bottom: none !important;
}
/* =========================================================
   ticker section
   ========================================================= */
.begush-stroke-block {
    position: relative;
    z-index: 80 !important; /* Ниже fixed-хедера, чтобы не перекрывать меню */
    background: transparent !important;
    overflow: visible;
    overflow-x: clip;
    margin: 0;
    padding: 0px 0;
    height: 0px;
    top: -51px;
}

.apply-ticker {
    position: relative;
    overflow: hidden;
    height: 100px;
    background: linear-gradient(90deg, #FA1919 0%, #F5B91E 100%);
    transform: skewY(-3deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    display: flex;
    align-items: center;
    width: 100%;
    left: 0;
    /* РЈР±РёСЂР°РµРј РѕС‚СЂРёС†Р°С‚РµР»СЊРЅС‹Рµ РјР°СЂР¶РёРЅС‹ РёР·РЅСѓС‚СЂРё,
       Р»СѓС‡С€Рµ РѕС‚СЂРµРіСѓР»РёСЂРѕРІР°С‚СЊ РѕС‚СЃС‚СѓРїС‹ СЃР°РјРѕРіРѕ Р±Р»РѕРєР° */
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerAnim 40s linear infinite;
    will-change: transform;
}

.ticker-content {
    display: flex;
    flex-shrink: 0;
}

.ticker-link {
    display: inline-block;
    color: #fff !important;
    text-decoration: none !important;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 40px;
    white-space: nowrap;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
    /* РЈР±РёСЂР°РµРј РІСЃРµ РІРѕР·РјРѕР¶РЅС‹Рµ РїРѕРґС‡РµСЂРєРёРІР°РЅРёСЏ */
    border-bottom: none !important;
}

.ticker-link:hover {
    opacity: 0.8;
}

@keyframes tickerAnim {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.itw-dream-preticker {
    display: none;
}

/* =========================================================
   АДАПТИВ РАЗДЕЛА: HOME (ПОДХОД MOBILE MOBILE-OVERRIDES)
   ========================================================= */

/* --- Планшеты (max-width: 1200px) --- */
@media (max-width: 1200px) {
    /* 1. HERO BLOG (Карточки) */
    .hero.hero-blog {
        height: auto;
        min-height: auto;
        padding-bottom: 60px;
    }
    .hero-blog .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    .hero-blog .hero-text {
        max-width: 100%;
        margin-top: 40px;
    }
    .hero-blog .cards-viewport {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    .hero-blog .cards-track {
        position: relative;
        top: 0;
        left: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        transform: none !important; /* Отключаем GSAP-трансформации */
    }
    .hero-blog .card {
        width: 100%;
        max-width: 100%;
    }
    .hero-blog .card-polaroid {
        transform: none !important; 
    }
    .hero-blog .card-caption-wrap {
        position: static;
        transform: none !important;
        margin-top: 16px;
    }

    /* 2. CASES (Кейсы) */
    /* Прячем JS-контейнеры эффектов, показываем оригинальный поток (#casesData) */
    #casesLayers, 
    #casesScrollContainer {
        display: none !important;
    }
    
    #casesData {
        display: flex !important;
        flex-direction: column;
        gap: 0;
    }

    .case-hero {
        min-height: auto;
        padding-block: 60px;
        background: transparent !important; /* Убираем инлайн фоны */
    }
    
    .case-hero.case-hero--forza {
        background: linear-gradient(90deg, #FA1919 0%, #F5B91E 100%) !important;
    }
    .case-hero.case-hero--olimp {
        background: linear-gradient(90deg, #974CE5 0%, #9A8DF6 100%) !important;
    }
}

/* --- Мобильные (max-width: 640px) --- */
@media (max-width: 640px) {
    .cases-mobile-title {
        display: block;
        margin: 0;
        padding: 10px 16px 20px;
        font-family: 'Jost', sans-serif;
        font-size: clamp(32px, 8.8vw, 40px);
        font-weight: 700;
        line-height: 0.95;
        text-transform: uppercase;
        color: #222;
        background: #f0f8ff;
        position: relative;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .stats__note {
        grid-column: 1 / -1;
    }
    
    .itw-dream {
        padding: 40px 16px;
    }
    .itw-dream__cards {
        min-height: 520px;
    }
}

/* --- Мелкие экраны (max-width: 480px) --- */
@media (max-width: 480px) {
    .case-hero__title {
        font-size: 32px !important;
    }
    .case-hero__btn-text {
        padding: 12px 20px;
        font-size: 12px;
    }
}

/* --- Очень узкие экраны (max-width: 360px) --- */
@media (max-width: 360px) {
    .stats__value {
        font-size: 48px;
    }
    .hero-title {
        font-size: 36px;
    }
}

/* =========================================================
   MOBILE CLEANUP 2026-04
   Единый слой адаптации главной под телефоны
   ========================================================= */

@media (max-width: 900px) {
    .hero.hero-blog {
        min-height: auto;
        max-height: none;
        height: auto;
        padding: 48px 16px 56px;
    }

    .hero.hero-blog .hero-inner {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 28px;
    }

    .hero.hero-blog .hero-text {
        max-width: 100%;
        margin-top: 0;
    }

    .hero.hero-blog .hero-kicker {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .hero.hero-blog .hero-title {
        width: auto;
        font-size: clamp(42px, 11vw, 58px);
    }

    .hero.hero-blog .cards-viewport {
        width: 100%;
        max-width: none;
        height: auto;
        overflow: visible;
    }

    .hero.hero-blog .cards-track {
        position: relative;
        top: auto;
        left: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        transform: none !important;
    }

    .hero.hero-blog .card {
        width: 100%;
        max-width: none;
    }

    .hero.hero-blog .card-polaroid {
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
    }

    .hero.hero-blog .card-inner-photo {
        inset: 8px 8px 64px;
    }

    .hero.hero-blog .card-caption-wrap {
        position: static;
        transform: none !important;
        margin-top: 14px;
        gap: 10px;
    }

    .hero.hero-blog .card-caption--title,
    .hero.hero-blog .card-caption--sub {
        width: auto;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero.hero-blog .card-caption--title {
        font-size: clamp(20px, 6vw, 28px);
        line-height: 1.1;
    }

    .hero.hero-blog .card-caption--sub {
        font-size: 13px;
        line-height: 1.25;
    }

    .hero.hero-blog .hero-bg-svg img {
        width: 150%;
        left: 10%;
        top: 8%;
        opacity: 0.22;
    }

    .hero.hero-blog .hero-gradient-overlay {
        opacity: 1 !important;
    }

    .itw-services {
        padding: 72px 16px 64px;
    }

    .itw-services__decor {
        position: absolute;
        inset: 0;
        height: auto;
        margin: 0;
    }

    .itw-services__glow {
        filter: blur(90px);
        opacity: 0.58;
    }

    .itw-services__inner {
        row-gap: 10px;
    }

    .services-left {
        position: static;
        top: auto;
        gap: 0;
    }

    .itw-services__label {
        font-size: 16px;
    }

    .services-left-title,
    .itw-services__index-row,
    .services-left-description {
        display: none;
    }

    .itw-services__right {
        display: grid;
        gap: 16px;
        padding-left: 0;
        border-left: none;
    }

    .service-block {
        padding: 22px 18px;
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid rgba(17, 17, 17, 0.08);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        position: relative;
        overflow: hidden;
        isolation: isolate;
    }

    .service-block-heading {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .service-block-description {
        display: block;
        margin: 0 0 14px;
        font-size: 15px;
        line-height: 1.1;
        color: #555;
        position: relative;
        z-index: 1;
    }

    .service-block__mobile-image-wrap {
        display: block;
        position: relative;
        z-index: 1;
        margin: 0 0 14px;
        max-width: min(100%, 240px);
    }

    .service-block__mobile-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .service-block__mobile-blob {
        display: block;
        position: absolute;
        top: var(--service-blob-top);
        right: var(--service-blob-right);
        bottom: var(--service-blob-bottom);
        left: var(--service-blob-left);
        width: var(--service-blob-size);
        height: calc(var(--service-blob-size) * 0.52);
        border-radius: 999px;
        background: var(--service-blob-gradient);
        filter: blur(72px);
        opacity: 0.42;
        pointer-events: none;
        z-index: 0;
    }

    .service-list {
        font-size: 16px;
        gap: 10px;
        position: relative;
        z-index: 1;
    }

    .service-item {
        padding-left: 26px;
    }

    .service-item::before {
        top: 0.42em;
        width: 12px;
        height: 12px;
    }

    .service-divider {
        display: none;
    }

    .services-right .js-service-anim {
        opacity: 1 !important;
        transform: none !important;
    }

    #casesData .case-hero {
        background: var(--case-bg) !important;
    }

    #casesData .case-hero {
        min-height: auto;
        padding: 30px 16px 36px;
    }

    #casesData .case-hero__inner {
        row-gap: 24px;
        column-gap: 24px;
    }

    #casesData .case-hero__content,
    #casesData .case-hero__media {
        width: 100%;
    }

    #casesData .case-hero__title {
        font-size: clamp(34px, 9.4vw, 46px) !important;
        margin-bottom: 16px;
    }

    #casesData .case-hero__tags {
        margin-bottom: 20px;
        gap: 6px;
    }

    #casesData .case-hero__tags li {
        font-size: 15px;
        line-height: 1.4;
    }

    #casesData .case-hero__btn {
        width: min(100%, 240px);
        background: rgba(255, 255, 255, 0.06);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    }

    #casesData .case-hero__btn-text {
        padding: 14px 18px;
        font-size: 13px;
    }

    #casesData .case-hero__btn-icon {
        width: 52px;
        background: rgba(255, 255, 255, 0.14);
    }

    #casesData .case-hero__image-wrap {
        width: 100%;
    }

    #casesData .case-hero__image {
        border-radius: 22px;
    }

    #casesData .case-hero__bg-label {
        width: 78px;
    }

    #casesData .case-hero__bg-label span {
        font-size: min(20vh, 120px);
        color: rgba(255, 255, 255, 0.08);
    }

    .itw-dream {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 18px;
        padding: 56px 16px;
    }

    .itw-dream__left {
        min-height: auto;
        justify-self: stretch;
        display: grid;
        gap: 18px;
        text-align: center;
    }

    .itw-dream__w-big {
        left: 50%;
        top: -12px;
        width: 180px;
        opacity: 0.22;
        transform: translateX(-50%);
    }

    .itw-dream__title {
        margin-bottom: 0;
        font-size: clamp(52px, 15vw, 78px);
        line-height: 0.82;
    }

    .itw-dream__line--dream,
    .itw-dream__line--team {
        display: block;
        padding-left: 0;
    }

    .itw-dream__line--team {
        margin-top: -0.5em;
    }

    .itw-dream__w-thin {
        display: none;
    }

    .itw-dream__arrow {
        width: 100%;
        max-width: none;
        height: 20px;
    }

    .itw-dream__cards {
        min-height: 470px;
        display: block;
    }

    .itw-card {
        position: absolute;
        width: auto;
        min-height: 0;
        padding: 11px 15px;
        justify-content: center;
        font-size: clamp(15px, 4.2vw, 18px);
        line-height: 1;
        white-space: nowrap;
        box-shadow: 0 10px 18px rgba(20, 20, 20, 0.12);
        transform: rotate(var(--rot, 0deg));
        animation: itwDreamFloatMobile 7.2s ease-in-out infinite;
    }

    .itw-card:nth-child(1) { left: 2%; top: 4%; }
    .itw-card:nth-child(2) { left: 48%; top: 8%; animation-duration: 8.4s; animation-delay: -1.2s; }
    .itw-card:nth-child(3) { left: 8%; top: 24%; animation-duration: 7.8s; animation-delay: -2.2s; }
    .itw-card:nth-child(4) { left: 52%; top: 28%; animation-duration: 8.8s; animation-delay: -0.7s; }
    .itw-card:nth-child(5) { left: 6%; top: 48%; animation-duration: 7.6s; animation-delay: -1.8s; }
    .itw-card:nth-child(6) { left: 54%; top: 52%; animation-duration: 8.2s; animation-delay: -2.5s; }
    .itw-card:nth-child(7) { left: 10%; top: 72%; animation-duration: 8.6s; animation-delay: -1.3s; }
    .itw-card:nth-child(8) { left: 44%; top: 74%; animation-duration: 7.4s; animation-delay: -0.9s; }
    .itw-card:nth-child(9) { left: 22%; top: 62%; animation-duration: 8.1s; animation-delay: -2.1s; }
    .itw-card:nth-child(10) { left: 40%; top: 40%; animation-duration: 7.9s; animation-delay: -1.5s; }

    .itw-about__section {
        padding: 20px 16px 56px;
    }

    .itw-about__head {
        margin-bottom: 20px;
    }

    .itw-about__title {
        font-size: clamp(42px, 12vw, 56px);
    }

    .itw-about__lead,
    .itw-about__desc {
        font-size: 15px;
    }

    .itw-about__left {
        padding: 0;
    }

    .itw-about-card {
        padding: 6px;
    }

    .itw-about-card__bar {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }

    .itw-about-card__btn {
        width: 100%;
        text-align: center;
    }

    .itw-about__cta {
        width: 100%;
    }

    .itw-btn-cta {
        box-sizing: border-box;
        padding: 18px 20px;
        font-size: 15px;
        line-height: 1.2;
    }
}

@media (max-width: 820px) {
    .hero.first-hero {
        min-height: 100svh;
        max-height: none;
        height: auto;
        padding: 0;
    }

    .hero.first-hero .hero__container {
        min-height: 100svh;
        max-height: none;
        width: 100%;
        padding: 10px 14px 18px;
        grid-template-rows: auto 1fr auto;
        gap: 2px;
        overflow: hidden;
    }

    .hero.first-hero .hero__top {
        position: relative;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        width: 100%;
        box-sizing: border-box;
    }

    .hero.first-hero .hero__menu-btn {
        padding: 0;
        justify-self: start;
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
    }

    .hero.first-hero .logo-link {
        justify-self: auto;
        margin-inline: 0;
        margin-right: auto;
        min-width: 0;
        flex: 0 0 auto;
    }

    .hero.first-hero .hero__logo {
        height: 30px;
        max-width: 136px;
    }

    .hero.first-hero .menu-icon {
        width: 38px;
        height: 38px;
    }

    .hero.first-hero .hero__contacts {
        width: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 4px;
        min-width: 0;
        padding-top: 0;
        box-sizing: border-box;
        flex: 0 0 auto;
    }

    .hero.first-hero .hero__contacts img {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
    }

    .hero.first-hero .hero__contacts > a:not(.hero__phone) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        flex: 0 0 38px;
    }

    .hero.first-hero .hero__phone {
        margin-left: 6px;
        min-width: 0;
        text-align: right;
        font-size: clamp(14px, 3.4vw, 17px);
        font-weight: 500;
        line-height: 1;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        min-height: 38px;
    }

    .hero.first-hero .hero__middle {
        align-content: start;
        min-height: clamp(168px, 21svh, 220px);
        padding-top: clamp(304px, 72vw, 388px);
        box-sizing: border-box;
    }

    .hero.first-hero .hero__title {
        max-width: 100%;
        font-size: clamp(38px, 11vw, 58px);
        line-height: 0.9;
    }

    .hero.first-hero .hero__subtitle {
        justify-self: start;
        max-width: 100%;
        margin-top: 8px;
        font-size: clamp(14px, 4.5vw, 22px);
        line-height: 1.02;
    }

    .hero.first-hero .hero__balloon {
        top: 52px;
        left: 50%;
        right: auto;
        width: min(90vw, 460px);
        transform: translateX(-50%) rotate(8deg);
        animation: heroBalloonFloatMobile 9.8s ease-in-out infinite;
    }

    .hero.first-hero .hero__shadow {
        display: block;
        width: 220px;
        height: 20px;
        left: 50%;
        right: auto;
        top: calc(52px + min(90vw, 460px) * 0.82);
        transform: translateX(-50%);
        filter: blur(10px);
        animation: heroBalloonShadowMobile 9.8s ease-in-out infinite;
    }

    .hero.first-hero .stats-rings {
        display: none;
    }

    .hero.first-hero .her-bottom {
        display: grid;
        gap: 10px;
        align-self: start;
        margin-bottom: 0;
        margin-top: 0;
        transform: translateY(-52px);
    }

    .hero.first-hero .stats-wrapper {
        width: 100%;
    }

    .hero.first-hero .stats {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
    }

    .hero.first-hero .stats__value {
        font-size: clamp(46px, 13vw, 74px);
    }

    .hero.first-hero .stats__vlabel {
        writing-mode: initial;
        transform: none;
        font-size: 12px;
        letter-spacing: 0.04em;
        margin-bottom: 0;
    }

    .hero.first-hero .stats__note {
        width: 100%;
        max-width: none;
        font-size: 13px;
        line-height: 1.25;
    }

    .hero.first-hero .cta {
        margin-top: 0;
        align-items: flex-start;
        gap: 8px;
    }

    .hero.first-hero .btn-ghost {
        width: auto;
        height: 52px;
        box-sizing: border-box;
        max-width: min(100%, 280px);
        min-width: 0;
        grid-template-columns: auto 52px;
    }

    .hero.first-hero .btn-ghost__text {
        min-width: 0;
        padding-inline: 18px 14px;
        font-size: 14px;
        white-space: nowrap;
    }

    .hero.first-hero .btn-ghost__arrow {
        width: 52px;
    }

    .hero.first-hero .services {
        width: 100%;
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 11px 22px;
        align-items: flex-start;
    }

    .hero.first-hero span.services__item.services__dot {
        display: inline-block;
        font-size: 18px;
        line-height: 1.08;
    }

    .begush-stroke-block {
        top: -30px;
    }

    .apply-ticker {
        height: 72px;
        transform: skewY(-2deg);
    }

    .ticker-link {
        font-size: 14px;
        padding: 0 18px;
    }
}

@media (max-width: 480px) {
    .hero.first-hero .hero__container,
    .hero.hero-blog,
    .itw-services,
    .itw-dream,
    .itw-about__section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero.first-hero .hero__top {
        gap: 18px;
    }

    .hero.first-hero .hero__phone {
        font-size: 13px;
    }

    .hero.first-hero .hero__logo {
        height: 28px;
        max-width: 128px;
    }

    .hero.first-hero .hero__balloon {
        left: 50%;
        top: 58px;
        width: min(90vw, 360px);
    }

    .hero.first-hero .hero__title {
        max-width: 100%;
        font-size: clamp(36px, 10.6vw, 52px);
    }

    .hero.first-hero .hero__subtitle {
        max-width: 100%;
        font-size: 13px;
    }

    .hero.first-hero .hero__middle {
        min-height: clamp(152px, 18svh, 200px);
        padding-top: clamp(270px, 72vw, 338px);
    }

    .hero.first-hero .her-bottom {
        margin-top: 0;
        transform: translateY(-86px);
    }

    .hero.first-hero .hero__contacts > a:not(.hero__phone) {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .hero.first-hero .btn-ghost {
        max-width: min(100%, 268px);
    }

    .hero.first-hero span.services__item.services__dot {
        font-size: 17px;
    }

    .hero.first-hero .stats__note {
        max-width: none;
    }

    .hero.first-hero .btn-ghost {
        max-width: min(100%, 276px);
    }

    .service-block {
        padding: 20px 16px;
    }

    .service-block-heading {
        font-size: 24px;
    }

    .itw-dream__cards {
        min-height: 420px;
    }

    .itw-card {
        padding: 10px 12px;
        font-size: 14px;
    }

    #casesData .case-hero__btn {
        width: 100%;
    }
}

@keyframes heroBalloonFloatMobile {
    0%, 100% {
        transform: translateX(-50%) translate3d(0, 0, 0) rotate(8deg);
    }

    25% {
        transform: translateX(-50%) translate3d(24%, 18px, 0) rotate(5deg);
    }

    50% {
        transform: translateX(-50%) translate3d(8%, 30px, 0) rotate(4deg);
    }

    75% {
        transform: translateX(-50%) translate3d(-22%, 12px, 0) rotate(9deg);
    }
}

@keyframes heroBalloonShadowMobile {
    0%, 100% {
        transform: translateX(-50%) translate3d(0, 0, 0) scale(1, 1);
        opacity: 0.22;
    }

    25% {
        transform: translateX(-50%) translate3d(16%, 0, 0) scale(0.96, 1);
        opacity: 0.18;
    }

    50% {
        transform: translateX(-50%) translate3d(5%, 0, 0) scale(0.92, 0.96);
        opacity: 0.15;
    }

    75% {
        transform: translateX(-50%) translate3d(-14%, 0, 0) scale(0.98, 1);
        opacity: 0.2;
    }
}

@keyframes itwDreamFloatMobile {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg));
    }

    50% {
        transform: translate3d(0, -10px, 0) rotate(calc(var(--rot, 0deg) + 1.5deg));
    }
}
