/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b0d0f;
  --bg-elevated: #15181b;
  --bg-elevated-2: #1c2024;
  --ink: #f3efe7;
  --ink-muted: #96938d;
  --brass: #c9a567;
  --brass-soft: rgba(201, 165, 103, 0.14);
  --line: #2a2d30;
  --line-strong: #3a3d40;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Eyebrow / small labels */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--ink-muted);
  margin-top: 14px;
  font-size: 1.02rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.logo-word {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
}

.logo-code {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--brass);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  border-radius: 4px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.25s ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brass);
  color: #16130b;
}

.btn-primary:hover {
  background: #d9b578;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(201, 165, 103, 0.28);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Hero */
.hero {
  padding: 96px 0 110px;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(201, 165, 103, 0.10), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.hero-meta .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ecf6d;
  margin-right: 8px;
  box-shadow: 0 0 0 3px rgba(62, 207, 109, 0.18);
}

/* Ticket / signature element */
.ticket {
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px 26px 0;
  box-shadow: var(--shadow);
  position: relative;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 26px;
}

.ticket-class {
  color: var(--brass);
  border: 1px solid var(--brass-soft);
  background: var(--brass-soft);
  padding: 4px 10px;
  border-radius: 4px;
}

.ticket-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.route-point {
  display: flex;
  flex-direction: column;
}

.route-point.align-right {
  align-items: flex-end;
  text-align: right;
}

.route-code {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 500;
  line-height: 1;
}

.route-city {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.route-line {
  flex: 1;
  height: 1px;
  background-image: linear-gradient(to right, var(--line-strong) 50%, transparent 0%);
  background-size: 8px 1px;
  margin: 0 18px;
  position: relative;
  top: -10px;
}

.route-dot {
  position: absolute;
  top: -3.5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  animation: travel 4.5s ease-in-out infinite;
}

@keyframes travel {
  0%   { left: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.ticket-punch {
  height: 1px;
  background-image: linear-gradient(to right, var(--line-strong) 50%, transparent 0%);
  background-size: 10px 1px;
  position: relative;
  margin: 0 -26px;
}

.ticket-punch::before,
.ticket-punch::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.ticket-punch::before { left: -9px; }
.ticket-punch::after { right: -9px; }

.ticket-bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  gap: 12px;
}

.ticket-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field-value {
  font-size: 0.92rem;
  font-weight: 600;
}

.field-status {
  color: #3ecf6d;
}

.ticket-barcode {
  height: 34px;
  margin: 0 -26px;
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
  background-image: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0px, var(--line-strong) 2px,
    transparent 2px, transparent 5px,
    var(--line-strong) 5px, var(--line-strong) 6px,
    transparent 6px, transparent 10px,
    var(--line-strong) 10px, var(--line-strong) 13px,
    transparent 13px, transparent 16px
  );
  opacity: 0.6;
}

/* Services */
.services {
  padding: 100px 0;
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: all 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.service-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brass);
  border: 1px solid var(--brass-soft);
  background: var(--brass-soft);
  border-radius: 6px;
  margin-bottom: 22px;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Advantages */
.advantages {
  padding: 100px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.advantage-item {
  text-align: center;
}

.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--brass);
  margin-bottom: 20px;
}

.advantage-icon svg {
  width: 22px;
  height: 22px;
}

.advantage-item h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.advantage-item p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* Cars */
.cars {
  padding: 100px 0;
  background: var(--bg);
}

.car-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.car-photo-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 320px;
}

.car-photo-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,13,15,0) 40%, rgba(11,13,15,0.55) 100%);
}

.car-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.car-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.car-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 6px 0 14px;
}

.car-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.car-features {
  list-style: none;
}

.car-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.car-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 6px;
  border-left: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass);
  transform: rotate(-45deg);
}

/* Reviews */
.reviews {
  padding: 100px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: all 0.25s ease;
}

.review-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.review-stars {
  display: flex;
  gap: 4px;
  color: var(--brass);
  margin-bottom: 18px;
}

.review-stars svg {
  width: 15px;
  height: 15px;
}

.review-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--ink);
}

.review-author {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Contacts */
.contacts {
  padding: 100px 0;
  background: var(--bg);
}

.contacts-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 30px;
  min-width: 280px;
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--brass);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--brass);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-weight: 600;
  font-size: 1.05rem;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .route-dot {
    animation: none;
    left: 50%;
    opacity: 1;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Mobile */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .car-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.open {
    max-height: 320px;
  }

  .nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }

  .nav-toggle {
    display: flex;
  }

  .header-btn {
    display: none;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .services,
  .advantages,
  .cars,
  .reviews,
  .contacts {
    padding: 64px 0;
  }

  .ticket-bottom {
    flex-wrap: wrap;
  }
}
