/* ================================================
   base.css — Переменные, сброс стилей, типографика
   IT COLLEGE v2
   ================================================ */

/* ===================== СБРОС СТИЛЕЙ И БАЗА ===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ===================== ТОКЕНЫ / CSS ПЕРЕМЕННЫЕ ===================== */
:root {
  --primary:    #1d4ed8;
  --primary-2:  #2563eb;
  --primary-3:  #3b82f6;
  --accent:     #f59e0b;
  --dark:       #060c1d;
  --dark-2:     #0f172a;
  --dark-3:     #1e293b;
  --light:      #eff2ff;
  --white:      #ffffff;
  --gray:       #64748b;
  --gray-2:     #94a3b8;
  --border:     #dde5ff;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(29, 78, 216, .1);
  --shadow-lg:  0 16px 56px rgba(29, 78, 216, .18);
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --spring:     .35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Smooth focus outline */
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary-3);
  outline-offset: 3px;
  border-radius: 6px;
}
/* ================================================
   layout.css — Навигация, футер, контейнер, сетка
   IT COLLEGE v2
   ================================================ */

/* ===================== ПРОГРЕСС-БАР ПРОКРУТКИ ===================== */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-3), var(--accent));
  z-index: 9999;
  transition: width .1s linear;
  box-shadow: 0 0 10px rgba(29, 78, 216, .6), 0 0 20px rgba(29, 78, 216, .3);
}

/* ===================== НАВИГАЦИЯ ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
  animation: slideDown .5s ease both;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, .1);
}

/* Nav scrolled */
.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(29, 78, 216, .12);
  border-bottom-color: rgba(29, 78, 216, .15);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--dark);
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.nav-logo:hover {
  opacity: .85;
}

.nav-logo:hover img {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, .6));
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -.5px;
  box-shadow: 0 4px 12px rgba(29, 78, 216, .4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-logo:hover .nav-logo-icon {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 6px 20px rgba(29, 78, 216, .6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--light);
  color: var(--primary);
}

.nav-link:hover {
  color: var(--accent) !important;
}

.nav-link:hover .arrow {
  color: var(--accent);
}

.nav-link .arrow {
  font-size: 10px;
  transition: transform var(--transition);
  opacity: .6;
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  /* закрытие: задержка 1.2с, потом плавное исчезновение за 0.3с */
  /* задержка 0.35с — закрывается быстрее, не мигает */
  transition: opacity .25s ease .35s, transform .25s ease .35s, visibility 0s linear .6s;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
  /* открытие: без задержки */
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}

.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--dark);
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown a:hover {
  background: var(--light);
  color: var(--primary);
}

.nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}

/* ─── Mobile nav toggle ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(11, 83, 148, 0.08);
  border: 1.5px solid rgba(11, 83, 148, 0.18);
  border-radius: 12px;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  flex-shrink: 0;
}
.nav-toggle:hover {
  background: rgba(11, 83, 148, 0.15);
  border-color: rgba(11, 83, 148, 0.35);
  transform: scale(1.06);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s, width .3s;
}
.nav-toggle span:nth-child(2) { width: 14px; }

/* Анимация в крестик при открытии */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 20px; }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 20px; }
.nav-toggle.open {
  background: rgba(11, 83, 148, 0.12);
  border-color: var(--primary);
}

.nav-mobile {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0,0,0,0);
  visibility: hidden;
  pointer-events: none;
  transition: background .35s ease, visibility 0s linear .35s;
}

.nav-mobile-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 90vw);
  background: #fff;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -8px 0 32px rgba(0,0,0,.18);
}

.nav-mobile.open {
  background: rgba(0,0,0,.5);
  visibility: visible;
  pointer-events: auto;
  transition: background .35s ease, visibility 0s linear 0s;
}

.nav-mobile.open .nav-mobile-inner {
  transform: translateX(0);
}

.nav-mobile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light);
  border: 1.5px solid var(--border);
  font-size: 20px;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition), transform var(--transition);
}

.nav-mobile-close:hover,
.nav-mobile-close:active {
  background: var(--border);
  transform: scale(1.08);
}

.nav-mobile a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), padding-left var(--transition);
}

.nav-mobile a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.nav-mobile a.sub {
  padding-left: 16px;
  font-weight: 500;
  font-size: 14px;
  color: var(--gray);
}

.nav-mobile-section {
  margin-top: 16px;
}

.nav-mobile-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray);
  margin-bottom: 4px;
}

