/* ============================================
   COASTLINE CONTOUR — ВокругМоря
   Site-wide CSS (plain CSS, no SCSS)
   ============================================ */

:root {
  --sand: #f5f2ec;
  --sand-warm: #ede8df;
  --sand-dark: #d8d2c6;
  --ink: #1a1a18;
  --teal: #0d5c5c;
  --teal-light: #1a8a7a;
  --teal-pale: #d0e8e4;
  --teal-wash: #e8f4f2;
  --stone: #6b6860;
  --stone-light: #9a968c;
  --line: rgba(13, 92, 92, 0.1);
  --line-strong: rgba(13, 92, 92, 0.2);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Spectral', serif;
  --font-mono: 'DM Mono', monospace;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   HEADER
   ============================================ */
.coast-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  position: relative;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-link:hover { color: var(--teal); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--teal);
  transition: width 0.3s;
}

.nav-link:hover::after { width: 100%; }

/* Countries dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--stone);
  letter-spacing: 0.02em;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: ' \25BE';
  font-size: 10px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  margin-top: 12px;
  background: var(--sand);
  border: 1.5px solid var(--ink);
  padding: 12px 0;
  min-width: 200px;
  z-index: 50;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
  background: var(--teal-wash);
  color: var(--teal);
}

/* Burger menu (mobile) */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 25;
}

.burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 11px; }
.burger span:nth-child(3) { top: 20px; }

.coast-header.nav-open .burger span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}
.coast-header.nav-open .burger span:nth-child(2) {
  opacity: 0;
}
.coast-header.nav-open .burger span:nth-child(3) {
  top: 11px;
  transform: rotate(-45deg);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  padding: 16px 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone-light);
}

.breadcrumbs a {
  color: var(--stone);
  transition: color 0.2s;
}

.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* ============================================
   HERO (Homepage)
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 0 48px;
  overflow: hidden;
}

.hero-coastline {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  height: 120%;
  opacity: 0.06;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-tag::before {
  content: '';
  width: 40px;
  height: 1.5px;
  background: var(--teal);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 800;
  color: var(--ink);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero-title .accent {
  color: var(--teal);
  display: block;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 20px;
  color: var(--stone);
  line-height: 1.5;
  margin-bottom: 48px;
  max-width: 420px;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-light);
  letter-spacing: 0.06em;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--teal), transparent);
}

.hero-image-panel {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 560px;
  z-index: 3;
}

.hero-image-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(170deg, var(--teal-pale) 0%, var(--sand-warm) 60%, var(--sand-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero-image-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sand);
  clip-path: polygon(0 0, 35% 0, 30% 8%, 28% 15%, 32% 22%, 25% 30%, 20% 38%, 22% 45%, 18% 52%, 15% 60%, 20% 68%, 25% 75%, 22% 82%, 28% 88%, 32% 95%, 35% 100%, 0 100%);
}

.hero-image-label {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone-light);
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--teal);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 56px;
}

/* ============================================
   COUNTRIES GRID (Homepage)
   ============================================ */
.countries-section {
  padding: 100px 48px 120px;
  position: relative;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-strong);
}

.country-card {
  background: var(--sand);
  padding: 40px 32px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  overflow: hidden;
  display: block;
}

.country-card:hover { background: var(--teal-wash); }

.country-card-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  position: relative;
}

.country-card-coast {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--stone);
  margin-bottom: 20px;
  position: relative;
}

.country-card-routes {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-card-routes::before {
  content: '';
  width: 16px;
  height: 1.5px;
  background: var(--teal);
}

.country-card-arrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.country-card:hover .country-card-arrow {
  border-color: var(--teal);
  background: var(--teal);
}

.country-card-arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--stone-light);
  stroke-width: 2;
  fill: none;
}

.country-card:hover .country-card-arrow svg {
  stroke: var(--sand);
}

/* ============================================
   FEATURED ROUTES (Homepage)
   ============================================ */
.featured-section {
  padding: 0 48px 120px;
}

.featured-list {
  margin-top: 64px;
}

