/* ==========================================================================
   Школа Благовестия ОЦХВЕ России — 2026
   Дизайн-система: тёмная тема, Unbounded + Onest, синий акцент
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  --bg: #08080c;
  --bg-soft: #0a0a10;
  --surface: #0f0f16;
  --surface-2: #13131b;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f5f9;
  --text-2: #b4b5c2;
  --text-3: #858693;
  --blue: #4c8dff;
  --blue-2: #2f6bf6;
  --blue-soft: #9cc2ff;
  --amber: #ffb45e;
  --coral: #ff9d7a;
  --green: #5ee08a;
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 28px;
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.022;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
}

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  color: #08080c;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Типографика ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.section {
  position: relative;
  padding: clamp(76px, 9vw, 128px) 0;
}

.section--soft {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(76, 141, 255, 0.045), transparent 70%),
    #0a0a10;
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--blue);
}

.section-label span {
  color: var(--blue-soft);
}

.section-head h2,
.faq__intro h2 {
  max-width: 22ch;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.06;
}

.section-head__lead {
  max-width: 48ch;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #5b9bff, #2f6bf6);
  box-shadow: 0 10px 30px -12px rgba(61, 139, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(61, 139, 255, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.06);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn--lg {
  padding: 17px 28px;
  font-size: 15px;
}

.btn--sm {
  padding: 11px 18px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.btn:active {
  transform: translateY(0);
}

.link-btn {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue-soft);
  font-family: var(--font-body);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}

.link-btn:hover {
  color: #fff;
}

.link-btn span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.link-btn:hover span {
  transform: translateX(3px);
}

/* ---------- Хедер ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.header.is-scrolled {
  background: rgba(8, 8, 12, 0.74);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(145deg, #5b9bff, #2f6bf6);
  box-shadow: 0 10px 26px -10px rgba(61, 139, 255, 0.75);
}

.logo__mark::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 50%;
  border-radius: 12px 12px 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.logo__sub {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.2;
}

.nav {
  display: flex;
  justify-self: center;
  gap: 26px;
}

.nav a {
  position: relative;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateX(-50%) scale(0);
  transition: transform 0.25s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
}

.nav a.is-active::after {
  transform: translateX(-50%) scale(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header__phone .icon {
  width: 16px;
  height: 16px;
  color: var(--blue-soft);
}

.header__phone:hover {
  color: #fff;
}

.header__phone-mobile {
  display: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-2);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-2);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.header__phone-mobile {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #b7d2ff);
}

/* ---------- Мобильное меню ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) 24px 32px;
  background: rgba(8, 8, 12, 0.97);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  overflow-y: auto;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 500;
  color: var(--text);
}

.mobile-menu__nav a span {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.mobile-menu__phone {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(116px, 14vh, 164px);
  overflow: hidden;
}

.hero__lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px
  );
  background-size: 112px 100%;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 70% at 50% 42%,
    #000 10%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 70% 70% at 50% 42%,
    #000 10%,
    transparent 75%
  );
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -240px;
  right: -280px;
  width: 880px;
  height: 880px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(61, 139, 255, 0.24),
    transparent 62%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -260px;
  bottom: -300px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 157, 122, 0.08),
    transparent 65%
  );
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  min-height: clamp(600px, calc(100svh - 76px), 820px);
  padding-bottom: 48px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(76, 141, 255, 0.22);
  border-radius: 999px;
  background: rgba(76, 141, 255, 0.07);
  color: #c3d7ff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(76, 141, 255, 0.15);
  animation: pulse 2.6s ease-in-out infinite;
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(42px, 5.7vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__title-accent {
  background: linear-gradient(180deg, #ffffff 8%, #9fc0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__org {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero__org span {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.hero__lead {
  max-width: 52ch;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  list-style: none;
  font-size: 13px;
  color: var(--text-3);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__meta .icon {
  width: 17px;
  height: 17px;
  color: var(--blue-soft);
}

.hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}

.hero__visual::before {
  content: "";
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(61, 139, 255, 0.22),
    transparent 65%
  );
  filter: blur(30px);
  pointer-events: none;
}

.hero__image {
  position: relative;
  z-index: 1;
  width: 106%;
  max-width: 660px;
  height: auto;
  -webkit-mask-image: radial-gradient(
    ellipse 74% 74% at 52% 46%,
    #000 54%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 74% 74% at 52% 46%,
    #000 54%,
    transparent 100%
  );
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.55));
}

.seats-chip {
  position: absolute;
  left: -6px;
  bottom: 4px;
  z-index: 3;
  width: 224px;
  padding: 14px 16px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(14, 14, 21, 0.74);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.seats-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 141, 255, 0.42);
}

.seats-chip__top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}

.seats-chip__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 180, 94, 0.14);
  animation: pulse 2.2s ease-in-out infinite;
}

.seats-chip__value {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}

.seats-chip__value b {
  margin-right: 3px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
}

.seats-chip__bar {
  display: block;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.seats-chip__bar span {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), #9fc4ff);
  transition: width 0.9s var(--ease);
}

/* ---------- Цифры ---------- */
.stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.stats__item:first-child {
  padding-left: 0;
}