/* ===================== КОНТЕЙНЕР И СЕКЦИИ ===================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section {
  padding: 72px 24px;
}

.section-muted {
  background: linear-gradient(135deg, #eff2ff 0%, #f5f7ff 50%, #eff2ff 100%);
  background-size: 200% 200%;
  animation: sectionBgPulse 10s ease-in-out infinite;
}

.section-dark {
  background: var(--dark);
  color: #fff;
  border-top: 4px solid var(--accent);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  color: var(--dark-2);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-dark .section-title {
  color: #fff;
}

.section-subtitle {
  font-size: 16px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, .65);
}

.section-desc {
  font-size: 15px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Grid helpers ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.cards-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

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

/* ─── Back to top ─── */
#btt {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 20px;
  box-shadow: 0 4px 16px rgba(14, 165, 233, .4);
  opacity: 0;
  transform: translateY(16px) scale(.8);
  transition: opacity .3s, transform .3s, box-shadow .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 500;
}

#btt.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#btt:hover {
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, .55);
}

/* ─── Footer ─── */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .75);
  padding: 56px 24px 28px;
}

/* Footer stays dark */
.footer { background: var(--dark); }

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 15px;
  line-height: 1.7;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
  transition: color var(--transition), padding-left var(--transition);
}

.footer ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .75);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.social-btn svg {
  width: 17px;
  height: 17px;
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── Misc utilities ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-gray    { color: var(--gray); }
.text-center  { text-align: center; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Media queries ─── */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links,
  .nav-btns {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .grid-1-2,
  .grid-1-1 {
    grid-template-columns: 1fr;
  }
}
/* ================================================
   components.css — Кнопки, теги, карточки, FAQ, фильтр, переключатель языка
   IT COLLEGE v2
   ================================================ */

/* ===================== КНОПКИ ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .15);
  transform: translateX(-110%) skewX(-20deg);
  transition: transform .4s ease;
}

.btn:hover::after {
  transform: translateX(110%) skewX(-20deg);
}

/* Кнопки — shimmer sweep */
.btn::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-110%) skewX(-20deg);
  transition: transform .55s ease;
}
.btn:hover::after { transform: translateX(130%) skewX(-20deg); }

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(29, 78, 216, .35);
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(29, 78, 216, .55);
}

.btn-ebilim {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: none;
}

.btn-ebilim:hover {
  background: var(--light);
  border-color: var(--primary-2);
  box-shadow: 0 4px 14px rgba(29, 78, 216, .15);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 7px 18px;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-outline:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 74, 57, .35);
}

.btn-accent:hover {
  box-shadow: 0 8px 24px rgba(255, 74, 57, .5);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
}

/* Open day button on dark */
.open-day .btn { box-shadow: 0 4px 20px rgba(0,0,0,.25); }

/* ===================== ТЕГИ И БЕЙДЖИ ===================== */
.tag {
  display: inline-block;
  background: rgba(29, 78, 216, .09);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
  border: 1px solid rgba(29, 78, 216, .15);
}

/* ===================== КАРТОЧКИ ===================== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card:hover .card-title {
  color: var(--primary);
}

.card-img {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.card:hover .card-img img {
  transform: scale(1.06);
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-text {
  font-size: 14px;
  color: var(--gray);
  flex: 1;
}

.card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

/* ─── Graduate cards ─── */
.graduate-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.graduate-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.grad-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--light);
  transition: border-color var(--transition), transform var(--transition);
}

.graduate-card:hover .grad-photo {
  border-color: var(--primary);
  transform: scale(1.05);
}

.graduate-card:hover .grad-photo {
  border-color: var(--accent);
}

.grad-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.grad-year {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
}

.grad-job {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.grad-quote {
  font-size: 13px;
  color: var(--gray);
  font-style: italic;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ─── Program cards ─── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.program-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #1d4ed8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.program-card:hover::before { transform: scaleX(1); }
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.program-card.hidden { display: none; }
.program-icon {
  width: 56px; height: 56px;
  background: rgba(14, 165, 233, .08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
  transition: background var(--transition), color var(--transition);
}
.program-card:hover .program-icon {
  background: var(--primary);
  color: #fff;
}
.program-icon svg { width: 28px; height: 28px; }
.program-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(14, 165, 233, .1);
  color: var(--primary);
  margin-bottom: 14px;
  border: 1px solid rgba(29, 78, 216, .15);
}

/* Program-tag colours by category */
.program-card[data-category="economy"] .program-tag {
  background: rgba(245, 158, 11, .1);
  color: #d97706;
  border-color: rgba(245, 158, 11, .2);
}
.program-card[data-category="design"] .program-tag {
  background: rgba(139, 92, 246, .1);
  color: #7c3aed;
  border-color: rgba(139, 92, 246, .2);
}

.program-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.program-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.program-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray);
}
.program-meta-item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

/* ─── Filter bar ─── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--gray);
  background: #fff;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ─── Section CTA ─── */
.section-cta { text-align: center; margin-top: 40px; }

/* ─── Advantage items ─── */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.adv-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.adv-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.adv-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.adv-icon svg {
  width: 22px;
  height: 22px;
}

.adv-item:hover .adv-icon {
  transform: scale(1.15) rotate(-5deg);
  background: var(--primary);
  color: #fff;
}

