:root {
  --bg: #120e0e;
  --surface: #1b1414;
  --surface-alt: #241a1a;
  --text: #f3ece9;
  --text-muted: #b4a29d;
  --border: rgba(243,236,233,0.14);
  --accent: #bf8f4f;
  --accent-2: #9d5a4e;
  --secondary: #2a1e1e;
  --on-accent: #171111;
  --deep: #0a0707;
  --radius: 0px;
  --radius-btn: 999px;
  --radius-card: 28px;
  --shadow-card: 0 2px 12px rgba(0,0,0,.06);
  --font-heading: Constantia, Georgia, serif;
  --font-body: 'Trebuchet MS', 'Segoe UI', sans-serif;
  --content: 1320px;
  --section-pad: 120px;
  --header-h: 120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.06;
}

h2 {
  font-size: clamp(28px, 4.6vw, 44px);
}

h3 {
  font-size: clamp(22px, 3vw, 30px);
}

p {
  margin-bottom: 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
}

.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
}

.btn--ghost:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--full {
  width: 100%;
}

.text-link {
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  padding: 1.25rem 0 0;
}

.site-header.is-solid {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-row {
  display: flex;
  justify-content: center;
  padding-bottom: 1rem;
}

.nav-row {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border);
  padding: 0.85rem 0 1.1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  position: absolute;
  top: 1.35rem;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

.independence {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.9rem 1.15rem;
  margin: 1.5rem 0 0;
  max-width: 52rem;
}

.independence p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.page-hero {
  padding: calc(var(--header-h) + 48px) 0 2.5rem;
  background: var(--bg);
}

.page-hero .independence {
  margin-top: 2rem;
}

.page-hero__intro {
  max-width: 46rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero {
  padding: calc(var(--header-h) + 40px) 0 var(--section-pad);
  background: var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy p {
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-frame {
  position: relative;
  margin-left: auto;
  width: min(100%, 480px);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--border);
  pointer-events: none;
}

.hero-frame img {
  width: 100%;
  height: clamp(420px, 62vh, 640px);
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.hero .independence {
  margin-top: 3rem;
  max-width: none;
}

.section {
  padding: var(--section-pad) 0;
}

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

.section--bg {
  background: var(--bg);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 3.5rem;
}

.section-head p {
  color: var(--text-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.category-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

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

.category-card__body {
  padding: 1.75rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.85rem;
}

.category-card h3 {
  font-size: 1.55rem;
}

.category-card p {
  color: var(--text-muted);
  flex: 1;
}

.category-card .text-link {
  margin-top: auto;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  align-self: flex-start;
  padding-bottom: 0.1rem;
}

.timeline {
  max-width: 48rem;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
  display: grid;
  gap: 2.75rem;
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px var(--bg);
}

.section--alt .timeline__item::before {
  box-shadow: 0 0 0 4px var(--surface-alt);
}

.timeline__item h3 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.timeline__item p {
  color: var(--text-muted);
}

.closing-cta {
  background: var(--deep);
  text-align: center;
  padding: var(--section-pad) 0;
}

.closing-cta .container {
  max-width: 42rem;
}

.closing-cta p {
  color: var(--text-muted);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.mission-grid__left {
  padding-right: 2rem;
  border-right: 1px solid var(--border);
}

.mission-grid p {
  color: var(--text-muted);
}

.catalog-rows {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.catalog-row {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.catalog-row--flip {
  grid-template-columns: 1fr 40%;
}

.catalog-row--flip .catalog-row__media {
  order: 2;
}

.catalog-row--flip .catalog-row__body {
  order: 1;
}

.catalog-row__media {
  position: relative;
  min-height: 280px;
  align-self: stretch;
}

.catalog-row__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.catalog-row__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: rgba(10, 7, 7, 0.72);
}

.catalog-row__overlay h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0;
}

.catalog-row__body {
  padding: 2rem 2.25rem 2.25rem;
}

.catalog-row__meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.catalog-row__body p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.route-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.route-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.route-row:last-child {
  border-bottom: 1px solid var(--border);
}

.route-row__thumb {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 8px;
}

.route-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-row__copy {
  text-align: center;
}

.route-row__kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.route-row__copy h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-bottom: 0.5rem;
}

.route-row__copy p {
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 36rem;
}

.city-bands {
  display: flex;
  flex-direction: column;
}

.city-band {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.city-band:first-child {
  border-top: 1px solid var(--border);
}

.city-band__media {
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.city-band__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 560px;
  object-fit: cover;
  margin-inline: auto;
}

.city-band__body {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.city-band__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 1rem;
}

.city-band__title span {
  color: var(--text-muted);
}

.city-band__body p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.catalog-close {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  max-width: 40rem;
}

.editorial-lead {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.45;
  color: var(--text);
  max-width: none;
  margin-bottom: 3.5rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}

.editorial-block h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 1.25rem;
}

.editorial-block p {
  color: var(--text-muted);
}

.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-wrap > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-form {
  text-align: left;
  display: grid;
  gap: 1.25rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.agree-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.agree-row input {
  margin-top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.agree-row label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.form-error {
  color: #e8a090;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-status[aria-live] {
  color: #e8a090;
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.confirm-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  text-align: left;
}

.confirm-panel h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.confirm-panel p {
  color: var(--text-muted);
}

.confirm-again {
  margin-top: 1.5rem;
}

.legal-body {
  max-width: 48rem;
}

.legal-body h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  margin: 2.5rem 0 1rem;
}

.legal-body h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
}

.legal-body p,
.legal-body li {
  color: var(--text-muted);
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.sitemap-col h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.sitemap-col ul {
  display: grid;
  gap: 0.65rem;
}

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

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

.site-footer {
  background: var(--bg);
  padding-top: 4.5rem;
  border-top: 1px solid var(--border);
}

.footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
  padding-bottom: 3rem;
}

.footer-stack .brand {
  justify-content: center;
}

.footer-blurb,
.footer-about {
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-independence {
  max-width: 46rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
  max-width: 56rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0 0.65rem;
}

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

.footer-links .sep {
  color: var(--border);
  user-select: none;
}

.footer-requisites {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 44rem;
  line-height: 1.6;
}

.footer-bar {
  background: var(--surface-alt);
  padding: 1rem 0;
}

.footer-bar__inner {
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.footer-bar__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bar__right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.footer-bar__right a,
.footer-bar__right button {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
  text-decoration: none;
}

.footer-bar__right a:hover,
.footer-bar__right button:hover {
  color: var(--accent);
}

.consent-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.consent-backdrop[hidden] {
  display: none;
}

.consent-modal {
  background: var(--surface);
  color: var(--text);
  width: min(100%, 520px);
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  padding: 1.75rem 1.6rem 1.5rem;
}

.consent-modal h2 {
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}

.consent-modal > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.consent-cats {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.consent-cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}

.consent-cat:last-child {
  border-bottom: 1px solid var(--border);
}

.consent-cat strong {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.05rem;
}

.consent-cat p {
  grid-column: 1;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.consent-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.consent-switch[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

.consent-switch:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.consent-switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s ease;
}

.consent-switch[aria-checked="true"] span {
  transform: translateX(20px);
}

.consent-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.consent-actions .btn {
  width: 100%;
}

.consent-manage {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding: 0.35rem;
}

.consent-save-row {
  display: none;
  margin-top: 0.5rem;
}

.consent-save-row.is-open {
  display: block;
}

.consent-policy {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
}

.cookie-settings-inline {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

@media (max-width: 1024px) {
  :root {
    --section-pad: 96px;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .category-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-row {
    display: none;
    border-top: none;
    padding: 0 0 1.25rem;
  }

  .site-header.is-open .nav-row {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
  }

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

  .hero-frame {
    margin: 0 auto;
  }

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

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .mission-grid__left {
    border-right: none;
    padding-right: 0;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
  }

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

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  .container {
    width: min(100% - 32px, var(--content));
  }

  .catalog-row,
  .catalog-row--flip {
    grid-template-columns: 1fr;
  }

  .catalog-row--flip .catalog-row__media,
  .catalog-row--flip .catalog-row__body {
    order: initial;
  }

  .route-row {
    grid-template-columns: 80px 1fr;
  }

  .route-row .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .route-row__copy {
    text-align: left;
  }

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

  .city-band__media img {
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .footer-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 64px;
    --header-h: 100px;
  }

  .brand {
    font-size: 1.15rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .hero-frame img {
    height: 360px;
  }

  .route-row {
    grid-template-columns: 64px 1fr;
    gap: 1rem;
  }

  .route-row__thumb {
    width: 64px;
    height: 64px;
  }

  .consent-modal {
    padding: 1.35rem 1.15rem;
    border-radius: 18px;
  }
}
