/* =========================================================
   Direction page — выбор направления обучения
   ========================================================= */

.direction-page {
  min-height: 100vh;
  overflow-x: hidden;
  color: #202020;
  background: #f5f8ff;
}

.direction-page *,
.direction-page *::before,
.direction-page *::after {
  box-sizing: border-box;
}

.direction-page a {
  color: inherit;
  text-decoration: none;
}

.direction-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero */

.direction-hero {
  position: relative;
  min-height: 100vh;
  padding: 26px 0 46px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 216, 117, 0.28), transparent 20%),
    radial-gradient(circle at 92% 16%, rgba(122, 147, 255, 0.22), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 143, 80, 0.10), transparent 30%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3ff 46%, #ffffff 100%);
}

.direction-hero::before,
.direction-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.direction-hero::before {
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(49, 56, 73, 0.10) 0 1px, transparent 2px);
  background-size: 130px 130px, 190px 190px;
  background-position: 20px 40px, 70px 90px;
  opacity: 0.65;
}

.direction-hero::after {
  width: 1180px;
  height: 340px;
  left: 50%;
  top: 82px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-left-color: rgba(255, 255, 255, 0.22);
  border-bottom-color: rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-7deg);
  opacity: 0.8;
}

.direction-hero__container {
  position: relative;
  z-index: 2;
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.direction-hero__head {
  margin: 0 auto 24px;
  text-align: center;
}

.direction-hero__title {
  margin: 0;
  color: #252b39;
  font-family: Syncopate, RobotoMono, sans-serif;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(49, 56, 73, 0.12);
}

.direction-hero__subtitle {
  max-width: 660px;
  margin: 16px auto 0;
  color: rgba(49, 56, 73, 0.74);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600 !important;
}

.direction-hero__decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.direction-hero__decor--ufo {
  left: clamp(18px, 7vw, 92px);
  top: 90px;
  width: 74px;
  height: 46px;
  border-radius: 50%;
  transform: rotate(-12deg);
  background:
    radial-gradient(circle at 50% 24%, #5fd4ff 0 9px, transparent 10px),
    radial-gradient(circle at 32% 56%, #d37518 0 5px, transparent 6px),
    radial-gradient(circle at 66% 56%, #6d72ff 0 5px, transparent 6px),
    linear-gradient(135deg, #713ee8 0%, #ff6e62 52%, #2bc7ff 100%);
  filter: drop-shadow(0 10px 18px rgba(49, 56, 73, 0.16));
}

.direction-hero__decor--ufo::after {
  content: "";
  position: absolute;
  left: -28px;
  right: -28px;
  bottom: 8px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(7px);
}

.direction-hero__decor--orbit {
  left: -80px;
  top: 130px;
  width: 420px;
  height: 120px;
  border-top: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  transform: rotate(-25deg);
  opacity: 0.85;
}

/* Cards grid */

.direction-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.direction-card {
  position: relative;
  min-height: 610px;
  border-radius: 30px;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0);
  box-shadow:
    0 24px 60px rgba(49, 56, 73, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    filter 0.32s ease;
}

.direction-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 32px 80px rgba(49, 56, 73, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.direction-card::before,
.direction-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.direction-card::before {
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.direction-card::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), transparent 22%),
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.20), transparent 28%);
  opacity: 0.8;
}

.direction-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.direction-card__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
}

.direction-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direction-card__content {
  position: relative;
  z-index: 3;
  min-height: 610px;
  padding: 32px 34px 28px;
  display: flex;
  flex-direction: column;
}

.direction-card__top {
  text-align: center;
}

.direction-card__title {
  margin: 0;
  font-size: clamp(27px, 2.15vw, 36px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.direction-card__subtitle {
  margin: 9px auto 0;
  max-width: 330px;
  font-size: 15px;
  line-height: 1.42;
  font-weight: 300;
}

/* Kids card */

.direction-card--kids {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.50), transparent 28%),
    linear-gradient(180deg, #fff4df 0%, #ffe4d5 52%, #f7d7e8 100%);
}

.direction-card--kids .direction-card__title {
  color: #eb6909;
}

.direction-card--kids .direction-card__subtitle {
  color: #313849;
}

.direction-card--kids .direction-card__bg img {
  object-position: center bottom;
}

.direction-card--kids .direction-card__bg::after {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 230, 216, 0.82) 58%, rgba(255, 240, 244, 0.96) 100%);
}

/* Adults card */