.featured-route {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1.5px solid var(--ink);
  padding: 48px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.featured-route:last-child { border-bottom: 1.5px solid var(--ink); }
.featured-route:hover { background: rgba(13, 92, 92, 0.02); }

.featured-route-left { padding-right: 48px; }

.featured-route-country {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.featured-route-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.featured-route-waypoints {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--stone);
}

.featured-route-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-route-excerpt {
  font-size: 16px;
  color: var(--stone);
  line-height: 1.6;
  max-width: 480px;
}

.featured-route-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

.featured-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.featured-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone-light);
  letter-spacing: 0.06em;
}

.featured-stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

/* ============================================
   CTA VARIANTS
   ============================================ */

/* --- CTA Waypoint (inline in articles — replaces {{cta_car_rental}}) --- */
.cta-waypoint {
  margin: 44px 0;
  position: relative;
}

.cta-waypoint::before {
  content: '';
  position: absolute;
  left: 15px;
  top: -20px;
  bottom: -20px;
  width: 1.5px;
  background: repeating-linear-gradient(to bottom, var(--teal) 0 6px, transparent 6px 12px);
}

.cta-waypoint-inner {
  margin-left: 48px;
  padding: 32px;
  border: 1.5px solid var(--ink);
  position: relative;
}

.cta-waypoint-dot {
  position: absolute;
  left: 8px;
  top: 32px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--sand);
  box-shadow: 0 0 0 1.5px var(--teal);
  z-index: 2;
}

.cta-waypoint-inner::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 38px;
  width: 16px;
  height: 1.5px;
  background: var(--teal);
}

.cta-wp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.cta-wp-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cta-wp-text {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 24px;
}

.cta-wp-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 24px;
  background: var(--teal);
  color: var(--sand) !important;
  transition: background 0.3s;
}

.cta-wp-button:hover { background: var(--ink); }

.cta-wp-button svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* --- CTA Mooring (homepage/hub — larger, with coastline edge) --- */
.cta-section {
  padding: 0 48px 120px;
}

.cta-mooring {
  border: 1.5px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 280px;
  overflow: hidden;
}

.cta-mooring-content {
  padding: 44px 40px;
}

.cta-mooring-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-mooring-label::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--teal);
}

.cta-mooring-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.cta-mooring-text {
  font-size: 16px;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 400px;
}

.cta-mooring-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  background: var(--teal);
  color: var(--sand) !important;
  transition: background 0.3s;
}

.cta-mooring-button:hover { background: var(--ink); }

.cta-mooring-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.cta-mooring-visual {
  background: linear-gradient(160deg, var(--teal-pale) 0%, var(--teal-wash) 100%);
  position: relative;
  min-height: 200px;
}

.cta-mooring-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sand);
  clip-path: polygon(0 0, 18% 0, 14% 6%, 10% 12%, 16% 18%, 8% 24%, 12% 30%, 6% 36%, 10% 42%, 4% 48%, 8% 54%, 3% 60%, 7% 66%, 2% 72%, 6% 78%, 10% 84%, 5% 90%, 8% 96%, 12% 100%, 0 100%);
}

/* --- CTA Hub (centered block on country pages) --- */
.cta-hub-block {
  border: 1.5px solid var(--ink);
  padding: 48px;
  text-align: center;
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-text {
  font-size: 16px;
  color: var(--stone);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  background: var(--teal);
  color: var(--sand) !important;
  transition: background 0.3s;
}

.cta-button:hover { background: var(--ink); }

.cta-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ============================================
   COUNTRY HUB
   ============================================ */
.country-hero {
  padding: 64px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 64px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.country-hero-text { position: relative; z-index: 2; }

.country-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-label::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--teal);
}

.country-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
}

.country-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 20px;
  color: var(--stone);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.5;
}

.country-intro {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.75;
  max-width: 540px;
}

.country-hero-image {
  position: relative;
  z-index: 2;
  height: 380px;
  background: linear-gradient(160deg, var(--teal-pale) 0%, var(--sand-warm) 60%);
  overflow: hidden;
}

.country-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sand);
  clip-path: polygon(0 0, 20% 0, 15% 12%, 12% 25%, 18% 38%, 10% 50%, 14% 62%, 8% 75%, 15% 88%, 12% 100%, 0 100%);
}

