﻿:root {
  --bg: #ffffff;
  --bg-soft: #f3f3f4;
  --bg-band: #f7f8fb;
  --text: #222e3d;
  --brand: #fa8c19;
  --brand-dark: #001e46;
  --brand-soft: #f7f8fb;
  --radius: 24px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  /* clip вместо hidden: hidden превращает body в scroll-контейнер и ломает position: sticky */
  overflow-x: clip;
}

body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section--soft {
  background: var(--brand-soft);
}

.section--band {
  background: var(--bg-band);
}

.section--blue {
  background: var(--brand-dark);
  color: var(--bg);
}

.section--blue h2,
.section--blue h3,
.section--blue p,
.section--blue li,
.section--blue .section-title__num {
  color: #fff;
}

.section--blue p,
.section--blue li {
  color: rgba(255, 255, 255, 0.84);
}

.section--blue .section-title__num {
  color: var(--brand);
}

.section--blue .btn--outline {
  background: #fff;
  border-color: #fff;
  color: var(--brand-dark);
}

.section--blue .btn--outline:hover,
.section--blue .btn--outline:focus-visible {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.section--blue .btn--arrow {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 12px 0 rgba(255, 255, 255, 0.14);
}

.section--blue .btn--arrow:hover,
.section--blue .btn--arrow:focus-visible {
  background: var(--brand);
  color: #fff;
}

.section--blue .btn__circle {
  background: var(--brand);
  color: #fff;
}

.section--blue .btn--arrow:hover .btn__circle,
.section--blue .btn--arrow:focus-visible .btn__circle {
  background: #fff;
  color: var(--brand-dark);
}

.section--white {
  background: var(--bg);
  color: var(--brand-dark);
}

.section--white h2,
.section--white h3,
.section--white p,
.section--white .section-title__num {
  color: var(--text);
}

.section--paper {
  position: relative;
  overflow: hidden;
}

.section--paper > .container {
  position: relative;
  z-index: 1;
}

.section--paper-top::before,
.section--paper-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  z-index: 0;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.section--paper-top::before {
  top: 0;
  height: 130px;
  background-image: url("assets/tilda/tild6530-3662-4335-b862-383232666439__Frame_17.png");
}

.section--paper-bottom::after {
  display: none;
  bottom: 0;
  height: 130px;
  background-image: url("assets/tilda/tild3430-3532-4062-a233-353030336137__25_c.png");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(0, 30, 70, 0.1);
  backdrop-filter: blur(8px);
  isolation: isolate;
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__brand img {
  width: 130px;
  display: block;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 1201;
}

.site-header__nav a {
  position: relative;
  text-decoration: none;
  color: var(--brand-dark);
  font-family: Oswald, Inter, Arial, sans-serif;
  font-size: 20px;
  transition: color 0.2s ease;
}

.site-header__nav a:hover,
.site-header__nav a.is-active {
  color: var(--brand);
}

.site-header__toggle {
  display: none;
}

.site-header__toggle-icon {
  display: grid;
  gap: 5px;
}

.site-header__toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.hero {
  position: relative;
  background-color: #e9e9eb;
  overflow: visible;
  z-index: 30;
}

.intro-stack {
  position: relative;
  isolation: isolate;
}

.hero.section {
  padding: 0;
}

.hero__stage {
  position: relative;
  width: 100%;
  min-height: clamp(58rem, 98vh, 86rem);
  background-color: #e9e9eb;
  background-image: url("assets/tilda/tild3235-3630-4632-b338-373731386335___.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  z-index: 30;
  overflow: visible;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  min-height: clamp(56rem, 95vh, 82rem);
}

.hero__content {
  position: relative;
  z-index: 50;
}

.hero__lead {
  margin: 0 0 1rem;
  font-size: clamp(0.95rem, 1.1vw, 1.125rem);
  text-transform: uppercase;
  color: #4c5867;
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  font-family: Oswald, Inter, Arial, sans-serif;
  color: var(--brand-dark);
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  font-weight: 500;
  text-transform: uppercase;
}

h1 span {
  color: var(--brand);
}

p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.btn--outline {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand-dark);
}

.hero__media {
  position: relative;
  min-height: 66vh;
  aspect-ratio: 1 / 1;
  overflow: visible;
  transform: scale(1.5);
  transform-origin: 75% 52%;
}

.hero__shape {
  position: absolute;
  max-width: 50%;
  filter: drop-shadow(0 1rem 1.875rem rgba(0, 26, 70, 0.15));
  transition: transform 0.2s ease-out;
  z-index: 10;
}

.hero__shape--a {
  left: 30.6%;
  top: 4.2%;
  max-width: 22%;
  z-index: 10;
}

.hero__shape--b {
  left: 9%;
  top: 17.9%;
  max-width: 37.8%;
  z-index: 10;
}

.hero__shape--c {
  left: 21%;
  top: 34.3%;
  max-width: 28.7%;
  z-index: 10;
}

.hero__person {
  position: absolute;
  left: 0;
  top: -0.6%;
  width: 142%;
  max-width: 100%;
  filter: drop-shadow(0 1rem 1.75rem rgba(0, 26, 70, 0.18));
  z-index: 20;
}

/*.frontline-bridge {
  position: absolute;
  left: 50%;
  bottom: clamp(-30rem, -42vh, -22rem);
  z-index: 35;
  width: 98vw;
  transform: translateX(-50%);
  margin: 0;
  pointer-events: none;
}

.frontline-bridge img {
  position: relative;
  left: 0;
  top: 0;
  display: block;
  width: 100vw;
  max-width: none;
}
*/

/* Контейнер-мост между блоками */
.frontline-bridge {
    position: relative; /* Меняем absolute на relative */
    z-index: 2;         /* Выше фонов, но ниже интерактивного контента */
    width: 100vw;       /* Строго на всю ширину вьюпорта */
    left: 50%;          /* Сдвиг для центрирования */
    transform: translateX(-50%); /* Центрирование по оси X */
    margin-top: 0;      /* Сброс внешних отступов */
    margin-bottom: 0;
    pointer-events: none; /* Клик проходит сквозь картинку */
}

/* Сама SVG/PNG линия */
.frontline-bridge img {
    position: absolute;  /* Абсолют внутри относительного контейнера */
    left: 0;
    top: 50%;            /* Сажаем ровно на центральную ось стыка */
    transform: translateY(-50%); /* Центрируем по вертикали */
    display: block;
    width: 100%;         /* Тянется на всю ширину родителя */
    height: auto;        /* Пропорциональное изменение высоты */
    max-width: none;
}

.hero__btn {
  margin-top: 0.625rem;
  gap: 1rem;
  min-width: 18rem;
  justify-content: space-between;
  background: #001e46;
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  font-family: Oswald, Inter, Arial, sans-serif;
  font-weight: 400;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}

.container.split {
  position: relative;
  z-index: 50;
}

#lms-system {
  position: relative;
  z-index: 10;
  background: #f9f9f9;
  padding-top: clamp(7.5rem, 13vh, 10rem);
}

#lms-system > .container {
  position: relative;
  z-index: 70;
}

