/* ========= Base ========= */
:root{
  --bg: #0d1117;
  --bg-2: #0b1220;
  --text: #e6edf3;
  --muted: #93a1b3;
  --accent: #6cd3ff;   /* голубой акцент */
  --primary: #ff2d77;  /* розовая кнопка */
  --card: #111827;
  --card-2: #0f172a;
  --border: #243041;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% 10%, rgba(108,211,255,.08), transparent 50%),
              radial-gradient(1200px 600px at 20% 40%, rgba(255,45,119,.05), transparent 50%),
              linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  line-height: 1.6;
}

/* containers */
.container{ width: min(1100px, 92%); margin-inline:auto; }

.section{ padding: 56px 0; }
.section-title{
  font-size: clamp(24px, 3.3vw, 40px);
  font-weight: 800;
  letter-spacing: .3px;
  margin: 0 0 18px;
}

/* text helpers */
.muted{ color: var(--muted); }

/* ========= Header ========= */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,15,25,.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.brand-top{ font-weight: 800; letter-spacing: .25em; font-size:12px; color: var(--muted); }
.brand-sub{ font-weight: 600; font-size:13px; color: var(--muted); margin-top:2px; }

.nav{ display:flex; gap:18px; }
.nav-link{ color: var(--muted); text-decoration:none; font-weight:600; }
.nav-link:hover{ color: var(--text); }

/* ========= Hero ========= */
.hero{ position: relative; padding: 72px 0 64px; overflow:hidden; }
.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 0.5; /* уменьшает только расстояние между строками */
  text-align: left;
  color: #fff;
  margin-top: 0; /* чтобы не поднималось выше */
  margin-bottom: 0; /* чтобы не сдвигалось вниз */
}



.accent{ color: var(--accent); }
.hero-lead{ color: var(--muted); font-size: clamp(16px, 2.5vw, 20px); margin: 12px 0 26px; max-width: 800px; }

.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 18px; border-radius:14px; text-decoration:none;
  font-weight: 700; border:1px solid transparent; box-shadow: var(--shadow);
}
.btn-sm{ padding:10px 14px; font-size:14px; }
.btn-primary{ background: var(--primary); color:#fff; }
.btn-primary:hover{ filter: brightness(1.07); }
.btn-ghost{
  color: var(--text);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover{ background: rgba(255,255,255,.06); }

/* glowing blobs */
.glow{ position:absolute; filter: blur(60px); opacity:.7; pointer-events:none; }
.glow-1{ width:420px; height:420px; right:-120px; top:-140px; background: radial-gradient(closest-side, rgba(108,211,255,.55), transparent); }
.glow-2{ width:420px; height:420px; left:-140px; bottom:-160px; background: radial-gradient(closest-side, rgba(255,45,119,.35), transparent); }

/* ========= Platforms row ========= */
.platforms{
  display:grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin: 18px 0 10px;
}
.platform{
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px;
}
.platform-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.platform-name{ font-size: 20px; font-weight: 700; }
.profile-link{ color: var(--muted); text-decoration:none; font-weight:600; }
.profile-link:hover{ color: var(--accent); }

/* ========= Accordion (details) ========= */
.acc{
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  border-radius: 14px; margin: 12px 0; padding: 0 0 6px;
}
.acc[open]{ padding-bottom: 12px; }
.acc-summary{
  list-style: none; cursor:pointer; padding: 16px 18px; font-weight:800; position:relative;
}
.acc-summary::-webkit-details-marker{ display:none; }
.acc-summary::after{
  content: "▸"; position:absolute; right:18px; top:50%; translate: 0 -50%;
  color: var(--muted); transition: transform .2s ease;
}
.acc[open] .acc-summary::after{ transform: rotate(90deg); }

/* ========= Cards ========= */
.cards{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 0 18px; }
/* ==== Двухколоночная сетка для сертификатов ==== */
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* две равные колонки */
  gap: 32px;
  border-left: 2px solid rgba(108, 211, 255, 0.3);
  border-right: 2px solid rgba(108, 211, 255, 0.3);
  padding: 20px 28px;
  position: relative;
}

/* Вертикальная линия-разделитель */
.certs-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(108,211,255,0.3), rgba(255,45,119,0.3));
  border-radius: 2px;
  transform: translateX(-1px);
}