/* Info strip */
.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  margin: 0 48px;
}

.info-cell {
  padding: 24px 32px;
  border-right: 1px solid var(--line-strong);
}

.info-cell:last-child { border-right: none; }

.info-cell-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone-light);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.info-cell-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.info-cell-note {
  font-size: 13px;
  color: var(--stone);
  margin-top: 2px;
}

/* Hub content (rendered markdown below info strip) */
.hub-content {
  padding: 40px 48px;
}

.hub-content-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* Routes section */
.routes-section {
  padding: 80px 48px;
}

.route-entry {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  border: 1.5px solid var(--ink);
  margin-bottom: 32px;
  transition: transform 0.3s;
}

.route-entry:hover { transform: translateX(4px); }

.route-entry-image {
  background: linear-gradient(145deg, var(--teal-pale) 0%, var(--sand-warm) 100%);
  position: relative;
  min-height: 260px;
  border-right: 1.5px solid var(--ink);
  overflow: hidden;
}

.route-entry-image::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30%;
  background: var(--sand);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%, 25% 90%, 35% 80%, 20% 70%, 30% 60%, 15% 50%, 25% 40%, 20% 30%, 35% 20%, 25% 10%);
  opacity: 0.6;
}

.route-entry-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
}

.route-entry-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.route-entry-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.route-entry-waypoints {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--stone);
  margin-bottom: 16px;
}

.route-entry-excerpt {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.6;
  flex: 1;
}

.route-entry-stats {
  display: flex;
  gap: 28px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.re-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone-light);
  letter-spacing: 0.04em;
}

.re-stat-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* Practical section */
.practical-section { padding: 0 48px 80px; }

.practical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-strong);
  margin-top: 48px;
}

.practical-cell {
  background: var(--sand);
  padding: 32px;
}

.practical-cell-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.practical-cell-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.practical-cell-text {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.6;
}

/* Related countries */
.related-section {
  padding: 0 48px 80px;
}

.related-grid {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.related-card {
  display: block;
  flex: 1;
  border: 1.5px solid var(--line-strong);
  transition: border-color 0.3s;
}

.related-card:hover { border-color: var(--teal); }

.related-card-image {
  height: 160px;
  background: linear-gradient(145deg, var(--teal-pale) 0%, var(--sand-warm) 100%);
}

.related-card-name {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 48px 0;
}

.article-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-tag::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--teal);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
  max-width: 720px;
}

.article-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  color: var(--stone);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 40px;
}

/* Route overview */
.route-overview {
  border: 1.5px solid var(--ink);
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.route-overview-visual {
  background: linear-gradient(145deg, var(--teal-pale) 0%, var(--sand-warm) 100%);
  position: relative;
  min-height: 220px;
  border-right: 1.5px solid var(--ink);
  overflow: hidden;
}

.route-overview-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-overview-data {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.ov-stat {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}

.ov-stat:nth-child(2n) { border-right: none; }
.ov-stat:nth-last-child(-n+2) { border-bottom: none; }

.ov-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone-light);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.ov-stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.ov-stat-note {
  font-size: 12px;
  color: var(--stone);
  margin-top: 2px;
}

/* Waypoints bar */
.waypoints-bar {
  grid-column: span 2;
  padding: 14px 24px;
  border-top: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.wp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.wp-dot.sm {
  width: 5px;
  height: 5px;
  opacity: 0.5;
}

.wp-dash {
  width: 20px;
  height: 0;
  border-top: 1.5px dashed var(--stone-light);
  flex-shrink: 0;
}

/* Article hero image */
.article-hero-image {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 48px;
}

.article-hero-inner {
  width: 100%;
  height: 400px;
  background: linear-gradient(160deg, var(--teal-pale) 0%, #a8c8c0 40%, var(--sand-warm) 100%);
  position: relative;
  overflow: hidden;
}

.article-hero-inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 15%;
  background: var(--sand);
  clip-path: polygon(0 0, 100% 0, 80% 8%, 90% 16%, 70% 24%, 85% 32%, 60% 40%, 75% 48%, 55% 56%, 70% 64%, 50% 72%, 65% 80%, 45% 88%, 60% 96%, 50% 100%, 0 100%);
}

/* Two-column layout */
.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
}

/* ============================================
   ARTICLE CONTENT (rendered markdown)
   ============================================ */
.article-content {
  min-width: 0;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 12px;
}

.article-content h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content a:not(.cta-button) {
  color: var(--teal) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(13, 92, 92, 0.3);
  transition: text-decoration-color 0.2s;
}

.article-content a:not(.cta-button):hover {
  text-decoration-color: var(--teal);
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 0;
  list-style: none;
}

.article-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1.5px;
  background: var(--teal);
}

