:root {
  --primary: #0b58b5;
  --primary-dark: #063b7d;
  --primary-soft: #e8f1fc;
  --accent: #000000;
  --light-accent: #79bfff;
  --text: #161b24;
  --muted: #5c6675;
  --line: #d9e1eb;
  --line-strong: #aebed2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color: var(--text);
  font-family: Inter, Sintony, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

a:visited {
  color: var(--primary-dark);
}

a:hover,
a:active {
  color: var(--light-accent);
}

p {
  margin-top: 0;
}

center {
  display: block;
}

.container,
#header,
#page,
#footer,
#footer1,
#footer2,
#tag,
#main {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #0b58b5 0%, #084a9a 62%, #073e83 100%);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--light-accent), transparent) 1;
  box-shadow: 0 8px 18px rgba(6, 59, 125, 0.14);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 38px);
  min-height: 92px;
  padding: 10px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: auto;
  height: 68px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.logo:hover img {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.header-copy {
  min-width: 0;
}

h1 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.header-subtitle {
  margin: 7px 0 0;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-activities {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.48);
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.social-links a:visited {
  color: #ffffff;
}

.social-links a:hover {
  color: #ffffff;
  background: var(--light-accent);
  border-color: var(--light-accent);
  transform: translateY(-3px);
}

/* MAIN LAYOUT */

.page {
  padding: 42px 0 30px;
  flex: 1;
}

.intro {
  max-width: none;
  margin: 0 0 34px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.activity {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--line-strong);
  transition: transform 0.2s ease;
}

.activity:hover {
  transform: translateY(-2px);
}

.activity:last-of-type {
  border-bottom: 1px solid var(--line-strong);
}

.activity-image {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--primary-soft);
}

.activity-image::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--light-accent);
  transition: width 0.28s ease;
}

.activity-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.38s ease, filter 0.38s ease;
}

.activity:hover .activity-image img,
.activity-image:hover img {
  transform: scale(1.045);
  filter: contrast(1.05) saturate(1.05);
}

.activity:hover .activity-image::after,
.activity-image:hover::after {
  width: 100%;
}

.activity-content {
  max-width: 690px;
}

.activity h2,
.contact-section h2 {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.activity p,
.contact-section p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.text-link::after {
  content: "→";
  color: var(--light-accent);
  font-size: 15px;
  transition: transform 0.22s ease;
}

.text-link:hover::after {
  transform: translateX(5px);
}

.activity:hover .text-link {
  color: var(--light-accent);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  margin: 34px 0;
}

.contact-section {
  margin: 0;
  padding: 0 0 10px;
  border-top: none;
}

.email-text {
  color: var(--primary-dark);
  font-weight: 800;
}

.social-links-dark {
  justify-content: flex-start;
  margin-top: 18px;
}

.social-links-dark a {
  color: #ffffff !important;
  background: var(--primary);
  border-color: var(--primary);
}

.social-links-dark a:visited {
  color: #ffffff !important;
}

.social-links-dark a:hover {
  color: #ffffff !important;
  background: var(--light-accent);
  border-color: var(--light-accent);
}

/* FOOTER */

.site-footer,
#footer {
  clear: both;
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.site-footer strong,
#footer strong {
  color: var(--text);
}

/* COMPATIBILITY FOR OLDER PAGES */

h2 {
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}

h3 {
  margin: 42px 0 16px;
  padding: 0 0 10px;
  color: var(--primary-dark);
  background: transparent;
  border-bottom: 2px solid var(--primary);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  text-align: left;
}

.h3_date {
  color: var(--muted);
  font-size: 13px;
}

#page a {
  color: var(--primary);
}

#page a:hover {
  color: var(--light-accent);
}

#page p {
  clear: both;
  text-align: left;
  padding: 8px 0;
}

#page ol {
  text-align: left;
  list-style-type: disc;
}

#page .tableft,
#page .tabright {
  display: block;
  float: left;
  width: 50%;
  padding: 0 12px 0 0;
}

