:root {
  --paper: #efe8dc;
  --paper-2: #f7f1e6;
  --ink: #1a1612;
  --muted: #6a6358;
  --asphalt: #16181c;
  --rust: #e2410a;
  --rust-2: #c43408;
  --line: #d4cbb8;
  --display: "Tektur", system-ui, sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
  --rail: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
p, ul, dl { margin: 0; }
button, input, select { font: inherit; }

.burger {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--asphalt);
  color: #fff;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  background: var(--asphalt);
  color: #efe8dc;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  z-index: 40;
}
.brand {
  text-decoration: none;
  display: grid;
  gap: 2px;
  margin-bottom: 40px;
}
.brand-num {
  font-family: var(--display);
  font-size: 64px;
  color: var(--rust);
  line-height: 0.85;
}
.brand-name { font-family: var(--display); font-size: 22px; }
.brand-place { color: #9a9388; font-size: 13px; }
.side-nav { display: grid; }
.side-nav a {
  text-decoration: none;
  padding: 12px 0;
  border-top: 1px solid #2a2d33;
  font-weight: 600;
}
.side-nav a:hover { color: var(--rust); }
.side-meta { margin-top: auto; }
.side-meta a { color: #fff; font-weight: 700; text-decoration: none; }
.side-meta p { color: #9a9388; font-size: 13px; margin: 8px 0 16px; }
.side-btn {
  display: block;
  text-align: center;
  background: var(--rust);
  color: #fff !important;
  padding: 12px 10px;
}

main {
  margin-left: var(--rail);
  min-height: 100vh;
}

.cover { position: relative; min-height: 100vh; }
.cover-photo {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.cover-card {
  position: absolute;
  left: 36px;
  bottom: 120px;
  width: min(560px, calc(100% - 72px));
  background: var(--paper-2);
  padding: 32px 32px 28px;
  box-shadow: 12px 18px 0 var(--asphalt);
}
.stamp {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
}
.cover h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 14px; }
.cover-card p { color: #3d3831; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cover-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  background: var(--asphalt);
  color: #efe8dc;
}
.cover-stats li {
  padding: 16px 18px;
  border-right: 1px solid #2d3138;
  font-size: 14px;
}
.cover-stats b {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rust);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  padding: 12px 18px;
}
.btn:hover { background: var(--rust-2); }
.btn-line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.ticker {
  overflow: hidden;
  background: var(--rust);
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: run 22s linear infinite;
}
.ticker-track span { padding: 0 28px; }
.ticker-track span::before { content: "■ "; font-size: 12px; }
@keyframes run { to { transform: translateX(-50%); } }

.passport, .fleet, .gallery, .jobs, .contact { padding: 72px 40px; }
.block-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}
.block-head span {
  font-family: var(--display);
  color: var(--rust);
  font-size: 22px;
}
.block-head h2 { font-size: clamp(32px, 4vw, 48px); }
.lead { max-width: 62ch; color: #3d3831; margin-bottom: 28px; }

.passport-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}
.sheet {
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.sheet > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.sheet dt { color: var(--muted); font-size: 13px; }
.sheet dd { font-weight: 700; }
.passport-copy p { margin-bottom: 16px; font-size: 18px; }
.passport-copy ul { padding-left: 18px; }
.passport-copy li { margin: 8px 0; }

.machine {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: var(--paper-2);
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.machine img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  cursor: zoom-in;
}
.machine > div { padding: 32px; }
.machine-flip { grid-template-columns: 0.85fr 1.15fr; }
.machine-flip img { order: 2; }
.code {
  font-family: var(--display);
  color: var(--rust);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.machine h3 { font-size: 34px; margin-bottom: 10px; }
.machine dl { margin-top: 22px; }
.machine dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 10px;
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.mosaic img:first-child { grid-row: span 2; height: 100%; }
.mosaic img:last-child { grid-column: span 2; }

.tickets { display: grid; gap: 14px; }
.ticket {
  background: var(--paper-2);
  border: 1px dashed #b9ae99;
  padding: 24px;
}
.ticket h3 { font-size: 26px; margin-bottom: 14px; }
.ticket-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 18px;
}
.ticket h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 8px;
}
.ticket ul { padding-left: 18px; }
.ticket li { margin: 6px 0; }
.ticket-mini { display: block; }
.ticket-mini .btn { margin-top: 12px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form, .office {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 24px;
  display: grid;
  gap: 12px;
}
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.form input, .form select {
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.form-ok { color: #2e7a32; }
.phones { list-style: none; padding: 0; }
.phones li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.phones a { font-weight: 800; text-decoration: none; }
.social { display: flex; gap: 14px; }
.social a { color: var(--rust); font-weight: 700; }
.map { width: 100%; height: 220px; border: 0; }

.footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 40px 90px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.mobile-bar { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 10, 12, 0.92);
  display: grid;
  place-items: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 90vh; }

@media (max-width: 1100px) {
  .passport-grid, .machine, .machine-flip, .contact-grid, .ticket-cols, .mosaic {
    grid-template-columns: 1fr;
  }
  .machine-flip img { order: 0; }
  .mosaic { grid-auto-rows: 180px; }
  .mosaic img:first-child { grid-row: auto; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .sidebar {
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }
  .sidebar.is-open { transform: none; }
  main { margin-left: 0; }
  .cover { min-height: auto; padding-bottom: 72px; }
  .cover-photo { height: 46vh; }
  .cover-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -56px 16px 0;
    padding: 20px 18px 18px;
    box-shadow: 8px 10px 0 var(--asphalt);
  }
  .cover h1 { font-size: 30px; }
  .cover-card > p { display: none; }
  .cover-card .btn-line { display: none; }
  .cover-stats {
    position: relative;
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
  }
  .passport, .fleet, .gallery, .jobs, .contact { padding: 48px 18px; }
  .footer { padding: 20px 18px 96px; flex-direction: column; gap: 6px; }
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
  }
  .mobile-bar a {
    text-align: center;
    padding: 14px;
    text-decoration: none;
    font-weight: 800;
    background: var(--asphalt);
    color: #fff;
  }
  .mobile-bar .is-accent { background: var(--rust); }
}