.section .container {
  position: relative;
  z-index: 50;
}

.btn,
h1,
h2,
h3,
p,
a,
li {
  position: relative;
  z-index: 51;
}

.section-title {
  position: relative;
  display: block;
  margin: 0 0 8px;
}

.section-title__num {
  position: absolute;
  left: -88px;
  top: 0;
  font-family: Oswald, Inter, Arial, sans-serif;
  font-size: 64px;
  line-height: 0.9;
  color: #223041;
}

.section-title h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  margin: 0;
}

.section-link {
  display: inline-block;
  margin: 0;
  color: #ff7a22;
  font-size: 40px;
  font-family: Oswald, Inter, Arial, sans-serif;
  text-decoration: none;
  border-bottom: 3px solid #ff7a22;
}

.section-link-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
}

.section-link-plus {
  color: #ff7a22;
  font-family: Oswald, Inter, Arial, sans-serif;
  font-size: clamp(56px, 4vw, 72px);
  line-height: 0.72;
  transform: translateY(-4px);
}

.media-card {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, #f8f9fd 100%);
  box-shadow: 0 24px 46px rgba(12, 42, 76, 0.12);
}

.media-card img {
  width: 100%;
  display: block;
}

.media-video {
  overflow: visible;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.media-video video {
  width: 100%;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  display: block;
}

.check-list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 18px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.media-card--dark {
  background: transparent;
  color: #fff;
}

.media-card--dark h3 {
  color: #fff;
  font-size: 38px;
}

.media-card--dark h3 span {
  color: #ffb25d;
}

.media-card--dark video {
  width: 100%;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.block-title {
  font-size: clamp(32px, 4vw, 58px);
  margin-bottom: 28px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 42px;
  align-items: start;
}

.benefit {
  min-height: 210px;
}

.benefit img {
  width: 120px;
  height: auto;
  margin-bottom: 18px;
}

.benefit p {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
  color: #5a6472;
}

.benefit p strong {
  color: #2d3644;
}

.benefits__cta {
  grid-column: 1 / 2;
  align-self: end;
  padding-top: 0;
}

.btn--arrow {
  gap: 16px;
  min-width: 280px;
  justify-content: space-between;
  background: #001e46;
  font-size: 34px;
  font-family: Oswald, Inter, Arial, sans-serif;
  font-weight: 400;
}

.btn__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  background: #fa8c19;
  color: #fff;
}

.btn__circle svg {
  display: block;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 22px 20px 18px;
  background-color: #f4f4f5;
  background-image: linear-gradient(rgba(244, 244, 245, 0.82), rgba(244, 244, 245, 0.82)), var(--card-bg);
  background-position: center bottom;
  background-size: cover, 108% auto;
  background-repeat: no-repeat;
  border: 1px solid rgba(0, 30, 70, 0.08);
  border-radius: 28px;
  box-shadow: 0 1px 0 rgba(0, 30, 70, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:nth-child(1) { --card-bg: url("assets/tilda/BG_card_1.svg"); }
.card:nth-child(2) { --card-bg: url("assets/tilda/BG_card_2.svg"); }
.card:nth-child(3) { --card-bg: url("assets/tilda/BG_card_3.svg"); }
.card:nth-child(4) { --card-bg: url("assets/tilda/BG_card_4.svg"); }
.card:nth-child(5) { --card-bg: url("assets/tilda/BG_card_5.svg"); }
.card:nth-child(6) { --card-bg: url("assets/tilda/BG_card_1.svg"); }

.card::before {
  content: "Внедренные решения";
  display: block;
  order: 2;
  margin-top: 18px;
  color: #f4a117;
  font-family: Oswald, Inter, Arial, sans-serif;
  font-size: clamp(22px, 1.4vw, 30px);
  line-height: 1;
}

.card::after {
  content: "";
  display: block;
  order: 3;
  width: 100%;
  height: 1px;
  margin-top: 8px;
  background: rgba(34, 46, 61, 0.14);
}

.card h3 {
  order: 1;
  margin: 0;
  color: #001e46;
  font-size: clamp(26px, 1.8vw, 36px);
  line-height: 1.12;
}

.card p {
  order: 4;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  font-size: 15px;
  line-height: 1.48;
  color: #475364;
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, margin-top 0.25s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 12px 0 rgba(0, 30, 70, 0.1);
}

.card:hover p,
.card:focus-within p {
  max-height: 160px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 10px;
}

@media (hover: none) {
  .card p {
    max-height: 160px;
    opacity: 1;
    transform: none;
    margin-top: 10px;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 74px 0;
  }

  .hero__grid,
  .split,
  .cards,
  .benefits {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 300px;
    border-radius: 22px;
    padding: 18px 16px 16px;
  }

  .card h3 {
    font-size: clamp(22px, 6.2vw, 30px);
  }

  .benefits__cta {
    grid-column: auto;
  }

  .btn--arrow {
    min-width: 0;
    width: 100%;
    font-size: 28px;
  }

  .site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 30, 70, 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
  }

  .site-header__nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 30, 70, 0.12);
  }

  .site-header.menu-open .site-header__nav {
    display: flex;
  }

  .section-link {
    font-size: 32px;
  }

  .section-link-wrap {
    gap: 10px;
    margin-bottom: 16px;
  }

  .section-title__num {
    left: -56px;
    font-size: 52px;
  }

  .section-link-plus {
    font-size: clamp(42px, 8vw, 54px);
    transform: translateY(-2px);
  }

  #lms-system {
    padding-top: clamp(6rem, 10vh, 7.5rem);
  }

  .hero__grid {
    min-height: clamp(44rem, 84vh, 58rem);
    gap: 1rem;
  }

  .hero__media {
    min-height: 56vh;
    aspect-ratio: 1 / 1;
  }

  .hero__shape--a {
    left: 26%;
    top: 6%;
    max-width: 25%;
  }

  .hero__shape--b {
    left: 5%;
    top: 22%;
    max-width: 44%;
  }

  .hero__shape--c {
    left: 16%;
    top: 40%;
    max-width: 34%;
  }

  .hero__person {
    left: 0;
    top: -1%;
    width: 140%;
  }

 /* .frontline-bridge img {
    top: 0;
  }

  .frontline-bridge {
    bottom: clamp(-20rem, -30vh, -14rem);
  }

  .hero__btn {
    min-width: 0;
    width: 100%;
    font-size: 28px;
  }
}
*/
}

