:root {
  --ink: #12263a;
  --muted: #5d6f82;
  --line: #d9e4ee;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --soft-2: #eef5f9;
  --brand: #1e6393;
  --brand-dark: #123452;
  --accent: #b98a36;
  --shadow: 0 24px 70px rgba(18, 52, 82, .14);
}

/* Compatibility styles for the static JSON renderer. */
.site-header {
  padding: 0 max(20px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  font-weight: 900;
  color: var(--brand-dark);
  letter-spacing: .04em;
  white-space: nowrap;
}

.site-brand::before {
  content: "";
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft) url("/images/platform-logo.png") center / cover no-repeat;
}

.site-header > .site-nav {
  margin-left: auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  color: #29445e;
  font-size: 14px;
}

.site-header > .site-nav a {
  padding: 8px 0;
}

.site-header > .site-nav a:hover,
.site-card a:hover {
  color: var(--brand);
}

.site-hero {
  padding: 84px max(20px, calc((100vw - 1160px) / 2)) 62px;
  background:
    linear-gradient(90deg, rgba(18, 52, 82, .82), rgba(18, 52, 82, .52)),
    url("/uploads/site/shared/hero-header.jpg") center / cover no-repeat;
  color: #fff;
}

.site-hero h1 {
  margin: 12px 0 18px;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
}

.site-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.site-section {
  padding: 70px max(20px, calc((100vw - 1160px) / 2));
}

.site-section:nth-of-type(odd) {
  background: var(--soft);
}

.site-section > h1 {
  margin: 0 0 30px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

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

.site-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(217, 228, 238, .8);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(18, 52, 82, .1);
}

.site-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.18;
}

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

.site-footer {
  padding: 34px max(20px, calc((100vw - 1160px) / 2));
}

.admin-login-page {
  background:
    linear-gradient(90deg, rgba(18, 52, 82, .82), rgba(18, 52, 82, .52)),
    url("/images/login-bg.png") center / cover no-repeat;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login__card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.admin-login__card h1 {
  margin: 0;
  color: var(--brand-dark);
}

.admin-login__card input,
.site-editor-modal input,
.site-editor-modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.admin-login__card button,
.site-editor-launcher,
.site-editor-modal button[type="submit"] {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: var(--brand-dark);
  cursor: pointer;
  font-weight: 800;
}

.site-editor-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 72;
  box-shadow: var(--shadow);
}

.site-editor-modal[hidden] {
  display: none;
}

.site-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.site-editor-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 27, 42, .62);
}

.site-editor-modal__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(217, 228, 238, .8);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.site-editor-modal__head,
.site-editor-modal__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.site-editor-modal__head button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--brand-dark);
  background: var(--soft);
  cursor: pointer;
}

.site-editor-modal label {
  display: grid;
  gap: 6px;
  color: var(--brand-dark);
  font-weight: 800;
}

