:root {
  --brand-blue: #0f4f96;
  --brand-blue-dark: #0b3f78;
  --brand-navy: #0f172a;
  --text-main: #0f172a;
  --text-soft: #5b6472;
  --border-soft: #e5e7eb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --container: 1280px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
button,
input,
select,
textarea,
.brand,
.main-nav .nav-link,
.mobile-nav-links a,
.lang-switch a,
.mobile-lang-switch a,
.site-footer,
.site-footer a {
  font-family: "Noto Sans Georgian", Arial, Helvetica, sans-serif;
}

body {
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10000;
  background: var(--brand-blue);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

/* FIRST ROW */
.header-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--brand-blue);
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.header-tagline {
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--brand-blue);
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch,
.mobile-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-switch a,
.mobile-lang-switch a {
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.lang-switch a:hover,
.mobile-lang-switch a:hover,
.lang-switch a.is-active,
.mobile-lang-switch a.is-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  border-color: var(--brand-blue);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  display: block;
  border-radius: 999px;
}

/* SECOND ROW */
.desktop-nav {
  border-top: 1px solid rgba(229, 231, 235, 0.75);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 0 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  white-space: nowrap;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav .nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.15;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.is-active,
.main-nav .nav-link.active {
  background: rgba(15, 79, 150, 0.1);
  color: var(--brand-blue);
}

.mobile-menu {
  position: fixed;
  inset: 76px 0 auto 0;
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.mobile-menu.is-open,
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-inner {
  padding: 20px 0 28px;
}

.mobile-nav-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mobile-nav-links a {
  display: block;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
  transition: all 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.is-active,
.mobile-nav-links a.active {
  background: rgba(15, 79, 150, 0.08);
  color: var(--brand-blue);
  border-color: rgba(15, 79, 150, 0.22);
}

.mobile-nav-links hr {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 10px 0;
}

.site-footer {
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.84);
  margin-top: 64px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding: 56px 0 36px;
}

.site-footer__brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.site-footer__text {
  margin: 16px 0 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.site-footer__title {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer__list a,
.site-footer .text-link {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__list a:hover,
.site-footer .text-link:hover {
  color: #fff;
}

.site-footer__bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__legal {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1180px) {
  .main-nav .nav-link {
    font-size: 0.74rem;
    padding: 8px 8px;
  }

  .header-tagline {
    font-size: 0.76rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand-block {
    grid-column: 1 / -1;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .header-row {
    min-height: 74px;
  }

  .mobile-menu {
    inset: 74px 0 auto 0;
    max-height: calc(100dvh - 74px);
  }
}

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

  .header-row {
    grid-template-columns: auto 1fr auto auto;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .brand {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }

  .lang-switch a,
  .mobile-lang-switch a {
    min-width: 34px;
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 0 28px;
  }
}
.site-header .container {
  width: min(1280px, calc(100% - 64px));
}

/* FIRST ROW */
.header-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 220px 1fr 150px;
  align-items: center;
  gap: 18px;
}

.brand {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  justify-self: start;
}

.header-tagline {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--brand-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-tools {
  justify-self: end;
}

/* SECOND ROW */
.desktop-nav {
  border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 24px 14px;
  flex-wrap: nowrap;
  overflow: visible;
  white-space: nowrap;
}

.main-nav .nav-link {
  font-size: 0.8rem;
  line-height: 1.15;
  font-weight: 700;
  padding: 6px 0;
  border-radius: 0;
  flex: 0 0 auto;
}

/* Remove pill feeling for desktop to get closer to MT */
.main-nav .nav-link:hover,
.main-nav .nav-link.is-active,
.main-nav .nav-link.active {
  background: transparent;
  color: var(--brand-blue);
}

/* Optional thin top indicator feel for active item */
.main-nav .nav-link.is-active,
.main-nav .nav-link.active {
  position: relative;
}

.main-nav .nav-link.is-active::before,
.main-nav .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -13px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 999px;
}

/* Prevent clipping of first and last words */
.desktop-nav .container {
  overflow: visible;
}

.main-nav::before,
.main-nav::after {
  content: "";
  flex: 0 0 8px;
}

/* Language buttons slightly smaller like MT */
.lang-switch a {
  min-width: 34px;
  min-height: 34px;
  padding: 0 9px;
  font-size: 0.78rem;
}

/* Better balance on slightly smaller desktops */
@media (max-width: 1360px) {
  .site-header .container {
    width: min(1280px, calc(100% - 48px));
  }

  .header-row {
    grid-template-columns: 200px 1fr 140px;
  }

  .main-nav {
    gap: 11px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .main-nav .nav-link {
    font-size: 0.76rem;
  }
}

@media (max-width: 1200px) {
  .header-row {
    grid-template-columns: 190px 1fr 136px;
    gap: 14px;
  }

  .header-tagline {
    font-size: 0.74rem;
  }

  .main-nav {
    gap: 9px;
  }

  .main-nav .nav-link {
    font-size: 0.72rem;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .header-row {
    grid-template-columns: auto 1fr auto auto;
    min-height: 74px;
  }

  .header-tagline {
    display: none;
  }

  .mobile-menu {
    inset: 74px 0 auto 0;
    max-height: calc(100dvh - 74px);
  }
}

@media (max-width: 700px) {
  .site-header .container {
    width: min(1280px, calc(100% - 24px));
  }

  .brand {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }

  .lang-switch a,
  .mobile-lang-switch a {
    min-width: 34px;
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.78rem;
  }
}/* THIN MT-LIKE KA HEADER */

.site-header .container {
  width: min(1280px, calc(100% - 24px));
}

.header-compact-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--brand-blue);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
}

.desktop-nav.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible;
  padding: 0;
}

.main-nav .nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.76rem;
  line-height: 1.1;
  font-weight: 700;
  padding: 4px 0;
  border-radius: 0;
  white-space: nowrap;
  flex: 0 0 auto;
  position: relative;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.is-active,
.main-nav .nav-link.active {
  color: var(--brand-blue);
  background: transparent;
}

.main-nav .nav-link.is-active::before,
.main-nav .nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 999px;
}

.lang-switch--inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  flex: 0 0 auto;
}

.lang-switch--inline a {
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.74rem;
  transition: all 0.2s ease;
}

.lang-switch--inline a:hover,
.lang-switch--inline a.is-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text-main);
  display: block;
  border-radius: 999px;
}

.mobile-menu {
  position: fixed;
  inset: 56px 0 auto 0;
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.mobile-menu.is-open,
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-inner {
  padding: 18px 0 26px;
}

.mobile-nav-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mobile-nav-links a {
  display: block;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
  padding: 14px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #fff;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.is-active,
.mobile-nav-links a.active {
  background: rgba(15, 79, 150, 0.08);
  color: var(--brand-blue);
  border-color: rgba(15, 79, 150, 0.22);
}

.mobile-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-lang-switch a {
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.mobile-lang-switch a:hover,
.mobile-lang-switch a.is-active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

@media (max-width: 1380px) {
  .desktop-nav.main-nav {
    gap: 10px;
  }

  .main-nav .nav-link {
    font-size: 0.72rem;
  }
}

@media (max-width: 1240px) {
  .desktop-nav.main-nav {
    gap: 8px;
  }

  .main-nav .nav-link {
    font-size: 0.69rem;
  }

  .lang-switch--inline a {
    min-width: 30px;
    min-height: 30px;
    font-size: 0.7rem;
  }
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-compact-row {
    min-height: 56px;
    grid-template-columns: auto 1fr auto;
  }

  .mobile-menu {
    inset: 56px 0 auto 0;
    max-height: calc(100dvh - 56px);
  }
}
.brand {
  display: inline-flex;
  align-items: center;
  color: #004494;
  text-decoration: none;
  font-family: "Arial Narrow", "Noto Sans Georgian", Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.045em;
  white-space: nowrap;
  text-transform: uppercase;
}
.header-compact-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.brand {
  position: relative;
  top: -1px;
}