@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/montserrat.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/opensans.woff2') format('woff2');
}

:root {
  --navy: #0C1C4A;
  --navy-dark: #06102D;
  --gold: #66B3E5;
  --text: #000000;
  --text-light: #5a5a5a;
  --bg-light: #F5F7FA;
  --border: #AEADB3;
  --radius: 8px;
  --transition-theme: background 0.3s, color 0.3s, border-color 0.3s;
}

[data-theme="dark"] {
  --navy: #66B3E5;
  --navy-dark: #000000;
  --text: #ffffff;
  --text-light: #d8dee8;
  --bg-light: #05070d;
  --border: #3f4652;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--bg-light);
  transition: var(--transition-theme);
}
h1, h2, h3 { font-family: 'Montserrat', sans-serif; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

nav {
  background: var(--navy-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-inner {
  width: 100%;
  margin: 0;
  padding: 0 1.5rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold);
}
.nav-logo span { color: #fff; font-weight: 400; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  list-style: none;
}
.nav-links a {
  color: #cdd6e8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.nav-links a.nav-home {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-links a.nav-home svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold);
  background: rgba(102,179,229,0.1);
}
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(102,179,229,0.55);
  border-radius: 50%;
  background: rgba(102,179,229,0.08);
  color: #cdd6e8;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 0.55rem;
  border: 1px solid rgba(102,179,229,0.55);
  border-radius: 4px;
  background: rgba(102,179,229,0.08);
  color: #cdd6e8;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.search-toggle svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.language-toggle:hover,
.language-toggle:focus-visible,
.search-toggle:hover,
.search-toggle:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy-dark);
  outline: none;
}
.site-search-panel {
  position: fixed;
  top: 72px;
  right: 1rem;
  z-index: 140;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  width: min(520px, calc(100vw - 2rem));
  padding: 0.65rem;
  border: 1px solid rgba(102,179,229,0.36);
  border-radius: 8px;
  background: var(--bg-white);
  box-shadow: 0 16px 40px rgba(0,0,0,0.24);
}
.site-search-panel[hidden] { display: none; }
.site-search-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-light);
  color: var(--text);
  font: 500 0.92rem 'Open Sans', sans-serif;
}
.site-search-input:focus { border-color: var(--gold); outline: none; }
.site-search-count {
  min-width: 3.4rem;
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}
.site-search-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(102,179,229,0.5);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.site-search-home {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}
.site-search-action svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.site-search-action:hover,
.site-search-action:focus-visible { background: var(--gold); color: var(--navy-dark); outline: none; }
.site-search-mark {
  border-radius: 3px;
  background: rgba(102,179,229,0.35);
  color: inherit;
  padding: 0.02em 0.08em;
}
.site-search-mark.is-active {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 0 0 2px rgba(12,28,74,0.18);
}
.site-search-pages {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.site-search-pages:empty { display: none; }
.site-search-pages__label {
  color: var(--text-light);
  font-size: 0.76rem;
  font-weight: 700;
}
.site-search-page-link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(102,179,229,0.34);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
}
.site-search-page-link:hover,
.site-search-page-link:focus-visible {
  border-color: var(--gold);
  background: rgba(102,179,229,0.16);
  color: var(--navy-dark);
  outline: none;
}
.site-search-page-link span { color: var(--text-light); }

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 44%, #1f6d9e 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(102,179,229,0.24), rgba(102,179,229,0.08)),
    url('/images/img-02.webp') center/cover no-repeat;
  opacity: 0.2;
}
.page-hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.hero-logo {
  width: 170px;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
}
.page-hero p { color: #D7EAF7; margin-top: 0.8rem; font-size: 1rem; }

.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
.section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }
.section-num {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section p { color: var(--text-light); margin-bottom: 0.8rem; font-size: 0.95rem; }
.section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.8rem;
}
.section ul li {
  font-size: 0.93rem;
  color: var(--text-light);
  padding: 0.4rem 0 0.4rem 1.2rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.section ul li:last-child { border-bottom: none; }
.section ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.back-to-top-row {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(102,179,229,0.5);
  border-radius: 50%;
  background: var(--navy-dark);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--gold);
  color: var(--navy-dark);
  outline: none;
  transform: translateY(-2px);
}
.badge {
  display: inline-block;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0.2rem;
}

footer {
  background: var(--navy-dark);
  padding: 1.5rem;
  text-align: center;
  color: #6a82a0;
  font-size: 0.85rem;
}
footer strong { color: var(--gold); }

.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #AEADB3;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); background: rgba(102,179,229,0.08); }
.theme-toggle svg { width: 16px; height: 16px; fill: currentColor; pointer-events: none; }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .section-num {
  background: #000000;
}
[data-theme="dark"] .section h2 {
  color: var(--text);
}
[data-theme="dark"] footer {
  background: #000000;
}

@media (max-width: 640px) {
  .nav-inner {
    height: auto;
    min-height: 60px;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
  .nav-links {
    justify-content: flex-start;
  }
  .search-toggle {
    width: 30px;
    height: 30px;
  }
  .language-toggle {
    min-width: 44px;
    height: 30px;
  }
  .site-search-panel {
    top: 104px;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }
}
