/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero-home {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  padding: 60px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-home .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43,164,223,.12);
  border: 1px solid rgba(43,164,223,.25);
  color: var(--deep);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: .03em;
}
.hero-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.5;transform:scale(1.4)}
}
.hero-h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  color: var(--ink);
}
.hero-h1 span {
  background: linear-gradient(135deg, var(--blue), var(--deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}
.stat-num span { color: var(--ink); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* Права частина hero */
.hero-visual {
  position: relative;
}
.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-top: -50px; /* підняти вгору */
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  mix-blend-mode: multiply;
}
/* Плавний перехід знизу — менше розсіювання */
.hero-img-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 20%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #EEF3FE 100%
  );
  border-radius: 0 0 16px 16px;
  pointer-events: none;
}

/* ══════════════════════════════════════
   СЕКЦІЇ ЗАГАЛЬНІ
══════════════════════════════════════ */
.section-wrap {
  padding: 80px 24px;
}
.section-wrap.alt {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
}
.section-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
}
.section-head {
  margin-bottom: 48px;
}
.section-head.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ══════════════════════════════════════
   ПРО ШКОЛУ
══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-text h2 { margin-bottom: 16px; }
.about-text p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.about-text p strong { color: var(--ink); }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.af-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
}
.af-icon {
  width: 64px; height: 64px;
  min-width: 64px;
  border-radius: 14px;
  background: rgba(30,63,216,.07);
  display: grid; place-items: center;
  flex-shrink: 0;
  padding: 12px;
}
.af-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.af-item b { font-size: 14px; font-weight: 800; display: block; margin-bottom: 4px; }
.af-item span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Права колонка про школу */
.about-visual {
  background: linear-gradient(135deg, #1E3FD8 0%, #1228A8 100%);
  border-radius: 24px;
  padding: 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%);
  border-radius: 50%;
}
.about-visual::after {
  content: '';
  position: absolute;
  left: -20px; bottom: -40px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,.1), transparent 70%);
  border-radius: 50%;
}
.av-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 24px;
  position: relative; z-index: 1;
}
.av-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative; z-index: 1;
}
.av-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
}
.av-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: grid; place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.av-quote {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: 13.5px;
  font-style: italic;
  opacity: .85;
  position: relative; z-index: 1;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   КУРСИ
══════════════════════════════════════ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px -16px rgba(18,120,184,.15);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -16px rgba(18,120,184,.25);
}
/* Картка з зображенням */
.course-card--img { padding: 0; }
.cc-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}
.cc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.cc-badge--overlay {
  position: absolute;
  top: 12px; right: 12px;
  background: rgb(30,63,216);
  color: #fff;
}
.cc-body {
  padding: 18px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cc-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px;
}
.cc-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
}
.cc-name {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.cc-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}
.cc-meta {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: 16px;
}
.cc-meta-item { font-size: 12px; color: var(--muted); }
.cc-meta-item b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 700; }
.cc-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}
.cc-price span { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ══════════════════════════════════════
   ПЕРЕВАГИ
══════════════════════════════════════ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.adv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 20px -8px rgba(18,120,184,.12);
}
.adv-icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
}
.adv-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.adv-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════
   ВІДГУКИ
══════════════════════════════════════ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 20px -8px rgba(18,120,184,.12);
}
.review-stars { color: #F5A623; font-size: 16px; margin-bottom: 12px; }
.review-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 18px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--deep));
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.review-author b { font-size: 14px; display: block; }
.review-author span { font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.faq-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  gap: 12px;
}
.faq-q:hover { background: rgba(43,164,223,.04); }
.faq-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(43,164,223,.1);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .25s;
  color: var(--blue);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 18px; }

/* ══════════════════════════════════════
   КОНТАКТИ / ЗАПИС
══════════════════════════════════════ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.cl-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(43,164,223,.1);
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.cl-item:hover .cl-icon { background: rgba(43,164,223,.2); }

/* Форма запису */
.signup-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px -20px rgba(18,120,184,.2);
}
.signup-form h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.signup-form p {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
}
.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ok);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo img { height: 30px; }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-size: 12px; color: #B0C8D8; }

/* ══════════════════════════════════════
   АДАПТИВ
══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-home .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section-wrap { padding: 56px 16px; }
  .hero-home { padding: 40px 16px 60px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .about-features { grid-template-columns: 1fr; gap: 12px; }
  .af-icon { width: 52px; height: 52px; min-width: 52px; padding: 10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}