:root {
    --primary: #0ea5e9;
    --primary-600: #0284c7;
    --indigo: #2563eb;
    --ink: #0f172a;
    --muted: #64748b;
    --card: rgba(255, 255, 255, .92);
    --glass: rgba(255, 255, 255, .65);
    --ring: #e2e8f0;
    --shadow: 0 10px 28px rgba(2, 8, 23, .12);
}

html,
body {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--ink)
}

@media (hover:hover) {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--primary) transparent
    }

    *::-webkit-scrollbar {
        height: 10px;
        width: 10px
    }

    *::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--indigo), var(--primary));
        border-radius: 8px
    }

    *::-webkit-scrollbar-track {
        background: transparent
    }
}

/* NAV */
nav {
    border-bottom: 1px solid rgba(2, 8, 23, .06);
    backdrop-filter: blur(8px)
}

nav img {
    filter: drop-shadow(0 2px 6px rgba(2, 8, 23, .08))
}

/* HEADINGS */
h1,
h2,
h3 {
    letter-spacing: .2px
}

h1 {
    line-height: 1.1
}

h1 .accent,
h2 .accent {
    background: linear-gradient(90deg, var(--indigo), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

/* SECTION LINES */
section {
    position: relative
}

section::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ring), transparent);
    opacity: .6
}

/* CARDS */
.card {
    background: var(--card);
    border: 1px solid var(--ring);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
    backdrop-filter: saturate(120%) blur(2px)
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(2, 8, 23, .16)
}

/* CHIPS */
.chip {
    background: #e6f2ff;
    color: #0b3b6b;
    border: 1px solid #dbeafe;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .08)
}

/* BUTTONS */
.btn-primary,
a.btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, var(--indigo), var(--primary));
    color: #fff;
    font-weight: 600;
    padding: .85rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(14, 165, 233, .28);
    transform: translateZ(0);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: saturate(110%);
    box-shadow: 0 14px 30px rgba(14, 165, 233, .35)
}

.btn-ghost,
a.btn-ghost {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--ring);
    color: var(--primary-600);
    padding: .85rem 1.2rem;
    border-radius: 16px;
    transition: background .25s ease, transform .2s ease, border-color .25s ease
}

.btn-ghost:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    border-color: #bfdbfe
}

/* GALLERY */
.gallery {
    perspective: 900px
}

.gallery img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    transform: translateZ(0) rotateX(0deg);
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease
}

.gallery img:hover {
    transform: translateY(-6px) scale(1.03) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(2, 8, 23, .18);
    filter: saturate(108%)
}


/* Анимация "полет самолета" */
@keyframes planeFly {
  0% {
    transform: translateX(-40px) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(-20px) translateY(-10px) rotate(-2deg);
  }
  50% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  75% {
    transform: translateX(20px) translateY(10px) rotate(2deg);
  }
  100% {
    transform: translateX(-40px) translateY(0) rotate(0deg);
  }
}

.animate-plane-fly {
  animation: planeFly 6s ease-in-out infinite;
}

/* --- Requirements cards --- */
.req-card{
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;     /* одинаковая базовая высота */
  height: 100%;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
  will-change: transform;
}
.req-card::after{
  /* мягкое свечение по границе */
  content:"";
  position:absolute; inset:-1px;
  border-radius: 24px;
  pointer-events:none;
  opacity:0;
  transition: opacity .28s ease;
  background: radial-gradient(400px 200px at 100% 0%, rgba(14,165,233,.18), transparent 60%),
              radial-gradient(400px 200px at 0% 100%, rgba(37,99,235,.14), transparent 60%);
}
.req-card:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(2,8,23,.16);
  border-color: #bfdbfe;           /* sky-200 */
  background: rgba(255,255,255,.96);
}
.req-card:hover::after{ opacity:1; }

/* Иконка слева от заголовка */
.req-icon{
  display:inline-grid;
  place-items:center;
  width:40px; height:40px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--indigo), var(--primary));
  color:#fff;
  font-size:18px;
  transform: translateZ(0);
  transition: transform .28s ease, filter .28s ease;
  box-shadow: 0 8px 22px rgba(14,165,233,.25);
}
.req-card:hover .req-icon{
  transform: rotate(-4deg) scale(1.05);
  filter: saturate(115%);
}

/* Страховка на очень длинный текст — чтобы карточки ровно тянулись */
.req-card p{ margin-bottom:0 }

/* --- Duties cards (4-cols) --- */
.duty-card{
  position:relative;
  display:flex; flex-direction:column;
  min-height: 220px;   /* базовое выравнивание высоты */
  height:100%;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
  will-change: transform;
}
.duty-card::after{
  content:""; position:absolute; inset:-1px; border-radius:24px; pointer-events:none; opacity:0;
  transition:opacity .28s ease;
  background: radial-gradient(380px 180px at 100% 0%, rgba(14,165,233,.18), transparent 60%),
              radial-gradient(380px 180px at 0% 100%, rgba(37,99,235,.14), transparent 60%);
}
.duty-card:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(2,8,23,.16);
  border-color:#bfdbfe; /* sky-200 */
  background: rgba(255,255,255,.96);
}
.duty-card:hover::after{ opacity:1; }

