/* Header and navigation: generous targets, consistent type and real dropdowns. */
.header { position: relative; z-index: 20; border-bottom: 1px solid #e4edf5; box-shadow: 0 3px 16px #06345106; }
.header .navigation { min-height: 104px; gap: 28px; }
.header .brand { gap: 14px; }
.header .brand strong { font-size: 27px; line-height: 1.2; }
.header .brand small { font-size: 8px; letter-spacing: .2px; margin-top: 6px; }
.header .brand-emblem { width: 61px; height: 61px; }
.header #main-nav { display: flex; position: static; align-items: center; gap: 3px; padding: 0; box-shadow: none; background: transparent; }
.header #main-nav .nav-item { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 10px; min-height: 46px; border: 0; border-radius: 7px; background: transparent; color: #162b4b; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; white-space: nowrap; transition: background .18s,color .18s; }
.header #main-nav > a::after, .header #main-nav > button::after { content: none; }
.header #main-nav .nav-item:hover, .header #main-nav .nav-item:focus-visible, .header #main-nav .nav-item.show { color: var(--blue); background: #edf5ff; }
.header .dropdown-toggle::after { display: block; width: 6px; height: 6px; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); vertical-align: initial; }
.header .nav-dropdown .dropdown-menu { min-width: 220px; padding: 9px; margin-top: 8px !important; border: 1px solid #e3edf6; border-radius: 12px; box-shadow: 0 15px 40px #123b641a; }
.header .nav-dropdown .dropdown-item { display: block; width: 100%; min-height: 42px; padding: 10px 13px; background: transparent; color: #263c5c; border: 0; border-radius: 6px; font-size: 14px; font-weight: 500; line-height: 1.5; text-align: left; }
.header .nav-dropdown .dropdown-item:hover, .header .nav-dropdown .dropdown-item:focus { color: var(--blue); background: #edf5ff; }
.header #main-nav .nav-admission { margin-left: 12px; padding-inline: 19px; color: #fff; background: var(--blue); box-shadow: 0 4px 12px #005bd51f; }
.header #main-nav .nav-admission:hover { background: #0049b0; color: #fff; }
.header #main-nav .nav-admission span { color: inherit; margin: 0; font-size: 19px; }
.header .menu-toggle { position: relative; display: none; width: 46px; height: 46px; padding: 12px; flex-shrink: 0; border: 1px solid #d8e6f2; border-radius: 9px; background: #f4f8fd; }
.header .menu-toggle span { position: absolute; left: 12px; top: 21px; display: block; width: 21px; height: 2px; margin: 0; background: #16325b; border-radius: 2px; transition: transform .2s,opacity .2s; }
.header .menu-toggle span:first-child { transform: translateY(-6px); }
.header .menu-toggle span:last-child { transform: translateY(6px); }
.header .menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.header .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header .menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
@media (max-width: 1279.98px) and (min-width: 1200px) {
  .header .navigation { gap: 18px; }
  .header .brand { gap: 10px; }
  .header .brand strong { font-size: 24px; }
  .header .brand-emblem { width: 55px; height: 56px; }
  .header #main-nav .nav-item { padding-inline: 8px; font-size: 13px; }
  .header #main-nav .nav-admission { margin-left: 7px; padding-inline: 15px; }
}
@media (max-width: 1199.98px) {
  .header .navigation { min-height: 92px; position: relative; }
  .header .menu-toggle { display: block; }
  .header #main-nav { display: none; position: absolute; top: calc(100% + 1px); left: 28px; right: 28px; z-index: 25; padding: 16px; border: 1px solid #e0eaf4; border-radius: 0 0 14px 14px; background: #fff; box-shadow: 0 18px 30px #0e355c1a; max-height: 75vh; overflow-y: auto; overscroll-behavior: contain; }
  .header #main-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .header #main-nav .nav-item { width: 100%; justify-content: space-between; padding: 13px 16px; min-height: 48px; font-size: 15px; text-align: left; }
  .header .nav-dropdown .dropdown-menu { position: static !important; transform: none !important; min-width: 0; width: 100%; margin: 4px 0 8px !important; padding: 6px 10px; background: #f5f9fe; box-shadow: none; border: 0; border-left: 2px solid #cfe1fb; border-radius: 0 8px 8px 0; }
  .header .nav-dropdown .dropdown-item { padding: 11px 14px; font-size: 14px; }
  .header #main-nav .nav-admission { margin: 12px 0 0; justify-content: center; gap: 12px; }
}
@media (max-width: 575.98px) {
  .header .navigation { min-height: 88px; gap: 16px; }
  .header .brand { gap: 10px; }
  .header .brand-emblem { width: 49px; height: 51px; }
  .header .brand strong { font-size: 22px; }
  .header .brand small { font-size: 6px; letter-spacing: 0; }
  .header #main-nav { left: 16px; right: 16px; padding: 12px; }
}
