:root {
  --bg: #26211c;
  --bg-soft: #2e2e2e;
  --panel: #3a3129;
  --panel-soft: #5b4636;
  --ink: #f5f1ea;
  --muted: #ddd2c2;
  --gold: #d7b779;
  --gold-soft: #f1e0b2;
  --line: rgba(215, 183, 121, 0.28);
  --accent: #8a9580;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(139, 120, 98, 0.24), transparent 36%),
    radial-gradient(circle at 88% 0%, rgba(215, 183, 121, 0.1), transparent 30%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

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

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #fff;
  object-fit: cover;
}
.brand-logo.small { width: 46px; height: 46px; }
.brand-text strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1;
  color: var(--gold-soft);
}
.brand-text small { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.main-nav a.active,
.main-nav a:hover { color: var(--gold-soft); }
.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--gold-soft) !important;
  background: linear-gradient(180deg, rgba(91, 70, 54, 0.52), rgba(91, 70, 54, 0.22));
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold-soft);
  border-radius: 10px;
  font-size: 20px;
  padding: 6px 10px;
}

.institutional-banner {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(91, 70, 54, 0.52), rgba(46, 46, 46, 0.94));
}
.institutional-banner-inner {
  padding: 14px 0;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.institutional-banner-copy { margin: 0; color: var(--muted); font-weight: 600; }

.section-shortcuts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shortcut-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}

.shortcut-pill:hover {
  color: var(--gold-soft);
  border-color: rgba(215, 183, 121, 0.4);
}

.shortcut-pill-active {
  background: #f3ede2;
  border-color: #d8c8b4;
  color: #5a4633;
  font-weight: 800;
}

.hero { padding: 44px 0 24px; border-bottom: 1px solid var(--line); }
.hero-content {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: stretch;
}
.hero-copy {
  background: linear-gradient(180deg, rgba(58, 49, 41, 0.88), rgba(46, 46, 46, 0.9));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
}
h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 0.94;
  color: #fff;
}
.hero h2 {
  margin: 14px 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 3.6vw, 34px);
  font-weight: 500;
  line-height: 1.08;
  color: var(--gold-soft);
}
.hero p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.72; }

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  border: 1px solid var(--line);
  transition: transform 120ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24); }
.btn-primary { color: #1a1024; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); border-color: transparent; }
.btn-outline { color: #fff; background: rgba(255, 255, 255, 0.04); }

.hero-pills {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.hero-media {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
}
.hero-main-image,
.hero-side-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0f0d14;
}

.section { padding: 30px 0; }
.section-title { margin-bottom: 16px; }
.section-title h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.05;
}

.route-grid,
.ecosystem-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.route-card,
.eco-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(58, 49, 41, 0.92), rgba(46, 46, 46, 0.94));
  padding: 18px;
}
.route-card:hover,
.eco-card:hover { border-color: var(--gold); }
.route-card h3,
.eco-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--gold-soft);
}
.route-card p,
.eco-card p { margin: 0; color: var(--muted); line-height: 1.58; font-size: 14px; }

.manifiesto-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(58, 49, 41, 0.9), rgba(46, 46, 46, 0.94));
  padding: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  align-items: stretch;
}
.manifiesto-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.2vw, 42px);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.05;
}
.manifiesto-panel p { margin: 0; color: var(--muted); line-height: 1.72; }
.manifiesto-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.site-footer {
  margin-top: 20px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(46, 46, 46, 0.96);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.social-links img { width: 20px; height: 20px; }
.legal { text-align: right; color: var(--muted); font-size: 13px; }
.legal p { margin: 3px 0; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 6, 10, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(58, 49, 41, 0.97), rgba(46, 46, 46, 0.98));
  padding: 28px;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-soft);
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
}
.modal-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.modal-header h2 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
}
.modal-header p,
.modal-body p { color: var(--muted); line-height: 1.7; }
.modal-body p { margin: 0 0 14px; }

.contact-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
}
.contact-list span { color: var(--gold-soft); font-weight: 600; }
.contact-list strong { color: #fff; text-align: right; }
.modal-signature { border-top: 1px solid var(--line); margin-top: 18px !important; padding-top: 14px; color: #fff !important; }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--line);
    background: rgba(46, 46, 46, 0.98);
    border-radius: 12px;
    padding: 12px;
    gap: 12px;
  }
  .main-nav.open { display: flex; }
  .hero-content,
  .manifiesto-panel { grid-template-columns: 1fr; }
  .route-grid,
  .ecosystem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .social-links { justify-content: center; }
  .legal { text-align: center; }
  .section-shortcuts { width: 100%; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
  .brand-text small { display: none; }
  .hero-copy { padding: 20px; }
  .btn { width: 100%; text-align: center; }
  .route-grid,
  .ecosystem-grid,
  .hero-media { grid-template-columns: 1fr; }
}
