/* ============================================================
   ABOUT PAGE — PREMIUM
   ============================================================ */

/* HERO орбы + переливающийся заголовок */
.about-hero { position: relative; overflow: hidden; }
.about-hero .gold-shine {
  background: linear-gradient(110deg,#D4AF37 20%,#fff5cc 45%,#D4AF37 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% auto; animation: goldShine 4s linear infinite;
}
@keyframes goldShine { to { background-position: 200% center; } }
.about-hero-orbs span { position:absolute; border-radius:50%; filter:blur(60px); opacity:.35; pointer-events:none; }
.about-hero-orbs span:nth-child(1){ width:320px;height:320px;background:#D4AF37;top:-80px;right:-60px;animation:floatOrb 9s ease-in-out infinite; }
.about-hero-orbs span:nth-child(2){ width:240px;height:240px;background:#1B6CA8;bottom:-60px;left:10%;animation:floatOrb 11s ease-in-out infinite reverse; }
.about-hero-orbs span:nth-child(3){ width:180px;height:180px;background:#D4AF37;top:40%;left:45%;opacity:.2;animation:floatOrb 13s ease-in-out infinite; }
@keyframes floatOrb { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-30px)} }

/* ---- МИССИЯ (стеклянная карточка) ---- */
.mission-wrap {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 60px 50px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(212,175,55,.18);
}
.mission-wrap::before {
  content:''; position:absolute; inset:0; border-radius:24px; padding:1px; z-index:1;
  background:linear-gradient(135deg,rgba(212,175,55,.6),transparent 40%,transparent 60%,rgba(212,175,55,.4));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none;
}
.mission-glow {
  position:absolute; top:-40%; right:-10%; width:500px; height:500px;
  background:radial-gradient(circle,rgba(212,175,55,.12),transparent 65%);
  filter:blur(30px); pointer-events:none;
}
.mission-inner { position:relative; z-index:2; text-align:center; max-width:820px; margin:0 auto; }
.mission-mark { font-size:44px; color:var(--gold); margin-bottom:20px; }
.mission-inner h2 {
  font-size:30px; font-weight:700; line-height:1.4; margin-bottom:18px;
}
.mission-inner h2 .gold { color:var(--gold); }
.mission-inner p { color:rgba(255,255,255,.68); font-size:16px; line-height:1.7; }

/* ---- ПРЕИМУЩЕСТВА (иконки в ряд) ---- */
.why-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.why-card {
  position:relative; padding:34px 30px; overflow:hidden;
  background:rgba(255,255,255,.03); border:1px solid rgba(212,175,55,.14); border-radius:20px;
  transition:transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.why-card:hover { transform:translateY(-8px); border-color:rgba(212,175,55,.4); box-shadow:0 24px 50px -20px rgba(0,0,0,.6); }
.why-ic {
  width:60px; height:60px; margin-bottom:20px; font-size:26px;
  display:flex; align-items:center; justify-content:center; border-radius:16px; color:var(--gold);
  background:linear-gradient(135deg,rgba(212,175,55,.16),rgba(212,175,55,.04));
  border:1px solid rgba(212,175,55,.2); transition:transform .4s, background .4s;
}
.why-ic svg { width:26px; height:26px; }
.why-card:hover .why-ic { transform:rotate(-8deg) scale(1.08); background:linear-gradient(135deg,#F0D48A,#D4AF37); color:var(--navy); }
.why-card h3 { font-size:19px; font-weight:600; margin-bottom:10px; }
.why-card p { color:rgba(255,255,255,.65); font-size:14px; line-height:1.6; margin:0; }

/* ============================================================
   СЕРТИФИКАТЫ — КОМПАКТНАЯ ГАЛЕРЕЯ-СЛАЙДЕР (горизонтальные)
   ============================================================ */
.cert-sec { position: relative; overflow: hidden; }

.cert-slider-wrap { position: relative; }

/* маска по краям — карточки плавно «растворяются», а не обрезаются */
.cert-viewport {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.cert-track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 6px 22px;
  scroll-behavior: smooth;
  cursor: grab;
  -ms-overflow-style: none; scrollbar-width: none;
}
.cert-track::-webkit-scrollbar { display: none; }
.cert-track.dragging { cursor: grabbing; scroll-behavior: auto; }

/* ── КОМПАКТНАЯ ГОРИЗОНТАЛЬНАЯ КАРТОЧКА ── */
.cert-card {
  position: relative; flex: 0 0 260px; scroll-snap-align: center;
  cursor: pointer; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(212,175,55,.18);
  background: linear-gradient(160deg,#14283f,#0a1523);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s, border-color .5s;
}
.cert-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(212,175,55,.5);
  box-shadow: 0 24px 48px rgba(0,0,0,.45), 0 0 32px rgba(212,175,55,.12);
}

/* превью теперь ГОРИЗОНТАЛЬНОЕ (4:3 — формат диплома/сертификата) */
.cert-thumb {
  position: relative; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(212,175,55,.2), #0f1e30 72%);
  overflow: hidden;
}
.cert-thumb .cert-emoji {
  font-size: 54px; z-index: 1;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.45));
  transition: transform .5s ease;
}
.cert-card:hover .cert-thumb .cert-emoji { transform: scale(1.1) rotate(-3deg); }

.cert-frame {
  position: absolute; inset: 12px; border: 1px solid rgba(212,175,55,.28);
  border-radius: 10px; pointer-events: none;
}
.cert-shine {
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: 2;
  background: linear-gradient(120deg,transparent,rgba(255,255,255,.22),transparent);
  transform: skewX(-20deg); transition: left .7s ease;
}
.cert-card:hover .cert-shine { left: 120%; }

.cert-zoom {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,27,42,.6); border: 1px solid rgba(212,175,55,.4); color: var(--gold);
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s;
}
.cert-card:hover .cert-zoom { opacity: 1; transform: scale(1); }
.cert-zoom svg { width: 16px; height: 16px; }

.cert-info { padding: 14px 16px 16px; border-top: 1px solid rgba(212,175,55,.12); }
.cert-info .cert-cat { color: var(--gold); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 4px; }
.cert-info h4 { font-size: 15px; font-weight: 600; line-height: 1.3; }

/* стрелки навигации */
.cert-nav { position: absolute; top: -66px; right: 0; display: flex; gap: 10px; }
.cert-btn {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(212,175,55,.35); background: rgba(255,255,255,.03); color: var(--gold);
  display: flex; align-items: center; justify-content: center; transition: .3s;
}
.cert-btn:hover { background: linear-gradient(135deg,#F0D48A,#D4AF37); color: var(--navy); transform: translateY(-2px); }
.cert-btn:disabled { opacity: .35; cursor: default; transform: none; background: rgba(255,255,255,.03); color: var(--gold); }
.cert-btn svg { width: 20px; height: 20px; }

/* точки-индикаторы */
.cert-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.cert-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: rgba(212,175,55,.25); transition: .3s;
}
.cert-dots button.active { background: linear-gradient(135deg,#F0D48A,#D4AF37); width: 22px; border-radius: 5px; }

/* ── ЛАЙТБОКС (горизонтальный) ── */
.cert-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,12,22,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
  padding: 30px;
}
.cert-lightbox.open { opacity: 1; visibility: visible; }
.clb-inner {
  position: relative; max-width: 620px; width: 100%;
  border-radius: 20px; overflow: hidden; border: 1px solid rgba(212,175,55,.4);
  background: linear-gradient(160deg,#14283f,#0a1523);
  transform: scale(.9) translateY(10px); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s ease;
}
.cert-lightbox.open .clb-inner { transform: scale(1) translateY(0); opacity: 1; }
.clb-thumb {
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  font-size: 120px; position: relative;
  background: radial-gradient(ellipse at 50% 40%, rgba(212,175,55,.22), #0f1e30 72%);
}
.clb-thumb .cert-frame { inset: 24px; }
.clb-info { padding: 22px 26px; text-align: center; border-top: 1px solid rgba(212,175,55,.15); }
.clb-info .cert-cat { color: var(--gold); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.clb-info h4 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.clb-info p { color: rgba(255,255,255,.6); font-size: 14px; }
.clb-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(212,175,55,.4); background: rgba(13,27,42,.6); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 22px; transition: .3s;
}
.clb-close:hover { background: linear-gradient(135deg,#F0D48A,#D4AF37); color: var(--navy); }
.clb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(212,175,55,.35); background: rgba(13,27,42,.55); color: var(--gold);
  display: flex; align-items: center; justify-content: center; transition: .3s;
}
.clb-arrow:hover { background: linear-gradient(135deg,#F0D48A,#D4AF37); color: var(--navy); }
.clb-arrow svg { width: 22px; height: 22px; }
.clb-prev { left: -70px; }
.clb-next { right: -70px; }

/* ── Адаптив ── */
@media (max-width:768px){
  .cert-card { flex-basis: 220px; }
  .cert-nav { position: static; justify-content: center; margin-bottom: 18px; }
  .cert-viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  }
  .clb-prev { left: 10px; }
  .clb-next { right: 10px; }
  .clb-arrow { width: 42px; height: 42px; }
}
@media (max-width:480px){
  .cert-card { flex-basis: 78vw; }
}