:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #647084;
  --brand: #3157ff;
  --brand-dark: #1d35a6;
  --accent: #19b7a2;
  --line: #e6e9f2;
  --shadow: 0 20px 60px rgba(23, 32, 51, .10);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; border-radius: 10px; z-index: 1000; }
.skip-link:focus { left: 12px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(230,233,242,.9);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff; font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 28px rgba(49,87,255,.24);
}
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a { padding: 10px 12px; border-radius: 999px; color: #34405a; font-weight: 650; font-size: 15px; }
.nav-menu a:hover, .nav-menu a.active { background: #eef2ff; color: var(--brand); }
.nav-menu .nav-cta { background: var(--brand); color: #fff; padding-inline: 18px; }
.nav-menu .nav-cta:hover, .nav-menu .nav-cta.active { background: var(--brand-dark); color: #fff; }
.nav-toggle { display: none; border: 0; background: #eef2ff; color: var(--brand); border-radius: 12px; padding: 10px 13px; font-size: 22px; }
.hero { padding: 82px 0 48px; overflow: hidden; position: relative; }
.hero:before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 55vw; height: 55vw; max-height: 620px;
  background: radial-gradient(circle, rgba(49,87,255,.17), transparent 62%);
  transform: translate(20%, -30%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { color: var(--brand); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 6vw, 74px); letter-spacing: -.05em; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; }
h3 { font-size: 21px; letter-spacing: -.02em; }
p { margin: 0 0 18px; color: var(--muted); }
.hero-copy p { font-size: 19px; max-width: 650px; }
.hero-actions, .social-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: 13px 20px;
  background: var(--brand); color: #fff; font-weight: 800;
  box-shadow: 0 14px 34px rgba(49,87,255,.24);
  cursor: pointer;
}
.button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.button.ghost { background: #fff; color: var(--brand); border: 1px solid var(--line); box-shadow: none; }
.button.light { background: #fff; color: var(--brand); box-shadow: none; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); transform: rotate(1deg);
}
.hero-card img, .about-image img { border-radius: 18px; width: 100%; }
.stats-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 10px 30px rgba(23,32,51,.06); }
.stat strong { display: block; color: var(--brand); font-size: 32px; line-height: 1; }
.stat span { color: var(--muted); font-weight: 650; }
.section { padding: 76px 0; }
.section.soft { background: #fff; border-block: 1px solid var(--line); }
.section-heading { text-align: center; max-width: 780px; }
.section-heading p { font-size: 18px; }
.card-grid { display: grid; gap: 22px; margin-top: 30px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.info-card, .program-card, .image-card, .contact-panel, .contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: 0 14px 36px rgba(23,32,51,.06);
}
.info-card p, .program-card p, .image-card p { margin-bottom: 0; }
.program-card { position: relative; overflow: hidden; }
.program-card:after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(25,183,162,.08); right: -40px; bottom: -40px; }
.icon-dot { width: 42px; height: 42px; border-radius: 15px; margin-bottom: 18px; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.social-band { background: linear-gradient(135deg, #18213a, #263da8); color: #fff; }
.social-band p, .social-band .eyebrow { color: rgba(255,255,255,.78); }
.social-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.page-hero { background: linear-gradient(135deg, #eef3ff, #f6fffd); }
.page-hero.compact { padding: 76px 0 58px; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 760px; font-size: 18px; }
.narrow { max-width: 780px; }
.intro-text { text-align: center; margin-bottom: 34px; }

.exam-jump-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.exam-jump-card { color: inherit; display: block; }
.exam-jump-card h2 { font-size: 25px; }
.exam-block { scroll-margin-top: 90px; }
.exam-intro { margin-top: 18px; }
.image-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.image-card { padding: 16px; overflow: hidden; }
.image-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: #eef2ff; margin-bottom: 18px; }
.image-card div { padding: 0 8px 8px; }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 42px; align-items: center; }
.about-image { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.rich-text p { font-size: 17px; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 26px; align-items: start; }
.direct-contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.direct-contact a { background: #eef2ff; color: var(--brand); padding: 10px 14px; border-radius: 999px; font-weight: 800; }
.contact-form label { display: block; font-weight: 800; margin-bottom: 18px; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px;
  font: inherit; color: var(--ink); background: #fbfcff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(49,87,255,.15); border-color: var(--brand); }
.hidden-field { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.notice { border-radius: 16px; padding: 12px 14px; margin-bottom: 16px; font-weight: 700; }
.notice.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.notice.error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.footer-cta { background: #111827; color: #fff; padding: 38px 0; }
.footer-cta p { color: rgba(255,255,255,.7); margin-bottom: 0; }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer { padding: 34px 0; background: #0b1020; color: #fff; }
.site-footer p, .copyright { color: rgba(255,255,255,.62); }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-grid a { display: inline-block; margin-left: 18px; color: rgba(255,255,255,.78); font-weight: 700; }
.copyright { margin-top: 22px; font-size: 14px; }
.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; gap: 10px; }
.float-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; font-weight: 900; background: #fff; color: var(--brand); box-shadow: 0 16px 32px rgba(23,32,51,.18); cursor: pointer; }
.float-btn.telegram { background: #26a5e4; color: #fff; }
.float-btn:hover { transform: translateY(-2px); }
#toTop { opacity: 0; pointer-events: none; transition: .2s ease; }
#toTop.visible { opacity: 1; pointer-events: auto; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; left: 20px; right: 20px; top: 76px; display: none; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-menu a { border-radius: 14px; }
  .hero-grid, .about-grid, .contact-grid, .social-inner, .footer-cta-inner { grid-template-columns: 1fr; display: grid; }
  .card-grid.three, .image-card-grid, .stats-grid, .exam-jump-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 46px; }
  h1 { font-size: clamp(38px, 12vw, 56px); }
  .footer-grid { display: grid; }
  .footer-grid a { margin: 0 16px 0 0; }
}