.adv-item:hover .adv-icon {
  background: var(--accent) !important;
  color: #fff;
}

.adv-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.adv-text {
  font-size: 13px;
  color: var(--gray);
}

/* ─── Паспорт колледжа / Сертификаты ─── */
.cert-scroll-wrapper {
  position: relative;
  overflow: hidden;
}

.cert-scroll-wrapper::before,
.cert-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.cert-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--light), transparent);
}

.cert-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--light), transparent);
}

.cert-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 12px 80px 24px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.cert-track::-webkit-scrollbar {
  display: none;
}

.cert-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.cert-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.cert-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.cert-nav-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(14, 165, 233, .35);
}

.cert-card {
  flex-shrink: 0;
  width: 280px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.cert-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.cert-card-top {
  background: linear-gradient(135deg, var(--dark) 0%, #1552db 100%);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cert-card-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.cert-ribbon {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  position: relative;
}

.cert-seal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: 2px solid rgba(255, 255, 255, .35);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}

.cert-seal svg {
  width: 30px;
  height: 30px;
}

.cert-org {
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  position: relative;
}

.cert-card-body {
  padding: 18px 20px;
  border-top: 2px solid var(--border);
}

.cert-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.cert-subtitle {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 14px;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.cert-year {
  font-size: 11px;
  color: var(--gray);
  font-weight: 600;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.cert-badge svg {
  width: 12px;
  height: 12px;
}

/* ─── FAQ ─── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  gap: 12px;
  transition: color var(--transition);
  user-select: none;
}

.faq-q:hover {
  color: var(--primary);
}

.faq-q .faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  transition: transform var(--transition), background var(--transition);
}

.faq-item.open .faq-q .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

.faq-item.open .faq-q {
  color: var(--accent);
}

.faq-item.open .faq-q .faq-icon {
  background: var(--accent) !important;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 22px 18px;
}

/* ─── Contact cards ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}

.contact-card:hover .contact-icon {
  transform: scale(1.15);
  background: var(--primary);
  color: #fff;
}

/* ─── Page header ─── */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 40%, var(--primary) 100%);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-header h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  position: relative;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 16px;
  opacity: .8;
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  font-size: 13px;
  opacity: .7;
  margin-top: 12px;
  position: relative;
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb a:hover {
  opacity: 1;
}

/* ─── Table ─── */
.tbl {
  width: 100%;
  border-collapse: collapse;
}

.tbl th,
.tbl td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.tbl th {
  background: var(--light);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray);
}

.tbl tr:last-child td {
  border-bottom: none;
}

.tbl tbody tr {
  transition: background var(--transition);
}

.tbl tbody tr:hover {
  background: var(--light);
}

/* ─── Form ─── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  color: var(--dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ─── Partners ─── */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.partner-item {
  filter: grayscale(1);
  opacity: .55;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
  cursor: pointer;
}

.partner-item:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.08);
}

/* ─── Director ─── */
.director-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow);
}

.director-photo {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 2 / 3;
  transition: transform var(--transition);
}

.director-card:hover .director-photo {
  transform: scale(1.02);
}

.director-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.director-pos {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.director-quote {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
  font-style: italic;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}

/* ── Language switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--light);
  border-radius: 9px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  padding: 5px 11px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.lang-btn:hover {
  background: var(--border);
  color: var(--dark);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, .35);
}

/* ─── Accent overrides ── */
.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 12px 0 0;
  animation: accentGrow .8s ease both;
}

/* ─── Media queries ─── */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .programs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .director-card {
    grid-template-columns: 1fr;
  }

  .director-photo {
    width: 200px;
    border-radius: 50%;
  }
}
/* ================================================
   sections.css — Секции: герой, быстрые ссылки, статистика, программы,
                  шаги поступления, день открытых дверей, НПА, новости,
                  выпускники, призыв к действию
   IT COLLEGE v2
   ================================================ */

/* ===================== ГЕРОЙ / ГЛАВНЫЙ ЭКРАН ===================== */
.hero {
  background: linear-gradient(135deg, rgba(6, 12, 29, .32) 0%, rgba(15, 23, 42, 0.45) 100%), url("../img/background.jpeg") center / cover no-repeat;
  color: #fff;
  padding: 100px 24px 100px;
  position: relative;
  overflow: hidden;
  animation: heroFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/*
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 70% 40%, rgba(37, 99, 235, .55) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 5% 85%,  rgba(29, 78, 216, .3)  0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 95% 5%,  rgba(59, 130, 246, .2) 0%, transparent 55%);
  animation: auroraShift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 40% at 20% 20%, rgba(29, 78, 216, .15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at 80% 90%, rgba(37, 99, 235, .2)  0%, transparent 55%);
  animation: auroraShift 16s ease-in-out infinite alternate-reverse;
  pointer-events: none;
} */

.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.0fr 1.0fr;
  gap: 54px;
  align-items: center;
  position: relative;
}
.hero-content { max-width: 600px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, .15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, .4);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 24px;
  animation: fadeUp .8s .2s both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s infinite;
}

