:root {
  color-scheme: light;
  --navy: #071d38;
  --navy-soft: #0d3158;
  --blue: #1e5f9c;
  --blue-light: #dcebf7;
  --paper: #f8f5ef;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --text: #17293b;
  --muted: #5d6e7d;
  --line: rgba(24, 62, 96, 0.17);
  --gold: #b68b4c;
  --shadow: 0 18px 46px rgba(25, 50, 75, 0.13);
  --radius: 18px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  background:
    radial-gradient(circle at 90% 4%, rgba(73, 132, 184, 0.16), transparent 30rem),
    linear-gradient(145deg, #fff, var(--paper) 58%, #e9f1f6);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 95, 156, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 95, 156, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
}

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

img {
  height: auto;
}

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy-soft);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.7em;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 5.2rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 3.1rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1.15em;
  color: var(--muted);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
  border-radius: 9px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #4c99dc;
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 50;
  color: #fff;
  background: rgba(7, 29, 56, 0.97);
  border-bottom: 1px solid rgba(189, 214, 237, 0.22);
  box-shadow: 0 12px 36px rgba(7, 29, 56, 0.16);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner,
.hero,
.page-hero,
.section,
.subnav {
  width: min(100% - 40px, var(--content));
  margin-inline: auto;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 94px;
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid rgba(207, 226, 243, 0.4);
  border-radius: 50%;
}

.brand span {
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.05;
}

.brand small {
  margin-top: 6px;
  color: #bdd0e2;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.site-nav a {
  padding: 10px 11px;
  color: #c9d8e7;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 9px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(99, 166, 224, 0.18);
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(207, 226, 243, 0.32);
  border-radius: 9px;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
  min-height: 680px;
  padding-block: 70px;
}

.hero__lead {
  max-width: 650px;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.hero__media {
  position: relative;
}

.hero__media::before {
  position: absolute;
  inset: 8% -4% -5% 8%;
  z-index: -1;
  content: "";
  background: rgba(30, 95, 156, 0.18);
  border-radius: 38% 16% 33% 18%;
  filter: blur(28px);
}

.hero__media img {
  width: 100%;
  max-height: 590px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 40% 15% 34% 18%;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 1px;
  content: "";
  background: currentColor;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--blue), #174b7c);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  box-shadow: 0 10px 25px rgba(18, 69, 113, 0.19);
}

