/* ══════════════════════════════════════════════════════════
   АБИТУРИЕНТ.ТЖ — Пурра стилҳо
   ══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary:      #1a3c5e;
  --primary-dark: #0d2540;
  --secondary:    #2d6a4f;
  --accent:       #f5a623;
  --accent-dark:  #d48a1a;
  --bg:           #f0f4f8;
  --bg2:          #e8eef5;
  --white:        #ffffff;
  --text:         #1a1a2e;
  --muted:        #6b7280;
  --border:       #dde3ea;
  --success:      #22c55e;
  --danger:       #ef4444;
  --purple:       #7c3aed;
  --shadow:       0 2px 16px rgba(26,60,94,.10);
  --shadow-lg:    0 8px 32px rgba(26,60,94,.16);
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; }

/* ── UTILS ──────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-muted   { color: var(--muted); }
.hidden       { display: none !important; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all .22s;
  line-height: 1.4;
}
.btn-primary  { background: var(--accent);  color: var(--white); }
.btn-primary:hover  { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(245,166,35,.3); }
.btn-secondary{ background: var(--secondary); color: var(--white); }
.btn-secondary:hover{ background: #235340; transform: translateY(-2px); }
.btn-outline  { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover  { background: var(--primary); color: var(--white); }
.btn-full     { width: 100%; text-align: center; display: block; }
.btn-xl       { padding: 16px 40px; font-size: 17px; border-radius: var(--radius); }
.btn-sm       { padding: 7px 16px; font-size: 13px; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.22);
  transition: background .3s;
}
.navbar.scrolled { background: var(--primary-dark); }
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 62px;
  gap: 6px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-tj { color: var(--accent); }
.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 14px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.lang-switcher { display: flex; gap: 3px; margin-left: 12px; }
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.38);
  color: rgba(255,255,255,.88);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  transition: all .2s;
  letter-spacing: .5px;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  margin-left: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .25s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #1e4a70 100%);
  color: var(--white);
  padding: 90px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.shape1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.shape2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.shape3 { width: 200px; height: 200px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hero-content { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(245,166,35,.2);
  border: 1px solid rgba(245,166,35,.4);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--white);
}
.hero-sub {
  font-size: 1.1rem;
  opacity: .85;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 22px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 52px 24px 44px;
  text-align: center;
}
.page-header-green  { background: linear-gradient(135deg, var(--secondary), #1a4033); }
.page-header-purple { background: linear-gradient(135deg, var(--purple), #4c1d95); }
.page-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }
.page-sub   { font-size: 1rem; opacity: .85; max-width: 600px; margin: 0 auto; }

/* ── STATS SECTION ───────────────────────────────────────── */
.stats-section { background: var(--white); padding: 52px 24px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}
.stat-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-icon  { font-size: 2rem; margin-bottom: 10px; }
.stat-number{ font-size: 2.4rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── STEPS ───────────────────────────────────────────────── */
.steps-section { padding: 64px 24px; background: var(--bg); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-sub { font-size: 1rem; color: var(--muted); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step-num {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 30px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon { font-size: 2.6rem; margin: 12px 0 14px; }
.step-card h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.step-card p  { font-size: 13px; color: var(--muted); }

/* ── UNI GRID / CARDS ────────────────────────────────────── */
.top-unis-section { padding: 64px 24px; background: var(--white); }
.unis-section     { padding: 40px 24px 64px; }
.uni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.uni-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s;
  display: flex;
  flex-direction: column;
}
.uni-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.uni-card-header {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.uni-emoji  { font-size: 2.8rem; }
.uni-badge  {
  background: rgba(255,255,255,.25);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.uni-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.uni-name   { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.3; }
.uni-meta   { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.meta-item  { font-size: 12px; color: var(--muted); }
.uni-tavsif { font-size: 12px; color: var(--muted); margin-bottom: 14px; flex: 1; line-height: 1.5; }
.uni-stats  { display: flex; gap: 8px; margin-bottom: 12px; }
.uni-stat   { flex: 1; text-align: center; background: var(--bg); border-radius: var(--radius-sm); padding: 8px 6px; }
.stat-val   { font-size: 16px; font-weight: 700; color: var(--primary); display: block; }
.stat-lbl   { font-size: 10px; color: var(--muted); }
.uni-tags   { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tag {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 11px;
}
.uni-sayt {
  display: inline-block;
  margin-top: auto;
  padding: 8px 16px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  text-align: center;
  transition: all .2s;
}
.uni-sayt:hover { background: var(--primary); color: var(--white); }

/* ── FEATURES ────────────────────────────────────────────── */
.features-section { padding: 64px 24px; background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.feature-card h3  { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.feature-card p   { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.feature-link     { font-size: 14px; font-weight: 600; color: var(--accent); }

/* ── FILTER SECTION ──────────────────────────────────────── */
.filter-section { background: var(--white); padding: 28px 0; border-bottom: 1px solid var(--border); }
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.search-wrap { position: relative; }
.search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}
.search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border .2s;
}
.search-input:focus { border-color: var(--primary); }
.filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-label { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; min-width: 70px; }
.filter-btns  { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 14px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.filter-select {
  height: 38px;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border .2s;
}
.filter-select:focus { border-color: var(--primary); }
.result-count { margin-top: 14px; font-size: 14px; color: var(--muted); }
.result-count span { font-weight: 700; color: var(--primary); }
.empty-state { text-align: center; padding: 64px 24px; }
.empty-emoji { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 8px; }
.empty-state p  { color: var(--muted); }

/* ── CALCULATOR PAGE ─────────────────────────────────────── */
.calc-section { padding: 48px 0 64px; }
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}
.calc-info { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.info-card h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.info-list li { font-size: 14px; color: var(--text); display: flex; gap: 8px; align-items: flex-start; }
.grade-info {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.grade-info h4 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.grade-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 14px; }
.grade-badge {
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  min-width: 90px;
  text-align: center;
}
.grade-5 { background: #22c55e; }
.grade-4 { background: #3b82f6; }
.grade-3 { background: #f59e0b; }
.grade-2 { background: #ef4444; }
.calc-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-title { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 28px; }
.form-group  { margin-bottom: 20px; }
.form-label  {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.label-icon { font-size: 16px; }
.max-badge  { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.form-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  font-family: inherit;
  outline: none;
  transition: border .2s;
  background: var(--bg);
}
.form-input:focus    { border-color: var(--primary); background: var(--white); }
.form-input.input-ok { border-color: var(--success); }
.form-input.input-error { border-color: var(--danger); }
.form-actions { display: flex; gap: 12px; margin-top: 28px; }
.calc-result { margin-top: 16px; }
.result-header { text-align: center; margin-bottom: 28px; }
.result-header h2 { font-size: 1.7rem; font-weight: 700; color: var(--primary); }
.result-summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 28px;
}
.result-score-big { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.result-score-big span:first-child { font-size: 4rem; font-weight: 700; color: var(--primary); }
.result-max { font-size: 1.5rem; color: var(--muted); }
.result-meta { display: flex; gap: 16px; justify-content: center; margin: 12px 0 20px; flex-wrap: wrap; }
.result-percent { font-size: 1.3rem; font-weight: 700; color: var(--secondary); }
.score-grade { font-size: 15px; font-weight: 700; padding: 4px 16px; border-radius: 20px; color: var(--white); }
.progress-wrap { height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; margin: 12px 0; }
.progress-bar  { height: 100%; border-radius: 5px; transition: width 1s ease; background: var(--secondary); }
.calc-summary-text { font-size: 14px; color: var(--muted); margin-top: 10px; }
.result-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.table-header h3 { font-size: 16px; font-weight: 700; color: var(--primary); }
.table-responsive { overflow-x: auto; }
.result-table { width: 100%; border-collapse: collapse; }
.result-table th {
  background: var(--bg);
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  white-space: nowrap;
}
.result-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); }
.result-table tr:last-child td { border-bottom: none; }
.result-table .row-ok  { background: #f0fdf4; }
.result-table .row-fail{ background: #fff8f8; }
.diff-pos { color: var(--success); font-weight: 700; }
.diff-neg { color: var(--danger);  font-weight: 700; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── QUIZ PAGE ───────────────────────────────────────────── */
.quiz-section { padding: 48px 0 64px; }
.quiz-wrap { max-width: 720px; margin: 0 auto; }
.intro-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.intro-emoji { font-size: 4rem; margin-bottom: 16px; }
.intro-card h2 { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.intro-card p  { font-size: 15px; color: var(--muted); margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }
.intro-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.intro-feat {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}
.feat-icon { font-size: 1.5rem; flex-shrink: 0; }
.intro-feat strong { font-size: 14px; font-weight: 700; color: var(--primary); display: block; }
.intro-feat small  { font-size: 12px; color: var(--muted); }
.quiz-progress-wrap { margin-bottom: 24px; }
.quiz-progress-info { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.quiz-progress-bar  { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 4px; transition: width .5s ease; }
.question-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.question-text { font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 24px; line-height: 1.5; }
.options-container { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  text-align: left;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.quiz-option:hover:not(:disabled) { border-color: var(--primary); background: #eef3f9; color: var(--primary); }
.quiz-option.selected { border-color: var(--primary); background: var(--primary); color: var(--white); }
.quiz-option:disabled { cursor: default; opacity: .7; }
.opt-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.result-reveal { text-align: center; }
.result-confetti { font-size: 3rem; margin-bottom: 8px; }
.result-label { font-size: 16px; color: var(--muted); margin-bottom: 8px; }
.result-main-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-lg);
  margin: 0 auto 28px;
  max-width: 560px;
}
.result-big-emoji { font-size: 4rem; margin-bottom: 12px; }
.result-kasb-nom  { font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.result-kasb-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.score-chart-wrap { background: var(--white); border-radius: var(--radius); padding: 24px 28px; border: 1px solid var(--border); margin-bottom: 24px; box-shadow: var(--shadow); }
.score-chart-wrap h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.chart-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.chart-lbl  { width: 100px; font-size: 13px; color: var(--text); text-align: right; flex-shrink: 0; }
.chart-bar-wrap { flex: 1; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.chart-bar  { height: 100%; border-radius: 5px; transition: width 1s ease; }
.chart-val  { width: 28px; font-size: 13px; font-weight: 700; color: var(--primary); }
.rec-unis-wrap { background: var(--white); border-radius: var(--radius); padding: 24px 28px; border: 1px solid var(--border); margin-bottom: 28px; box-shadow: var(--shadow); }
.rec-unis-wrap h3 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.rec-unis-list { display: flex; flex-direction: column; gap: 10px; }
.rec-uni {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.rec-emoji { font-size: 1.8rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.7); margin-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 40px;
  padding: 48px 0 32px;
}
.footer-logo { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-brand p { font-size: 13px; line-height: 1.6; }
.footer-links h4, .footer-info h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a  { font-size: 13px; color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-info p { font-size: 13px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
}

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all .3s;
  z-index: 9999;
}
.toast.show    { opacity: 1; transform: translateY(0); }
.toast-error   { background: var(--danger); }
.toast-success { background: var(--success); }

/* ── АНИМАЦИИ ────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .6s ease, transform .6s ease;
}
.slide-up.visible { opacity: 1; transform: translateY(0); }
.slide-in {
  animation: slideIn .35s ease forwards;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  .navbar, .filter-section, .calc-form-wrap, .calc-info,
  .result-actions, .footer, .btn-outline { display: none !important; }
  .calc-result { display: block !important; }
  .result-summary-card, .result-table-wrap { box-shadow: none; border: 1px solid #ccc; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-title        { font-size: 2.2rem; }
  .stats-grid        { grid-template-columns: repeat(2,1fr); }
  .steps-grid        { grid-template-columns: repeat(2,1fr); }
  .uni-grid          { grid-template-columns: repeat(2,1fr); }
  .features-grid     { grid-template-columns: repeat(2,1fr); }
  .calc-wrap         { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .intro-features    { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero-title        { font-size: 1.8rem; }
  .hero              { padding: 64px 20px 56px; min-height: auto; }
  .uni-grid          { grid-template-columns: 1fr; }
  .features-grid     { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; }
  .nav-menu          { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--primary-dark); flex-direction: column; padding: 12px; gap: 4px; }
  .nav-menu.open     { display: flex; }
  .navbar            { position: relative; }
  .hamburger         { display: flex; }
  .calc-form-wrap    { padding: 24px 18px; }
  .question-card     { padding: 24px 18px; }
  .intro-card        { padding: 28px 20px; }
  .result-main-card  { padding: 24px 20px; }
  .form-actions      { flex-direction: column; }
  .result-actions    { flex-direction: column; align-items: center; }
}
@media (max-width: 400px) {
  .page-title { font-size: 1.6rem; }
  .section-title { font-size: 1.5rem; }
}
