.top-bar {
  background: var(--primary-dark, #0e2a4f);
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: rgba(255,255,255,0.9);
  transition: color 0.2s;
}

.top-bar a:hover { color: var(--accent, #2a7de1); }

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

header {
  background: var(--white, #ffffff);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(26,62,111,0.06));
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
  overflow: visible;
  z-index: 1100;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo-img {
  width: clamp(40px, 5vw, 52px);
  height: clamp(40px, 5vw, 52px);
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: #1a3e6f;
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-family: 'Georgia', 'Times New Roman', serif;
}

.logo-text small {
  display: block;
  font-size: clamp(0.68rem, 1.2vw, 0.85rem);
  font-weight: 600;
  color: #9a4d56;
  letter-spacing: 0.01em;
  text-transform: none;
  font-family: system-ui, -apple-system, sans-serif;
  margin-top: 4px;
  line-height: 1.25;
}

header .logo-text {
  background: none;
  color: #1a3e6f;
  padding: 0;
  border-radius: 0;
}

header .logo-text small {
  color: #9a4d56;
  font-weight: 600;
}

.nav-links { display: none; }

.header-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-left: 10px;
  min-width: 0;
}

.header-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1a3e6f;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.header-links a:hover {
  color: var(--accent, #2a7de1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(280px, 42vw);
  max-width: 340px;
  padding: 6px 8px 6px 12px;
  background: #ffffff;
  border: 1px solid #c5d0dc;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(14, 42, 79, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search:focus-within {
  border-color: #1a3e6f;
  box-shadow: 0 0 0 3px rgba(26, 62, 111, 0.12);
}

.header-search-icon {
  flex-shrink: 0;
  color: #5a6d7e;
}

.header-search:focus-within .header-search-icon {
  color: #1a3e6f;
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a2b3c;
}

.header-search input::placeholder {
  color: #7a8b9a;
  font-weight: 500;
}

.header-search-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  background: #1a3e6f;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

.header-search-btn:hover {
  background: #0e2a4f;
}

.nav-actions .btn-primary,
header .btn-primary {
  background: #1a3e6f;
  color: #ffffff;
  border: none;
}

.nav-actions .btn-primary:hover,
header .btn-primary:hover {
  background: #0e2a4f;
  color: #ffffff;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: var(--bg, #f5f8fc);
  border: 1px solid var(--border, #dce4ed);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--text, #1a2b3c);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  margin: 0 auto;
}

.hamburger[aria-expanded="true"] {
  background: var(--primary-light, #e6eef7);
  border-color: var(--primary, #1a3e6f);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mega-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 32, 0.55);
  z-index: 99990;
}

.mega-nav-overlay[hidden] { display: none !important; }

.mega-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  max-height: min(92vh, 860px);
  margin-top: 0;
  padding-top: 0;
  color: #fff;
}

.mega-nav[hidden] { display: none !important; }

.mega-nav-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  background: #0b1f2c;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  max-height: min(92vh, 860px);
  overflow: hidden;
}

.mega-nav-rail {
  display: flex;
  flex-direction: column;
  background: #07151f;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 72px 0 20px;
  overflow-y: auto;
}

.mega-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 22px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.88);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mega-rail-item svg {
  flex-shrink: 0;
  opacity: 0.55;
}

.mega-rail-item:hover {
  background: rgba(42,125,225,0.12);
  color: #fff;
}

.mega-rail-item.is-active {
  background: #2a7de1;
  color: #fff;
}

.mega-rail-item.is-active svg { opacity: 1; }

.mega-rail-link {
  text-decoration: none;
  color: rgba(255,255,255,0.88);
  border-top: none;
  box-sizing: border-box;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(255,255,255,0.15);
}

a.mega-rail-item.mega-rail-link {
  cursor: pointer;
}

@media (min-width: 901px) {
  .mega-rail-link {
    display: none !important;
  }

  .mega-rail-link + .mega-rail-section {
    border-top: none;
    margin-top: 0;
    padding-top: 14px;
  }
}

.mega-rail-link + .mega-rail-section {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin-top: 6px;
  padding-top: 16px;
}

.mega-rail-footer {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 18px 22px;
  color: #7eb6ff;
  font-size: 0.92rem;
  font-weight: 500;
}

.mega-rail-footer:hover { color: #fff; }

.mega-nav-main {
  position: relative;
  padding: 28px 36px 32px;
  overflow-y: auto;
  max-height: min(92vh, 860px);
}

.mega-rail-top {
  display: none;
}

.mega-rail-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.mega-nav-back {
  display: none;
}

.mega-nav-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.mega-nav-close:hover { background: rgba(255,255,255,0.08); }

.mega-panel[hidden] { display: none !important; }

.mega-panel-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 48px 22px 0;
  color: #fff;
}

.mega-panel-grid {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 200px);
  gap: 28px;
  align-items: start;
}

.mega-panel-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.mega-group-label {
  margin: 18px 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7eb6ff;
}

.mega-group-label:first-of-type { margin-top: 0; }

.mega-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1.2fr);
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}

.mega-row strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.mega-row span {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
  line-height: 1.4;
}

.mega-row:hover strong { color: #7eb6ff; }
.mega-row:hover span { color: rgba(255,255,255,0.85); }

.mega-panel-side a {
  display: block;
  color: #7eb6ff;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.mega-panel-side a:hover { color: #fff; }

@media (max-width: 900px) {
  .mega-nav {
    top: 0 !important;
    bottom: 0;
    max-height: none;
    height: 100%;
  }

  .mega-nav-shell {
    grid-template-columns: 1fr;
    height: 100%;
    max-height: none;
    overflow: hidden;
  }

  .mega-nav-rail {
    display: flex;
    padding-top: 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    max-height: none;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border-bottom: none;
  }

  .mega-rail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px 22px;
    background: #07151f;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .mega-rail-close {
    position: static;
    width: 44px;
    height: 44px;
  }

  .mega-nav-main {
    display: none;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 18px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .mega-nav.is-panel-open .mega-nav-rail {
    display: none;
  }

  .mega-nav.is-panel-open .mega-nav-main {
    display: block;
  }

  .mega-nav-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
    gap: 12px;
    margin: 0 -18px 12px;
    padding: 12px 12px 12px 8px;
    background: #0b1f2c;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .mega-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #7eb6ff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 12px;
    cursor: pointer;
  }

  .mega-nav-close {
    position: static;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .mega-panel-title {
    margin: 8px 0 18px;
    font-size: 1.45rem;
  }

  .mega-panel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mega-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mega-rail-item {
    min-height: 48px;
    font-size: 1.05rem;
    padding: 16px 22px;
  }

  .mega-rail-footer {
    margin-top: 12px;
  }
}

footer {
  background: #0b1f2c;
  color: #ffffff;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1a3344;
}

.footer-about .logo-link { margin-bottom: 16px; }
.footer-about .logo-text,
.footer-about .logo-text small {
  color: #ffffff;
}

.footer-about > p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #152d3e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social a:hover { background: #1a3e6f; }

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.footer-social a:hover svg { fill: #ffffff; }

footer h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; }

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer li a {
  font-size: 0.9rem;
  color: #ffffff;
  transition: opacity 0.2s;
}

footer li a:hover,
footer a:hover {
  color: #ffffff;
  opacity: 0.82;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
  color: #ffffff;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #ffffff;
}

.footer-bottom-links a:hover {
  color: #ffffff;
  opacity: 0.82;
}

@media (max-width: 1100px) {
  .header-links {
    display: none;
  }

  .header-search {
    min-width: min(220px, 38vw);
  }
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.top-bar-phone {
  flex-wrap: wrap;
  gap: 6px 8px;
}

@media (max-width: 768px) {
  .top-bar-phone { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .logo-text small {
    display: none;
  }

  .header-search {
    min-width: 0;
    max-width: 180px;
    padding: 5px 6px 5px 10px;
  }

  .header-search input {
    font-size: 0.78rem;
  }

  .header-search-btn {
    padding: 7px 10px;
    font-size: 0.72rem;
  }
}