.direction-card--adults {
  background:
    radial-gradient(circle at 50% 36%, rgba(92, 119, 255, 0.32), transparent 28%),
    linear-gradient(180deg, #1d2944 0%, #111a30 100%);
  box-shadow:
    0 24px 60px rgba(49, 56, 73, 0.18),
    0 0 0 1px rgba(91, 119, 255, 0.20);
}

.direction-card--adults .direction-card__title {
  color: #6d93ff;
}

.direction-card--adults .direction-card__subtitle {
  color: rgba(255, 255, 255, 0.88);
}

.direction-card--adults .direction-card__bg img {
  object-position: center bottom;
}

.direction-card--adults .direction-card__bg::after {
  background: linear-gradient(180deg, transparent 0%, rgba(17, 26, 48, 0.74) 48%, rgba(17, 26, 48, 0.96) 100%);
}

/* Company card */

.direction-card--company {
  background:
    radial-gradient(circle at 50% 36%, rgba(25, 209, 196, 0.26), transparent 30%),
    linear-gradient(180deg, #0a3149 0%, #061728 100%);
  box-shadow:
    0 24px 60px rgba(49, 56, 73, 0.18),
    0 0 0 1px rgba(25, 209, 196, 0.18);
}

.direction-card--company .direction-card__title {
  color: #20d1c4;
}

.direction-card--company .direction-card__subtitle {
  color: rgba(255, 255, 255, 0.88);
}

.direction-card--company .direction-card__bg img {
  object-position: center bottom;
}

.direction-card--company .direction-card__bg::after {
  background: linear-gradient(180deg, transparent 0%, rgba(6, 23, 40, 0.70) 46%, rgba(6, 23, 40, 0.96) 100%);
}

/* Webinars card */

.direction-card--webinars {
  background:
    radial-gradient(circle at 48% 32%, rgba(107, 150, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.72), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #eaf2ff 58%, #f8fbff 100%);
  box-shadow:
    0 24px 60px rgba(49, 56, 73, 0.13),
    0 0 0 1px rgba(74, 124, 255, 0.12);
}

.direction-card--webinars .direction-card__title {
  color: #2f69ff;
}

.direction-card--webinars .direction-card__subtitle {
  color: rgba(49, 56, 73, 0.78);
}

.direction-card--webinars .direction-card__bg img {
  object-position: center bottom;
}

.direction-card--webinars .direction-card__bg::after {
  height: 44%;
  background: linear-gradient(180deg, transparent 0%, rgba(232, 242, 255, 0.58) 46%, rgba(248, 251, 255, 0.96) 100%);
}

/* Feature list */

.direction-card__features {
  width: 100%;
  margin: auto 0 22px;
  padding: 17px 19px;
  display: grid;
  gap: 12px;
  list-style: none;
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.direction-card__features li {
  position: relative;
  min-height: 24px;
  padding-left: 34px;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 300;
}

.direction-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.direction-card--kids .direction-card__features {
  color: #313849;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 36px rgba(211, 117, 24, 0.10);
}

.direction-card--kids .direction-card__features li::before {
  border: 1px solid rgba(235, 105, 9, 0.24);
  background-color: rgba(255, 255, 255, 0.78);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 2.2l1.55 3.15 3.48.5-2.52 2.46.6 3.46L9 10.14 5.89 11.77l.6-3.46-2.52-2.46 3.48-.5L9 2.2z' fill='none' stroke='%23eb6909' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.direction-card--adults .direction-card__features {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.direction-card--adults .direction-card__features li::before {
  border: 1px solid rgba(109, 147, 255, 0.42);
  background-color: rgba(109, 147, 255, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 2.3a4.9 4.9 0 00-4.9 4.9c0 1.92 1.1 3.58 2.7 4.38v1.02h4.4v-1.02a4.89 4.89 0 002.7-4.38A4.9 4.9 0 009 2.3z' fill='none' stroke='%236d93ff' stroke-width='1.5'/%3E%3Cpath d='M7 15h4' stroke='%236d93ff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.direction-card--company .direction-card__features {
  color: rgba(255, 255, 255, 0.90);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(32, 209, 196, 0.20);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.direction-card--company .direction-card__features li::before {
  border: 1px solid rgba(32, 209, 196, 0.42);
  background-color: rgba(32, 209, 196, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 9.2l3.1 3.1L14.2 5' fill='none' stroke='%2320d1c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.direction-card--webinars .direction-card__features {
  color: rgba(49, 56, 73, 0.86);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 36px rgba(74, 124, 255, 0.12);
}

.direction-card--webinars .direction-card__features li::before {
  border: 1px solid rgba(47, 105, 255, 0.20);
  background-color: rgba(255, 255, 255, 0.86);
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4.2h8a1.5 1.5 0 011.5 1.5v6.6a1.5 1.5 0 01-1.5 1.5H5A1.5 1.5 0 013.5 12.3V5.7A1.5 1.5 0 015 4.2z' fill='none' stroke='%232f69ff' stroke-width='1.45'/%3E%3Cpath d='M7.4 7l3.5 2-3.5 2V7z' fill='%232f69ff'/%3E%3C/svg%3E");
}

/* Buttons */

.direction-card__button {
  width: min(280px, 100%);
  min-height: 56px;
  margin: 0 auto;
  padding: 10px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.75px;
  text-align: center;
  transition:
    border-radius 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.direction-card:hover .direction-card__button {
  border-radius: 50px;
  transform: translateY(-2px);
}

.direction-card__button span {
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.direction-card--kids .direction-card__button {
  color: #ffffff;
  background: linear-gradient(180deg, #f18717 0%, #ef6900 100%);
  box-shadow: 0 16px 30px rgba(239, 105, 0, 0.24);
}

.direction-card--kids:hover .direction-card__button {
  background: linear-gradient(180deg, #f5a255 0%, #e7760d 100%);
}

.direction-card--adults .direction-card__button {
  color: #ffffff;
  background: linear-gradient(135deg, #4b96ff 0%, #7558f1 100%);
  box-shadow: 0 16px 30px rgba(91, 119, 255, 0.28);
}

.direction-card--adults:hover .direction-card__button {
  background: linear-gradient(135deg, #6aa8ff 0%, #8468ff 100%);
}

.direction-card--company .direction-card__button {
  color: #ffffff;
  background: linear-gradient(135deg, #18c7c0 0%, #19d1b2 100%);
  box-shadow: 0 16px 30px rgba(25, 209, 196, 0.24);
}

.direction-card--company:hover .direction-card__button {
  background: linear-gradient(135deg, #20ddd4 0%, #24dfc0 100%);
}

.direction-card--webinars .direction-card__button {
  color: #ffffff;
  background: linear-gradient(135deg, #4398ff 0%, #2f69ff 100%);
  box-shadow: 0 16px 30px rgba(47, 105, 255, 0.24);
}

.direction-card--webinars:hover .direction-card__button {
  background: linear-gradient(135deg, #69adff 0%, #3d76ff 100%);
}

/* Bottom */

.direction-hero__bottom {
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #313849;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
}

.direction-hero__bottom i {
  width: 14px;
  height: 14px;
  display: inline-block;
  position: relative;
  flex: 0 0 14px;
}

.direction-hero__bottom i::before,
.direction-hero__bottom i::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #d37518;
  transform: translate(-50%, -50%);
}

.direction-hero__bottom i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.direction-hero__note {
  margin: 12px 0 0;
  color: rgba(49, 56, 73, 0.58);
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

/* Responsive */

@media (max-width: 1180px) {
  .direction-hero {
    padding-top: 44px;
  }

  .direction-cards {
    grid-template-columns: 1fr;
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .direction-card,
  .direction-card__content {
    min-height: 630px;
  }
}

@media (max-width: 760px) {
  .direction-hero {
    padding: 34px 0 44px;
  }

  .direction-hero__container {
    width: min(100% - 24px, 1360px);
  }

  .direction-hero__head {
    margin-bottom: 22px;
  }

  .direction-hero__title {
    font-size: 28px;
    line-height: 1.22;
  }

  .direction-hero__subtitle {
    margin-top: 14px;
    font-size: 15px;
  }

  .direction-card {
    min-height: 590px;
    border-radius: 24px;
  }

  .direction-card__content {
    min-height: 590px;
    padding: 26px 22px 24px;
  }

  .direction-card__title {
    font-size: 28px;
  }

  .direction-card__subtitle {
    font-size: 14px;
  }

  .direction-card__features {
    padding: 16px;
    border-radius: 18px;
  }

  .direction-card__features li {
    font-size: 14px;
  }

  .direction-card__button {
    width: 100%;
    min-height: 54px;
  }

  .direction-hero__bottom {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .direction-hero__decor--ufo,
  .direction-hero__decor--orbit {
    display: none;
  }
}

@media (max-width: 420px) {
  .direction-card {
    min-height: 560px;
  }

  .direction-card__content {
    min-height: 560px;
  }

  .direction-card__title {
    font-size: 26px;
  }

  .direction-card__subtitle {
    max-width: 270px;
  }

  .direction-card__features {
    gap: 10px;
    margin-bottom: 18px;
  }

  .direction-card__features li {
    padding-left: 32px;
    font-size: 13px;
  }
}