@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Manrope:wght@400;600;700&display=swap');

:root {
  --bg: #070b14;
  --panel: #0d1628;
  --text: #e6edf7;
  --muted: #95a6bf;
  --accent: #0ea5e9;
  --sidebar-w: 320px;
  --sidebar-gap: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Manrope, system-ui;
  background: radial-gradient(circle at top right, #16253f 0, #070b14 45%);
  color: var(--text);
}

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

img,
video,
iframe {
  max-width: 100%;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1d2b45;
  z-index: 2000;
  isolation: isolate;
}

.topbar__inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  position: relative;
  z-index: 2001;
  direction: ltr;
  justify-content: flex-start;
  margin-left: 20px;
}

.topbar nav a {
  white-space: nowrap;
}

.topmenu-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  direction: ltr;
}

.topmenu {
  position: relative;
}

.topmenu > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.topmenu > summary::-webkit-details-marker {
  display: none;
}

.topmenu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  min-width: 240px;
  max-width: min(720px, calc(100vw - 24px));
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #2b4367;
  background: linear-gradient(165deg, #162846, #0d1c33 62%);
  box-shadow: 0 14px 24px rgba(4, 10, 20, 0.4);
  max-height: min(70vh, 560px);
  overflow: auto;
}

.topmenu[open] > .topmenu__dropdown {
  display: grid;
}

.topmenu__rootlink,
.topmenu > summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 2px;
  color: var(--muted);
}

.topmenu__rootlink--static {
  opacity: 0.8;
}

.topmenu__subcat {
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(111, 165, 219, 0.25);
  border-radius: 8px;
  background: rgba(9, 18, 33, 0.4);
}

.topmenu__subcat h4 {
  margin: 0;
  font-size: 13px;
  color: #9dd5ff;
}

.topmenu__subcat-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(41, 112, 189, 0.35);
  color: #d5e9ff;
  overflow-wrap: anywhere;
}

