:root {
  --navy: #0b2f5b;
  --navy-soft: #123b72;
  --gold: #d3af58;
  --gold-soft: #edd9a0;
  --ink: #142033;
  --muted: #69758a;
  --line: #d7deea;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --hero: linear-gradient(135deg, #0b2f5b 0%, #153c73 55%, #0f284d 100%);
  --shadow: 0 18px 50px rgba(6, 25, 52, 0.12);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-alt);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 0.84rem;
}

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

.topbar .container,
.site-header .container,
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar .container {
  min-height: 48px;
}

.topbar-title {
  opacity: 0.92;
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-links,
.locale-switch {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a,
.locale-switch a {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.social-links a:hover,
.locale-switch a:hover,
.locale-switch a.active {
  opacity: 1;
  color: var(--gold-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 10px 24px rgba(11, 47, 91, 0.08);
}

.site-header .container {
  min-height: 92px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: min(100%, 320px);
  max-height: 74px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-copy {
  display: grid;
  gap: 6px;
}

.brand-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.brand-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
}

.brand-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: stretch;
}

.menu,
.submenu,
.submenu-panel,
.submenu-group-list,
.mobile-menu,
.mobile-group-list,
.service-grid,
.news-grid,
.section-links,
.page-grid,
.contact-grid,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.menu-item {
  position: relative;
}

.menu-link,
.menu-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 92px;
  padding: 0 16px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--navy);
}

.menu-link:hover,
.submenu-link:hover {
  color: var(--gold);
}

.menu-link:hover {
  background: rgba(11,47,91,0.04);
}

.submenu-panel {
  display: none;
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  min-width: 290px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.menu-item:hover > .submenu-panel {
  display: block;
}

.submenu-item + .submenu-item,
.submenu-group + .submenu-group {
  margin-top: 8px;
}

.submenu-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
}

.submenu-link:hover {
  background: var(--surface-alt);
}

.submenu-group-title {
  display: block;
  padding: 10px 12px 4px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.submenu-group-list {
  padding-left: 12px;
}

.submenu-group-list .submenu-link {
  padding-left: 0;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-alt);
  color: var(--navy);
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 24, 47, 0.46);
  z-index: 60;
}

.mobile-drawer.open {
  display: block;
}

.mobile-panel {
  width: min(92vw, 380px);
  height: 100%;
  margin-left: auto;
  background: #fff;
  padding: 20px 18px 28px;
  overflow-y: auto;
}

.mobile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-close {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.1rem;
}

.mobile-menu .mobile-item + .mobile-item {
  border-top: 1px solid var(--line);
}

.mobile-item-link,
.mobile-group-title {
  display: block;
  padding: 14px 0;
  font-weight: 600;
  color: var(--navy);
}

.mobile-group-list {
  display: grid;
  gap: 8px;
  padding: 0 0 14px 12px;
}

.mobile-group-list .mobile-item + .mobile-item {
  border-top: 1px solid var(--line);
}

.mobile-group-list .mobile-item-link {
  padding: 10px 0;
  font-weight: 500;
  color: var(--ink);
}

.page-main {
  flex: 1;
}

.hero {
  position: relative;
  background: var(--hero);
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(211,175,88,0.18) 0%, rgba(211,175,88,0) 70%);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(68px, 90px) minmax(0, 1fr) minmax(320px, 420px);
  gap: 36px;
  align-items: center;
  min-height: 500px;
  padding-block: 42px;
}

.hero-script {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.hero-script-line {
  width: 2px;
  height: 180px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(211,175,88,0.9), rgba(255,255,255,0.1));
}

.hero-script-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.72);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 20px 0 18px;
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-intro {
  max-width: 620px;
  margin: 0 0 26px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button {
  background: var(--gold);
  color: #08223f;
  box-shadow: 0 16px 30px rgba(211, 175, 88, 0.28);
}

.button:hover,
.button-outline:hover {
  transform: translateY(-1px);
}

.button-outline {
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
  background: rgba(255,255,255,0.04);
}

.button-outline-dark {
  border-color: var(--line);
  color: var(--navy);
  background: #fff;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  align-self: end;
}

.hero-portrait-card {
  position: relative;
  padding: 16px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
}

.hero-portrait-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(211,175,88,0.48);
  border-radius: 22px 22px 0 0;
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: right center;
  border-radius: 18px 18px 0 0;
}

.hero-portrait-caption {
  margin-top: 14px;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
}

