/* =========================================
   БАЗОВЫЕ СТИЛИ (Mobile First ~360px)
   ========================================= */
:root {
  --bg-color: #19181c;
  --card-bg: linear-gradient(
    90.49deg,
    rgba(116, 116, 116, 0.04) 0.12%,
    rgba(210, 210, 210, 0.04) 54.76%
  );
  --text-main: #ededed;
  --text-muted: rgba(237, 237, 237, 0.6);
  --red: #c42237;
  --green: #20a174;
  --green-bg: rgba(32, 161, 116, 0.16);
  --font-main: "Blender Pro", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Заголовок */
.path-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.path-header__accent {
  width: 4px;
  height: 50px;
  background: var(--red);
  flex-shrink: 0;
}

.path-header__titles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 36px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
}

.path-arrow {
  width: 32px;
  height: 2px;
  background: var(--text-main);
  position: relative;
  opacity: 0.5;
}
.path-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--text-main);
  border-right: 2px solid var(--text-main);
  transform: rotate(45deg);
}

.path-desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
  text-align: left;
}

/* Сетка карточек */
.path-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Карточка */
.path-card {
  background: var(--card-bg);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.path-card__title-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.path-card__title {
  font-size: 40px;
  font-weight: 250;
  margin: 0;
  text-transform: uppercase;
}

.path-card__date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
}

.icon-cal {
  width: 24px;
  height: 24px;
  opacity: 0.3;
}

.path-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 160px;
  padding: 12px 24px 12px 12px;
  font-size: 18px;
  font-weight: 500;
  width: fit-content;
  max-width: 100%;
  position: relative;
  margin-bottom: 20px;
}

.path-card__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 160px; /* ← как у pill, иначе углы будут квадратными */

  background: linear-gradient(90.49deg, #747474 0.12%, #d2d2d2 54.76%);

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

/* Кнопка аккордеона */
.path-card__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 1px solid var(--red);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}

.path-card__toggle .icon-chevron {
  transition: transform 0.3s ease;
}

.path-card__toggle[aria-expanded="true"] .icon-chevron {
  transform: rotate(180deg);
}