.site-editor-modal textarea[name="html"] {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .site-header {
    display: block;
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .site-brand {
    min-height: auto;
  }

  .site-header > .site-nav {
    justify-content: flex-start;
    min-height: auto;
    margin-top: 10px;
  }

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fbfdff;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

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

.site-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: .06em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #29445e;
  font-size: 14px;
}

.menu a,
.lang-switch a {
  padding: 8px 0;
}

.menu a:hover,
.text-link:hover {
  color: var(--brand);
}

.lang-switch {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.lang-switch a {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.lang-switch a.is-active {
  color: var(--paper);
  background: var(--brand-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--brand-dark);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
}

.hero-home {
  padding: 84px 0 62px;
  background:
    linear-gradient(90deg, rgba(18, 52, 82, .82), rgba(18, 52, 82, .52)),
    url("/uploads/site/shared/hero-header.jpg") center / cover no-repeat;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 44px;
  align-items: center;
}

.hero-copy h1,
.page-hero h1 {
  margin: 12px 0 18px;
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
}

.hero-copy p,
.page-hero p,
.section-heading p {
  max-width: 760px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.page-kicker,
.panel-label,
.section-heading span,
.service-tag,
.article-summary__label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

.primary-link,
.secondary-link,
.ghost-button,
.site-chat__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
}

.primary-link {
  color: #fff;
  background: var(--brand);
}

.secondary-link,
.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .12);
}

.secondary-link--button,
.ghost-button {
  cursor: pointer;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.hero-card,
.stat-card,
.service-card,
.destination-card,
.news-card,
.article-summary,
.article-cover,
.contact-panel,
.site-modal__dialog,
.site-chat__panel {
  border: 1px solid rgba(217, 228, 238, .8);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
  color: var(--ink);
}

.hero-card strong {
  display: block;
  margin: 10px 0;
  font-size: 30px;
  line-height: 1.1;
}

.stats-strip {
  padding: 26px 0;
  background: var(--brand-dark);
}

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

.stat-card {
  padding: 22px;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  color: var(--brand-dark);
  font-size: 26px;
}

.page-section {
  padding: 82px 0;
}

.alt-section,
.contact-strip {
  background: var(--soft);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.prose-intro h2,
.contact-panel h2 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.section-heading p,
.prose-intro p,
.contact-panel p {
  color: var(--muted);
}

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

.destination-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.destination-card,
.news-card {
  padding: 24px;
  box-shadow: 0 16px 44px rgba(18, 52, 82, .1);
}

.service-card h3,
.destination-card h3,
.news-card h3,
.news-card h2 {
  margin: 10px 0 10px;
  font-size: 22px;
  line-height: 1.18;
}

.service-card p,
.destination-card p,
.news-card p {
  color: var(--muted);
}

.service-points {
  margin: 16px 0 0;
  padding-left: 20px;
  color: #304b64;
}

.service-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}

.ghost-button {
  min-height: 38px;
  color: var(--brand-dark);
  border-color: var(--line);
  background: var(--soft);
}

.text-link {
  color: var(--brand);
  font-weight: 800;
}

.news-cover {
  display: block;
  margin: -24px -24px 18px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
}

.news-cover img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  padding: 88px 0 62px;
  background: linear-gradient(180deg, #173247, #214b6b);
  color: #fff;
}

.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.article-layout:has(.article-visual) {
  grid-template-columns: 260px minmax(0, 1fr) 300px;
}

.article-summary {
  padding: 22px;
  position: sticky;
  top: 100px;
}

.article-summary__meta {
  display: grid;
  gap: 3px;
  margin-top: 18px;
}

.article-summary__meta span {
  color: var(--muted);
  font-size: 12px;
}

.article-content {
  color: #243f58;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.article-content h2,
.article-content h3 {
  color: var(--brand-dark);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content figure {
  margin: 0 0 18px;
}

.article-content img {
  border-radius: 16px;
}

.article-cover {
  overflow: hidden;
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px;
}

.site-footer {
  background: #102638;
  color: rgba(255, 255, 255, .82);
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}

.footer-grid a,
.footer-grid span {
  display: block;
  margin: 6px 0;
}

.footer-grid span {
  color: #fff;
  font-weight: 800;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
}

.site-modal[hidden],
.site-chat__panel[hidden] {
  display: none;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.site-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 27, 42, .62);
}

.site-modal__dialog {
  position: relative;
  width: min(620px, 100%);
  padding: 30px;
}

.site-modal__close {
  float: right;
  border: 0;
  background: var(--soft);
  color: var(--brand-dark);
  cursor: pointer;
}

.site-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 12px;
}

.site-chat__launcher {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  color: #fff;
  background: var(--brand-dark);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.site-chat__launcher-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand);
  font-weight: 900;
}

.site-chat__launcher-copy {
  display: grid;
  text-align: left;
}

.site-chat__launcher-copy small {
  color: rgba(255, 255, 255, .72);
}

.site-chat__panel {
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
}

.site-chat__head,
.site-chat__intro,
.site-chat__messages,
.site-chat__composer,
.site-chat__foot {
  padding: 16px;
}

.site-chat__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.site-chat__close {
  min-height: 34px;
  border: 0;
  color: var(--brand-dark);
  background: var(--soft);
  cursor: pointer;
}

.site-chat__messages {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow: auto;
}

.site-chat__message {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
}

.site-chat__message--mine {
  margin-left: 34px;
  color: #fff;
  background: var(--brand);
}

.site-chat__composer textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  font: inherit;
}

.site-chat__composer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .menu {
    display: none;
    width: 100%;
    order: 5;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
    padding-bottom: 16px;
  }

  .menu.is-open {
    display: flex;
  }

  .hero-grid,
  .stats-grid,
  .service-grid,
  .news-grid,
  .footer-grid,
  .article-layout,
  .article-layout:has(.article-visual),
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .destination-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-panel {
    display: grid;
  }

  .article-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .hero-home,
  .page-hero {
    padding: 56px 0 42px;
  }

  .page-section {
    padding: 54px 0;
  }

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

  .site-chat {
    right: 12px;
    bottom: 12px;
  }
}