#page .note {
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
}

#gallerybox {
  width: 100%;
  margin-left: 0;
  padding: 0;
  border: 0;
}

#gallerybox table {
  width: 100%;
}

#gallerybox .gallery TD,
#gallerybox .gallery360 TD,
#gallerybox .gallerypan TD {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  text-align: left;
}

#gallerybox .gallery360 img,
#gallerybox .gallerypan img,
#gallerybox .gallery img {
  width: 260px;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  float: left;
  margin: 0 24px 14px 0;
  transition: transform 0.35s ease, filter 0.35s ease;
}

#gallerybox img:hover {
  transform: scale(1.04);
  filter: contrast(1.06) saturate(1.06);
}

#img {
  border: 0;
  margin: 0;
}

.menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}

.menu li.top {
  display: block;
  float: left;
}

.menu li a.top_link {
  display: block;
  height: 34px;
  line-height: 34px;
  color: var(--text);
  text-decoration: none;
  padding: 0 10px;
}

.menu li a.top_link:hover,
.menu li:hover > a.top_link {
  color: #fff;
  background: var(--primary);
}

/* Contact form compatibility only for older pages. */

#contact:not(.contact-section) {
  display: block;
  width: min(650px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background-color: transparent;
}

#contact label {
  display: inline-block;
  float: left;
  height: 26px;
  line-height: 26px;
  width: 100px;
  font-size: 1em;
}

#contact input,
textarea,
select {
  width: min(300px, 100%);
  margin: 5px 0;
  padding: 8px;
  color: #333;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font: inherit;
}

#contact input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  background-color: #fff;
  outline: none;
}

#contact input.submit {
  width: auto;
  cursor: pointer;
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 9px 16px;
  font-weight: 800;
}

#contact input.submit:hover {
  background: var(--accent);
}

#contact fieldset {
  padding: 20px 0;
  border: 0;
}

#contact legend {
  padding: 0;
  font-weight: 800;
  color: var(--text);
}

#contact span.required {
  font-size: 12px;
  color: var(--accent);
}

#message {
  margin: 10px 0;
  padding: 0;
}

.error_message {
  display: block;
  line-height: 22px;
  background: #fbe3e4;
  padding: 8px 10px;
  color: #8a1f11;
  border: 1px solid #fbc2c4;
}

.loader {
  padding: 0 10px;
}

acronym {
  border-bottom: 1px dotted #ccc;
}

/* RESPONSIVE */

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: auto 1fr;
    min-height: auto;
    gap: 16px;
    padding: 16px 0;
  }

  .social-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .logo img {
    height: 62px;
  }

  .activity {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 34px 0;
  }

  .activity-image img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .container,
  #header,
  #page,
  #footer,
  #footer1,
  #footer2,
  #tag,
  #main {
    width: min(100% - 28px, 1120px);
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .logo img {
    height: 58px;
  }

  h1 {
    font-size: 22px;
  }

  .header-subtitle {
    font-size: 13px;
  }

  .header-activities {
    font-size: 12px;
  }

  .page {
    padding-top: 36px;
  }

  .intro {
    margin-bottom: 34px;
  }

  .activity h2,
  .contact-section h2 {
    font-size: 19px;
    margin-top: 0;
  }

  .text-link {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  #gallerybox .gallery360 img,
  #gallerybox .gallerypan img,
  #gallerybox .gallery img {
    width: 100%;
    float: none;
    margin: 0 0 14px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  background: var(--primary-soft);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.05);
  filter: contrast(1.05) saturate(1.05);
}


/* PANORAMA VIEWER */

.pano-view-section {
  border-top: 1px solid var(--line-strong);
  padding: 34px 0 0;
}

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

