@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700&display=swap");

:root {
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Unbounded", "Manrope", ui-sans-serif, sans-serif;
  --brand: #1e40af;
  --brand-dark: #1e3a8a;
  --brand-mid: #2f6fbe;
  --brand-light: #3b82f6;
  --sky: #6aa9e0;
  --accent-red: #e30613;
  --ink: #14243f;
  --muted: #5d718c;
  --border: #d7e1ee;
  --border-strong: #b9cbdf;
  --input: #c3d2e4;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --radius: 16px;
  --shadow: 0 14px 34px -22px rgba(20, 48, 96, 0.28), 0 2px 6px rgba(20, 48, 96, 0.05);
  --shadow-lift: 0 20px 42px -22px rgba(20, 48, 96, 0.34), 0 3px 8px rgba(20, 48, 96, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --type-fgos: #1d4e89;
  --type-profstandart: #1f7a4d;
  --type-okso: #3d5a80;
  --type-okpdtr: #6b4c3b;
  --type-okz: #3f4c5a;
  --type-oksvnk: #5c4d7a;
  --type-qualification: #1a5276;
  --type-assessment_tool: #6b2d5b;
  --type-etks: #8a4b2f;
  --type-eksd: #2f5d50;
  --type-prof_training: #8a5a12;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-sans);
  background:
    radial-gradient(980px 540px at 92% -10%, rgba(59, 130, 246, 0.16), transparent 62%),
    radial-gradient(760px 520px at -10% 104%, rgba(106, 169, 224, 0.16), transparent 58%),
    linear-gradient(150deg, #f6f9fc 0%, #eaf0f8 52%, #dde8f4 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, transparent 0 66%, rgba(47, 84, 140, 0.07) 66%, rgba(47, 84, 140, 0.07) 66.2%, transparent 66.35%),
    linear-gradient(24deg, transparent 0 74%, rgba(47, 84, 140, 0.055) 74%, rgba(47, 84, 140, 0.055) 74.2%, transparent 74.35%),
    linear-gradient(rgba(30, 64, 175, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.038) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
  -webkit-mask-image: radial-gradient(88% 70% at 30% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(88% 70% at 30% 0%, #000 20%, transparent 100%);
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button, input, select { font-family: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(59, 130, 246, 0.45); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 12px; top: -48px; background: #fff; padding: 8px 12px; border-radius: 10px; z-index: 30; }
.skip:focus { top: 12px; }

.site-header {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(185, 203, 223, 0.75);
  box-shadow: 0 8px 28px -20px rgba(20, 48, 96, 0.35);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 84px;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 16px; color: inherit; min-width: 0; }
.brand:hover { color: inherit; }
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 18px;
  padding: 7px 16px 7px 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(47, 84, 140, 0.16);
  box-shadow: 0 10px 24px -16px rgba(20, 48, 96, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.brand-lockup img { display: block; width: 54px; height: 40px; object-fit: contain; }
.brand-word { display: grid; color: #1e3a6e; font-weight: 800; font-size: 15px; line-height: 1.12; letter-spacing: -0.03em; }
.brand-text { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-service-icon { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.brand-copy { display: block; min-width: 0; }
.brand-title { display: block; font-weight: 800; font-size: 16.5px; line-height: 1.22; letter-spacing: -0.015em; color: var(--ink); }
.brand-sub { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.nav a {
  font-weight: 700;
  font-size: 14.5px;
  color: #33507f;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav a:hover { color: var(--brand-dark); background: #eaf1fb; }
.nav a.active, .nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-mid) 100%);
  box-shadow: 0 10px 20px -12px rgba(30, 64, 175, 0.65);
}

#main { max-width: 1440px; margin: 0 auto; padding: 36px 32px 24px; }
#main h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.05rem + 1.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: var(--ink);
}
.lead { margin: 0 0 22px; max-width: 760px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #33507f;
}
.page-eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0 68%, var(--accent-red) 68% 100%);
  flex-shrink: 0;
}
h2 { margin: 28px 0 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: #33507f; }
h3 { margin: 8px 0; font-size: 18px; letter-spacing: -0.02em; }

.search {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-lift);
}
.search input, .search select, .palette-card input {
  border: 1px solid var(--input);
  border-radius: 12px;
  background: #fff;
  padding: 10px 13px;
}
.search input { flex: 1; min-width: 0; }
.search input:focus, .search select:focus, .palette-card input:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile, .card, .panel, .empty, .error {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tile {
  display: block;
  padding: 18px;
  color: inherit;
  border-top: 4px solid var(--type, var(--brand));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tile:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.tile strong { display: block; font-size: 16px; }
.tile span { color: var(--muted); font-size: 14px; }
.grid { display: grid; gap: 12px; }
.card { padding: 16px; border-left: 4px solid var(--type, var(--brand)); }
.card a.title { color: inherit; }
.card a.title:hover { color: var(--brand-dark); }
.meta { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge, .code {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
}
.badge { background: color-mix(in srgb, var(--type, var(--brand)) 14%, white); color: var(--type, var(--brand)); }
.relations { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  border: 1px solid transparent;
}
.chip.plain { background: #f4f7fb; color: #3d4d63; }
.chip.qual { background: #e7f6ee; color: #065f46; border-color: #a7f3d0; }
.chip.os { background: #e7f1fb; color: #1e3a8a; border-color: #bfdbfe; }
.chip.spk { background: #f3e8ff; color: #5b21b6; border-color: #ddd6fe; }
.chip.edu { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.edu { display: flex; flex-wrap: wrap; gap: 8px; }
.link-group { margin-bottom: 18px; }
.link-group h2 { font-size: 18px; margin: 0 0 8px; }
.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-list a { font-weight: 650; }
.code { font-family: ui-monospace, Consolas, monospace; background: #eef4fc; color: var(--brand-dark); cursor: pointer; border: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.tabs button[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-mid) 100%);
  border-color: transparent;
}
.banner { background: var(--warn-bg); color: #92400e; border: 1px solid #fde68a; border-radius: 14px; padding: 14px 16px; }
.empty, .error { padding: 22px; }
dl { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 8px 12px; }
dt { color: var(--muted); }
dd { margin: 0; }
pre.body { white-space: pre-wrap; font-family: inherit; }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.crumbs a { color: inherit; font-weight: 700; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.diff { background: #fffbeb; padding: 4px 8px; border-radius: 8px; }
.skeleton {
  height: 96px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #e7eef8, #f7faff, #e7eef8);
  background-size: 200% 100%;
  animation: shine 1.2s infinite;
}
.prose p, .panel li { max-width: 68ch; }
.panel ul { margin: 8px 0 16px; padding-left: 1.2rem; }
.panel h3 { margin: 0 0 8px; font-size: 17px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-weight: 700; }

.btn, .solid, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 17px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn, .solid {
  border: 0;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-mid) 100%);
  box-shadow: 0 12px 22px -12px rgba(30, 64, 175, 0.55);
  color: #fff;
}
.solid:hover, .btn:hover { filter: brightness(1.07); color: #fff; }
a.solid { color: #fff; }
.btn-ghost, .ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.ghost:hover, .btn-ghost:hover { background: #eef4fc; color: var(--brand-dark); }
kbd { font-family: ui-monospace, Consolas, monospace; font-size: 12px; border: 1px solid var(--border); border-radius: 6px; padding: 0 5px; background: #f4f8fc; }

.palette { position: fixed; inset: 0; background: rgba(20, 36, 63, 0.35); display: grid; align-items: start; justify-content: center; padding-top: 12vh; z-index: 40; }
.palette[hidden] { display: none; }
.palette-card { width: min(560px, calc(100vw - 32px)); background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow-lift); }
.palette-card input { width: 100%; }
.palette-card a, .palette-card button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: inherit; text-decoration: none; font-weight: 600; }
.palette-card a:hover { background: #eef4fc; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  background: #16283f;
  color: #fff;
  padding: 13px 17px;
  border-radius: 14px;
  box-shadow: 0 18px 38px -14px rgba(10, 25, 47, 0.5);
  z-index: 50;
}
.toast[hidden] { display: none; }
.site-footer {
  margin-top: 28px;
  background: linear-gradient(180deg, rgba(232, 239, 248, 0.4), #e8eff8);
  border-top: 1px solid var(--border);
  color: #33507f;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 32px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
}
.site-footer a { color: var(--brand); font-weight: 700; }
.footer-feedback { max-width: 1440px; margin: 0 auto; padding: 28px 32px 4px; }
.footer-feedback[hidden] { display: none; }
.footer-heading {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}
.feedback { max-width: 720px; }
.feedback > label { display: block; font-weight: 700; margin: 16px 0 6px; }
.feedback textarea, .feedback input[type="text"], .feedback input[type="password"], .feedback input[type="email"] {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: 12px;
  padding: 10px 13px;
  background: #fff;
}
.feedback textarea:focus, .feedback input[type="text"]:focus, .feedback input[type="password"]:focus, .feedback input[type="email"]:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}
.choices { display: grid; gap: 8px; }
.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.choice:has(input:checked) { border-color: var(--brand-light); background: #eef4fc; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.appeal { padding: 16px; }
.appeal p { margin: 8px 0 0; white-space: pre-wrap; }

@media (max-width: 800px) {
  .header-inner, #main, .footer-inner, .footer-feedback { padding-left: 16px; padding-right: 16px; }
  .brand-sub, .brand-word { display: none; }
  .brand-service-icon { width: 30px; height: 30px; }
  .brand-title { font-size: 14px; }
  .search { flex-direction: column; }
  dl { grid-template-columns: 1fr; }
  .toast { left: 16px; right: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
  .tile:hover { transform: none; }
}
@keyframes shine { to { background-position: -200% 0; } }