.hero-badge-dot {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 66px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
  animation: fadeUp .8s .35s both;
}
.hero h1 span { color: #fff; }
.hero h1 em {
  font-style: normal;
  color: #fbbf24;
  position: relative;
}

/* Hero h1 highlight */
.hero h1 span { color: var(--accent); }

.hero p {
  font-size: clamp(15px, 2vw, 17px);
  opacity: .88;
  margin-bottom: 32px;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
  animation: fadeUp .8s .5s both;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeUp .8s .65s both;
}
.hero-btn-ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,.45) !important;
  backdrop-filter: blur(6px);
}
.hero-btn-ghost:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.75) !important;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  animation: fadeUp .8s .8s both;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 100px;
}
.hero-pill svg { color: #4ade80; flex-shrink: 0; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp .8s .4s both;
  height: 100%;
  width: 100%;
}
.hero-float-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
.hero-fstat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  transition: transform .3s ease, background .3s ease;
}
.hero-fstat:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.13);
}
.hero-fstat--accent {
  background: rgba(29,78,216,.35);
  border-color: rgba(59,130,246,.4);
}
.hero-fstat-num {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.hero-fstat-num span { color: #fbbf24; font-size: .75em; }
.hero-fstat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero-card {
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  height: 100%;
  width: 100%;
  max-width: 500px;
  animation: floatY 6s ease-in-out infinite, heroCardGlow 5s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .25), 0 32px 80px rgba(0, 0, 0, .5);
  position: relative;
}

/* ===== БАННЕР-СЛАЙДЕР В ГЕРОЕ ===== */
.hero-banner-card {
  padding: 0;
  overflow: hidden;
  min-height: 380px;
}
.banner-track {
  display: flex;
  height: 100%;
  min-height: 380px;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
}
.banner-slide {
  min-width: 100%;
  height: 100%;
  min-height: 380px;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}
.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  font-size: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
}
.banner-btn:hover { background: rgba(0,0,0,.75); }
.banner-btn--prev { left: 14px; }
.banner-btn--next { right: 14px; }
.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.banner-dot.active {
  background: #fff;
  transform: scale(1.35);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.hero-stat {
  background: rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.hero-stat-num {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #fde68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 12px;
  opacity: .75;
  margin-top: 2px;
}

/* ===================== БЫСТРЫЕ ССЫЛКИ (QUICK BAR) ===================== */
.quick-bar {
  background: #34477c;
  color: #fff;
  overflow: hidden;
  border-bottom: 2px solid rgba(245, 158, 11, .5);
  position: relative;
}
.quick-bar::before,
.quick-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.quick-bar::before { left: 0;  background: linear-gradient(to right, var(--primary), transparent); }
.quick-bar::after  { right: 0; background: linear-gradient(to left,  var(--primary), transparent); }

.quick-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}
.quick-track:hover { animation-play-state: paused; }

.quick-inner {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, .15);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

.quick-item:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.quick-item:hover {
  background: rgba(245, 158, 11, .2) !important;
  color: #fff;
}

.quick-item .icon {
  display: flex;
  align-items: center;
}

/* ─── Stats bar ─── */
.stats-bar {
  background: #fff;
  padding: 48px 0;
  box-shadow: 0 4px 24px rgba(14, 165, 233, .07);
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.stat-item:hover {
  background: var(--light);
  transform: translateY(-4px);
}
.stat-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  color: var(--primary);
}
.stat-icon svg { width: 100%; height: 100%; }
.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
}

/* Stat-icon glow on hover */
.stat-item:hover .stat-icon {
  color: var(--primary-2);
  filter: drop-shadow(0 0 8px rgba(29, 78, 216, .4));
}

/* ─── Stats Modern (animated stats bar) ─── */
.stats-modern {
  background: #fff;
  padding: 56px 0;
  box-shadow: 0 4px 32px rgba(14, 165, 233, .08);
  position: relative;
  z-index: 2;
}
.stats-modern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-modern-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  border-radius: 14px;
  transition: background .25s ease, transform .25s ease;
  cursor: default;
}
.stat-modern-item:hover {
  background: #f0f9ff;
  transform: translateY(-5px);
}
.stat-modern-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  color: var(--primary);
}
.stat-modern-icon svg {
  width: 100%;
  height: 100%;
}
.stat-modern-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-modern-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
}

