:root {
  --ink: #14212b;
  --muted: #61707e;
  --line: #dce5ec;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --soft-2: #edf4f8;
  --blue: #0d65a8;
  --blue-dark: #083d65;
  --green: #1d7561;
  --amber: #b96926;
  --red: #b43743;
  --shadow: 0 22px 60px rgba(20, 33, 43, 0.13);
  --shadow-soft: 0 12px 28px rgba(20, 33, 43, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.62;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--blue-dark);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 40;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(220, 229, 236, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 11px;
  color: var(--ink);
  border-radius: 7px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.is-active {
  background: var(--soft-2);
  color: var(--blue-dark);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(9, 27, 40, 0.86) 0%, rgba(9, 27, 40, 0.66) 45%, rgba(9, 27, 40, 0.1) 100%),
    url("assets/hero-europa-bus.webp") center / cover no-repeat;
  color: #fff;
}

.hero-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #cbe9ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section .eyebrow,
.article-content .eyebrow {
  color: var(--blue);
}

h1,
h2,
h3 {
  line-height: 1.14;
  margin: 0 0 16px;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
}

.article-content h1,
.feature-band h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

h3 {
  font-size: 1.18rem;
}

.lead {
  max-width: 780px;
  margin: 0 0 26px;
  color: #eaf4fb;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  margin: 30px 0 0;
}

.hero-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: 720px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: #eaf4fb;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-routes span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-left: 24px;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.45);
}

.hero-stat {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.hero-stat strong {
  display: block;
  font-size: 1.4rem;
}

.hero-stat span {
  color: #d7e9f4;
  font-size: 0.88rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.button.light {
  background: #fff;
  color: var(--blue-dark);
}

.section {
  padding: 78px 0;
}

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

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

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head p,
.article-intro {
  color: var(--muted);
  font-size: 1.06rem;
}

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.text-link {
  flex: 0 0 auto;
  padding-bottom: 4px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.post-card,
.topic-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(20, 33, 43, 0.02);
}

.card,
.post-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover,
.post-card:hover {
  transform: translateY(-3px);
  border-color: #c9d8e4;
  box-shadow: var(--shadow-soft);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body,
.post-body {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card p {
  color: var(--muted);
}

.post-card a {
  margin-top: auto;
  font-weight: 800;
}

.blog-list {
  display: grid;
  gap: 16px;
}

.blog-entry {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 33, 43, 0.02);
}

.blog-entry p {
  color: var(--muted);
}

.blog-entry details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.blog-entry summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 800;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.feature-band img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list,
.plain-list {
  padding-left: 1.15rem;
}

.check-list li,
.plain-list li {
  margin: 0 0 10px;
}

.country-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.destinations-section {
  background: #101923;
  color: #fff;
}

.destinations-section .section-head p {
  color: #bfcbd5;
}

.destinations-section .eyebrow,
.destinations-section .text-link {
  color: #8ed7c4;
}

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

.destination-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  background: #253442;
}

.destination-card--wide {
  grid-column: span 1;
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.destination-card:hover img,
.destination-card:focus img {
  transform: scale(1.035);
}

.destination-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 29, 0.06) 32%, rgba(8, 20, 29, 0.92) 100%);
}

.destination-content {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 5px;
  padding: 24px;
}

.destination-code {
  color: #8ed7c4;
  font-size: 0.76rem;
  font-weight: 900;
}

.destination-content strong {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.1;
}

.destination-content small {
  color: #dbe4ea;
  font-size: 0.88rem;
  line-height: 1.45;
}

.route-guide {
  padding: 56px 0;
  background: #e9f3f7;
}

.route-guide-inner {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.65fr);
  gap: 54px;
  align-items: center;
}

.route-guide h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

.route-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-steps li {
  position: relative;
  padding: 0 18px;
  border-left: 1px solid #c5d7e0;
}

.route-steps span,
.route-steps strong,
.route-steps small {
  display: block;
}

.route-steps span {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.route-steps strong {
  margin-bottom: 5px;
}

.route-steps small {
  color: var(--muted);
  line-height: 1.4;
}

.country {
  padding: 20px;
  border-left: 4px solid var(--blue);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.country:nth-child(2) {
  border-left-color: var(--green);
}

.country:nth-child(3) {
  border-left-color: var(--amber);
}

.country:nth-child(4) {
  border-left-color: var(--red);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
}

.article-content {
  min-width: 0;
}

.article-content h2 {
  margin-top: 44px;
}

.article-content h3 {
  margin-top: 28px;
}

.article-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 26px 0;
  box-shadow: var(--shadow-soft);
}

.article-country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 38px;
}

.article-country-grid a {
  position: relative;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
}

.article-country-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-country-grid a::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(7, 18, 27, 0.86));
}

.article-country-grid span {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 10px;
  left: 12px;
  font-size: 0.84rem;
  font-weight: 800;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  text-decoration: none;
}

.note {
  padding: 18px;
  border-left: 4px solid var(--blue);
  background: #eef6fc;
  border-radius: var(--radius);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.site-footer {
  padding: 50px 0;
  background: #101923;
  color: #d9e1e8;
}

.site-footer a {
  color: #fff;
}

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

.footer-grid ul {
  margin: 0;
  padding-left: 1.15rem;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #b9c6d1;
  font-size: 0.92rem;
}

@media (max-width: 1040px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .route-guide-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 880px) {
  .nav {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    inset: 67px 0 auto 0;
    display: none;
    width: 100%;
    max-height: calc(100vh - 67px);
    overflow: auto;
    padding: 14px 16px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-links a {
    width: 100%;
    padding: 13px 12px;
  }

  .hero {
    min-height: 700px;
    background-position: 62% center;
  }

  .grid.three,
  .grid.two,
  .feature-band,
  .article-shell,
  .footer-grid,
  .split-head {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .country-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }

  .article-country-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc {
    position: static;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 56px 0;
  }

  .hero-inner {
    padding: 88px 0 44px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-routes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }

  .hero-routes span::after {
    display: none !important;
  }

  .post-grid,
  .country-list,
  .destination-grid,
  .route-steps {
    grid-template-columns: 1fr;
  }

  .destination-grid {
    grid-auto-rows: 330px;
  }

  .route-steps li {
    padding: 0 0 18px;
    border-left: 0;
    border-bottom: 1px solid #c5d7e0;
  }

  .blog-entry,
  .card-body,
  .post-body {
    padding: 18px;
  }
}
