:root {
  --bg: #ffffff;
  --text: #101114;
  --muted: #5e6470;
  --line: #e8ebef;
  --soft: #f6f7f9;
  --soft-2: #f1f3f6;
  --dark: #0c0d10;
  --shadow: 0 20px 60px rgba(16,17,20,.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: var(--dark);
  color: #fff;
  font-size: 14px;
}
.topbar-inner {
  min-height: 44px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
}
.phone-link { font-weight: 700; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 28px; font-weight: 800; line-height: 1; }
.brand-subtitle { font-size: 13px; color: var(--muted); max-width: 360px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a:not(.btn) { color: var(--muted); font-weight: 600; }
.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  font-size: 22px;
}

.hero {
  padding: 48px 0 26px;
  background:
    radial-gradient(circle at top left, rgba(0,0,0,.04), transparent 32%),
    linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 34px;
  align-items: center;
}
.eyebrow, .section-tag {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.hero-copy h1 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: .98;
  margin: 16px 0 18px;
}
.hero-copy p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 720px;
}
.hero-actions, .cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark {
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-light {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.full { width: 100%; }
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.mini-card, .service-card, .course-card, .contact-card, .side-panel, .hero-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mini-card {
  padding: 18px;
}
.mini-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.mini-card span {
  color: var(--muted);
  font-size: 14px;
}
.hero-panel {
  min-height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}
.hero-logo {
  width: min(100%, 460px);
  object-fit: contain;
}
.hero-badge {
  background: var(--dark);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
}

.section { padding: 84px 0; }
.section.alt { background: var(--soft); }
.section-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 30px;
  align-items: start;
}
.section h2, .section-head h2, .cta-box h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.05;
  margin: 16px 0;
}
.section p, .section-head p, .cta-box p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}
.section-head { max-width: 840px; margin-bottom: 34px; }
.section-head.center { text-align: center; margin-inline: auto auto; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  padding: 26px;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 18px;
}
.service-card h3, .course-card h3, .contact-card h3, .side-panel h3 {
  font-size: 20px;
  margin: 0 0 12px;
}
.service-card p, .course-card p, .contact-card p, .side-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.course-layout {
  display: grid;
  grid-template-columns: 1.2fr .55fr;
  gap: 24px;
  align-items: start;
}
.course-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.course-card, .contact-card, .side-panel { padding: 24px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 1fr);
  gap: 18px;
}
.contact-card.large { grid-column: span 1; }
.contact-card p a { font-weight: 700; }
.cta-section { padding-top: 42px; padding-bottom: 42px; }
.cta-box {
  background: var(--dark);
  color: #fff;
  border-radius: 30px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.cta-box p { color: rgba(255,255,255,.75); }
.cta-box .section-tag { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
.cta-box .btn-light { background: #fff; }
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-brand img { width: 64px; object-fit: contain; }
.footer-brand p, .footer-info span, .footer-info a { color: var(--muted); font-size: 14px; }
.footer-info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  .hero-grid, .section-grid, .course-layout, .contact-grid, .footer-inner, .cta-box {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .cards-grid, .course-list { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { display: grid; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .brand-title { font-size: 22px; }
  .brand-subtitle { max-width: 220px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy p { font-size: 16px; }
  .hero-cards, .cards-grid, .course-list, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .cta-box { padding: 28px; }
  .footer-inner { align-items: flex-start; }
}