/* ─── About section ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.about-list-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}
.about-list-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--primary);
  background: rgba(14, 165, 233, .08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-list-icon svg { width: 22px; height: 22px; }
.about-list-text h4 { margin-bottom: 3px; font-size: 0.95rem; }
.about-list-text p { font-size: 0.88rem; color: var(--gray); }
.about-visual { position: relative; }
.about-card {
  background: linear-gradient(135deg, #253457 0%, var(--primary) 100%);
  border-radius: 20px;
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.about-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(245, 158, 11, .1);
}
.about-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.about-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.about-card p { color: rgba(255, 255, 255, .8); font-size: 0.95rem; margin-bottom: 24px; }
.about-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-card-stat {
  background: rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.about-card-stat strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.about-card-stat span { font-size: 0.8rem; color: rgba(255, 255, 255, .7); }
.about-float-badge {
  position: absolute;
  bottom: -30px;
  right: 30px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-float-badge-icon { width: 36px; height: 36px; color: var(--accent); }
.about-float-badge-text strong { display: block; font-size: 0.95rem; color: var(--dark); }
.about-float-badge-text span { font-size: 0.78rem; color: var(--gray); }
.float { animation: floatY 4s ease-in-out infinite; }

/* ─── Steps/Admission section ─── */
.steps-section {
  background: #34477c;
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}
.steps-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.steps-section .container { position: relative; z-index: 1; }
.steps-section .section-header { text-align: center; margin-bottom: 0; }
.steps-section .tag { color: rgba(255, 255, 255, .6); background: rgba(255,255,255,.12); }
.steps-section .section-title { color: #fff; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: rgba(255, 255, 255, .2);
}
/* Steps line updated */
.steps-grid::before { background: rgba(255, 255, 255, .12); }
.step-card {
  text-align: center;
  color: #fff;
  position: relative;
}
.step-icon-wrap {
  width: 64px; height: 64px;
  background: rgba(255, 255, 255, .12);
  border: 2px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}
.step-card:hover .step-icon-wrap {
  background: rgba(245, 158, 11, .2);
  border-color: var(--accent);
}
/* Step icon hover glow */
.step-card:hover .step-icon-wrap {
  box-shadow: 0 0 24px rgba(245, 158, 11, .35);
}
.step-icon-wrap svg { width: 28px; height: 28px; }
.step-num {
  position: absolute;
  top: -12px; right: -12px;
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 0.85rem; color: rgba(255,255,255,.72); line-height: 1.6; }
.step-card ul { text-align: center; padding: 8px 0; list-style: none; }
.step-card ul li {
  font-size: 0.82rem;
  color: rgba(255,255,255,.7);
  padding: 3px 0 3px 16px;
  position: relative;
}
.step-card ul li::before { content: '–'; position: absolute; left: 0; color: var(--accent); }
.steps-cta { text-align: center; margin-top: 52px; position: relative; z-index: 1; }

