@import url("https://fonts.googleapis.com/css2?family=Onest:wght@600;700&display=swap");

:root {
  --color-bg: #faf7f2;
  --color-surface: #ffffff;
  --color-ink: #1a2332;
  --color-muted: #5c6678;
  --color-accent: #e85d4c;
  --color-accent-dark: #c94535;
  --color-teal: #0d6e6e;
  --color-teal-light: #e6f3f3;
  --color-teal-dark: #0a5555;
  --color-border: #e8e2d8;
  --color-gold: #e85d4c;
  --font-display: "Golos Text", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 35, 50, 0.1);
  --radius: 16px;
  --max-width: 1120px;
  --article-width: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
}

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

a {
  color: var(--color-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  font-family: "Onest", var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--color-muted);
  font-weight: 400;
  margin: 0 0.15em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-right: 0.6rem;
  background: url("../images/logo.svg") no-repeat center / contain;
}

.logo-accent {
  color: var(--color-accent);
}

.nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--color-ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(26, 35, 50, 0.85) 0%, rgba(26, 35, 50, 0.3) 60%, rgba(26, 35, 50, 0.15) 100%),
    url("../images/spb-bridge.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.15rem;
  opacity: 0.92;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 16px rgba(212, 146, 42, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}

.section-link {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

.card-tag {
  color: var(--color-teal);
  font-weight: 700;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  flex: 1;
}

/* Categories */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.category-chip:hover {
  background: var(--color-teal-light);
  border-color: var(--color-teal);
  color: var(--color-teal);
}

/* CTA block */
.cta-block {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  border-radius: calc(var(--radius) + 4px);
  padding: 3rem;
  color: white;
  text-align: center;
}

.cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.cta-block p {
  margin: 0 0 1.5rem;
  opacity: 0.9;
  max-width: 520px;
  margin-inline: auto;
}

/* Widget block */
.widget-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.widget-block-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
}

.widget-block-subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.widget-placeholder {
  min-height: 280px;
  background: var(--color-teal-light);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--color-teal);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* Article page */
.article-hero-full {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.article-hero-full__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(26, 35, 50, 0.92) 0%, rgba(26, 35, 50, 0.45) 55%, rgba(26, 35, 50, 0.25) 100%),
    var(--hero-image, url("../images/spb-bridge.jpg")) center / cover no-repeat;
}

.article-hero-full__content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 780px;
}

.article-hero-full .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.article-hero-full .breadcrumb a:hover {
  color: white;
}

.article-hero-full .breadcrumb li:last-child {
  color: rgba(255, 255, 255, 0.9);
}

.article-hero-full .breadcrumb li + li::before {
  color: rgba(255, 255, 255, 0.45);
}

.article-hero-full h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.article-hero-full .article-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.article-hero-full .article-meta span::before {
  content: "·";
  margin: 0 0.5rem;
  opacity: 0.5;
}

.article-hero-full .article-meta time + span::before {
  content: none;
}

.article-intro {
  padding: 2.5rem 0 0;
}

.article-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--color-ink);
  margin: 0 0 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

.article-lead p {
  margin: 0 0 1rem;
}

.article-lead p:last-child {
  margin-bottom: 0;
}

.day-section {
  margin-top: 3rem;
  padding-top: 0.5rem;
}

.day-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-teal-light);
  color: var(--color-teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.article-body h2 {
  margin-top: 0;
}

.schedule {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
}

.schedule li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}

.schedule li:last-child {
  border-bottom: none;
}

.schedule-time {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.schedule-text strong {
  color: var(--color-ink);
}

.hub-links {
  columns: 2;
  column-gap: 2rem;
  margin: 0.75rem 0 1.75rem;
  padding-left: 1.25rem;
}

.hub-links li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--color-ink);
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.budget-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.budget-item-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 0.25rem;
}

.budget-item-label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.budget-total {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  color: white;
  border: none;
}

.budget-total .budget-item-value {
  color: white;
  font-size: 1.75rem;
}

.budget-total .budget-item-label {
  color: rgba(255, 255, 255, 0.85);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  color: white;
  border: none;
}

.sidebar-cta h4 {
  color: white;
}

.sidebar-cta p {
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0 0 1rem;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  display: inline-flex;
}

.sidebar-links a {
  display: block;
  padding: 0.175rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.sidebar-links a:hover {
  background: var(--color-teal-light);
  color: var(--color-teal);
}

.article-related {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.article-related .section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

/* Legacy article (keep for compat) */
.article-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--color-border);
}

.article-hero .container {
  max-width: var(--article-width);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}

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

.breadcrumb li + li::before {
  content: "→";
  margin-right: 0.5rem;
  opacity: 0.5;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
}

.article-body {
  padding: 2.5rem 0 4rem;
}

.article-body .container {
  max-width: var(--article-width);
}