.pano-viewer-header h2 {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.pano-counter,
.pano-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.pano-copy-link {
  flex: 0 0 auto;
}

.pano-viewer {
  width: 100%;
  height: min(72vh, 680px);
  min-height: 430px;
  background: #000;
}

.pano-help {
  margin-top: 12px;
}

.pano-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.pano-card {
  display: block;
  color: var(--primary);
  background: transparent;
  border-top: 1px solid var(--line-strong);
  padding-top: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pano-card:hover,
.pano-card.is-active {
  color: var(--light-accent);
  transform: translateY(-2px);
}

.pano-card.is-missing {
  opacity: 0.45;
}

.pano-thumb {
  display: block;
  overflow: hidden;
  background: var(--primary-soft);
}

.pano-thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.pano-card:hover .pano-thumb img,
.pano-card.is-active .pano-thumb img {
  transform: scale(1.045);
  filter: contrast(1.05) saturate(1.05);
}

.pano-card-text {
  display: block;
  padding-top: 12px;
}

.pano-card-title {
  display: block;
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.pano-card-id {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .pano-viewer {
    height: 64vh;
    min-height: 360px;
  }

  .pano-viewer-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .pano-viewer {
    height: 58vh;
    min-height: 300px;
  }

  .pano-gallery {
    grid-template-columns: 1fr;
  }
}
/* CUSTOM IMAGE LIGHTBOX */

body.lightbox-open {
  overflow: hidden;
}

.custom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 70px 72px;
}

.custom-lightbox.is-open {
  display: flex;
}

.custom-lightbox-image {
  display: block;
  max-width: min(100%, 1200px);
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.custom-lightbox-close,
.custom-lightbox-prev,
.custom-lightbox-next {
  position: absolute;
  z-index: 5010;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.custom-lightbox-close {
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  font-size: 34px;
}

.custom-lightbox-prev,
.custom-lightbox-next {
  top: 50%;
  width: 48px;
  height: 64px;
  font-size: 34px;
  transform: translateY(-50%);
}

.custom-lightbox-prev {
  left: 18px;
}

.custom-lightbox-next {
  right: 18px;
}

.custom-lightbox-close:hover,
.custom-lightbox-prev:hover,
.custom-lightbox-next:hover {
  background: var(--light-accent);
}

@media (max-width: 700px) {
  .custom-lightbox {
    padding: 60px 18px;
  }

  .custom-lightbox-image {
    max-height: calc(100vh - 120px);
  }

  .custom-lightbox-prev,
  .custom-lightbox-next {
    top: auto;
    bottom: 18px;
    transform: none;
  }
}
.custom-lightbox-image {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.custom-lightbox-image.is-visible {
  opacity: 1;
}


/* Compact mobile header - final override */
@media (max-width: 560px) {
  .site-header {
    position: relative;
    padding: 0 !important;
  }

  .site-header .header-inner {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px !important;
    align-items: start;
    padding: 14px 0 16px !important;
    min-height: 0 !important;
  }

  .site-header .logo {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }

  .site-header .logo img {
    width: 76px !important;
    height: auto !important;
  }

  .site-header .header-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header .header-copy h1 {
    font-size: 22px !important;
    line-height: 1.05 !important;
    margin: 0 0 5px !important;
  }

  .site-header .header-subtitle {
    font-size: 11px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.075em !important;
    margin: 0 0 7px !important;
  }

  .site-header .header-activities {
    font-size: 11px !important;
    line-height: 1.35 !important;
    letter-spacing: 0.01em !important;
    margin: 0 !important;
    max-width: none !important;
  }

  .site-header .social-links {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 9px 0 0 !important;
  }

  .site-header .social-links a {
    width: 34px !important;
    height: 34px !important;
    font-size: 11px !important;
  }

  .page {
    padding-top: 26px !important;
  }
}

/* Even tighter header on very narrow phones */
@media (max-width: 380px) {
  .site-header .header-inner {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px !important;
  }

  .site-header .logo img {
    width: 66px !important;
  }

  .site-header .header-copy h1 {
    font-size: 20px !important;
  }

  .site-header .header-activities {
    font-size: 10.5px !important;
  }
}
