/* ============================================================================
   kt-hero: первый экран страницы Контакты
   ============================================================================ */

.kt-hero {
  position: relative;
  width: min(1824px, 100% - 2 * var(--hero-gutter));
  max-width: 1824px;
  margin-inline: auto;
  aspect-ratio: 1824 / 489;
  border-radius: var(--radius-xl);
  background: var(--bg-dark-primary);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding-inline: 92px;
  padding-top: 199px;
}

.kt-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.kt-hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.kt-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 1193px;
}

.kt-hero__title {
  font-size: 90px;
  font-weight: var(--weight-500);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-constant-light);
  margin: 0;
}

.kt-hero__subtitle {
  font-size: var(--scale-05);
  font-weight: var(--weight-400);
  line-height: 1.5;
  color: var(--text-constant-light);
  margin: 0;
  max-width: 940px;
}

/* Адаптив ----------------------------------------------------------------- */

@media (max-width: 1440px) {
  .kt-hero {
    padding-inline: 72px;
    padding-bottom: 160px;
  }

  .kt-hero__title {
    font-size: clamp(72px, 6vw, 90px);
  }
}







/* Промежуточные ширины: секция сжимается по aspect-ratio, и под текстом
   почти не остаётся воздуха. Даём высоте расти по контенту с запасом. */
@media (min-width: 1200px) and (max-width: 1919px) {
  .kt-hero {
    aspect-ratio: auto;
    min-height: min(489px, 26.8vw);
    padding-top: clamp(150px, 12vw, 199px);
    padding-bottom: clamp(48px, 4.5vw, 80px);
  }

  .kt-hero__title {
    font-size: clamp(48px, 4.7vw, 90px);
  }

  .kt-hero__subtitle {
    font-size: clamp(16px, 1.25vw, 24px);
  }
}

/* Бейдж — только планшет */
.kt-hero__badge { display: none; }

/* ============================================================================
   Планшет (≤1024) — узел 534:6964: карточка 720x336 (r24), бейдж 16,
   заголовок 48, подзаголовок 16/80%.
   ============================================================================ */

@media (max-width: 1199px) {
  .kt-hero {
    max-width: calc(100% - 48px);
    aspect-ratio: auto;
    height: 336px;
    border-radius: 24px;
    /* 24 пад + 60 навбар (fixed) + 40 зазор */
    padding: 124px 24px 0;
  }

  .kt-hero__badge {
    display: block;
    width: fit-content;
    font-size: 16px;
  }

  .kt-hero__content {
    gap: 24px;
    max-width: none;
  }

  .kt-hero__title {
    font-size: 48px;
    margin-top: -8px; /* группа бейдж+заголовок с зазором 16 при общем 24 */
  }

  .kt-hero__subtitle {
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    max-width: none;
  }
}

/* ============================================================================
   Мобильный (≤767px) — узел 534:7179: карточка 351x281 (r20),
   заголовок 32px, subtitle 14px, бейдж скрыт
   ============================================================================ */

@media (max-width: 767px) {
  .kt-hero {
    max-width: calc(100% - 24px);
    height: 281px;
    border-radius: 20px;
    padding: 115px 16px 0; /* контент в макете на y115, поля карточки 16 */
  }

  .kt-hero__badge {
    display: none;
  }

  .kt-hero__content {
    gap: 16px;
  }

  .kt-hero__title {
    font-size: 32px;
    margin-top: 0;
    line-height: 1.1;
  }

  .kt-hero__subtitle {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
  }
}