/* Левая и правая колонка */
.certs-left, .certs-right {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Карточки остаются такими же */
.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(108,211,255,0.25);
  transform: translateY(-2px);
}

.cert-preview {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Адаптив */
@media (max-width: 900px) {
  .certs-grid {
    grid-template-columns: 1fr;  /* в одну колонку на телефонах */
  }
  .certs-grid::before {
    display: none;
  }
}


.card-title{ margin: 0 0 6px; font-size: 16px; font-weight:800; }
.card-desc{ margin: 0 0 12px; color: var(--muted); font-size: 14px; }

/* ========= Semester headings ========= */
.semester-title{
  font-size: 26px; margin: 28px 0 6px; font-weight:800; color: var(--accent);
}

/* ========= Contacts ========= */
.contacts{ display:flex; gap:10px; flex-wrap:wrap; }

/* ========= Footer ========= */
.site-footer{
  border-top:1px solid rgba(255,255,255,.06);
  padding: 18px 0 26px; margin-top: 30px;
  background: rgba(10,15,25,.4);
}
.footer-row{ display:flex; align-items:center; justify-content:space-between; }

/* ========= Responsive ========= */
@media (max-width: 760px){
  .platforms{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .hero{ padding: 56px 0 42px; }
  .btn{ width: 100%; }
}
/* ---- Фикс футера ---- */
/* Sticky footer */
html, body { height: 100%; }          /* важно */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;             /* вертикальная колонка */
}

.site-footer {                         /* твой футер */
  margin-top: auto;                   /* прижимает вниз */
}

/* если раньше ставили fixed — выключаем */
.site-footer {
  position: static !important;
  width: 100%;
}
/* 1) Hero всегда высокий – минимум на высоту экрана */
.hero{
  position: relative;
  min-height: 70vh;         /* можно 80vh, подбери */
  padding-bottom: 56px;     /* место для кнопок */
  overflow: hidden;
}

/* 2) Плавный "фейд" снизу hero, чтобы не было линии обрыва */
.hero::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:240px;
  pointer-events:none;
  /* подкрашиваем в основной фон страницы */
  background: linear-gradient(180deg, rgba(13,17,23,0) 0%, #0d1117 60%, #0d1117 100%);
}

/* 3) Убедимся, что фон ниже одинаковый и прозрачных "пробелов" нет */
.section{ background: transparent; }
.hero {
  position: relative;
  min-height: 85vh; /* было 70vh — теперь больше, чтобы тянулся выше */
  padding-bottom: 56px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0; 
  right: 0; 
  bottom: -1px;
  height: 320px; /* увеличил плавность перехода */
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(13, 17, 23, 0) 0%, 
    rgba(13, 17, 23, 0.8) 70%, 
    #0d1117 100%
  );
}
/* Фото сертификата внутри карточки */
.cert-preview{
  display:block;
  width:100%;
  max-width:320px;     /* не шире 320px */
  height:auto;         /* без искажений */
  margin:10px auto 14px; /* по центру */
  border-radius:10px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  object-fit:contain;
}
/* скрытый, но доступный заголовок */
.sr-only{
  position:absolute !important;
  width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* контейнер изображения */
.card-media{
  position: relative;
  margin: 10px 0 12px;
}

/* фото сертификата */
.cert-preview{
  display:block;
  width:100%;
  max-width:420px;      /* можно 320px если хочешь компактнее */
  height:auto;
  margin:0 auto;
  border-radius:10px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  object-fit:contain;
}

/* бейдж с названием на фото */
.cert-badge{
  position:absolute;
  left:12px; top:12px;
  padding:6px 10px;
  font-weight:800;
  font-size:14px;
  color:var(--text);
  background: rgba(15, 23, 42, .92);     /* тёмная подложка */
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow: var(--shadow);
  pointer-events:none;                   /* чтобы клики шли по картинке */
}