.stats__item:last-child {
  border-right: 0;
}

.stats__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}

.stats__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- О школе ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
}

.letter {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    160deg,
    rgba(76, 141, 255, 0.09),
    rgba(255, 255, 255, 0.02) 45%,
    rgba(255, 255, 255, 0.008)
  );
  overflow: hidden;
}

.letter::after {
  content: "";
  position: absolute;
  right: -22%;
  bottom: -55%;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 141, 255, 0.17), transparent 65%);
  pointer-events: none;
}

.letter__quote {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.07);
}

.letter__quote .icon {
  width: 100%;
  height: 100%;
}

.letter__title {
  position: relative;
  margin-bottom: 18px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
}

.letter p {
  position: relative;
  max-width: 50ch;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

.letter__sign {
  margin-top: 26px !important;
  margin-bottom: 0 !important;
  font-size: 14px !important;
  font-weight: 500;
  color: var(--blue-soft) !important;
}

.pillars {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pillar {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.pillar:first-child {
  border-top: 1px solid var(--line);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--blue-soft);
}

.pillar__icon .icon {
  width: 20px;
  height: 20px;
}

.pillar h3 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.3;
}

.pillar p {
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-3);
}

/* ---------- Кому подойдёт ---------- */
.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.audience-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #101017, #0b0b11);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.audience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 90% at 90% 0%,
    rgba(76, 141, 255, 0.14),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.audience-card:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 141, 255, 0.28);
  box-shadow: 0 30px 60px -40px rgba(61, 139, 255, 0.6);
}

.audience-card:hover::before {
  opacity: 1;
}

.audience-card__num {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.audience-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 46px;
  border: 1px solid rgba(76, 141, 255, 0.2);
  border-radius: 14px;
  background: rgba(76, 141, 255, 0.1);
  color: var(--blue-soft);
}

.audience-card__icon .icon {
  width: 21px;
  height: 21px;
}

.audience-card h3 {
  position: relative;
  margin-bottom: 14px;
  font-size: 21px;
  line-height: 1.25;
}

.audience-card p {
  position: relative;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.welcome-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-2);
}

.welcome-note span {
  color: var(--blue);
}

/* ---------- Формат ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, #0f0f16, #0b0b11);
  overflow: hidden;
}

.fact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.fact:hover {
  background: rgba(255, 255, 255, 0.02);
}

.fact:nth-child(3n) {
  border-right: 0;
}

.fact:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.fact__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--blue-soft);
}

.fact__icon .icon {
  width: 19px;
  height: 19px;
}

.fact__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}

.fact__value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.fact__note {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
}

.cost {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.cost-card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.cost-card--price {
  background: linear-gradient(
    160deg,
    rgba(76, 141, 255, 0.13),
    rgba(255, 255, 255, 0.02) 55%,
    #0d0d13
  );
}

.cost-card--free {
  background: linear-gradient(
    160deg,
    rgba(255, 180, 94, 0.09),
    rgba(255, 255, 255, 0.02) 55%,
    #0d0d13
  );
}

.cost-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cost-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}

.cost-card__badge {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
}

.cost-card__price {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.cost-card__price span {
  font-family: var(--font-body);
  font-size: 0.55em;
  color: var(--text-2);
}

.cost-card__price--text {
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--amber);
}

.cost-card__text {
  max-width: 44ch;
  margin-bottom: 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.cost-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.cost-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  color: var(--text-2);
}

.cost-list .icon {
  width: 13px;
  height: 13px;
  color: var(--blue-soft);
}

/* ---------- Программа ---------- */
.program__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}

.program__meta div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.program__meta div:last-child {
  border-right: 0;
}

.program__meta b {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}