.article-content ol {
  counter-reset: step;
}

.article-content ol li {
  counter-increment: step;
  padding-left: 36px;
  position: relative;
  margin-bottom: 16px;
}

.article-content ol li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
}

.article-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--teal);
  background: var(--teal-wash);
  font-style: italic;
  color: var(--stone);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.article-content th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink);
  color: var(--stone);
}

.article-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-strong);
}

.article-content img {
  width: 100%;
  height: auto;
  margin: 32px 0;
  display: block;
}

.article-content figure {
  margin: 32px 0;
}

.article-content figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-light);
  margin-top: 8px;
}

/* ============================================
   CONTENT WRAP (simple/standalone pages)
   ============================================ */
.content-wrap p { margin-bottom: 20px; }

.content-wrap a:not(.cta-button) {
  color: var(--teal) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(13, 92, 92, 0.3);
}

.content-wrap a:not(.cta-button):hover {
  text-decoration-color: var(--teal);
}

.content-wrap h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
}

.content-wrap h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 12px;
}

.content-wrap h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 10px;
}

.content-wrap ul { margin: 0 0 20px 0; list-style: none; }
.content-wrap ul li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.content-wrap ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 1.5px; background: var(--teal); }

.content-wrap ol { counter-reset: step; margin: 0 0 20px 0; list-style: none; }
.content-wrap ol li { counter-increment: step; padding-left: 36px; position: relative; margin-bottom: 16px; }
.content-wrap ol li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; font-family: var(--font-mono); font-size: 13px; color: var(--teal); font-weight: 500; }

.content-wrap blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--teal);
  background: var(--teal-wash);
  font-style: italic;
  color: var(--stone);
}

.content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.content-wrap th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--ink);
  color: var(--stone);
}

.content-wrap td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-strong);
}

.content-wrap img {
  width: 100%;
  height: auto;
  margin: 32px 0;
  display: block;
}

/* ============================================
   SIMPLE PAGE
   ============================================ */
.simple-page {
  max-width: 1020px;
  margin: 0 auto;
  padding: 64px 48px 120px;
  position: relative;
}

.simple-page::after {
  content: '';
  position: absolute;
  right: -120px;
  top: 100px;
  width: 2px;
  height: 400px;
  background: linear-gradient(to bottom, var(--teal) 0%, transparent 100%);
  opacity: 0.06;
}

.simple-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}

.simple-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 19px;
  color: var(--stone);
  margin-bottom: 56px;
  line-height: 1.5;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.sidebar-block {
  border: 1.5px solid var(--ink);
  margin-bottom: 24px;
}

.sidebar-block-title {
  padding: 20px 20px 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.sidebar-route {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.sidebar-route:last-child { border-bottom: none; }
.sidebar-route:hover { background: var(--teal-wash); }
.sidebar-route.active { background: var(--teal-wash); border-left: 3px solid var(--teal); }

.sidebar-route-name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 2px;
}

.sidebar-route-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-light);
}

.sidebar-related {
  padding: 16px 20px;
}

.sidebar-related-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--stone-light);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.sidebar-related a {
  display: block;
  font-size: 14px;
  color: var(--teal);
  padding: 5px 0;
  transition: color 0.2s;
}

.sidebar-related a:hover { color: var(--ink); }

/* ============================================
   HOMEPAGE CONTENT (optional markdown body)
   ============================================ */