.article-body .container.article-layout {
  max-width: var(--max-width);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
}

.article-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1.5rem 0 0.65rem;
}

.article-body p {
  margin: 0 0 1.25rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.article-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article-table th,
.article-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.article-table th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-teal);
  background: var(--color-teal-light);
}

.article-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-teal-light);
  border-left: 4px solid var(--color-teal);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.tip-box {
  background: #f5f0e6;
  border: 1px solid #e0d4a8;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
}

.tip-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #7a6520;
}

/* Sidebar layout for article */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 5rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.sidebar-card h4 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

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

.sidebar-links li {
  margin-bottom: 0.25rem;
}

.sidebar-links a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-muted);
}

.sidebar-links a:hover {
  color: var(--color-teal);
}

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.affiliate-note {
  font-size: 0.78rem;
  opacity: 0.55;
}

/* Newsletter */
.newsletter {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.newsletter h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.newsletter p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font: inherit;
  min-width: 220px;
}

.newsletter-form button {
  padding: 0.75rem 1.25rem;
  background: var(--color-teal);
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--color-teal-dark);
}

/* Images & visual blocks */
.article-figure {
  margin: 1.75rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}

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

.article-figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.route-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.route-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}

.route-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.route-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.route-card-day {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.35rem;
}

.route-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.route-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

.photo-grid-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.photo-grid-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.photo-grid-item:hover img {
  transform: scale(1.04);
}

.photo-grid-item--wide {
  grid-column: span 2;
}

.photo-grid-item--wide img {
  aspect-ratio: 21 / 9;
}

.photo-grid-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: rgba(26, 35, 50, 0.72);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.split-block img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.split-block h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.split-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.sidebar-thumb {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.85rem;
}

.sidebar-thumb:last-child {
  margin-bottom: 0;
}

.sidebar-thumb img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-thumb span {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.35;
}

.sidebar-thumb:hover span {
  color: var(--color-teal);
}

.sidebar-preview {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

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

/* Homepage visuals */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 0.75rem;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mosaic-item:hover img {
  transform: scale(1.06);
}

.mosaic-item--large {
  grid-row: span 2;
  grid-column: span 2;
}

.mosaic-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

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

.category-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: white;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-tile:hover img {
  transform: scale(1.07);
}

.category-tile-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.62));
  font-weight: 700;
  font-size: 1.05rem;
}

.category-tile--disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.72;
}

.category-tile--disabled:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.category-tile--disabled:hover img {
  transform: none;
}

.category-tile-soon {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.75rem;
  font-weight: 600;
}

.card--disabled {
  cursor: default;
}

.card--disabled:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.footer-link--disabled {
  color: var(--color-muted);
  cursor: default;
  opacity: 0.7;
}

.featured-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.featured-main {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  position: relative;
  min-height: 420px;
  box-shadow: var(--shadow-md);
}

.featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.featured-main-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(26, 35, 50, 0.88));
  color: white;
}

.featured-main-content .card-tag {
  color: #b7ddb8;
}

.featured-main-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 0.5rem 0;
  line-height: 1.25;
}

.featured-main-content p {
  margin: 0;
  opacity: 0.88;
  font-size: 0.95rem;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.cta-block {
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/cta-road.jpg") center / cover no-repeat;
  opacity: 0.18;
}

.cta-block > * {
  position: relative;
}

.newsletter {
  position: relative;
  overflow: hidden;
}

.newsletter-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 38%;
  object-fit: cover;
  opacity: 0.22;
  mask-image: linear-gradient(to left, black 30%, transparent);
}

/* Responsive */
@media (max-width: 900px) {
  .budget-grid {
    grid-template-columns: 1fr;
  }

  .budget-total {
    grid-column: span 1;
  }

  .schedule li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .article-hero-full {
    min-height: 400px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

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

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

  .hub-links {
    columns: 1;
  }

  .split-block {
    grid-template-columns: 1fr;
  }

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

  .mosaic-item--large {
    grid-row: span 1;
    grid-column: span 2;
    min-height: 220px;
  }

  .mosaic-item:not(.mosaic-item--large) {
    min-height: 140px;
  }

  .featured-row {
    grid-template-columns: 1fr;
  }

  .featured-main {
    min-height: 320px;
  }

  .newsletter-photo {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

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

  .nav-toggle {
    display: block;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    min-height: 440px;
  }

  .route-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
  }

  .route-card-body {
    padding: 0.85rem 0.9rem 0.95rem;
  }

  .route-card h3 {
    font-size: 0.95rem;
  }

  .route-card p {
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  .route-cards {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .route-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: stretch;
  }

  .route-card img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 96px;
  }

  .route-card-body {
    padding: 0.7rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .route-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  .route-card p {
    font-size: 0.75rem;
    line-height: 1.35;
  }
}