.button:hover {
  color: #fff;
  background: linear-gradient(135deg, #2c75b4, var(--blue));
}

.button--ghost {
  color: var(--navy);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.button--ghost:hover {
  color: var(--navy);
  background: rgba(30, 95, 156, 0.08);
}

.page-hero {
  padding-block: 72px 48px;
}

.page-hero h1 {
  max-width: 960px;
  font-size: clamp(2.55rem, 6vw, 4.9rem);
}

.page-hero p {
  max-width: 760px;
  font-size: 1.1rem;
}

.section {
  padding-block: 72px;
}

.section--compact {
  padding-block: 42px;
}

.section--wide,
.section--tinted {
  width: 100%;
  padding-inline: max(20px, calc((100% - var(--content)) / 2));
}

.section--tinted {
  background: rgba(220, 235, 247, 0.62);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: flex;
  gap: 30px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 590px;
  margin-bottom: 3px;
}

.card-grid,
.heritage-grid,
.museum-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card,
.heritage-card,
.museum-card,
.news-card,
.prose-card,
.form-card,
.map-card,
.notice {
  overflow: hidden;
  background: linear-gradient(145deg, #fff, #f4f8fb);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card__body,
.heritage-card__body,
.museum-card,
.news-card,
.prose-card,
.form-card,
.map-card,
.notice {
  padding: 24px;
}

.card img,
.heritage-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.heritage-card {
  color: inherit;
  text-decoration: none;
}

.heritage-card:hover {
  color: inherit;
  transform: translateY(-3px);
}

.heritage-card,
.museum-card,
.news-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.heritage-card h3,
.museum-card h3,
.news-card h2,
.card h3 {
  margin-bottom: 8px;
}

.heritage-card p,
.museum-card p,
.news-card p,
.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.heritage-card--text {
  display: grid;
  min-height: 265px;
  align-content: end;
  background:
    linear-gradient(155deg, rgba(7, 29, 56, 0.97), rgba(13, 49, 88, 0.9)),
    var(--navy);
}

.heritage-card--text h3,
.heritage-card--text p,
.heritage-card--text .card-kicker {
  color: #fff;
}

.card-kicker,
.meta-label {
  display: block;
  margin-bottom: 9px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.subnav a {
  min-height: 44px;
  padding: 9px 13px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 9px;
}

.subnav a:hover,
.subnav a[aria-current="page"] {
  color: #fff;
  background: var(--navy-soft);
}

.prose {
  max-width: 820px;
  margin-inline: auto;
}

.prose h2 {
  margin-top: 1.5em;
}

.prose p,
.prose li {
  font-size: 1.03rem;
}

.prose ul {
  padding-left: 1.3em;
  color: var(--muted);
}

.story {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 38px;
  align-items: start;
}

.story__media {
  display: grid;
  gap: 18px;
}

.story__media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 16px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.facts strong {
  display: block;
  color: var(--navy);
}

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

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 12px 15px 15px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-grid--natural img {
  aspect-ratio: auto;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.map-image {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-image img {
  width: 100%;
  min-width: 620px;
}

.map-list {
  display: grid;
  gap: 12px;
}

.map-card h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.map-card p {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.interactive-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.interactive-map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 651 / 891;
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.interactive-map::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 29, 56, 0.24));
}

.interactive-map > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.map-pin {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 6px 10px 6px 6px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(7, 29, 56, 0.28);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.map-pin span {
  display: grid;
  width: 28px;
  height: 28px;
  color: #fff;
  font-weight: 800;
  background: var(--blue);
  border-radius: 50%;
  place-items: center;
}

.map-pin strong {
  font-size: 0.78rem;
  white-space: nowrap;
}

.map-pin:hover,
.map-pin[aria-pressed="true"] {
  color: #fff;
  background: var(--navy-soft);
  transform: translate(-50%, -50%) scale(1.06);
}

.map-pin[aria-pressed="true"] span {
  color: var(--navy);
  background: #fff;
}

.map-pin--nikolo { top: 16%; left: 53%; }
.map-pin--mirohanovo { top: 31%; left: 34%; }
.map-pin--povalihino { top: 30%; left: 88%; }
.map-pin--ozornikovo { top: 42%; left: 79%; }
.map-pin--zhukovo { top: 10%; left: 64%; }

.map-details {
  position: sticky;
  top: 24px;
}

.map-focus {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-focus[hidden] {
  display: none;
}

.map-focus > img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.map-focus__body {
  padding: 28px;
}

.map-focus__body h2 {
  margin-top: 8px;
  font-size: 2rem;
}

.map-focus--text {
  display: grid;
  min-height: 430px;
  align-items: end;
  background: linear-gradient(145deg, rgba(220, 235, 247, 0.96), rgba(255, 255, 255, 0.98));
}

.coordinates {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.video-card video {
  width: 100%;
  background: #000;
  border-radius: 12px;
}

.museum-card a,
.news-card a {
  font-weight: 700;
}

.news-card time {
  color: var(--blue);
  font-size: 0.86rem;
}

.news-card h2 {
  margin-top: 10px;
  font-size: 1.55rem;
}

.form-card {
  max-width: 780px;
  margin-inline: auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.contact-layout .form-card {
  width: 100%;
}

.form-card > .field,
.form-card > .button,
.form-card > .form-note {
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

label {
  color: var(--navy);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(24, 62, 96, 0.28);
  border-radius: 10px;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.notice {
  max-width: 820px;
  margin-inline: auto;
  border-left: 4px solid var(--gold);
}

.notice h2 {
  font-size: 1.6rem;
}

.notice h3 {
  font-size: 1.3rem;
}

.status-page {
  display: grid;
  min-height: 100vh;
  padding: 32px 20px;
  place-items: center;
}

.status-page > * {
  width: min(100%, 720px);
}

.site-footer {
  margin-top: 60px;
  color: #e9f2fa;
  background: var(--navy);
  border-top: 1px solid rgba(189, 214, 237, 0.22);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  padding-block: 42px;
}

.site-footer p {
  margin: 0;
  color: #b9ccdd;
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.site-footer__links a {
  color: #caddf0;
}

@media (max-width: 1040px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .site-header__inner {
    grid-template-columns: 1fr auto;
    padding-block: 17px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 8px;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .hero,
  .story,
  .map-layout,
  .interactive-map-layout {
    grid-template-columns: 1fr;
  }

  .map-details {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .hero__media {
    max-width: 720px;
  }

  .card-grid,
  .heritage-grid,
  .museum-grid,
  .news-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header__inner,
  .site-footer__inner,
  .hero,
  .page-hero,
  .section,
  .subnav {
    width: min(100% - 28px, var(--content));
  }

  .brand span {
    font-size: 0.98rem;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .site-nav {
    flex-direction: column;
  }

  .site-nav a {
    min-height: 44px;
  }

  .interactive-map,
  .interactive-map > img {
    min-height: 520px;
  }

  .map-pin {
    padding: 5px;
  }

  .map-pin strong {
    display: none;
  }

  .hero,
  .section,
  .page-hero {
    padding-block: 50px;
  }

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

  .card-grid,
  .heritage-grid,
  .museum-grid,
  .news-grid,
  .gallery-grid,
  .form-grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }

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

  .site-footer__links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}