.program__meta span {
  font-size: 12px;
  color: var(--text-3);
}

.syllabus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.syllabus__col {
  display: grid;
  gap: 20px;
}

.syllabus-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, #0f0f16, #0b0b11);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.syllabus-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: #101018;
}

.syllabus-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.syllabus-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid rgba(76, 141, 255, 0.18);
  border-radius: 12px;
  background: rgba(76, 141, 255, 0.09);
  color: var(--blue-soft);
}

.syllabus-card__icon .icon {
  width: 18px;
  height: 18px;
}

.syllabus-card h3 {
  margin-bottom: 3px;
  font-size: 15.5px;
  line-height: 1.25;
}

.syllabus-card__head p {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.syllabus-list {
  list-style: none;
}

.syllabus-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-2);
}

.syllabus-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.syllabus-list b {
  padding-top: 2px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-3);
  white-space: nowrap;
}

.program__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-3);
}

.program__note .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--blue-soft);
}

/* ---------- Практика ---------- */
.practice__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.practice-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.practice-item:first-child {
  border-top: 1px solid var(--line);
}

.practice-item__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--blue-soft);
}

.practice-item__icon .icon {
  width: 20px;
  height: 20px;
}

.practice-item h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.practice-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-3);
}

.year {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0f0f16, #0a0a10);
  overflow: hidden;
}

.year::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 141, 255, 0.13), transparent 65%);
  pointer-events: none;
}

.year__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}

.year__title {
  margin: 6px 0 30px;
  font-size: 34px;
  line-height: 1;
}

.year__phase {
  position: relative;
  margin-bottom: 22px;
}

.year__phase-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}

.year__phase-head span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.year__phase-head span:last-child {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: right;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot--blue {
  background: var(--blue);
}

.dot--amber {
  background: var(--amber);
}

.year__bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.year__bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2f6bf6, #7fb0ff);
}

.year__bar--amber span {
  background: linear-gradient(90deg, #e08a2e, #ffc47a);
}

.year__fill--33 {
  width: 33.333%;
}

.year__fill--66 {
  width: 66.666%;
}

.year__note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
}

/* ---------- Поступление ---------- */
.admission__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.timeline {
  list-style: none;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding-bottom: 32px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 54px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--line-2), var(--line));
}

.timeline__item:last-child::before {
  display: none;
}

.timeline__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(76, 141, 255, 0.28);
  border-radius: 50%;
  background: rgba(76, 141, 255, 0.08);
  color: var(--blue-soft);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
}

.timeline__body {
  padding-top: 4px;
}

.timeline__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline__head h3 {
  font-size: 19px;
  line-height: 1.3;
}

.timeline__body p {
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.tag {
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(255, 180, 94, 0.3);
  background: rgba(255, 180, 94, 0.08);
}

.tag--blue {
  color: var(--blue-soft);
  border-color: rgba(76, 141, 255, 0.3);
  background: rgba(76, 141, 255, 0.08);
}

.admission__aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 20px;
}

.seats-card {
  padding: 28px;
  border: 1px solid rgba(255, 180, 94, 0.18);
  border-radius: var(--radius);
  background: radial-gradient(
      120% 100% at 100% 0%,
      rgba(255, 180, 94, 0.12),
      transparent 55%
    ),
    #0e0e14;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.seats-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 180, 94, 0.12);
  animation: pulse 2.2s ease-in-out infinite;
}

.seats-card__updated {
  font-size: 10px;
  color: var(--text-3);
}

.seats-card__main {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 16px 0 18px;
}

.seats-card__value {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff, #ffcf9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.seats-card__caption {
  padding-bottom: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-2);
}

.seats-card__bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.seats-card__bar span {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff8a4c, #ffc47a);
  transition: width 0.9s var(--ease);
}

.seats-card__legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
}

.seats-card__legend b {
  font-weight: 600;
  color: var(--text-2);
}

.seats-card__status {
  margin: 16px 0 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
}

.docs-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0f0f16;
}

.docs-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.docs-card > p {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-3);
}

.docs-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.docs-list li {
  display: flex;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}

.docs-list .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--blue-soft);
}

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: 110px;
}

.faq__intro h2 {
  margin-bottom: 20px;
}

.faq__intro .section-head__lead {
  margin-bottom: 28px;
}

.faq__help {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq__help:hover {
  border-color: rgba(76, 141, 255, 0.3);
  background: rgba(76, 141, 255, 0.06);
}

.faq__help-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: rgba(76, 141, 255, 0.1);
  color: var(--blue-soft);
}