/* Иконки карточек */
.duty-icon{
  display:inline-grid; place-items:center;
  width:40px; height:40px; border-radius:12px;
  background: linear-gradient(135deg, var(--indigo), var(--primary));
  color:#fff; font-size:18px;
  transform: translateZ(0);
  transition: transform .28s ease, filter .28s ease;
  box-shadow: 0 8px 22px rgba(14,165,233,.25);
}
.duty-card:hover .duty-icon{ transform: rotate(-4deg) scale(1.05); filter:saturate(115%); }

/* Анимация появления (стаггер) */
@keyframes popIn {
  0% { opacity:0; transform: translateY(12px) scale(.98); }
  100%{ opacity:1; transform: none; }
}
/* когда секция .reveal становится .show (твой скрипт уже добавляет .show) */
.reveal.show .duty-card { animation: popIn .5s ease forwards; }
.reveal.show .duty-card:nth-child(1){ animation-delay: .0s }
.reveal.show .duty-card:nth-child(2){ animation-delay: .05s }
.reveal.show .duty-card:nth-child(3){ animation-delay: .10s }
.reveal.show .duty-card:nth-child(4){ animation-delay: .15s }



/* === BENEFITS SECTION === */
#benefits{
  position:relative;
  overflow:visible;
  min-height:500px;
  display:flex;
  align-items:center;
}

/* Самолёт по центру вертикали */
.benefit-plane{
  position:absolute;
  left:-8%;
  top:50%;
  transform:translateY(-50%);
  width:720px;
  max-width:none;
  z-index:0;
  opacity:.9;
  pointer-events:none;
  filter:drop-shadow(0 12px 25px rgba(2,8,23,.15));
}
@media (max-width:1024px){
  .benefit-plane{width:550px;left:-14%;opacity:.85;}
}
@media (max-width:640px){
  .benefit-plane{display:none;}           /* прячем самолёт на мобайле */
}

/* Анимация полёта */
@keyframes planeFly{
  0%{transform:translateY(-50%) translateX(-30px) rotate(0)}
  25%{transform:translateY(calc(-50% - 10px)) translateX(-15px) rotate(-2deg)}
  50%{transform:translateY(-50%) translateX(0) rotate(0)}
  75%{transform:translateY(calc(-50% + 10px)) translateX(15px) rotate(2deg)}
  100%{transform:translateY(-50%) translateX(-30px) rotate(0)}
}
.animate-plane-fly{animation:planeFly 8s ease-in-out infinite}

/* Контент справа */
#benefits .benefits-wrapper{
  position:relative;
  z-index:1;
  margin-left:auto;
  width:90%;
  max-width:550px;
}
@media (max-width:640px){
  #benefits .benefits-wrapper{width:100%;max-width:100%;margin:0;}
}

/* Карточки + бейдж-галочка слева */
.benefit-card{
  position:relative;
  background:rgba(255,255,255,.96);
  border:2px solid #e2e8f0;
  border-radius:14px;
  padding:1rem 1.2rem 1rem 3.25rem; /* место под бейдж */
  font-weight:700;
  font-size:1.1rem;
  color:#1e293b;
  box-shadow:0 6px 20px rgba(2,8,23,.08);
  transition:all .3s ease;
  min-height:85px;
  display:flex;
  align-items:center;
}
.benefit-card:hover{
  border-color:#93c5fd;
  background:linear-gradient(0deg,rgba(219,234,254,.35),#fff);
  box-shadow:0 12px 28px rgba(14,165,233,.25);
  transform:translateY(-4px);
}

.benefit-badge{
  position:absolute; left:1rem; top:50%; transform:translateY(-50%);
  width:28px; height:28px; border-radius:10px;
  display:grid; place-items:center;
  font-size:.95rem; font-weight:800; color:#0a66c2;
  background:#fff; border:2px solid #cfe6ff;
  box-shadow:0 4px 12px rgba(14,165,233,.15);
}

/* Плавное появление карточек */
@keyframes popIn{0%{opacity:0;transform:translateY(10px) scale(.98)}100%{opacity:1;transform:none}}
.reveal.show .benefit-card{animation:popIn .6s ease forwards}
.reveal.show .benefit-card:nth-child(1){animation-delay:.05s}
.reveal.show .benefit-card:nth-child(2){animation-delay:.1s}
.reveal.show .benefit-card:nth-child(3){animation-delay:.15s}
.reveal.show .benefit-card:nth-child(4){animation-delay:.2s}





.program-wrapper {
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 10px 32px rgba(2, 8, 23, 0.08);
  overflow: hidden; /* добавили, чтобы линии не обрезались */
}

/* Используем CSS Grid вместо columns — стабильнее для псевдоэлементов */
.program-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
  row-gap: 0;
  counter-reset: program;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Элемент списка */
.program-list li {
  position: relative;
  padding: 14px 0 14px 48px;
  line-height: 1.55;
  font-weight: 500;
  color: #0f172a;
  display: flex;
  align-items: center;
  transition: color 0.2s ease, font-weight 0.2s ease, transform 0.2s ease;
  border-bottom: 1px solid #e2e8f0; /* добавляем границу снизу вместо ::after */
  min-height: 64px;
}

/* Последние в колонках без линии */
.program-list li:nth-child(7),
.program-list li:last-child {
  border-bottom: none;
}

/* Нумерация в кружке */
.program-list li::before {
  counter-increment: program;
  content: counter(program);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.25);
  z-index: 1; /* кружки поверх всего */
}