.site-header__nav a.is-active {
  color: var(--brand);
}

.catalog-hero {
  min-height: calc(100vh - 74px);
  padding: clamp(5rem, 9vw, 8rem) 0;
  display: flex;
  align-items: center;
  background-color: #e9e9eb;
  background-image: linear-gradient(90deg, rgba(233, 233, 235, 0.96) 0%, rgba(233, 233, 235, 0.88) 46%, rgba(233, 233, 235, 0.4) 100%), url("assets/tilda/tild3235-3630-4632-b338-373731386335___.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

.catalog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.catalog-hero__content {
  max-width: 740px;
}

.catalog-hero__panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 30, 70, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 70px rgba(0, 30, 70, 0.13);
  backdrop-filter: blur(10px);
}

.catalog-stat {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #fff;
  border: 1px solid rgba(0, 30, 70, 0.08);
}

.catalog-stat--wide {
  grid-column: 1 / -1;
}

.catalog-stat strong {
  margin-bottom: 6px;
  color: var(--brand);
  font-family: Oswald, Inter, Arial, sans-serif;
  font-size: clamp(42px, 4vw, 64px);
  line-height: 0.95;
  font-weight: 500;
}

.catalog-stat span {
  color: #4d5968;
  font-size: 16px;
  line-height: 1.4;
}

.catalog-section {
  background: #f7f8fb;
}

.catalog-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.catalog-heading .section-title__num,
.catalog-cta .section-title__num {
  position: static;
  display: block;
  margin-bottom: 8px;
}

.catalog-heading p {
  max-width: 780px;
  color: #4d5968;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.course-card {
  position: relative;
  z-index: 0;
  min-height: 320px;
  padding: 28px 26px 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.96)),
    radial-gradient(circle at 88% 10%, rgba(250, 140, 25, 0.12), transparent 32%);
  border: 1px solid rgba(0, 30, 70, 0.08);
  border-radius: 28px;
  box-shadow:
    0 18px 44px rgba(0, 30, 70, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-card > * {
  position: relative;
  z-index: 1;
}

.course-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(250, 140, 25, 0.08);
  pointer-events: none;
  z-index: 0;
}