.faq__help-icon .icon {
  width: 18px;
  height: 18px;
}

.faq__help b {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.faq__help span:last-child {
  font-size: 12.5px;
  color: var(--text-3);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  font-family: var(--font-body);
  font-weight: 500;
}

.faq-item__btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 23px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-item__btn .icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-3);
  transition: transform 0.35s var(--ease), color 0.2s ease;
}

.faq-item__btn:hover,
.faq-item__btn[aria-expanded="true"] {
  color: var(--blue-soft);
}

.faq-item__btn[aria-expanded="true"] .icon {
  transform: rotate(180deg);
  color: var(--blue-soft);
}

.faq-item__panel {
  height: auto;
  overflow: hidden;
  transition: height 0.35s var(--ease);
}

.faq-item__inner {
  max-width: 66ch;
  padding: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

.faq-item__inner p + p {
  margin-top: 12px;
}

.faq-item__inner strong {
  color: #fff;
  font-weight: 600;
}

.faq-item__inner ul {
  margin-top: 12px;
  padding-left: 18px;
}

.faq-item__inner li {
  margin-bottom: 6px;
}

/* ---------- Медиа ---------- */
.media__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.media-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0f0f16, #0b0b11);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.media-card--yt::before {
  background: radial-gradient(100% 90% at 100% 0%, rgba(255, 77, 77, 0.16), transparent 60%);
}

.media-card--tg::before {
  background: radial-gradient(100% 90% at 100% 0%, rgba(69, 176, 255, 0.16), transparent 60%);
}

.media-card--vk::before {
  background: radial-gradient(100% 90% at 100% 0%, rgba(111, 155, 255, 0.16), transparent 60%);
}

.media-card:hover {
  transform: translateY(-4px);
}

.media-card--yt:hover {
  border-color: rgba(255, 77, 77, 0.4);
  box-shadow: 0 30px 60px -40px rgba(255, 77, 77, 0.7);
}

.media-card--tg:hover {
  border-color: rgba(69, 176, 255, 0.4);
  box-shadow: 0 30px 60px -40px rgba(69, 176, 255, 0.7);
}

.media-card--vk:hover {
  border-color: rgba(111, 155, 255, 0.4);
  box-shadow: 0 30px 60px -40px rgba(111, 155, 255, 0.7);
}

.media-card:hover::before {
  opacity: 1;
}

.media-card__top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.media-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.media-card__icon .icon {
  width: 23px;
  height: 23px;
}

.media-card--yt .media-card__icon {
  color: #ff5757;
}

.media-card--tg .media-card__icon {
  color: #45b0ff;
}

.media-card--vk .media-card__icon {
  color: #7ba6ff;
}

.media-card__arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-3);
  transition: color 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, transform 0.25s ease;
}

.media-card__arrow .icon {
  width: 15px;
  height: 15px;
}

.media-card:hover .media-card__arrow {
  color: var(--bg);
  background: #fff;
  border-color: #fff;
  transform: rotate(45deg);
}

.media-card__body {
  position: relative;
  margin-top: 36px;
}

.media-card__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.media-card h3 {
  margin: 8px 0;
  font-size: 21px;
  line-height: 1.25;
}

.media-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-3);
}

/* ---------- Контакты ---------- */
.contacts__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

.person {
  position: relative;
  display: flex;
  flex: 0 1 calc((100% - 40px) / 3);
  flex-direction: column;
  align-items: center;
  max-width: calc((100% - 40px) / 3);
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0f0f16, #0b0b11);
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.person:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
}

.person--primary {
  border-color: rgba(76, 141, 255, 0.3);
  background: radial-gradient(
      120% 90% at 50% 0%,
      rgba(76, 141, 255, 0.12),
      transparent 60%
    ),
    #0f0f16;
}

.person__tag {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border: 1px solid rgba(76, 141, 255, 0.25);
  border-radius: 999px;
  background: rgba(76, 141, 255, 0.08);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-soft);
  white-space: nowrap;
}

.person__photo {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 8px 0 18px;
}

.person__photo::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.person--primary .person__photo::after {
  border-color: rgba(76, 141, 255, 0.35);
}

.person__photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.person h3 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.3;
}

.person__role {
  max-width: 26ch;
  min-height: 36px;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}

.person__links {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-top: auto;
}

.person__links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s ease, background 0.2s ease;
}