.topmenu__link,
.topmenu__text {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.topmenu__link {
  background: rgba(41, 112, 189, 0.35);
  color: #d5e9ff;
}

.topmenu__text {
  color: #c8dcf5;
}

.brand {
  font-family: 'Russo One', sans-serif;
  letter-spacing: 0.08em;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  padding: 18px 0 32px;
}

.site-main {
  min-width: 0;
  max-width: min(1120px, calc(100vw - var(--sidebar-w) - var(--sidebar-gap) - 48px));
  margin: 0 auto;
  padding: 0 20px;
}

.site-copyright {
  margin-top: 8px;
  padding: 14px 0 20px;
  border-top: 1px solid #1d2b45;
  color: #95a6bf;
  font-size: 13px;
}

.right-sidebar {
  position: fixed;
  right: 14px;
  top: 88px;
  bottom: 12px;
  width: var(--sidebar-w);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 14px;
  padding-right: 2px;
  z-index: 9;
}

.right-card {
  background: linear-gradient(165deg, #162846, #0d1c33 62%);
  border: 1px solid #2f4f78;
  border-radius: 12px;
  padding: 12px;
  color: #dbe8fb;
  box-shadow: 0 10px 24px rgba(4, 10, 20, 0.35);
}

.right-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #85d7ff;
}

.right-card p {
  margin: 0 0 8px;
  color: #dbe8fb;
  overflow-wrap: anywhere;
}

.right-gos__title {
  font-weight: 700;
}

.right-cta {
  display: inline-flex;
  background: linear-gradient(135deg, #00a3ff, #1dd9ff);
  color: #03203b;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(9, 154, 221, 0.35);
}

.right-director {
  display: block;
  background: linear-gradient(135deg, #f1583e, #d92d64);
  border: 1px solid #ff7f67;
  color: #fff;
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(209, 59, 90, 0.35);
}

.right-links {
  display: grid;
  gap: 7px;
}

.right-links__item {
  color: #c9e7ff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #65cfff;
}

.right-links__button {
  display: inline-flex;
  background: linear-gradient(135deg, #2365d4, #1a9dff);
  color: #fff;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.gos-widget {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 24, 0.72);
  z-index: 999999999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gos-widget.is-open {
  display: flex;
}

.gos-widget__panel {
  position: relative;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: min(620px, 96vw);
  height: min(768px, 92vh);
  box-shadow: 0 16px 40px rgba(2, 8, 20, 0.55);
}

.gos-widget__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
  color: #0d1c33;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

#js-iframe-widget {
  width: 100%;
  height: 100%;
  border: 0;
}

.hero {
  padding: 72px 0 42px;
}

.label {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #8fe1ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(30px, 5vw, 58px);
  margin: 18px 0 12px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 760px;
  color: var(--muted);
}

.section {
  padding: 24px 0;
}

.section h2 {
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  display: block;
  background: linear-gradient(170deg, #111e34, #0b1220);
  border: 1px solid #1c2f4f;
  border-radius: 16px;
  padding: 18px;
  overflow-wrap: anywhere;
}

.photo-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 10px;
}

.photo-card figcaption {
  color: var(--muted);
  font-size: 14px;
}

.card h3 {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #33d6ff);
  color: #001018;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.news-date {
  margin-top: 8px;
  font-size: 13px;
}

.news-article .news-lead {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.wp-content {
  overflow-wrap: anywhere;
}

.wp-content img {
  width: 100%;
  height: auto;
}

.wp-content figure {
  margin-left: 0;
  margin-right: 0;
}

.wp-content iframe,
.wp-content video,
.wp-content embed,
.wp-content object {
  max-width: 100%;
}

.wp-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.director-form {
  background: #9ac8eb;
  border: 1px solid #7db5df;
  border-radius: 10px;
  padding: 16px;
  max-width: 760px;
  overflow-wrap: anywhere;
}

.director-form label {
  display: block;
  margin: 10px 0;
  color: #0a1d3f;
  font-weight: 600;
}

.director-form input,
.director-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #5f8db1;
  background: #e7f2fb;
  color: #0a1d3f;
}

.director-form textarea {
  min-height: 120px;
}

.director-form .btn {
  border: 0;
}

.ok-msg {
  background: #57bf67;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
}

.error-msg {
  background: #b4232f;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
}

.map-embed {
  border: 1px solid #2a466d;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 12px 26px rgba(2, 8, 20, 0.35);
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

@media (max-width: 1360px) {
  .site-main {
    max-width: min(1000px, calc(100vw - var(--sidebar-w) - var(--sidebar-gap) - 40px));
    padding: 0 16px;
  }
}

@media (max-width: 1180px) {
  .site-main {
    max-width: min(1120px, 100vw);
    padding: 0 16px;
  }

  .right-sidebar {
    position: static;
    width: auto;
    overflow: visible;
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 0 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar nav {
    width: 100%;
    margin-left: 0;
  }

  .topmenu-wrap {
    width: 100%;
    gap: 8px;
  }

  .topmenu {
    width: 100%;
  }

  .topmenu__rootlink {
    width: 100%;
  }

  .topbar nav a,
  .topmenu__rootlink,
  .topmenu > summary {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .topmenu__dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 6px;
    grid-template-columns: 1fr;
    max-height: none;
  }

  .hero {
    padding: 52px 0 32px;
  }

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

  .section,
  .site-shell {
    padding-left: 0;
    padding-right: 0;
  }

  .wp-content img,
  .wp-content figure,
  .wp-content .wp-caption,
  .wp-content .alignleft,
  .wp-content .alignright,
  .wp-content [style*='width:'] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, 94vw);
  }

  .site-main {
    padding: 0 10px;
  }

  .right-sidebar {
    padding: 0 12px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(26px, 8vw, 40px);
  }

  .hero p {
    font-size: 15px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 14px;
  }

  .photo-card img {
    height: auto;
  }

  .btn,
  .right-director,
  .right-cta,
  .right-links__button {
    width: 100%;
  }

  .btn-row {
    width: 100%;
  }

  .map-embed iframe {
    min-height: 260px;
  }

  .site-copyright {
    text-align: center;
  }
}
