:root {
  --ocean: #00b8c8;
  --navy: #123b5d;
  --sky: #e4f7fa;
  --coral: #f63d57;
  --sand: #ffe2a8;
  --white: #ffffff;
  --ink: #1e2a32;
  --muted: #6b7b88;
  --line: rgba(18, 59, 93, 0.14);
  --shadow: 0 18px 46px rgba(18, 59, 93, 0.14);
}

/*
  Design audit tokens from specs.md:
  #FFFFFF; sans-serif for Russian navigation; serif for destination and brand emphasis.; cards; and forms.
*/

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky), #fff 420px);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--coral); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  color: var(--navy);
}

.brand-mark {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--ocean), var(--navy));
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(0, 184, 200, 0.28);
}

.brand-copy { display: grid; line-height: 1.12; }
.brand-title { font-weight: 800; font-size: 1.05rem; }
.brand-subtitle { color: var(--muted); font-size: 0.82rem; }

.header-meta {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  justify-content: flex-end;
  color: var(--navy);
  font-size: 0.86rem;
}

.header-meta span { white-space: nowrap; }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  min-height: 42px;
  padding: 0 0.9rem;
  font-weight: 700;
}

.primary-nav {
  background: linear-gradient(90deg, var(--ocean), #24c8c1);
  box-shadow: 0 10px 20px rgba(0, 184, 200, 0.18);
}

.primary-nav > ul {
  width: min(1180px, calc(100% - 32px));
  min-height: 48px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  overflow-x: auto;
}

.primary-nav li { position: relative; flex: 0 0 auto; }

.primary-nav a {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 0.85rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  border-radius: 8px;
}

.primary-nav a:hover { background: rgba(18, 59, 93, 0.16); color: #fff; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.has-children:hover .nav-dropdown { display: block; }
.nav-dropdown a { height: auto; min-height: 38px; color: var(--navy); }
.nav-dropdown a:hover { background: var(--sky); color: var(--coral); }

.hero-home {
  position: relative;
  min-height: clamp(430px, 58vh, 660px);
  overflow: hidden;
  background: var(--navy);
}

.hero-home > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  min-height: inherit;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(18, 59, 93, 0.82), rgba(0, 184, 200, 0.3), rgba(18, 59, 93, 0.2));
}

.hero-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: #fff;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5.3rem);
  max-width: 820px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.pure-button,
.hero-actions .pure-button {
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
}

.hero-actions .pure-button:nth-child(2) { background: var(--sand); color: var(--navy); }
.hero-actions .pure-button:nth-child(3) { background: #fff; color: var(--navy); }

.page-shell,
.home-panels,
.breadcrumbs,
.source-links {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.home-panels,
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1.3rem;
  align-items: start;
  padding: 2.2rem 0;
}

.content-panel,
.offer-panel,
.destination-panel,
.sidebar-panel,
.source-links,
.toc-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-panel,
.offer-panel,
.destination-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.page-heading {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.page-heading p:last-child { color: var(--muted); max-width: 760px; }

.breadcrumbs {
  padding: 1rem 0 0;
  font-size: 0.88rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--muted);
}

.prose h1:first-child { display: none; }
.prose h2, .prose h3 { margin-top: 1.45rem; }
.prose p { margin: 0 0 1rem; }
.prose strong { color: var(--navy); }

.content-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.2rem;
}

.offer-panel .content-list {
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.offer-panel .content-list li {
  min-height: 88px;
  padding: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sky), #fff);
  border: 1px solid var(--line);
  font-weight: 700;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.destination-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sky), var(--sand));
  border: 1px solid var(--line);
}

.destination-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.destination-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.8rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(18, 59, 93, 0.82));
  font-weight: 800;
}

.content-image {
  margin: 1.2rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sky);
  border: 1px solid var(--line);
}

.content-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.inline-media {
  display: inline-block;
  max-width: 64px;
  vertical-align: middle;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.pure-table {
  width: 100%;
  min-width: 520px;
  background: #fff;
}

.pure-table td,
.pure-table th {
  white-space: normal;
  vertical-align: top;
}

.link-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.link-card img {
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--sky);
}

.link-card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }

.sidebar-panel {
  position: sticky;
  top: 140px;
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding: 1rem;
}

.sidebar-panel h2 {
  margin: 0 0 0.8rem;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--coral);
}

.sidebar-list,
.sidebar-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-list a {
  display: block;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.sidebar-list ul { padding-left: 0.85rem; font-size: 0.92rem; }

.source-links {
  margin-top: 1.2rem;
  margin-bottom: 2rem;
  padding: 1rem;
}

.source-links h2 {
  margin: 0 0 0.7rem;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--coral);
}

.source-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-panel {
  padding: 1rem;
  margin-bottom: 1.2rem;
}

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

.category-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--sky);
}

.category-card__body { padding: 1rem; }
.category-card h2 { margin: 0; font-size: 1.2rem; }
.category-card.is-horizontal { grid-column: span 2; display: grid; grid-template-columns: 220px 1fr; }
.category-card.is-minimal img { display: none; }

.site-footer {
  margin-top: 3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--navy));
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  display: grid;
  gap: 0.45rem;
}

.footer-mark {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: flex-end;
}

.footer-nav a { color: #fff; font-weight: 700; }
.footer-nav a:hover { color: var(--sand); }

blockquote {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--ocean);
  background: var(--sky);
  border-radius: 8px;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 8px;
  background: #0f263a;
  color: #fff;
}

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

@media (max-width: 900px) {
  .header-shell {
    grid-template-columns: auto auto;
  }

  .header-meta {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul {
    display: grid;
    padding: 0.5rem 0;
    overflow: visible;
  }

  .primary-nav a { height: auto; min-height: 42px; }
  .nav-dropdown { position: static; box-shadow: none; margin: 0 0 0.4rem 1rem; }
  .has-children .nav-dropdown { display: block; }

  .home-panels,
  .content-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .sidebar-panel {
    position: static;
    max-height: none;
  }

  .category-card.is-horizontal {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-shell,
  .primary-nav > ul,
  .page-shell,
  .home-panels,
  .breadcrumbs,
  .source-links,
  .footer-shell {
    width: min(100% - 20px, 1180px);
  }

  .brand-mark { width: 44px; height: 44px; }
  .brand-subtitle { display: none; }
  .hero-home { min-height: 500px; }
  .hero-copy h1 { font-size: 2.35rem; }
  .content-panel, .offer-panel, .destination-panel { padding: 1rem; }
  .link-card { grid-template-columns: 1fr; }
  .link-card img { width: 100%; height: 180px; }
}