.person__links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.person__links .icon {
  width: 14px;
  height: 14px;
  color: var(--blue-soft);
}

.person__links a[href^="mailto"] {
  color: var(--coral);
}

.person__links a[href^="mailto"] .icon {
  color: var(--coral);
}

/* ---------- CTA ---------- */
.cta {
  padding-bottom: clamp(80px, 9vw, 120px);
}

.cta__card {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid rgba(76, 141, 255, 0.2);
  border-radius: 40px;
  background: radial-gradient(
      90% 120% at 85% 10%,
      rgba(76, 141, 255, 0.22),
      transparent 55%
    ),
    linear-gradient(180deg, #101018, #0a0a10);
  overflow: hidden;
}

.cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 90px 100%;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 80% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 90% at 80% 50%, #000, transparent 75%);
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  margin: 18px 0 16px;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
}

.cta__lead {
  max-width: 52ch;
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta__ring {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ring {
  --p: 92;
  display: grid;
  place-items: center;
  width: min(230px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--amber) calc(var(--p) * 1%),
    rgba(255, 255, 255, 0.08) 0
  );
  transition: background 0.6s ease;
}

.ring__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border-radius: 50%;
  background: #0c0c12;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.ring__value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
}

.ring__label {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-3);
}

.cta__note {
  font-size: 12px;
  color: var(--text-3);
}

/* ---------- Футер ---------- */
.footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  background: #07070a;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__desc {
  max-width: 38ch;
  margin: 18px 0 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-3);
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text-2);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
}

.socials .icon {
  width: 17px;
  height: 17px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h3 {
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer__col a,
.footer__col span {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}

.footer__up {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  white-space: nowrap;
}

.footer__up:hover {
  color: #fff;
}

.footer__up .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Модальные окна ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.modal__dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100dvh - 40px);
  border: 1px solid var(--line-2);
  border-radius: 30px;
  background: #0e0e15;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  overflow-y: auto;
  animation: modal-in 0.35s var(--ease);
}

.modal__dialog--sm {
  width: min(480px, 100%);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.modal__close .icon {
  width: 16px;
  height: 16px;
}

.modal__body {
  padding: clamp(24px, 4vw, 40px);
}

.modal__eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

.modal__title {
  margin: 10px 0;
  padding-right: 40px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}

.modal__lead {
  max-width: 46ch;
  margin-bottom: 26px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
}

/* ---------- Форма ---------- */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.field__label i {
  font-style: normal;
  color: var(--coral);
}

.field__input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
}

.field__input::placeholder {
  color: var(--text-3);
  opacity: 0.75;
}

.field__input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.field__input:focus {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.16);
}

.field__input--area {
  min-height: 84px;
  resize: vertical;
}

.field__error {
  font-size: 11.5px;
  line-height: 1.3;
  color: #ff8b8b;
}

.field.has-error .field__input {
  border-color: rgba(255, 107, 107, 0.65);
}

.field__error--check {
  display: block;
  margin: -2px 0 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 6px;
  cursor: pointer;
}

.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check__box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.check__box .icon {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.check input:checked + .check__box {
  border-color: var(--blue);
  background: var(--blue);
}

.check input:checked + .check__box .icon {
  opacity: 1;
  transform: scale(1);
}

.check input:focus-visible + .check__box {
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.3);
}

.check__text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}

.form .btn--block {
  margin-top: 16px;
}

.form__note {
  margin-top: 12px;
  font-size: 11.5px;
  text-align: center;
  color: var(--text-3);
}

.form__note a {
  color: var(--text-2);
  text-decoration: underline;
}

.form-success {
  padding-top: 10px;
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border: 1px solid rgba(76, 141, 255, 0.3);
  border-radius: 50%;
  background: rgba(76, 141, 255, 0.12);
  color: var(--blue-soft);
}

.form-success__icon .icon {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.form-success p {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
}

.form-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.form-success__tg {
  display: inline-block;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--blue-soft);
}

/* ---------- Связаться ---------- */
.contact-options {
  display: grid;
  gap: 10px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-option:hover {
  border-color: rgba(76, 141, 255, 0.35);
  background: rgba(76, 141, 255, 0.06);
}

.contact-option__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: rgba(76, 141, 255, 0.1);
  color: var(--blue-soft);
}

.contact-option__icon .icon {
  width: 19px;
  height: 19px;
}