.section-tight {
  padding-top: 54px;
}

#home-services,
#home-news {
  scroll-margin-top: 160px;
}

.home-section-card {
  padding: 34px;
}

.service-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.service-shortcut {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fafd);
  box-shadow: 0 10px 30px rgba(12, 31, 59, 0.06);
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.service-shortcut-art {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,47,91,0.05);
}

.service-shortcut-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.service-shortcut:hover,
.action-card:hover,
.feature-story:hover,
.channel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(211,175,88,0.6);
}

.service-shortcut-title {
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

.consular-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 18px;
  margin-top: 22px;
}

.notice-panel,
.home-news-panel,
.channel-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fafd);
  box-shadow: 0 10px 30px rgba(12, 31, 59, 0.06);
}

.notice-panel {
  padding: 24px 26px;
}

.notice-panel h3,
.home-news-panel-title,
.channel-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.notice-panel p,
.channel-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(11,47,91,0.06);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
}

.action-stack {
  display: grid;
  gap: 16px;
}

.action-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(211,175,88,0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, #123b72, #0b2f5b);
  color: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.action-card-alt {
  background: linear-gradient(180deg, #17447f, #0d325d);
}

.action-label {
  color: rgba(255,255,255,0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.action-title {
  margin: 12px 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
}

.action-body {
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

.action-link {
  margin-top: 16px;
  color: var(--gold-soft);
  font-weight: 700;
}

.home-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.feature-story {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(12, 31, 59, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-story-media {
  aspect-ratio: 1.55;
  background: linear-gradient(180deg, rgba(11,47,91,0.08), rgba(11,47,91,0.02));
}

.feature-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-story-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.feature-story h3 {
  margin: 12px 0;
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  line-height: 1.12;
  color: var(--navy);
}

.feature-story p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-story small {
  margin-top: auto;
  padding-top: 18px;
  color: var(--gold);
  font-weight: 700;
}

.home-news-panel {
  padding: 24px;
}

.headline-list {
  display: grid;
}

.headline-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.headline-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.headline-thumb {
  width: 84px;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(11,47,91,0.08), rgba(11,47,91,0.02));
}

.headline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.headline-thumb-placeholder,
.news-card-placeholder {
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 12px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.headline-meta {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.headline-item h4 {
  margin: 6px 0 8px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.headline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.channel-card {
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.channel-card-brand {
  background: linear-gradient(135deg, #133c73, #0b2f5b);
  color: #fff;
}

.channel-card-brand h3,
.channel-card-brand p,
.channel-card-brand .channel-list a {
  color: #fff;
}

.channel-card-logo {
  width: min(100%, 180px);
  margin-bottom: 18px;
}

.social-pill-list,
.channel-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
}

.channel-list a {
  color: var(--navy);
  font-weight: 600;
}

.page-news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  margin-bottom: 34px;
}

.page-news-sidebar {
  align-self: start;
}

.page-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}

.section {
  padding: 72px 0;
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
}

.inline-eyebrow {
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
}

.section-intro {
  margin: 10px 0 0;
  max-width: 780px;
  line-height: 1.7;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.news-card,
.link-card,
.contact-card,
.page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(12, 31, 59, 0.06);
}

.service-card {
  padding: 22px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.service-card:hover,
.news-card:hover,
.link-card:hover,
.page-card:hover {
  transform: translateY(-3px);
  border-color: rgba(211,175,88,0.6);
}

.service-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(11,47,91,0.08);
  color: var(--navy);
  font-size: 1.4rem;
}

.service-card h3,
.news-card h3,
.page-card h3,
.contact-card h3,
.link-card h3 {
  margin: 18px 0 10px;
  font-size: 1.06rem;
  line-height: 1.35;
  color: var(--navy);
}

.service-card p,
.news-card p,
.page-card p,
.contact-card p,
.link-card p,
.entry-meta,
.entry-content {
  color: var(--muted);
  line-height: 1.72;
}

.service-card small,
.news-meta,
.link-label {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold);
  font-weight: 700;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.news-grid-state {
  grid-column: 1 / -1;
  padding: 24px 0;
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.news-card-media {
  aspect-ratio: 1.38;
  background: linear-gradient(180deg, rgba(11,47,91,0.08), rgba(11,47,91,0.02));
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.news-card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.news-card-body small {
  margin-top: auto;
}

.news-meta {
  margin: 0 0 10px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-links {
  display: grid;
  gap: 16px;
}

.link-card {
  padding: 20px 22px;
}

.page-wrapper {
  padding: 56px 0 82px;
}

.page-hero {
  padding: 30px 32px;
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: var(--navy);
}

.page-subtitle {
  margin: 14px 0 0;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.72;
}

.page-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(11,47,91,0.06);
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 28px;
  align-items: start;
}

.page-grid-content {
  align-items: start;
}

.page-sidebar {
  display: grid;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 132px;
}

.page-card,
.sidebar-card {
  padding: 28px;
}

.page-article-shell {
  overflow: hidden;
}

.page-article-shell:hover {
  transform: none;
  border-color: var(--line);
}

.page-feature-media {
  margin: -28px -28px 24px;
  background: linear-gradient(180deg, rgba(11,47,91,0.08), rgba(11,47,91,0.02));
}

.page-feature-media img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.entry-content {
  font-size: 1rem;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content img {
  margin: 18px 0;
  border-radius: 16px;
}

.entry-content iframe,
.entry-content table {
  width: 100%;
  max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--navy);
  margin-top: 28px;
}

.entry-content a {
  color: var(--navy-soft);
  text-decoration: underline;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.sidebar-card-compact {
  padding: 22px;
}

.sidebar-card + .sidebar-card {
  margin-top: 18px;
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.sidebar-list a {
  color: var(--navy);
  font-weight: 600;
}

.sidebar-contact-list {
  display: grid;
  gap: 10px;
}

.sidebar-contact-list span,
.sidebar-contact-list a {
  color: var(--muted);
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  padding: 22px;
}


.footer-partners {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-partners .container {
  padding: 18px 0;
}

.footer-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.footer-partner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 8px 12px;
}

.footer-partner-link img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.footer-main {
  padding: 34px 0 30px;
  background: var(--navy);
  color: #fff;
}

.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-info-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.footer-info-icon {
  width: 42px;
  height: 42px;
  color: var(--gold);
}

.footer-info-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-info-copy {
  display: grid;
  gap: 10px;
}

.footer-info-label {
  color: rgba(255,255,255,0.7);
  font-size: 0.96rem;
}

.footer-info-values {
  display: grid;
  gap: 10px;
}

.footer-info-values strong,
.footer-info-values a {
  color: #fff;
}

.footer-info-values span,
.footer-info-values a {
  line-height: 1.6;
}

.footer-bottom {
  padding: 18px 0 24px;
  background: #092445;
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom .container {
  justify-content: center;
  text-align: center;
}

.state-message {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
}

.loading-ring {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 3px solid rgba(11,47,91,0.12);
  border-top-color: var(--navy);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .hero .container {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .hero-portrait {
    grid-column: 1 / -1;
    max-width: 360px;
    justify-self: center;
  }

  .service-grid,
  .news-grid,
  .contact-grid,
  .footer-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .consular-layout,
  .home-news-layout,
  .channels-grid,
  .page-news-layout,
  .page-grid-content {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    position: static;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .site-header .container {
    min-height: 80px;
  }

  .brand img {
    width: min(100%, 240px);
    max-height: 62px;
  }

  .brand-title {
    font-size: 1.04rem;
  }

  .brand-subtitle {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar .container,
  .site-header .container,
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-title {
    font-size: 0.88rem;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero .container {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 24px;
  }

  .hero-script {
    justify-items: flex-start;
  }

  .hero-script-line {
    width: 120px;
    height: 2px;
  }

  .hero-script-text {
    writing-mode: horizontal-tb;
    letter-spacing: 0.08em;
  }

  .hero-actions {
    width: 100%;
  }

  .page-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-section-card {
    padding: 24px;
  }

  .service-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consular-layout,
  .channels-grid {
    grid-template-columns: 1fr;
  }

  .notice-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .headline-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .headline-thumb {
    width: 72px;
  }

  .service-shortcut-art {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .service-shortcut-icon {
    width: 34px;
    height: 34px;
  }

  .service-grid,
  .news-grid,
  .contact-grid,
  .footer-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .footer-main {
    padding-block: 28px;
  }

  .footer-info-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
  }

  .footer-info-icon {
    width: 36px;
    height: 36px;
  }

  .section {
    padding-block: 52px;
  }

  .section-card,
  .page-card,
  .sidebar-card {
    padding: 22px;
  }

  .page-hero {
    padding: 24px;
  }

  .page-feature-media {
    margin: -22px -22px 22px;
  }
}
