:root {
  --navy: #0c2f6e;
  --navy-2: #164188;
  --deep: #071c45;
  --ink: #12243f;
  --muted: #5d6e86;
  --line: #e5edf6;
  --bg: #f4f7fb;
  --card: #fff;
  --shadow: 0 16px 40px rgba(12, 40, 90, 0.08);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12,47,110,.06);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.logo img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: #31465f; font-size: 15px; font-weight: 600; }
.nav a.active, .nav a:hover { color: var(--navy); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 999px; padding: 12px 20px;
  background: var(--navy); color: #fff; font-weight: 700; letter-spacing: .02em;
}
.btn.small { padding: 10px 18px; font-size: 13px; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.light { background: #fff; color: var(--navy); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; color: var(--navy); }

.hero { padding: 28px 0 0; background: linear-gradient(#fff, #f7faff 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--navy);
  font-weight: 800;
}
.hero p.lead { margin: 0 0 26px; color: #3e5572; font-size: 18px; max-width: 520px; }
.hero-visual { position: relative; min-height: 420px; }
.hero-panel {
  height: 430px; border-radius: 28px; overflow: hidden; position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 30%),
    linear-gradient(160deg, #1a4e9c, #0b2f6e 55%, #12386f);
  box-shadow: var(--shadow);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 36px 36px 90px 36px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.28);
  background:
    radial-gradient(circle at 25% 35%, rgba(255,255,255,.28), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 60%);
}
.hero-panel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,28,69,.25));
}
.float-card {
  position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px;
}
.float-card.one { left: 22px; bottom: 28px; width: 230px; z-index: 2; }
.float-card.two { right: 18px; top: 28px; width: 180px; z-index: 2; }
.float-card strong { display: block; color: var(--navy); font-size: 22px; }
.float-card span { color: var(--muted); font-size: 13px; }
.bar { height: 8px; background: #e8eef7; border-radius: 99px; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 78%; background: var(--navy); border-radius: 99px; }

.stats {
  margin-top: -28px; position: relative; z-index: 3;
  background: #fff; border-radius: 22px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 10px;
}
.stat { display: flex; gap: 12px; align-items: center; padding: 16px 18px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .ic {
  width: 46px; height: 46px; border-radius: 14px; background: #eef3fb; color: var(--navy);
  display: grid; place-items: center;
}
.stat .ic svg { width: 22px; height: 22px; }
.stat strong { display: block; font-size: 22px; color: var(--navy); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 14px; }

.section { padding: 72px 0; }
.section h2, .page-head h1 {
  text-align: center; color: var(--navy); font-size: 34px; letter-spacing: -.03em; margin: 0 0 28px;
}
.course-head { display: flex; align-items: center; justify-content: center; gap: 16px; }
.arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer;
}
.course-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 18px; overflow: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.course-card {
  scroll-snap-align: start; background: linear-gradient(180deg, #143e84, #0c2f6e); color: #fff;
  border-radius: 22px; min-height: 210px; padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.course-card .ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.course-card svg { width: 24px; height: 24px; }
.course-card h3 { margin: 0; font-size: 20px; }
.course-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }
.course-card .more { margin-top: auto; font-size: 12px; letter-spacing: .08em; font-weight: 700; color: rgba(255,255,255,.8); }

.feature-grid, .branch-grid, .exam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature, .panel, .branch, .exam-type {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow);
}
.feature h3, .branch h3, .exam-type h3 { margin: 10px 0 6px; color: var(--navy); }
.feature p, .branch p, .exam-type p { margin: 0; color: var(--muted); }
.feature .ic, .mini-ic {
  width: 46px; height: 46px; border-radius: 14px; background: #eef3fb; color: var(--navy); display: grid; place-items: center;
}
.feature svg, .mini-ic svg { width: 22px; height: 22px; }
.chart-line { height: 72px; margin-top: 14px; background: linear-gradient(180deg, rgba(12,47,110,.12), transparent); border-radius: 12px; position: relative; }
.chart-line::before {
  content: ""; position: absolute; left: 10px; right: 10px; top: 28px; height: 28px;
  background: linear-gradient(90deg, #8eb0e4, #0c2f6e); clip-path: polygon(0 70%, 18% 40%, 36% 55%, 54% 20%, 72% 35%, 100% 8%, 100% 100%, 0 100%);
  opacity: .85;
}

.preview-frame {
  background: linear-gradient(180deg, #0d3274, #082453); border-radius: 28px; padding: 22px; color: #fff;
}
.preview-grid { display: grid; grid-template-columns: 220px 1fr 240px; gap: 14px; margin-top: 16px; }
.preview-frame h2 { text-align: left; color: #fff; margin: 0; font-size: 28px; }
.preview-frame .sub { color: rgba(255,255,255,.75); margin: 6px 0 0; }
.widget { background: rgba(255,255,255,.08); border-radius: 18px; padding: 14px; }
.widget.light { background: #fff; color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.cal-grid i { height: 22px; border-radius: 6px; background: rgba(255,255,255,.12); display: block; }
.cal-grid i.on { background: #fff; }
.progress-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin: 8px 0; }
.widget .bar { background: #e7eef8; }
.widget .bar i { background: #1d4e9a; }

.site-footer { background: var(--deep); color: rgba(255,255,255,.82); padding: 48px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr .8fr; gap: 24px; }
.site-footer h3 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.site-footer a { display: block; padding: 4px 0; color: rgba(255,255,255,.78); }
.site-footer img { height: 54px; width: auto; background: #fff; border-radius: 10px; padding: 4px 8px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 14px; font-size: 13px; }

.page { background: var(--bg); min-height: 60vh; }
.page-head { padding: 36px 0 10px; }
.page-head p { text-align: center; color: var(--muted); max-width: 680px; margin: -12px auto 0; }
.prose { background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.prose p { color: #31465f; }

.exam-type { display: block; }
.exam-type.active { outline: 3px solid #0c2f6e; }
.search-box {
  margin: 22px auto; background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow);
  display: flex; gap: 10px;
}
.search-box input {
  flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; outline: none;
}
.dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.dates span { background: #fff; border-radius: 999px; padding: 6px 12px; color: var(--muted); font-size: 13px; border: 1px solid var(--line); }
.empty { text-align: center; color: var(--muted); padding: 20px; }

.result-card { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.result-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.eyebrow { margin: 0; color: var(--navy-2); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.result-head h2 { margin: 4px 0; color: var(--navy); }
.father { margin: 0; color: var(--muted); }
.score-pills { display: flex; gap: 10px; }
.score-pills div { background: var(--navy); color: #fff; border-radius: 16px; min-width: 88px; padding: 10px 14px; text-align: center; }
.score-pills span { display: block; font-size: 12px; opacity: .8; }
.score-pills strong { font-size: 26px; }
.meta-grid, .summary-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.meta-grid div, .summary-row div { background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.meta-grid dt, .summary-row span { color: var(--muted); font-size: 12px; }
.meta-grid dd, .summary-row strong { margin: 2px 0 0; font-weight: 700; color: var(--navy); }
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.subject-card { border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.subject-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 16px; }
.subject-score { margin: 0 0 8px; }
.subject-score strong { font-size: 28px; color: var(--navy); margin-right: 6px; }
.subject-score span, .metric-list { color: var(--muted); font-size: 13px; }
.metric-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.metric-list li { display: flex; justify-content: space-between; gap: 8px; }
.answers code { display: block; white-space: pre-wrap; word-break: break-word; background: #f6f8fb; padding: 8px; border-radius: 8px; }
details summary { cursor: pointer; color: var(--navy); font-weight: 700; margin-top: 8px; }
.form {
  display: grid; gap: 12px; background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow);
}
.form label { display: grid; gap: 6px; font-weight: 700; color: var(--navy); font-size: 14px; }
.form input, .form select, .form textarea {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 500;
}
.note { background: #e8f7ee; color: #146c36; border-radius: 14px; padding: 12px 14px; }
.err { background: #fdecec; color: #9d1c1c; border-radius: 14px; padding: 12px 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding-bottom: 48px; }
.tools { display: flex; justify-content: flex-end; margin-bottom: 10px; }

@media (max-width: 980px) {
  .hero-grid, .feature-grid, .preview-grid, .footer-grid, .subject-grid, .exam-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: 0; }
  .meta-grid, .summary-row, .two, .split { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; padding: 16px 22px 22px; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .hero-visual { min-height: 280px; }
  .hero-panel { height: 280px; }
}
.nav-drop { position: relative; }
.nav-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
  border-radius: 16px; box-shadow: var(--shadow); padding: 8px; z-index: 30;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: grid; }
.nav-menu a { padding: 8px 12px; border-radius: 10px; }
.nav-menu a:hover { background: var(--bg); }
.entry-grid, .direction-grid, .why-grid { display: grid; gap: 16px; }
.entry-grid { grid-template-columns: repeat(3, 1fr); }
.doors { padding-top: 36px; }
.doors h1 { margin: 0 0 6px; color: var(--navy); }
.doors .lead { margin: 0 0 22px; color: var(--muted); }
.exam-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.exam-type .search-box { margin: 16px 0 0; padding: 0; box-shadow: none; background: transparent; flex-direction: column; }
.exam-type .search-box input, .exam-type .search-box .btn { width: 100%; }
.result-wrap { padding-bottom: 48px; }
.result-wrap h2 { color: var(--navy); }
.subject-sheet { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.subject-sheet h3 { margin: 0 0 8px; color: var(--navy); }
.subject-sheet .metric-list { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.subject-sheet .metric-list li { gap: 8px; }
.bubbles { display: flex; flex-wrap: wrap; gap: 6px; }
.bubble { width: 46px; border-radius: 10px; text-align: center; padding: 4px 0 6px; line-height: 1.15; }
.bubble small { display: block; font-size: 10px; }
.bubble b { display: block; font-size: 15px; }
.bubble.dogru { background: #e5f7ec; color: #146c36; }
.bubble.sehv { background: #fdecec; color: #9d1c1c; }
.bubble.bos { background: #f4f7fb; color: #5d6e86; }
.legend { color: var(--muted); font-size: 13px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.dogru { background: #1a9b5c; }
.dot.sehv { background: #d92d20; }
.result-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.result-line h2 { margin: 0; color: var(--navy); font-size: 22px; }
.result-line p { margin: 4px 0 0; color: var(--muted); }
.direction-grid, .why-grid { grid-template-columns: repeat(3, 1fr); }
.entry, .direction, .why, .mission-grid article, .branch-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.entry h2, .direction h3, .why h3 { margin: 12px 0 6px; color: var(--navy); }
.entry p, .direction p, .why p { margin: 0; color: var(--muted); }
.pill {
  display: inline-block; margin-top: 16px; background: #e8f0ff; color: var(--navy);
  border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px;
}
.pill.warm { background: #ffe8e4; color: #b42318; }
.kicker { color: #c4a15a; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.split-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: start; margin-bottom: 22px; }
.checks { list-style: none; margin: 0; padding: 18px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.checks li { padding: 8px 0 8px 28px; position: relative; font-weight: 700; color: var(--navy); }
.checks li:before { content: "✓"; position: absolute; left: 0; color: #1a9b5c; }
.center { text-align: center; margin-top: 22px; }
.center-title { text-align: center; color: var(--navy); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid #d5e2f2; }
.consult { background: var(--navy); color: #fff; padding: 48px 0; }
.consult-inner, .join-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.consult h2, .join h2 { margin: 0 0 8px; }
.consult p, .join p { margin: 0; max-width: 760px; }
.btn.light { background: #111; color: #fff; }
.section.soft { background: var(--bg); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mission-grid h2 { color: var(--navy); margin-top: 0; }
.band {
  margin-top: 22px; background: var(--deep); color: #fff; border-radius: 24px; padding: 28px;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.band p { margin: 0; font-size: 22px; font-weight: 800; max-width: 460px; }
.band-stats { display: flex; gap: 28px; }
.band-stats strong, .band-stats span { display: block; }
.band-stats strong { font-size: 32px; }
.band-stats span { opacity: .8; }
.join { text-align: center; }
.join-inner { flex-direction: column; }
.join-contacts { display: flex; gap: 48px; margin-top: 18px; color: var(--navy); font-weight: 700; }
.join-contacts div { display: flex; gap: 10px; align-items: center; }
.join-contacts svg { width: 22px; height: 22px; }
.year { margin-bottom: 28px; }
.year h2 { color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shot { padding: 0; border: 0; background: #eef3f9; border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.shot img { width: 100%; height: 180px; object-fit: cover; }
.branch-list { display: grid; gap: 16px; padding-bottom: 48px; }
.branch-card h2 { margin: 0 0 8px; color: var(--navy); }
.addr { font-weight: 700; }
.lightbox {
  position: fixed; inset: 0; background: rgba(5, 16, 40, .88); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 10px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; margin: 0; font-weight: 700; }
.topic-text { white-space: pre-wrap; line-height: 1.7; color: var(--ink); background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 18px; }
.topic-gallery .shot img { height: 240px; }
.lb-close, .lb-nav {
  position: absolute; border: 0; background: #fff; color: var(--navy); border-radius: 999px;
  width: 46px; height: 46px; font-size: 28px; cursor: pointer;
}
.lb-close { top: 18px; right: 18px; }
.lb-nav.prev { left: 18px; }
.lb-nav.next { right: 18px; }
.section.tight { padding-top: 10px; }

@media (max-width: 980px) {
  .entry-grid, .direction-grid, .why-grid, .mission-grid, .gallery { grid-template-columns: 1fr; }
  .split-head, .consult-inner, .band { grid-template-columns: 1fr; display: grid; }
  .band-stats, .join-contacts { flex-direction: column; gap: 12px; }
  .nav-menu { position: static; box-shadow: none; padding: 0 0 0 12px; }
  .nav-drop:hover .nav-menu { display: none; }
  .nav.open .nav-menu { display: grid; }
}
@page {
  size: A4 portrait;
  margin: 10mm;
}
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .site-footer, .search-box, .exam-grid, .tools, .page-head, .dates, .lightbox { display: none !important; }
  html, body, .page { background: #fff !important; margin: 0; padding: 0; }
  .wrap { width: auto; max-width: none; padding: 0 !important; }
  .result-card {
    box-shadow: none;
    border: 1px solid #e5edf6;
    margin: 0;
    break-after: page;
    page-break-after: always;
  }
  .result-card:last-child { break-after: auto; page-break-after: auto; }
  .result-head { display: flex !important; justify-content: space-between; }
  .subject-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .meta-grid, .summary-row { grid-template-columns: repeat(4, 1fr) !important; }
  details:not([open]) > :not(summary) { display: none !important; }
}