/* ─── Open Day section ─── */
.open-day {
  background: #fff;
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.open-day::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(12, 35, 64, .07);
}
.open-day::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(12, 35, 64, .05);
}
.open-day h2 { color: var(--dark); margin-bottom: 8px; position: relative; z-index: 1; font-size: clamp(24px, 4vw, 36px); }
.open-day-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 35, 64, .1);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.open-day p { color: rgba(12,35,64,.7); margin-bottom: 28px; position: relative; z-index: 1; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ===================== АККОРДЕОН НПА ===================== */
.npa-list {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.npa-item {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.npa-item:last-child { border-bottom: none; }
.npa-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: background var(--transition);
}
.npa-header:hover { background: var(--light); }
.npa-item.open > .npa-header {
  background: var(--light);
  border-bottom: 1px solid var(--border);
}
.npa-header-left { display: flex; align-items: center; gap: 16px; }
.npa-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(29, 78, 216, .08);
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.npa-title { font-size: 15px; font-weight: 700; color: var(--dark-2); }
.npa-arrow {
  width: 20px; height: 20px;
  color: var(--gray-2);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}
.npa-item.open .npa-arrow { transform: rotate(180deg); color: var(--primary); }
.npa-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(0.4, 0, 0.2, 1);
}
.npa-item.open .npa-body { max-height: 9999px; }
.npa-docs { padding: 16px 28px 24px; display: flex; flex-direction: column; gap: 8px; }
.npa-doc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  color: var(--dark-2);
  text-decoration: none;
  user-select: none;
}
.npa-doc:hover {
  background: var(--light);
  border-color: var(--primary);
  transform: translateX(5px);
  box-shadow: var(--shadow);
}
.npa-doc.active {
  background: var(--light);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.npa-doc-icon { width: 32px; height: 32px; flex-shrink: 0; color: #e53e3e; }
.npa-doc-name { font-size: 14px; font-weight: 500; flex: 1; color: var(--dark-2); }
.npa-doc-open {
  font-size: 11px; font-weight: 700; color: var(--primary);
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  padding: 5px 12px; border-radius: 6px;
  background: rgba(29, 78, 216, .08);
  transition: background var(--transition), color var(--transition);
}
.npa-doc:hover .npa-doc-open,
.npa-doc.active .npa-doc-open { background: var(--primary); color: #fff; }

/* PDF inline viewer */
.npa-pdf-viewer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f1f5f9;
}
.npa-pdf-viewer.open {
  max-height: 720px;
}
.npa-pdf-viewer iframe {
  width: 100%;
  height: 680px;
  border: none;
  display: block;
}
.npa-pdf-fallback {
  display: none;
  padding: 20px 28px;
  font-size: 14px;
  color: var(--gray-2);
}
.npa-pdf-fallback a { color: var(--primary); text-decoration: underline; }

/* ================================================================
   СТРАНИЦА СПЕЦИАЛЬНОСТЕЙ — стили страницы программ
   ================================================================ */

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, #0B5394 0%, #061f42 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(23,168,206,0.1);
  pointer-events: none;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}
.page-hero p {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  max-width: 540px;
}
.page-hero .breadcrumb-item {
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
}
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.85); }
.page-hero a.breadcrumb-item:hover  { color: #fff; }
.page-hero .breadcrumb-sep {
  font-size: 0.75rem;
  color: rgba(255,255,255,.3);
}

/* Breadcrumb */
.spec-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.spec-breadcrumb-item {
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
}
.spec-breadcrumb-item.active { color: rgba(255,255,255,.9); }
.spec-breadcrumb-item[href]:hover { color: #fff; }
.spec-breadcrumb-sep { color: rgba(255,255,255,.4); }

/* Search bar */
.spec-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 999px;
  overflow: hidden;
  max-width: 480px;
  transition: box-shadow var(--transition);
}
.spec-search-bar:focus-within {
  box-shadow: 0 0 0 4px rgba(255,255,255,.15);
}
.spec-search-bar input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: 0.95rem;
  outline: none;
  background: none;
  color: var(--dark);
  font-family: inherit;
}
.spec-search-bar button {
  padding: 14px 24px;
  background: var(--dark);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.spec-search-bar button:hover { background: var(--primary); }
.spec-search-bar button svg { width: 16px; height: 16px; }

/* Filter panel */
.spec-filter-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.spec-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spec-filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
}
.spec-filter-select {
  padding: 8px 32px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--dark);
  background: #fff;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color var(--transition);
  cursor: pointer;
  font-family: inherit;
}
.spec-filter-select:focus { border-color: var(--primary); }
.spec-view-toggle { display: flex; gap: 4px; margin-left: auto; }
.spec-view-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: var(--transition);
  cursor: pointer;
  background: #fff;
}
.spec-view-btn.active,
.spec-view-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.spec-view-btn svg { width: 16px; height: 16px; }

/* Filter tabs */
.spec-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.spec-filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--gray);
  background: #fff;
  transition: var(--transition);
  cursor: pointer;
  font-family: inherit;
}
.spec-filter-btn:hover,
.spec-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Programs grid */
.spec-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.spec-programs-list {
  grid-template-columns: 1fr !important;
}
.spec-programs-list .spec-card {
  display: flex;
  align-items: center;
  gap: 24px;
}
.spec-programs-list .spec-card-icon { flex-shrink: 0; margin-bottom: 0; }
.spec-programs-list .spec-card-meta { flex-direction: row; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }
.spec-programs-list .btn { margin-left: auto; flex-shrink: 0; }