.homepage-content {
  padding: 0 48px 80px;
}

.homepage-content-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */
.coast-footer {
  padding: 64px 48px 40px;
  border-top: 1.5px solid var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand { grid-column: span 1; }

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.5;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-light);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--ink);
  padding: 5px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stone-light);
}

/* ============================================
   GDPR BANNER
   ============================================ */
.gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--ink);
  color: var(--sand);
  border-top: 2px solid var(--teal);
}

.gdpr-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.gdpr-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.gdpr-mark {
  flex-shrink: 0;
  width: 24px;
  margin-top: 2px;
}

.gdpr-mark svg {
  width: 24px;
  height: 40px;
}

.gdpr-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--sand);
}

.gdpr-description {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--stone-light);
}

.gdpr-description a {
  color: var(--teal-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gdpr-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.gdpr-accept {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  background: var(--teal);
  color: var(--sand);
  border: none;
  cursor: pointer;
  transition: background 0.25s;
  letter-spacing: 0.01em;
}

.gdpr-accept:hover { background: var(--teal-light); }

.gdpr-decline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  transition: color 0.25s;
  letter-spacing: 0.02em;
}

.gdpr-decline:hover { color: var(--sand); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .countries-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-route { grid-template-columns: 1fr; gap: 24px; }
  .featured-route-left { padding-right: 0; }
  .cta-mooring { grid-template-columns: 1fr; }
  .cta-mooring-visual { min-height: 120px; }
  .hero-image-panel { display: none; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .country-hero { grid-template-columns: 1fr; padding: 40px 24px 60px; }
  .country-hero-image { height: 280px; }
  .info-strip { grid-template-columns: repeat(2, 1fr); margin: 0 24px; }
  .route-entry { grid-template-columns: 1fr; }
  .route-entry-image { min-height: 200px; border-right: none; border-bottom: 1.5px solid var(--ink); }
  .practical-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .route-overview { grid-template-columns: 1fr; }
  .route-overview-visual { min-height: 200px; border-right: none; border-bottom: 1.5px solid var(--ink); }
  .waypoints-bar { grid-column: span 1; }
  .related-grid { flex-direction: column; }
}

@media (max-width: 768px) {
  .coast-header {
    padding: 20px 24px;
  }

  .burger {
    display: block;
  }

  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sand);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 40px 40px;
    gap: 24px;
    z-index: 20;
  }

  .coast-header.nav-open .nav {
    display: flex;
  }

  .coast-header.nav-open .nav .nav-link {
    font-size: 18px;
  }

  .nav-dropdown-menu {
    position: static;
    border: none;
    padding: 8px 0 0 16px;
    margin-top: 8px;
  }

  .nav-dropdown-toggle::after {
    content: ' +';
  }

  .nav-dropdown.open .nav-dropdown-toggle::after {
    content: ' -';
  }

  .hero {
    padding: 0 24px;
    min-height: 70vh;
  }

  .hero-title { font-size: 48px; }

  .breadcrumbs { padding: 12px 24px; }

  .countries-section,
  .featured-section,
  .cta-section,
  .routes-section,
  .practical-section,
  .related-section,
  .homepage-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .countries-grid { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr; }
  .practical-grid { grid-template-columns: 1fr; }

  .article-header,
  .article-hero-image,
  .article-layout {
    padding-left: 24px;
    padding-right: 24px;
  }

  .article-hero-inner { height: 260px; }

  .route-overview-data { grid-template-columns: 1fr; }
  .ov-stat { border-right: none !important; }

  .simple-page { padding: 40px 24px 80px; }
  .simple-page::after { display: none; }

  .coast-footer {
    padding: 40px 24px 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  /* CTA mobile */
  .cta-waypoint::before { display: none; }
  .cta-waypoint-dot { display: none; }
  .cta-waypoint-inner { margin-left: 0; }
  .cta-waypoint-inner::before { display: none; }

  .cta-hub-block { padding: 32px 24px; }

  /* GDPR mobile */
  .gdpr-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 24px;
  }

  .gdpr-mark { display: none; }
  .gdpr-actions { justify-content: flex-start; }
}