.course-card:hover,
.course-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(250, 140, 25, 0.24);
  box-shadow:
    0 28px 58px rgba(0, 30, 70, 0.13),
    0 10px 0 rgba(0, 30, 70, 0.07);
}

.course-card--accent {
  background:
    linear-gradient(145deg, rgba(255, 249, 242, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 88% 12%, rgba(250, 140, 25, 0.18), transparent 34%);
  border-color: rgba(250, 140, 25, 0.28);
}

.course-card--dark {
  background:
    linear-gradient(145deg, #001e46, #063061 66%, #001833),
    radial-gradient(circle at 90% 12%, rgba(250, 140, 25, 0.28), transparent 34%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.course-card--dark h3,
.course-card--dark p,
.course-card--dark .course-card__meta {
  color: #fff;
}

.course-card--dark .course-card__meta {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.course-card__tag {
  width: fit-content;
  margin-bottom: 20px;
  padding: 8px 12px;
  background: rgba(250, 140, 25, 0.13);
  color: #c5670e;
  border: 1px solid rgba(250, 140, 25, 0.18);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.course-card--dark .course-card__tag {
  background: rgba(250, 140, 25, 0.2);
  color: #ffb25d;
}

.course-card h3 {
  margin-bottom: 14px;
  color: #001e46;
  font-size: clamp(24px, 1.65vw, 32px);
  line-height: 1.12;
}

.course-card--dark h3 {
  color: #fff;
}

.course-card p {
  margin-bottom: 24px;
  color: #536071;
  font-size: 16px;
  line-height: 1.55;
}

.course-card__meta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(0, 30, 70, 0.1);
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.course-card__meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 30, 70, 0.05);
}

.course-card--dark .course-card__meta span {
  background: rgba(255, 255, 255, 0.1);
}

.catalog-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}

.catalog-cta h2,
.catalog-cta p {
  color: #fff;
}

.catalog-cta .section-title__num {
  color: var(--brand);
}

.catalog-cta p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 980px) {
  .catalog-hero {
    min-height: auto;
    padding: 4.5rem 0;
  }

  .catalog-hero__grid,
  .course-grid,
  .catalog-cta__inner {
    grid-template-columns: 1fr;
  }

  .catalog-hero__panel {
    grid-template-columns: 1fr;
  }

  .catalog-stat--wide {
    grid-column: auto;
  }

  .course-card {
    min-height: auto;
  }
}

@media (max-width: 1180px) {
  .container {
    width: min(100% - 32px, 1040px);
  }

  .hero__stage {
    min-height: auto;
    padding: 72px 0 92px;
  }

  .hero__grid {
    min-height: auto;
  }

  .hero__media {
    transform: scale(1.18);
    transform-origin: center;
  }

  .cards,
  .benefits,
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  }
}

@media (max-width: 980px) {
  :root {
    --header-height: 66px;
  }

  .section {
    padding: 68px 0;
  }

  .site-header {
    background: rgba(255, 255, 255, 0.97);
  }

  .site-header__inner {
    gap: 14px;
  }

  .site-header__brand img {
    width: 112px;
  }

  .site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 30, 70, 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
    font: 700 16px/1 Oswald, Inter, Arial, sans-serif;
  }

  .site-header.menu-open .site-header__toggle-icon span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .site-header.menu-open .site-header__toggle-icon span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-header__nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: calc(var(--header-height) + 10px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(0, 30, 70, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 54px rgba(0, 30, 70, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-header.menu-open .site-header__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header__nav a {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 22px;
  }

  .site-header__nav a:hover,
  .site-header__nav a.is-active {
    background: rgba(250, 140, 25, 0.1);
  }

  .hero__grid,
  .split,
  .catalog-hero__grid,
  .catalog-cta__inner {
    grid-template-columns: 1fr;
  }

  .hero__stage {
    padding: 54px 0 84px;
    /* На узких экранах фотофон делает текст нечитаемым — заменяем
       светлым градиентом с мягким фирменным акцентом */
    background-image:
      radial-gradient(120% 60% at 88% 100%, rgba(250, 140, 25, 0.16) 0%, rgba(250, 140, 25, 0) 62%),
      linear-gradient(180deg, #f7f8fb 0%, #e9e9eb 100%);
  }

  .hero__content {
    max-width: 680px;
  }

  .hero__media {
    width: min(560px, 100%);
    min-height: min(76vw, 420px);
    margin: 0 auto;
    transform: scale(1);
  }

  .frontline-bridge {
    max-width: 100%;
    overflow: hidden;
  }

  .section-title__num {
    position: static;
    display: block;
    margin-bottom: 8px;
    font-size: clamp(42px, 9vw, 58px);
  }

  .section-title h2,
  .block-title,
  .catalog-hero h1 {
    overflow-wrap: anywhere;
  }

  .section-link-wrap {
    display: flex;
    align-items: flex-start;
  }

  .section-link {
    font-size: clamp(28px, 6vw, 38px);
  }

  .btn,
  .btn--arrow,
  .hero__btn {
    width: 100%;
    max-width: 360px;
    min-width: 0;
  }

  .media-card--dark h3 {
    font-size: clamp(28px, 6vw, 36px);
  }

  .catalog-hero {
    min-height: auto;
    padding: 64px 0;
  }

  .catalog-hero__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-stat--wide {
    grid-column: 1 / -1;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 640px);
  }

  .section {
    padding: 56px 0;
  }

  .hero__stage {
    padding: 42px 0 72px;
  }

  .hero__grid {
    gap: 20px;
  }

  .hero__media {
    min-height: min(82vw, 360px);
  }

  .hero__person {
    width: 124%;
    left: -8%;
  }

  .hero__shape--a {
    left: 30%;
    top: 5%;
    max-width: 25%;
  }

  .hero__shape--b {
    left: 4%;
    top: 22%;
    max-width: 43%;
  }

  .hero__shape--c {
    left: 18%;
    top: 44%;
    max-width: 32%;
  }

  .cards,
  .benefits,
  .course-grid,
  .catalog-hero__panel {
    grid-template-columns: 1fr;
  }

  .benefit,
  .card,
  .course-card,
  .catalog-stat {
    min-height: auto;
  }

  .course-card {
    padding: 24px 20px 20px;
    border-radius: 22px;
  }

  .course-card__meta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .catalog-cta__inner {
    gap: 24px;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 60px;
  }

  .container {
    width: min(100% - 20px, 480px);
  }

  .site-header__brand img {
    width: 96px;
  }

  .site-header__toggle {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 15px;
  }

  .site-header__nav {
    left: 10px;
    right: 10px;
    top: calc(var(--header-height) + 8px);
  }

  .hero__stage {
    padding: 34px 0 58px;
  }

  .hero__media {
    min-height: 78vw;
  }

  .hero__lead {
    font-size: 0.84rem;
  }

  .hero__btn,
  .btn,
  .btn--arrow {
    max-width: none;
    font-size: clamp(20px, 6vw, 26px);
  }

  .btn__circle {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
  }

  .section-link-plus {
    font-size: 42px;
  }

  .media-video video,
  .media-card--dark video {
    width: 100%;
  }

  .catalog-hero {
    padding: 48px 0;
  }

  .catalog-stat {
    padding: 18px;
  }

  .course-card h3 {
    font-size: clamp(22px, 7vw, 28px);
  }
}

/* ===== Блог ===== */

.blog-hero {
  padding: clamp(56px, 8vw, 96px) 0 48px;
  background: var(--brand-soft);
}

.blog-hero__lead {
  max-width: 760px;
  margin-bottom: 30px;
  color: #4d5968;
  font-size: 19px;
}

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-filter__btn {
  padding: 10px 22px;
  border: 1px solid rgba(0, 30, 70, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-family: Oswald, Inter, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-filter__btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.blog-filter__btn.is-active {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid rgba(0, 30, 70, 0.1);
  border-radius: 28px;
  box-shadow: 0 1px 0 rgba(0, 30, 70, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card[hidden] {
  display: none;
}

.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 12px 0 rgba(0, 30, 70, 0.1);
}

.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-card__tag {
  color: var(--brand);
  font-family: Oswald, Inter, Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.blog-card__date {
  flex-shrink: 0;
  color: #8a93a0;
  font-size: 14px;
}

.blog-card h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 1.8vw, 27px);
  line-height: 1.15;
}

.blog-card p {
  flex: 1;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.55;
  color: #4d5968;
}

.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-family: Oswald, Inter, Arial, sans-serif;
  font-size: 17px;
}

.blog-card__more svg {
  color: var(--brand);
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-card__more svg {
  transform: translateX(4px);
}

.blog-empty {
  margin: 32px 0 0;
  color: #4d5968;
  font-size: 18px;
}

/* ===== Статья блога ===== */

.article-hero {
  padding: clamp(48px, 7vw, 80px) 0 48px;
  background: var(--brand-soft);
}

.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--brand-dark);
  font-family: Oswald, Inter, Arial, sans-serif;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumb svg {
  color: var(--brand);
}

.article-breadcrumb:hover {
  color: var(--brand);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}

.article-hero h1 {
  max-width: 980px;
}

.article-lead {
  max-width: 820px;
  margin-bottom: 0;
  color: #4d5968;
  font-size: 20px;
}

.article-body {
  padding-top: 40px;
}

.article-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  padding: 34px 0;
}

.article-row + .article-row {
  border-top: 1px solid rgba(0, 30, 70, 0.08);
}

.article-row__content h2 {
  margin-bottom: 16px;
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.12;
}

.article-row__content p {
  font-size: 17px;
  line-height: 1.7;
}

.article-row__content p:last-child {
  margin-bottom: 0;
}

/* Крупный вынос основной мысли справа */
.article-pull {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding: 10px 0 10px 28px;
  border-left: 4px solid var(--brand);
  font-family: Oswald, Inter, Arial, sans-serif;
  font-size: clamp(24px, 2.2vw, 33px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--brand-dark);
}

.article-pull em {
  font-style: normal;
  color: var(--brand);
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  padding: clamp(30px, 4vw, 48px);
  background: var(--brand-dark);
  border-radius: var(--radius);
}

.article-cta h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 34px);
}

.article-cta p {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-pull {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