/* Контент */
.path-card__content {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.path-card__content.is-active {
  display: flex;
}

.card-text {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}
.card-text strong {
  font-weight: 700;
}

/* Зеленые блоки */
.card-green-box {
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 12px;
}

.card-green-box__label {
  font-size: 18px;
  margin-bottom: 4px;
}

.card-green-box__tags {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

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

.card-list li {
  font-size: 18px;
  font-weight: 500;
  position: relative;
  padding-left: 16px;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--text-main);
  opacity: 0.32;
  border-radius: 50%;
}

/* Блок специалиста */
.card-specialist {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 20px;
}

.spec-img {
  width: 105px;
  height: 82px;
  border-radius: 8px;
  flex-shrink: 0;
}

.card_specialist_text {
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  line-height: 130%;
  color: #ededed;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.32);
}

/* Футер карточки */
.card-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.card-result {
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: 4px;
  padding: 16px;
}

.card-result__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-result p {
  margin: 0;
  font-size: 18px;
}

.card-outro {
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  line-height: 130%;
  color: #ededed;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.32);
}

.card-green-box__title {
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  line-height: 130%;
  color: #ededed;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.32);
  flex: none;
  order: 0;
  flex-grow: 0;
  margin-bottom: 4px;
}

.card-green-box p {
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 130%;

  color: #ededed;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.32);
}

.card-watermark {
  font-size: 24px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  text-align: center;
  margin: 20px 0;
  user-select: none;
}

/* Цвета заголовков */

.path-card:nth-child(2) .path-card__title {
  color: #fff;
}
.path-card:nth-child(3) .path-card__title {
  color: #fff;
}

/* =========================================
   ПЛАНШЕТЫ И ДЕСКТОП (от 768px)
   ========================================= */
@media (min-width: 768px) {
  .path-header__titles {
    font-size: 42px;
  }

  .path-desc {
    font-size: 22px;
    text-align: left;
  }

  /* Сетка карточек */
  .path-cards {
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
  }

  .path-card {
    flex: 1;
    width: 33.333%;
  }

  /* Прячем кнопку аккордеона */
  .path-card__toggle {
    display: none;
  }

  /* Показываем контент принудительно */
  .path-card__content {
    display: flex !important;
  }

  /* Чуть уменьшаем шрифты внутри карточек на планшетах */
  .card-text,
  .card-list li,
  .card-green-box__label,
  .card-green-box__tags {
    font-size: 16px;
  }
  .path-card__badge {
    font-size: 14px;
  }
  .path-card__title {
    font-size: 32px;
  }
  .path-card__date {
    font-size: 18px;
  }
}

/* =========================================
   ДЕСКТОП (от 1200px)
   ========================================= */
@media (min-width: 1200px) {
  .path-header__titles {
    font-size: 60px;
  }

  .path-arrow {
    width: 48px;
  }

  .path-card {
    padding: 20px;
  }

  .path-card__title {
    font-size: 40px;
  }

  .path-card__date {
    font-size: 22px;
  }

  .path-card__badge {
    font-size: 18px;
  }

  .card-text,
  .card-list li {
    font-size: 22px;
  }

  .card-green-box__label,
  .card-green-box__tags {
    font-size: 22px;
  }

  .card-result__head {
    font-size: 22px;
  }

  .card-result p {
    font-size: 22px;
  }
}

.header_arrow_inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  align-content: stretch;
}
.heading-line {
    width: 5px;
    height: 72px;
    flex-shrink: 0;
    background-image: url("/wp-content/themes/team/assets/images/ozon/header_left.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
} 
.header_arrow {
  background-image: url("/wp-content/themes/team/assets/images/ozon/header_arrow.svg");
  background-repeat: no-repeat;
  width: 48px;
  height: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  align-content: stretch;
  margin-left: 20px;
  margin-right: 20px;
}
.header_center {
  justify-content: center;
}

.header_center .header-text {
  width: auto;
  flex: 0 1 auto;
  text-align: center; /* если текст переносится на 2 строки */
}

.path-desc {
  font-style: normal;
  font-weight: 500;
  font-size: 28px;
  line-height: 100%;
  text-align: left;
  color: #ededed;
}

.path_title {
  font-style: normal;
  font-weight: 400;
  font-size: 36px;
  line-height: 43px;
  color: #ffffff;
  margin-bottom: 18px;
  display: flex;
}
.path_title .path_img {
margin-right: 20px;
}

.path-card {
  box-sizing: border-box;
  position: relative;

  background: linear-gradient(
    90.49deg,
    rgba(116, 116, 116, 0.04) 0.12%,
    rgba(210, 210, 210, 0.04) 54.76%
  );
  backdrop-filter: blur(5.5px);
  -webkit-backdrop-filter: blur(5.5px);
  border-radius: 4px;

  flex: none;
  order: 0;
  flex-grow: 0;
}

/* Градиентная рамка 1px */
.path-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 4px;

  /* Тот же угол, что у фона — 90.49deg.
     Цвета — насыщенные версии rgba(116,116,116) и rgba(210,210,210) */
  background: linear-gradient(90.49deg, #747474 0.12%, #d2d2d2 54.76%);

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

.path-section {
  margin-top: 160px;
  margin-bottom: 160px;
}

@media (max-width: 992px) {
  /* Базовое: flex, перенос разрешён */
  .header_arrow_inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* ← разрешаем перенос */
    justify-content: center;
    align-items: center;
    gap: 8px 0; /* вертикальный отступ между строками */
    white-space: normal; /* текст может переноситься */
  }

  /* Текстовые узлы не рвём внутри слова */
  .header_arrow_inner {
    word-break: keep-all; /* не рвать слова */
    overflow-wrap: normal;
  }

  /* Стрелка: не сжимается, не переносится сама по себе */
  .header_arrow {
    flex-shrink: 0;
    width: 48px;
    height: 10px;
    margin-left: 20px;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header_center .header-text {
    width: auto;
    flex: 0 1 auto;
    text-align: left;
  }
  .header_arrow_inner {
    word-break: unset;
    overflow-wrap: normal;
  }
  p.path-desc {
    font-style: normal;
    font-weight: 400;
    font-size: 22px;
    line-height: 130%;
    color: #ededed;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
  }
}

.card-text-two {
  font-style: normal;
  font-weight: 700;
  font-size: 22px;
  line-height: 130%;
  color: #ededed;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.32);
}

.card_text_list li {
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 130%;
  color: #ededed;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.32);
}

ul.card_text_list {
  list-style-type: none;
}

/* =========================================
   НОВЫЙ БЛОК: РЯД С PATH-CARDS И КАРТОЧКАМИ УРОВНЕЙ
   ========================================= */

/* Общий контейнер для выравнивания в ряд */
.path-row {
  display: flex;
  gap: 20px; /* Отступ между path-cards и level-cards */
  align-items: stretch; /* Растягиваем по высоте */
  width: 100%;
  margin-bottom: 40px; /* Отступ снизу, если нужно */
}

/* Переопределяем .path-cards для работы внутри ряда */
.path-row .path-cards {
  flex: 2; /* Занимает 2/3 ширины (настройте под свой макет) */
  flex-direction: row; /* Принудительно в ряд на десктопе */
  gap: 20px;
}

/* Контейнер для новых карточек */
.level-cards {
  display: flex;
  flex-direction: кщц;
  gap: 20px;
  justify-content: space-between;
  margin-top: 32px;
}

/* Сама карточка уровня */
.level-card {
  background-color: #2b2b36; /* Цвет из вашего макета */
  color: #e0e0e0;
  padding: 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1; /* Растягивается на равную высоту */
  min-height: 120px; /* Минимальная высота */
}

/* Тег (База, Практика) */
.level-tag {
  border: 1px solid #555560;
  padding: 6px 10px;
  font-size: 14px;
  color: #ccc;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
}

/* Текст внутри карточки */
.level-text {
  font-style: normal;
  font-weight: 250;
  font-size: 32px;
  line-height: 48px;
  text-transform: uppercase;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Адаптивность: на планшетах и мобильных ставим друг под другом */
@media (max-width: 992px) {
  .path-row {
    flex-direction: column;
  }

  .path-row .path-cards {
    flex-direction: column;
  }

  .level-cards {
    flex-direction: row; /* На мобилке карточки уровней можно поставить в ряд */
    flex-wrap: wrap;
  }

  .level-card {
    flex: 1 1 100%; /* Или 1 1 calc(50% - 10px) для двух в ряд */
    min-height: auto;
  }
}

.level-card {
  box-sizing: border-box;
  position: relative; /* нужно для градиентной рамки */

  /* Auto layout */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  gap: 8px;

  /* Размеры из Figma */
  width: 33.33%;
  height: 177px;

  /* Фон (градиент из макета) */
  background: linear-gradient(
    90.49deg,
    rgba(116, 116, 116, 0.04) 0.12%,
    rgba(210, 210, 210, 0.04) 54.76%
  );
  backdrop-filter: blur(5.5px);
  -webkit-backdrop-filter: blur(5.5px);
  border-radius: 4px;

  /* Inside auto layout */
  flex: none;
  order: 0;
  flex-grow: 0;
}

/* Градиентная рамка 1px */
.level-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 4px;

  /* Тот же угол, что и у фона */
  background: linear-gradient(90.49deg, #747474 0.12%, #d2d2d2 54.76%);

  /* Маска для рамки */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

/* Тег (База / Практика / Эксперт) */
.level-card__tag {
  border: 1px solid rgba(210, 210, 210, 0.4);
  padding: 6px 10px;
  font-size: 14px;
  color: #ededed;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  flex: none;
}

/* Основной текст */
.level-card__text {
  font-family:
    "Blender Pro",
    system-ui,
    -apple-system,
    sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ededed;
  margin: 0;
  flex: none;
}

/* Блок "Следующая ступень" */
.next-step-block {
  /* Размеры и отступы */
  box-sizing: border-box;
  padding: 24px 32px; /* Подберите под ваш макет */
  border-radius: 4px;
  width: 103%;

  /* Фон и рамка (используем цвета из ваших переменных) */
  background-color: rgba(32, 161, 116, 0.16); /* --green-bg */
  border: 1px solid #20a174; /* --green */

  font-style: normal;
  font-weight: 900;
  font-size: 45px;
  line-height: 67px;
  text-align: center;
  text-transform: uppercase;
  text-transform: uppercase; /* Все заглавные, как на макете */
  color: #2ece8e; /* Яркий зеленый цвет текста */
  text-align: center;
  margin-top: 56px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .next-step-block {
    padding: 16px 20px;
    font-size: 18px;
  }

  .level-cards {
    display: none;
  }

  .next-step-block {
    display: none;
  }
}

header.section-heading {
    position: relative;
}
.header_center {
    justify-content: center;
}
.section-heading {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.header_center h1.heading-text.heading-xl.hero-title {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    align-content: stretch;
}

@media (max-width: 992px) {
.kt-btn__center {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #c42237;
    border-radius: 4px 0 0 4px;
    font-weight: 700;
    font-size: 10px;
    line-height: 19px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}
}

@media (max-width: 992px) {
    .header_center .header-text {
        width: auto;
        flex: 0 1 auto;
        text-align: left;
    }
}

.header_center .header-text {
    width: auto;
    flex: 0 1 auto;
    text-align: center;
}
@media (max-width: 992px) {
    .header_arrow_inner {
        word-break: unset;
        overflow-wrap: normal;
    }
}
@media (max-width: 992px) {
    .header_arrow_inner {
        word-break: keep-all;
        overflow-wrap: normal;
    }
}
@media (max-width: 992px) {
    .header_arrow_inner {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px 0;
        white-space: normal;
    }
    .header_center h1.heading-text.heading-xl.hero-title {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-content: stretch;
}
.heading-xl.hero-title {
    font-size: 29px;
    line-height: 45px;
    font-weight: 250;
    text-transform: uppercase;
}
}