/* Program card (icon style) */
.spec-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.spec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.spec-card:hover::before { transform: scaleX(1); }
.spec-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.spec-card-icon {
  width: 56px; height: 56px;
  background: rgba(14, 165, 233, .1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary);
  transition: var(--transition);
}
.spec-card-icon svg { width: 26px; height: 26px; }
.spec-card:hover .spec-card-icon {
  background: var(--primary);
  color: #fff;
}
.spec-card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(14, 165, 233, .1);
  color: var(--primary);
  margin-bottom: 12px;
}
.spec-card-tag--economy {
  background: rgba(245, 158, 11, .1);
  color: var(--accent);
}
.spec-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--dark);
  line-height: 1.3;
}
.spec-card-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.spec-card-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--gray);
}
.spec-card-meta-item svg {
  width: 15px; height: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Staggered reveal delays for spec-card */
.spec-card.delay-1 { transition-delay: 0s; }
.spec-card.delay-2 { transition-delay: .08s; }
.spec-card.delay-3 { transition-delay: .16s; }
.spec-card.delay-4 { transition-delay: .24s; }
.spec-card.delay-5 { transition-delay: .32s; }
.spec-card.delay-6 { transition-delay: .40s; }

/* CTA section */
.spec-cta {
  background: linear-gradient(135deg, var(--dark) 0%, #0a3a6e 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.spec-cta::before {
  content: '';
  position: absolute;
  top: -80px; right: 10%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(14, 165, 233, .08);
  pointer-events: none;
}
.spec-cta h2 { color: #fff; margin-bottom: 14px; position: relative; z-index: 1; }
.spec-cta p  { color: rgba(255,255,255,.7); margin-bottom: 32px; font-size: 1.05rem; position: relative; z-index: 1; }
.spec-cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ─── Media queries ─── */
/* Мобильный баннер: скрыт на десктопе */
.hero-banner-mobile { display: none; }

@media (max-width: 900px) {
  .hero {
    padding: 100px 24px 29px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  /* Показываем мобильный баннер после quick-bar */
  .hero-banner-mobile {
    display: block;
    padding: 17px 0 0;
    background: var(--hero-bg, #0c2340);
  }
  .hero-banner-mobile .hero-banner-card {
    max-width: 100%;
    border-radius: 16px;
  }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card-stats { grid-template-columns: 1fr 1fr; }
  .about-float-badge { right: 16px; }
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .stats-modern-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-btns {
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid::before { display: none; }
  .npa-header { padding: 18px 16px; }
  .npa-docs    { padding: 12px 16px 20px; }
  .npa-title   { font-size: 14px; }
  .npa-pdf-viewer iframe { height: 420px; }
  .npa-pdf-viewer.open  { max-height: 460px; }
  .spec-programs-grid { grid-template-columns: 1fr; }
  .spec-filter-panel  { flex-direction: column; align-items: stretch; }
  .spec-view-toggle   { margin-left: 0; }
  .spec-cta-btns      { flex-direction: column; align-items: center; }
  .spec-cta-btns .btn { width: 100%; max-width: 300px; justify-content: center; }
  .spec-programs-list .spec-card { flex-direction: column; align-items: flex-start; }
  .spec-programs-list .btn { margin-left: 0; }
}

@media (max-width: 480px) {
  .stats-modern-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-modern { padding: 36px 0; }
}

@media (max-width: 1024px) {
  .spec-programs-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ================================================
   animations.css — Анимации: @keyframes, появление элементов, задержки
   IT COLLEGE v2
   ================================================ */

/* ===================== КЛЮЧЕВЫЕ КАДРЫ (KEYFRAMES) ===================== */

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes auroraShift {
  0%   { transform: scale(1)    rotate(0deg);  opacity: .8; }
  33%  { transform: scale(1.06) rotate(1.5deg); opacity: 1; }
  66%  { transform: scale(1.03) rotate(-1deg); opacity: .9; }
  100% { transform: scale(1.08) rotate(2deg);  opacity: .85; }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: .7;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes heroCardGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(37, 99, 235, .25), 0 32px 80px rgba(0,0,0,.5), 0 0 40px rgba(29, 78, 216, .15); }
  50%       { box-shadow: 0 0 0 1px rgba(59, 130, 246, .5),  0 32px 80px rgba(0,0,0,.5), 0 0 70px rgba(29, 78, 216, .3); }
}

@keyframes sectionBgPulse {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes accentGrow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

@keyframes langFadeOut {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes langFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== СИСТЕМА ПОЯВЛЕНИЯ ЭЛЕМЕНТОВ ===================== */

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(3px);
  transition:
    opacity   .3s var(--spring),
    transform .3s var(--spring),
    filter    .25s ease;
}

.reveal.in-view,
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(28px);
  filter: blur(3px);
  transition:
    opacity   .3s var(--spring),
    transform .3s var(--spring),
    filter    .25s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  filter: blur(3px);
  transition:
    opacity   .3s var(--spring),
    transform .3s var(--spring),
    filter    .25s ease;
}

.reveal-left.in-view, .reveal-left.revealed,
.reveal-right.in-view, .reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* ===================== КЛАССЫ ЗАДЕРЖКИ ===================== */

.delay-1 { transition-delay: .05s; }
.delay-2 { transition-delay: .1s; }
.delay-3 { transition-delay: .15s; }
.delay-4 { transition-delay: .2s; }
.delay-5 { transition-delay: .25s; }
.delay-6 { transition-delay: .58s; }

/* ===================== ПЕРЕХОД ПРИ СМЕНЕ ЯЗЫКА ===================== */

.lang-fade {
  animation: langFadeOut .25s ease forwards;
}

.lang-fade-in {
  animation: langFadeIn .35s ease forwards;
}


/* ============================================================
   АДАПТИВНОСТЬ — 3 уровня
   Десктоп  : > 1024px  (базовые стили)
   Планшет  : 641px – 1024px
   Мобильный: ≤ 640px
   ============================================================ */

/* ── Планшет (641px – 1024px) ──────────────────────────────── */
@media (min-width: 641px) and (max-width: 1024px) {
  /* Герой */
  .hero { padding: 72px 24px 56px; }
  .hero-inner { gap: 32px; }
  .hero-visual .hero-banner-card,
  .banner-track,
  .banner-slide,
  .banner-slide img { min-height: 300px; }
  .hero-btns { flex-wrap: wrap; gap: 10px; }

  /* Заголовки секций */
  .section-title { font-size: clamp(1.5rem, 3vw, 2rem); }

  /* Статистика */
  .stats-modern-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* О нас */
  .about-grid { gap: 28px; }

  /* Программы */
  .programs-grid { grid-template-columns: repeat(2, 1fr); }

  /* Карточки (новости, выпускники) */
  .cards-grid { grid-template-columns: repeat(2, 1fr); }

  /* Преимущества */
  .adv-grid { grid-template-columns: repeat(2, 1fr); }

  /* Шаги */
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }

  /* Футер */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* НПА */
  .npa-pdf-viewer iframe { height: 500px; }
  .npa-pdf-viewer.open  { max-height: 540px; }

  /* Партнёры */
  .partners-row { gap: 24px; }
}

/* ── Мобильный (≤ 640px) ────────────────────────────────────── */
@media (max-width: 640px) {
  /* Герой */
  .hero { padding: 80px 0 24px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero p  { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-badge { font-size: 12px; }

  /* Мобильный баннер */
  .hero-banner-mobile { padding: 17px 0 0; }

  /* Заголовки секций */
  .section-title   { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .section-subtitle { font-size: 0.9rem; }
  .section         { padding: 48px 0; }

  /* Статистика (верхняя полоса) */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stats-modern-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-modern { padding: 36px 0; }

  /* Программы */
  .programs-grid { grid-template-columns: 1fr; }

  /* О нас */
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-card-stats { grid-template-columns: repeat(2, 1fr); }
  .about-float-badge { right: 12px; bottom: 12px; }

  /* Преимущества */
  .adv-grid { grid-template-columns: 1fr; }

  /* Шаги */
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps-grid::before { display: none; }

  /* Карточки (новости, выпускники) */
  .cards-grid { grid-template-columns: 1fr; }

  /* НПА */
  .npa-header { padding: 16px 14px; }
  .npa-docs   { padding: 10px 14px 18px; }
  .npa-title  { font-size: 13px; }
  .npa-pdf-viewer iframe { height: 280px; }
  .npa-pdf-viewer.open  { max-height: 320px; }

  /* Футер */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 6px; text-align: center; }

  /* Партнёры */
  .partners-row { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .partner-logo { max-width: 100px; }

  /* Кнопка наверх */
  #btt { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}

/* ============================================================
   УНИФИКАЦИЯ ИКОНОК ИЗ БД
   ============================================================ */

.program-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: invert(20%) sepia(80%) saturate(800%) hue-rotate(200deg) brightness(90%);
  transition: filter var(--transition);
}
.program-card:hover .program-icon img {
  filter: brightness(0) invert(1);
}

.doc-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(20%) sepia(80%) saturate(800%) hue-rotate(200deg) brightness(90%);
  transition: filter var(--transition);
}
/*.doc-item:hover .doc-icon img {*/
/*  filter: brightness(0) invert(1);*/
/*}*/
.adv-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: invert(20%) sepia(80%) saturate(800%) hue-rotate(200deg) brightness(90%);
  transition: filter var(--transition);
}
.adv-item:hover .adv-icon img {
  filter: brightness(0) invert(1);
}
.feature-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: invert(20%) sepia(80%) saturate(800%) hue-rotate(200deg) brightness(90%);
  transition: filter var(--transition);
}
.feature-card:hover .feature-icon img {
  filter: brightness(0) invert(1);
}
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.status-available { background: #e6f4ea; color: #1e7e34; }
.status-few       { background: #fff3cd; color: #856404; }
.status-soon      { background: #e8f0fe; color: #1a56db; }
.status-closed    { background: #fde8e8; color: #c81e1e; }

.cert-card-top {
  height: 180px;
  border-radius: 16px 16px 0 0;
}

/* фон */
.cert-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* затемнение (очень важно) */
.cert-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.6)
  );
  border-radius: inherit;
}

/* чтобы текст был поверх */
.cert-bg > * {
  position: relative;
  z-index: 2;
}
.grad-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;        /* подбери под размер твоего .grad-photo */
  height: 100px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.npa-pdf-viewer {
  display: none;
  background: #f8fafc;
  border-radius: 0 0 var(--radius) var(--radius);
}
.npa-pdf-viewer.open {
  display: block;
}

.nav-mobile {
  z-index: 1001; /* должно быть выше navbar (1000) */
}

.nav-mobile-inner {
  z-index: 1002;
}
.nav-mobile-inner .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  min-width: 0;
  white-space: normal;
}
.npa-empty { display:flex; flex-direction:column; align-items:center; padding:64px 24px; text-align:center; }
.npa-empty-icon { width:72px; height:72px; border-radius:20px; background:var(--bg2); border:0.5px solid var(--b); display:flex; align-items:center; justify-content:center; margin-bottom:20px; opacity:.5; }
.npa-empty-title { font-size:16px; font-weight:500; color:var(--dark); margin-bottom:6px; }
.npa-empty-sub { font-size:13px; color:#888; line-height:1.6; max-width:260px; }