:root{
  --bg:#070a16;
  --panel:#0b1226;
  --panel2:#0a1533;
  --text:#eef2ff;
  --muted:#a7b0c5;
  --muted2:#8b95ad;
  --line:rgba(255,255,255,.10);
  --line2:rgba(0,0,0,.08);
  --blue:#2f7bff;
  --blue2:#0aa6ff;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --r:18px;
  --r2:22px;
  --container: 1180px;
}
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  scroll-padding-top:80px;
}
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{max-width:var(--container); margin:0 auto; padding:0 18px}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,10,22,.62);
}
.topbar__line{
  width:100%;
  height:3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(37,99,235,.3) 20%, 
    rgba(10,166,255,.6) 50%, 
    rgba(37,99,235,.3) 80%, 
    transparent 100%
  );
  box-shadow: 0 0 20px rgba(37,99,235,.4);
  pointer-events:none;
}
.topbar__inner{
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  gap:28px; 
  padding:22px 0;
  position:relative;
  z-index:1;
}
.brand{
  display:flex; 
  align-items:center; 
  gap:16px;
  flex-shrink:0;
  position:relative;
  z-index:1;
}
.brand__logo{
  width:64px; 
  height:64px; 
  object-fit:contain; 
  display:block;
  flex-shrink:0;
}
.brand__logo--small{
  width:52px;
  height:52px;
}
.brand__mark{
  width:42px; height:42px; border-radius:14px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  display:grid; place-items:center; font-weight:800; letter-spacing:.5px;
  box-shadow: 0 10px 22px rgba(47,123,255,.25);
}
.brand__text{
  display:flex; 
  flex-direction:column; 
  line-height:1.25;
  gap:4px;
}
.brand__name{
  font-weight:800; 
  font-size:20px;
  letter-spacing:-0.4px;
  background: linear-gradient(135deg, #fff, #0aa6ff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.brand__tag{
  font-size:13px; 
  background: linear-gradient(135deg, rgba(238,242,255,.9), #0aa6ff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  font-weight:600;
  letter-spacing:0.1px;
}
.brand--small .brand__mark{width:36px;height:36px;border-radius:12px}
.brand--small .brand__tag{opacity:.8}
.brand--small .brand__name{font-size:16px}
.brand--small .brand__tag{font-size:11px}

.nav{
  display:flex; 
  gap:28px; 
  align-items:center;
  flex:1;
  justify-content:center;
}
.nav__link{
  color:rgba(238,242,255,.92); 
  font-weight:800; 
  font-size:17px; 
  padding:12px 20px; 
  border-radius:12px;
  transition:all .2s ease;
  white-space:nowrap;
  letter-spacing:-0.1px;
}
.nav__link:hover{
  background:rgba(255,255,255,.1);
  color:#fff;
}

.topbar__actions{
  display:flex; 
  gap:10px; 
  align-items:center;
  flex-shrink:0;
}
.topbar__actions .btn{
  font-size:13px;
  padding:10px 16px;
  font-weight:600;
}
.burger{display:none; width:44px; height:44px; border-radius:14px; border:1px solid var(--line); background:rgba(255,255,255,.04)}
.burger span{display:block; height:2px; width:20px; margin:5px auto; background:rgba(238,242,255,.9); border-radius:2px}

.mobile{display:none; border-top:1px solid var(--line); padding:10px 18px 14px}
.mobile__link{display:block; padding:12px 10px; border-radius:14px; color:rgba(238,242,255,.92); font-weight:650}
.mobile__link:hover{background:rgba(255,255,255,.06)}
.mobile.is-open{display:block}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:14px 28px; border-radius:10px;
  border:2px solid transparent; cursor:pointer;
  font-weight:600; font-size:15px;
  transition:all .2s ease;
  user-select:none;
  white-space:nowrap;
  color:#fff;
  text-decoration:none;
}
.btn:active{transform:translateY(1px)}
.btn--primary{
  background: linear-gradient(135deg, #2563eb, #0aa6ff);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(37,99,235,.4), 0 0 20px rgba(10,166,255,.2);
  color:#fff;
  position:relative;
  overflow:hidden;
}
.btn--primary::before{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition:left .5s ease;
  pointer-events:none;
}
.btn--primary:hover::before{
  left:100%;
}
.btn--primary:hover{
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  box-shadow: 0 6px 30px rgba(37,99,235,.5), 0 0 30px rgba(10,166,255,.3);
  transform:translateY(-2px);
}
.btn--ghost{
  background:linear-gradient(135deg, 
    rgba(255,255,255,.08) 0%,
    rgba(255,255,255,.04) 50%,
    rgba(255,255,255,.08) 100%
  );
  border:1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color:#fff;
  position:relative;
  overflow:hidden;
  box-shadow:
    0 8px 32px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -1px 0 rgba(255,255,255,.1),
    0 0 0 1px rgba(255,255,255,.1);
}
.btn--ghost::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(90deg, 
    transparent,
    rgba(255,255,255,.4),
    transparent
  );
  pointer-events:none;
}
.btn--ghost::after{
  content:'';
  position:absolute;
  top:0;
  left:-100%;
  width:50%;
  height:100%;
  background:linear-gradient(90deg, 
    transparent,
    rgba(255,255,255,.2),
    transparent
  );
  transform:skewX(-20deg);
  transition:left .6s ease;
  pointer-events:none;
}
@keyframes ghost-shine{
  0%, 100%{left:-100%; opacity:0}
  50%{left:150%; opacity:1}
}
.btn--ghost:hover{
  background:linear-gradient(135deg, 
    rgba(255,255,255,.12) 0%,
    rgba(255,255,255,.06) 50%,
    rgba(255,255,255,.12) 100%
  );
  border-color:rgba(255,255,255,.4);
  box-shadow:
    0 12px 40px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -1px 0 rgba(255,255,255,.15),
    0 0 0 1px rgba(255,255,255,.15);
  transform:translateY(-2px);
}
.btn--lg{padding:16px 32px; border-radius:10px; font-size:16px; font-weight:600}
.w-100{width:100%}

/* Бегающий блик только для конкретных кнопок */
.topbar__actions .btn--primary::before{
  animation:primary-shine 3s ease-in-out infinite;
  transition:none;
}
@keyframes primary-shine{
  0%, 100%{left:-100%; opacity:0}
  50%{left:100%; opacity:1}
}

/* Hero */
.hero{position:relative; min-height: 84vh; display:flex; align-items:flex-start; padding:80px 0 36px; overflow:hidden}
.hero__bg{
  position:absolute; inset:0;
  background-image:url('../img/hero-bg.jpeg');
  background-size:cover; background-position:center;
  transform:scale(1.02);
}
.hero__overlay{position:absolute; inset:0; background: radial-gradient(900px 520px at 20% 20%, rgba(47,123,255,.22), transparent 55%), linear-gradient(180deg, rgba(7,10,22,.35), rgba(7,10,22,.92));}
.hero__content{position:relative; z-index:2; display:grid; grid-template-columns: 1.3fr .9fr; gap:28px; align-items:start; margin-top:20px}

.pill{display:inline-flex; gap:10px; align-items:center; padding:8px 12px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.08); color:#fff; font-weight:600; font-size:13px}
.pill__dot{width:8px; height:8px; border-radius:999px; background: #2cffb2; box-shadow:0 0 0 6px rgba(44,255,178,.12)}

h1{font-size:68px; line-height:1.08; margin:18px 0 16px; letter-spacing:-.8px; font-weight:800; color:#fff; text-shadow: 0 2px 12px rgba(0,0,0,.3)}
.lead{color:#fff; font-size:18px; line-height:1.7; max-width:60ch; font-weight:400; text-shadow: 0 1px 8px rgba(0,0,0,.2)}
.hero__cta{display:flex; flex-wrap:wrap; gap:14px; margin:24px 0 24px}

.hero__stats{display:flex; gap:14px; flex-wrap:wrap; margin-top:10px}
.stat{
  padding:14px 16px; 
  border:1px solid rgba(37,99,235,.3); 
  border-radius:16px; 
  background:rgba(37,99,235,.08); 
  backdrop-filter: blur(10px);
  position:relative;
  overflow:hidden;
  box-shadow: 0 4px 16px rgba(37,99,235,.15), inset 0 0 20px rgba(10,166,255,.1);
}
.stat::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:2px;
  background:linear-gradient(90deg, transparent, #0aa6ff, transparent);
  animation:stat-pulse 2s ease-in-out infinite;
}
@keyframes stat-pulse{
  0%, 100%{opacity:.5}
  50%{opacity:1}
}
.stat__value{
  font-size:22px; 
  font-weight:900; 
  color:#fff;
  text-shadow: 0 0 10px rgba(10,166,255,.5);
}
.stat__label{
  font-size:12px; 
  color:rgba(255,255,255,.9); 
  font-weight:600;
  letter-spacing:0.5px;
}

.glass{border-radius:var(--r2); border:1px solid rgba(255,255,255,.2); background:rgba(11,18,38,.88); backdrop-filter: blur(20px); box-shadow:var(--shadow); overflow:hidden}
.glass__head{padding:16px 18px; font-weight:700; font-size:15px; border-bottom:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.08); color:#fff}
.glass__body{padding:18px}

.field{display:flex; flex-direction:column; gap:8px; margin-bottom:14px}
.field span{font-size:13px; font-weight:600; color:#fff}
.field input, .field textarea{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
  padding:14px 14px;
  border-radius:12px;
  outline:none;
  font-size:14px;
  transition:all .2s ease;
}
.field input::placeholder, .field textarea::placeholder{color:rgba(255,255,255,.6)}
.field input:focus, .field textarea:focus{
  border-color: rgba(37,99,235,.8); 
  box-shadow:0 0 0 4px rgba(37,99,235,.2);
  background:rgba(255,255,255,.15);
}
.field select{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
  padding:14px 40px 14px 14px;
  border-radius:12px;
  outline:none;
  font-size:14px;
  cursor:pointer;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  background-size:12px;
  transition:all .2s ease;
}
.field select:hover{
  background-color:rgba(255,255,255,.15);
  border-color:rgba(255,255,255,.3);
}
.field select:focus{
  border-color: rgba(37,99,235,.8); 
  box-shadow:0 0 0 4px rgba(37,99,235,.2);
  background-color:rgba(255,255,255,.15);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field select option{
  background:#1a1f2e;
  color:#fff;
  padding:12px;
}
.hint{font-size:11px; color:rgba(255,255,255,.7); font-weight:400}
.mini-form__note{margin:12px 0 0; font-size:11px; color:rgba(255,255,255,.7); line-height:1.5}

.scroll{position:absolute; left:50%; transform:translateX(-50%); bottom:14px; z-index:3; display:flex; flex-direction:column; align-items:center; gap:8px; opacity:.9}
.scroll__mouse{width:22px; height:34px; border-radius:999px; border:1px solid rgba(238,242,255,.42); position:relative}
.scroll__mouse::after{content:""; position:absolute; left:50%; top:8px; transform:translateX(-50%); width:4px; height:4px; border-radius:999px; background:rgba(238,242,255,.78); animation:wheel 1.4s infinite}
.scroll__text{font-size:11px; color:rgba(238,242,255,.72)}
@keyframes wheel{0%{opacity:0; transform:translate(-50%,0)} 25%{opacity:1} 100%{opacity:0; transform:translate(-50%,10px)}}

/* Sections */
.section{padding:72px 0; background:#fff; color:#0b1020}
.section--alt{background:#f6f8ff}
.section--dark{background:linear-gradient(180deg, #070a16, #08112a)}
.section__head{margin-bottom:22px}
.section__head--row{display:flex; align-items:flex-end; justify-content:space-between; gap:16px}
.section h2{font-size:34px; margin:0 0 10px}
.muted{color:var(--muted2); margin:0; line-height:1.6}
.muted--on-dark{color:rgba(238,242,255,.72)}

.grid{display:grid; gap:16px}
.grid--4{grid-template-columns:repeat(4, minmax(0,1fr))}
.grid--3{grid-template-columns:repeat(3, minmax(0,1fr))}
.grid--2{grid-template-columns:repeat(2, minmax(0,1fr))}

.card{background:#fff; border:1px solid var(--line2); border-radius:var(--r2); padding:18px; box-shadow: 0 10px 30px rgba(8,17,42,.06)}
.card--icon .icon{font-size:22px}
.card--icon h3{margin:10px 0 6px}
.card--icon p{margin:0; color:#5d6681; line-height:1.6}

/* About Section */
.section--about{padding:100px 0}
.section__head--about{margin-bottom:60px}
.about-intro{
  width:100%;
  margin:32px 0 0;
}
.about-intro__text{
  font-size:18px; 
  line-height:1.8; 
  color:#5d6681; 
  margin:0 0 24px;
  max-width:100%;
}
.about-intro__text:last-child{
  margin-bottom:0;
}

.about-features{
  display:grid; 
  grid-template-columns:repeat(4, minmax(0,1fr)); 
  gap:28px; 
  margin-bottom:80px;
}
.card--feature{
  padding:32px 28px; 
  display:flex; 
  flex-direction:column;
  transition:transform .2s ease, box-shadow .2s ease;
}
.card--feature:hover{
  transform:translateY(-4px);
  box-shadow: 0 16px 40px rgba(8,17,42,.12);
}
.card__icon{
  font-size:48px; 
  margin-bottom:20px;
  line-height:1;
}
.card--feature h3{
  font-size:22px; 
  font-weight:700; 
  margin:0 0 16px; 
  color:#0b1020;
  line-height:1.3;
}
.card--feature p{
  font-size:15px; 
  line-height:1.7; 
  color:#5d6681; 
  margin:0;
  flex:1;
}

.about-stats{
  display:flex; 
  justify-content:center; 
  gap:60px; 
  padding:60px 40px; 
  background:#f6f8ff; 
  border-radius:28px; 
  margin-top:60px;
}
.about-stats__item{
  text-align:center;
  flex:1;
  max-width:280px;
}
.about-stats__value{
  font-size:48px; 
  font-weight:800; 
  color:#2563eb; 
  margin-bottom:12px;
  line-height:1.1;
}
.about-stats__label{
  color:#5d6681; 
  font-size:15px; 
  font-weight:600;
  line-height:1.4;
}

/* Courses */
.seg{display:flex; gap:8px; padding:6px; border-radius:18px; border:1px solid var(--line2); background:#fff}
.seg__btn{border:0; background:transparent; padding:10px 12px; border-radius:14px; font-weight:800; cursor:pointer; color:#2a3350}
.seg__btn.is-active{background:rgba(47,123,255,.10); color:#1a3f8f}

.courses{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:28px}

/* ── Course cards — точное воспроизведение Image 1 ── */
.course{
  background:#fff;
  border-radius:4px;
  overflow:hidden;
  box-shadow: 0 2px 12px rgba(8,17,42,.08);
  display:flex;
  flex-direction:column;
  transition: box-shadow .25s ease, transform .25s ease;
  border: 1px solid #e5e7eb;
}
.course:hover{
  box-shadow: 0 8px 32px rgba(8,17,42,.14);
  transform: translateY(-3px);
}
@keyframes cyber-shine{
  0%{background-position:200% 0}
  100%{background-position:-200% 0}
}

/* Фото — обрезанное, точно как в референсе */
.course img{
  height:200px;
  width:100%;
  object-fit:cover;
  display:block;
}

/* Тело карточки */
.course__body{
  padding:20px 20px 24px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.course__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

/* Заголовок — жирный, тёмный, крупный, как в Image 1 */
.course h3{
  margin:0 0 4px;
  font-size:24px;
  font-weight:700;
  color:#111827;
  line-height:1.2;
  -webkit-text-fill-color:#111827;
  background:none;
}

/* Badge */
.badge{
  font-size:11px;
  font-weight:700;
  padding:3px 9px;
  border-radius:4px;
  background:rgba(37,99,235,.09);
  color:#1d4ed8;
  border:1px solid rgba(37,99,235,.18);
  white-space:nowrap;
  flex-shrink:0;
  margin-top:4px;
}
.badge--kids{
  background:rgba(16,185,129,.09);
  color:#047857;
  border-color:rgba(16,185,129,.22);
}
.badge--pro{
  background:rgba(168,85,247,.09);
  color:#7c3aed;
  border-color:rgba(168,85,247,.22);
}

/* Описание — серый, как в референсе */
.course__desc{
  margin:6px 0 0;
  color:#6b7280;
  font-size:14px;
  line-height:1.6;
}

/* Большой пустой отступ между описанием и ценой — характерно для Image 1 */
.course__spacer{
  flex:1;
  min-height:32px;
}

/* Price / Duration блок — точно как в Image 1 */
.course__meta{
  display:flex;
  gap:32px;
  margin:24px 0 20px;
}
.course__meta > div{
  display:flex;
  flex-direction:column;
  gap:1px;
}
.course__meta span{
  display:block;
  font-size:12px;
  color:#9ca3af;
  font-weight:400;
  letter-spacing:0;
  text-transform:none;
}
.course__meta b{
  font-size:15px;
  color:#111827;
  font-weight:700;
  line-height:1.4;
  white-space:nowrap;
}

.ref{margin-top:18px}
.ref summary{cursor:pointer; font-weight:850}
.ref img{margin-top:10px; border-radius:18px; border:1px solid var(--line2)}

/* Кнопка "Узнать о курсе" — синяя, НЕ на всю ширину, левое выравнивание — как в Image 1 */
.btn--course{
  display:inline-flex;
  align-items:center;
  padding:12px 28px;
  border-radius:6px;
  border:none;
  background:#2563eb;
  color:#fff;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition: background .18s ease, box-shadow .18s ease;
  text-decoration:none;
  align-self:flex-start;
}
.btn--course:hover{
  background:#1d4ed8;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
}

/* Teachers */
.tcard{display:grid; grid-template-columns: 180px 1fr; gap:14px; border-radius:24px; overflow:hidden; border:1px solid var(--line2); background:#fff; box-shadow: 0 12px 40px rgba(8,17,42,.07)}
.tcard__img{width:100%; height:100%; object-fit:cover; min-height:240px}
.tcard__body{padding:16px}
.tcard__body h3{margin:0 0 8px}
.list{margin:10px 0 0; padding-left:18px; color:#5d6681; line-height:1.7}

/* Lead form — dark navy design matching Images 2-3 */
.leadform-wrapper{
  max-width: 860px;
  margin: 0 auto;
}
.section__head--center{
  text-align:center;
  margin-bottom:40px;
}
.section__head--center h2{
  color:#fff;
  margin-bottom:12px;
}
.section--dark{
  background: #07091a;
}
.section--dark h2{
  color:#fff;
}
.leadform{
  background: #0b0f2a;
  border-radius: 20px;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.leadform .field{
  display:flex;
  flex-direction:column;
  gap:0;
  width:100%;
}
.leadform .field span{
  display:none; /* hidden labels — placeholders act as labels like in reference */
}
.leadform input,
.leadform select,
.leadform textarea{
  width:100%;
  background: #111530;
  border: 1px solid #1e2548;
  border-radius: 14px;
  padding: 18px 22px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.leadform input::placeholder,
.leadform textarea::placeholder{
  color: rgba(255,255,255,.28);
}
.leadform input:focus,
.leadform select:focus,
.leadform textarea:focus{
  border-color: #3b5bdb;
  background: #141836;
}
.leadform select{
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' 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 18px center;
  padding-right: 50px;
}
.leadform select option{
  background: #111530;
  color: #fff;
}
.leadform textarea{
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
.leadform .hint{
  display:none;
}
.leadform__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.leadform__actions{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.leadform__actions .btn--primary{
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  background: #3b5bdb;
  border: none;
  box-shadow: 0 4px 24px rgba(59,91,219,.4);
}
.leadform__actions .btn--primary:hover{
  background: #2f4dc4;
  box-shadow: 0 8px 32px rgba(59,91,219,.5);
}
.leadform__note{
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.3);
  line-height: 1.6;
  text-align: center;
}
.formmsg{
  font-weight:600;
  font-size:14px;
  color: rgba(100,220,160,.9);
  text-align:center;
}

/* Contacts */
.section--contacts{
  background:#f6f8ff;
}

.contacts-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  margin-top:40px;
}

.contact-card{
  border:2px solid transparent;
  border-radius:24px;
  padding:0;
  background:#fff;
  box-shadow: 0 12px 40px rgba(8,17,42,.07);
  overflow:hidden;
  position:relative;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, rgba(37,99,235,.1), rgba(10,166,255,.1), rgba(37,99,235,.1)) border-box;
}
.contact-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg, #2563eb, #0aa6ff, #2563eb);
  background-size:200% 100%;
  animation:cyber-shine 3s linear infinite;
  opacity:0;
  transition:opacity .3s ease;
}
.contact-card:hover::before{
  opacity:1;
}
.contact-card__header{
  padding:24px 28px;
  border-bottom:1px solid rgba(37,99,235,.1);
}
.contact-card__header h3{
  margin:0;
  font-size:24px;
  font-weight:800;
  background:linear-gradient(135deg, #0b1020, #1a3f8f);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.contact-card__body{
  padding:28px;
}
.contact-item{
  display:flex;
  gap:16px;
  margin-bottom:24px;
  align-items:flex-start;
}
.contact-item:last-child{
  margin-bottom:0;
}
.contact-item__icon{
  font-size:24px;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(37,99,235,.1), rgba(10,166,255,.1));
  border:1px solid rgba(37,99,235,.2);
  border-radius:12px;
  flex-shrink:0;
}
.contact-item__content{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}
.contact-item__label{
  font-size:12px;
  font-weight:700;
  color:#7c86a3;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
.contact-item__value{
  font-size:16px;
  font-weight:600;
  color:#0b1020;
  line-height:1.4;
}
.contact-item__link{
  color:#2563eb;
  text-decoration:none;
  transition:all .2s ease;
}
.contact-item__link:hover{
  color:#0aa6ff;
}
.contact-card__actions{
  display:flex;
  gap:12px;
  padding:24px 28px;
  border-top:1px solid rgba(37,99,235,.1);
}
.contact-card__actions .btn--ghost{
  background:linear-gradient(135deg, 
    rgba(37,99,235,.08) 0%,
    rgba(10,166,255,.04) 50%,
    rgba(37,99,235,.08) 100%
  );
  border:1px solid rgba(37,99,235,.25);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color:#2563eb;
  box-shadow:
    0 8px 32px rgba(37,99,235,.1),
    inset 0 1px 0 rgba(37,99,235,.2),
    inset 0 -1px 0 rgba(10,166,255,.1),
    0 0 0 1px rgba(37,99,235,.1);
  position:relative;
  z-index:1;
}
.contact-card__actions .btn--ghost::before{
  background:linear-gradient(90deg, 
    transparent,
    rgba(37,99,235,.4),
    transparent
  );
}
.contact-card__actions .btn--ghost::after{
  background:linear-gradient(90deg, 
    transparent,
    rgba(37,99,235,.2),
    transparent
  );
  animation:ghost-shine 3s ease-in-out infinite;
  transition:none;
}
.contact-card__actions .btn--ghost:hover{
  background:linear-gradient(135deg, 
    rgba(37,99,235,.12) 0%,
    rgba(10,166,255,.06) 50%,
    rgba(37,99,235,.12) 100%
  );
  border-color:rgba(37,99,235,.4);
  color:#1d4ed8;
  box-shadow:
    0 12px 40px rgba(37,99,235,.2),
    inset 0 1px 0 rgba(37,99,235,.3),
    inset 0 -1px 0 rgba(10,166,255,.15),
    0 0 0 1px rgba(37,99,235,.15);
}

.map-card{
  border:2px solid transparent;
  border-radius:24px;
  padding:0;
  background:#fff;
  box-shadow: 0 12px 40px rgba(8,17,42,.07);
  overflow:hidden;
  position:relative;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, rgba(37,99,235,.1), rgba(10,166,255,.1), rgba(37,99,235,.1)) border-box;
  display:flex;
  flex-direction:column;
}
.map-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg, #2563eb, #0aa6ff, #2563eb);
  background-size:200% 100%;
  animation:cyber-shine 3s linear infinite;
  opacity:0;
  transition:opacity .3s ease;
  z-index:1;
}
.map-card:hover::before{
  opacity:1;
}
.map-wrapper{
  position:relative;
  width:100%;
  height:100%;
  min-height:400px;
  overflow:hidden;
  border-radius:24px;
}
.map-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Footer */
.footer{background:#070a16; color:rgba(238,242,255,.85); border-top:1px solid var(--line); padding:18px 0}
.footer__inner{display:flex; align-items:center; justify-content:space-between; gap:16px}
.footer__right{display:flex; gap:14px; flex-wrap:wrap}
.footer__right a{padding:8px 10px; border-radius:14px; color:rgba(238,242,255,.8)}
.footer__right a:hover{background:rgba(255,255,255,.06)}

/* Toast */
.toast{
  position:fixed; right:16px; bottom:16px; z-index:99;
  min-width: 240px; max-width: 340px;
  background: rgba(11,18,38,.92);
  border:1px solid var(--line);
  border-radius:18px;
  padding:12px 14px;
  box-shadow:var(--shadow);
  opacity:0; transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}
.toast.is-show{opacity:1; transform: translateY(0)}

/* Responsive */
@media (max-width: 980px){
  .nav{display:none}
  .burger{display:inline-block}
  .topbar{border-bottom-width:3px}
  .topbar__inner{gap:12px; padding:18px 0}
  .topbar__actions .btn{font-size:12px; padding:8px 14px}
  .brand__logo{width:56px; height:56px}
  .brand__name{font-size:18px}
  .brand__tag{font-size:12px}
  .hero{padding:60px 0 36px}
  .hero__content{grid-template-columns: 1fr; margin-top:10px}
  h1{font-size:42px; line-height:1.15}
  .lead{font-size:16px}
  .grid--4{grid-template-columns:repeat(2, minmax(0,1fr))}
  .grid--3{grid-template-columns:repeat(3, minmax(0,1fr))}
  .section--about{padding:80px 0}
  .section__head--about{margin-bottom:50px}
  .about-features{grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px; margin-bottom:60px}
  .about-stats{flex-direction:column; gap:40px; padding:50px 30px}
  .about-stats__item{max-width:100%}
  .about-stats__value{font-size:42px}
  .courses{grid-template-columns:repeat(2, minmax(0,1fr))}
  .leadform{padding:32px 28px}
}
@media (max-width: 640px){
  .topbar{border-bottom-width:3px}
  .topbar__inner{gap:8px; padding:16px 0}
  .topbar__actions{gap:6px}
  .topbar__actions .btn{font-size:11px; padding:8px 12px}
  .topbar__actions .btn--ghost{display:none}
  .brand{gap:12px}
  .brand__logo{width:48px; height:48px}
  .brand__name{font-size:16px}
  .brand__tag{font-size:11px}
  .hero{min-height:auto; padding:50px 0 28px}
  .hero__content{margin-top:0}
  h1{font-size:36px; line-height:1.2; margin:14px 0 12px}
  .lead{font-size:15px; line-height:1.6}
  .hero__cta{flex-direction:column}
  .hero__cta .btn{width:100%}
  .grid--2{grid-template-columns:1fr}
  .grid--3{grid-template-columns:1fr}
  .grid--4{grid-template-columns:1fr}
  .section--about{padding:60px 0}
  .section__head--about{margin-bottom:40px}
  .about-intro__text{font-size:16px; line-height:1.7}
  .about-features{grid-template-columns:1fr; gap:20px; margin-bottom:50px}
  .card--feature{padding:28px 24px}
  .card__icon{font-size:40px; margin-bottom:16px}
  .card--feature h3{font-size:20px; margin-bottom:12px}
  .card--feature p{font-size:14px}
  .about-stats{padding:40px 24px; gap:32px; margin-top:50px}
  .about-stats__value{font-size:36px}
  .about-stats__label{font-size:14px}
  .courses{grid-template-columns:1fr}
  .contacts-grid{grid-template-columns:1fr; gap:20px}
  .tcard{grid-template-columns:1fr}
  .tcard__img{min-height:180px}
  .leadform{padding:28px 20px}
  .leadform__row{grid-template-columns:1fr}
  .leadform__actions{flex-direction:column; align-items:stretch}
  .card__actions{flex-direction:column}
}

/* ===== Certificate Check Section ===== */
.cert-section{
  background: var(--bg);
  padding: 80px 0;
}
.cert-box{
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(10,166,255,.06));
  border: 1px solid rgba(37,99,235,.25);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cert-box::before{
  content:'';
  position:absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, transparent, #2563eb, #0aa6ff, transparent);
}
.cert-box h2{margin-top:0; margin-bottom:10px}
.cert-box .muted{margin-bottom:32px}
.cert-input-row{
  display:flex; gap:12px; flex-wrap:wrap;
}
.cert-input-row input{
  flex:1; min-width:180px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline:none;
  transition: border-color .2s;
}
.cert-input-row input:focus{border-color: #2563eb;}
.cert-input-row input::placeholder{color:rgba(255,255,255,.35)}
.cert-result{
  margin-top: 28px;
  display:none;
}
.cert-result.is-show{display:block}
.cert-result img{
  width:100%; max-width:540px;
  border-radius: 16px;
  border: 2px solid rgba(37,99,235,.35);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  margin: 0 auto;
}
.cert-result__name{
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}
.cert-error{
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
  font-size: 15px;
  display:none;
}
.cert-error.is-show{display:block}
.cert-badge{
  display:inline-flex; align-items:center; gap:8px;
  background: rgba(44,255,178,.1); border:1px solid rgba(44,255,178,.25);
  border-radius:999px; padding:6px 16px;
  color:#2cffb2; font-size:13px; font-weight:600;
  margin-bottom:20px;
}

/* Badge for new course types */
.badge--pro{
  background:linear-gradient(135deg, rgba(168,85,247,.3), rgba(139,92,246,.2));
  color:#c084fc;
  border:1px solid rgba(168,85,247,.4);
  font-size:11px; font-weight:700; letter-spacing:.3px;
  padding:3px 9px; border-radius:6px;
}

/* ═══ News cards on main page ═══ */
.news-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.news-card-main {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(8,17,42,.07);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37,99,235,.14);
}
.news-card-main__img-wrap { overflow: hidden; height: 180px; }
.news-card-main__img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .4s; }
.news-card-main:hover .news-card-main__img { transform: scale(1.04); }
.news-card-main__img-placeholder {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 40px; background: linear-gradient(135deg, #dbeafe, #eff6ff);
}
.news-card-main__body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-card-main__meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.news-card-main__cat {
  background: rgba(37,99,235,.09); color: #1d4ed8;
  border: 1px solid rgba(37,99,235,.18);
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 5px; white-space: nowrap;
}
.news-card-main__date { font-size: 12px; color: #9ca3af; }
.news-card-main__title {
  font-size: 17px; font-weight: 700; color: #111827;
  margin: 0 0 6px; line-height: 1.3;
  -webkit-text-fill-color: #111827; background: none;
}
.news-card-main__excerpt {
  font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0; flex: 1;
}

/* cert-result name styling update */
.cert-result__name strong { color: #fff; font-size: 17px; }

@media (max-width: 900px) { .news-main-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-main-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════════ */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  font-family: inherit;
  backdrop-filter: blur(8px);
}
.lang-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.32);
}
.lang-btn .flag {
  font-size: 18px;
  line-height: 1;
}
.lang-btn .lang-code {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  color: rgba(238,242,255,.9);
}
.lang-btn .arrow {
  font-size: 9px;
  opacity: .6;
  transition: transform .18s;
}
.lang-switcher.open .lang-btn .arrow {
  transform: rotate(180deg);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(11,18,38,.97);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: all .18s cubic-bezier(.4,0,.2,1);
  z-index: 200;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .14s;
  text-decoration: none;
  color: rgba(238,242,255,.85);
  font-size: 14px;
  font-weight: 600;
}
.lang-option:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.lang-option.active {
  background: rgba(37,99,235,.2);
  color: #60a5fa;
}
.lang-option .flag {
  font-size: 20px;
  flex-shrink: 0;
}
.lang-option .lang-name {
  flex: 1;
}
.lang-option .check {
  font-size: 12px;
  color: #60a5fa;
  opacity: 0;
}
.lang-option.active .check {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════════ */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  font-family: inherit;
  backdrop-filter: blur(8px);
  letter-spacing: .3px;
}
.lang-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-1px);
}
.lang-btn .flag {
  font-size: 19px;
  line-height: 1;
  flex-shrink: 0;
}
.lang-btn .lang-code {
  font-size: 12px;
  font-weight: 800;
  color: rgba(238,242,255,.92);
  letter-spacing: .5px;
}
.lang-btn .arrow {
  font-size: 8px;
  opacity: .55;
  transition: transform .2s ease;
  margin-left: 1px;
}
.lang-switcher.open .lang-btn {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
}
.lang-switcher.open .lang-btn .arrow {
  transform: rotate(180deg);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  min-width: 164px;
  background: rgba(9,15,32,.97);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 20px 52px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(24px);
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  pointer-events: none;
  transition: opacity .18s cubic-bezier(.4,0,.2,1), transform .18s cubic-bezier(.4,0,.2,1);
  z-index: 200;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .14s;
  text-decoration: none;
  color: rgba(238,242,255,.8);
  font-size: 14px;
  font-weight: 600;
}
.lang-option:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.lang-option.active {
  background: rgba(37,99,235,.18);
  color: #93c5fd;
}
.lang-option .flag {
  font-size: 20px;
  flex-shrink: 0;
}
.lang-option .lang-name {
  flex: 1;
}
.lang-option .check {
  font-size: 12px;
  color: #60a5fa;
  opacity: 0;
  transition: opacity .15s;
}
.lang-option.active .check {
  opacity: 1;
}

/* Mobile lang toggle */
.mobile-lang {
  display: flex;
  gap: 8px;
  padding: 10px 10px 6px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 6px;
}
.mobile-lang a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .16s;
}
.mobile-lang a.active-lang {
  background: rgba(37,99,235,.22);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,.35);
}
.mobile-lang a:not(.active-lang) {
  background: rgba(255,255,255,.06);
  color: rgba(238,242,255,.65);
  border: 1px solid rgba(255,255,255,.1);
}
.mobile-lang a:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