.contact-option > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-option b {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.contact-option span span {
  font-size: 12px;
  color: var(--text-3);
}

.contact-option__arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: var(--text-3);
}

/* ---------- Тост ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  padding: 12px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(18, 18, 26, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Страница 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 72px 20px;
  background:
    radial-gradient(60% 50% at 50% 15%, rgba(76, 141, 255, 0.16), transparent 70%),
    var(--bg);
  text-align: center;
}

.error {
  width: 100%;
  max-width: 620px;
}

.error-page .logo {
  justify-content: center;
  margin-bottom: 48px;
}

.error__code {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #fff, #6f9dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error h1 {
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
}

.error > p:not(.error__code) {
  max-width: 46ch;
  margin: 0 auto 28px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-3);
}

.error__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-3);
}

.error__links a:hover {
  color: #fff;
}

/* ---------- Анимации ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.82);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .nav {
    gap: 18px;
  }

  .header__phone {
    display: none;
  }

  .header__phone-mobile {
    display: grid;
  }
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero__grid {
    gap: 24px;
  }

  .hero__visual {
    min-height: 460px;
  }

  .about__grid,
  .practice__grid,
  .admission__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .admission__aside {
    position: static;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .faq__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq__intro {
    position: static;
  }
}

@media (max-width: 960px) {
  .hero {
    padding-top: 112px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 20px;
  }

  .hero__visual {
    min-height: 0;
    margin-top: 12px;
  }

  .hero__image {
    width: 100%;
    max-width: 620px;
  }

  .seats-chip {
    left: 10px;
    bottom: 8px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats__item {
    padding: 22px 20px;
    border-bottom: 1px solid var(--line);
  }

  .stats__item:first-child {
    padding-left: 20px;
  }

  .stats__item:nth-child(2n) {
    border-right: 0;
  }

  .stats__item:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .stats__item:last-child {
    grid-column: 1 / -1;
    align-items: center;
    border-right: 0;
    border-bottom: 0;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .fact:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .fact:nth-child(2n) {
    border-right: 0;
  }

  .fact:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .fact:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .syllabus {
    grid-template-columns: 1fr;
  }

  .media__grid {
    grid-template-columns: 1fr 1fr;
  }

  .media-card:last-child {
    grid-column: 1 / -1;
  }

  .contacts__grid .person {
    flex-basis: calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }

  .container {
    padding-inline: 18px;
  }

  .logo__sub {
    display: none;
  }

  .nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }
  .hero__title {
    font-size: clamp(34px, 11vw, 54px);
  }

  .hero__lead {
    font-size: 15.5px;
  }

  .hero__meta {
    gap: 10px 18px;
  }

  .section {
    padding: 64px 0;
  }

  h2,
  .section-head h2,
  .faq__intro h2 {
    font-size: clamp(27px, 7vw, 34px);
  }

  .audience__grid {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts .fact {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .facts .fact:last-child {
    border-bottom: 0;
  }

  .cost {
    grid-template-columns: 1fr;
  }

  .program__meta {
    grid-template-columns: 1fr 1fr;
  }

  .program__meta div {
    border-bottom: 1px solid var(--line);
  }

  .program__meta div:nth-child(2n) {
    border-right: 0;
  }

  .program__meta div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .admission__aside {
    grid-template-columns: 1fr;
  }

  .media__grid {
    grid-template-columns: 1fr;
  }

  .media-card:last-child {
    grid-column: auto;
  }

  .contacts__grid .person {
    max-width: 100%;
    flex-basis: 100%;
  }

  .person__role {
    min-height: 0;
  }

  .cta__card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
    border-radius: 30px;
  }

  .cta__ring {
    order: 2;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 10px;
  }

  .modal__dialog {
    border-radius: 24px;
  }

  .timeline__item {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

  .timeline__num {
    width: 40px;
    height: 40px;
    font-size: 11px;
  }

  .timeline__item::before {
    left: 19px;
    top: 44px;
  }

  .welcome-note {
    font-size: 17px;
  }

  .seats-card__value {
    font-size: 60px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

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

  .stats__value {
    font-size: 27px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .seats-chip {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 300px;
    margin: 18px auto 0;
  }

  .hero__visual {
    flex-direction: column;
  }

  .logo__name {
    font-size: 12.5px;
  }

  .audience-card {
    padding: 24px;
  }

  .fact {
    padding: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: auto;
  }

  .form-success__actions .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .header__phone-mobile {
    display: none;
  }

  .logo__name {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