/* Hover эффект */
.program-list li:hover {
  font-weight: 700;
  color: #0b3b6b;
  transform: translateX(2px);
}

/* Адаптивность */
@media (max-width: 768px) {
  .program-list {
    grid-template-columns: 1fr;
  }
  .program-list li {
    border-bottom: 1px solid #e2e8f0;
  }
  .program-list li:last-child {
    border-bottom: none;
  }
}


/* Блок выпускников */
.graduate-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Пункт с галочкой */
.graduate-list li {
  position: relative;
  padding-left: 42px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.6;
  transition: all 0.25s ease;
}

/* Галочка */
.graduate-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 2px;
  color: #0ea5e9;
  font-weight: 800;
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Эффект при наведении */
.graduate-list li:hover {
  color: #0b3b6b;
  font-weight: 600;
  transform: translateX(3px);
}
.graduate-list li:hover::before {
  color: #2563eb;
  transform: scale(1.2);
}

/* Адаптивность */
@media (max-width: 768px) {
  #graduation {
    text-align: center;
  }
  .graduate-list li {
    padding-left: 36px;
  }
  .graduate-list li::before {
    left: 6px;
  }
  #graduation img {
    margin-top: 20px;
  }
}




/* --- Contact Section Unified --- */
.contact-box {
  background: rgba(255,255,255,0.96);
  border: 2px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(2,8,23,0.08);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contact-box:hover {
  border-color:#93c5fd;
  box-shadow:0 16px 40px rgba(14,165,233,.18);
}

/* Единые параметры для обеих сторон */
.contact-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #0f172a;
}
.contact-text {
  font-size: 1rem;
  line-height: 1.55;
  color: #334155;
}

/* Уравниваем высоту левой и правой части */
@media (min-width: 768px) {
  .contact-side {
    height: 100%;
  }
  .contact-box .grid {
    align-items: stretch;
  }
}

/* Inputs */
.input-field {
  border:1.6px solid #cbd5e1;
  border-radius:12px;
  padding:12px 14px;
  font-size:1rem;
  transition: all .25s ease;
}
.input-field:focus {
  outline:none;
  border-color:#0ea5e9;
  box-shadow:0 0 0 3px rgba(14,165,233,.18);
}

/* Button */
.submit-btn {
  background:linear-gradient(135deg,#2563eb,#0ea5e9);
  color:#fff;
  font-weight:700;
  border:none;
  border-radius:12px;
  padding:12px 16px;
  transition:all .3s ease;
  cursor:pointer;
}
.submit-btn:hover {
  background:linear-gradient(135deg,#0ea5e9,#0284c7);
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(14,165,233,.28);
}

/* Нижний блок trust + social */
.trust-social {
  background: rgba(255,255,255,0.96);
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(2,8,23,0.07);
}

/* Соц иконки */
.social-icon {
  width:44px;height:44px;
  display:grid;place-items:center;
  border-radius:50%;
  background:#f1f5f9;
  box-shadow:0 4px 10px rgba(2,8,23,.06);
  transition:transform .25s ease, filter .25s ease, background .25s ease;
}
.social-icon:hover {
  transform:translateY(-2px) scale(1.06);
  filter:saturate(115%);
}

/* Responsive */
@media (max-width:768px) {
  .contact-box { padding: 20px; }
  .contact-title { text-align: center; }
  .contact-text { text-align: center; }
  .trust-social { text-align: center; padding: 18px; }
}

/* ANIMATIONS */
@keyframes float{0%{transform:translateY(0)}50%{transform:translateY(-8px)}100%{transform:translateY(0)}}
.animate-float{animation:float 6s ease-in-out infinite}
.reveal{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
.reveal.show{opacity:1;transform:none}
.hero-glow{position:relative;isolation:isolate}
.hero-glow::after{
  background: radial-gradient(600px 240px at 100% 100%, rgba(14,165,233,.08), transparent 60%);
}

/* FORMS */
input,textarea{border:1px solid var(--ring);border-radius:14px;background:#fff;transition:border-color .2s ease,box-shadow .2s ease}
input:focus,textarea:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 4px rgba(59,130,246,.15)}
::placeholder{color:#94a3b8}
/* MOBILE */
@media (max-width:480px){
  h1{font-size:1.9rem}
  .btn-primary,.btn-ghost{width:100%;text-align:center}
}
/* UTILITIES */
.shadow-soft{box-shadow:var(--shadow)}
.blur-bg{backdrop-filter:blur(8px)}
.text-gradient{background:linear-gradient(90deg,var(--indigo),var(--primary));-webkit-background-clip:text;background-clip:text;color:transparent}
.border-fade{border:1px solid var(--ring)}
