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

:root {
  --accent: #ffc107;
  --accent-dark: #e6ac00;
  --dark: #1a1a1a;
  --dark2: #212121;
  --dark3: #2a2a2a;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  --text-dim: #888888;
  --border: #3a3a3a;
  --radius: 4px;
}

body {
  background: var(--dark);
  color: var(--text-light);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: 0.3px;
}
.btn:hover { text-decoration: none; }
.btn-accent { background: var(--accent); color: #1a1a1a; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #1a1a1a; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.btn-tg { background: #229ED9; color: #fff; border-color: #229ED9; }
.btn-tg:hover { background: #1a8abf; border-color: #1a8abf; color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* TOPBAR */
.topbar {
  background: var(--dark2);
  border-bottom: 1px solid #333;
  padding: 8px 0;
  font-size: 0.83rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left { color: var(--text-dim); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-phone { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.topbar-phone:hover { color: var(--accent-dark); }
.topbar-sep { color: #444; }
.topbar-hours { color: var(--text-dim); }

/* HEADER */
#site-header {
  background: #111;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 2px solid var(--accent);
}
#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo a { text-decoration: none; }
.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  font-family: 'Lato', Arial, sans-serif;
}
.logo-text strong { color: var(--accent); }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-nav a:hover { color: var(--accent); }

/* HERO */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.70) 50%, rgba(0,0,0,0.40) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
}
.hero-label {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  padding: 4px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  border-radius: var(--radius);
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 580px;
  font-family: 'Lato', Arial, sans-serif;
}
.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-price-row {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero-price-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 18px 28px;
  text-align: center;
  min-width: 140px;
}
.hero-price-num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-family: 'Lato', Arial, sans-serif;
}
.hero-price-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* FEATURES STRIP */
.features-strip {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.features-inner {
  display: flex;
  align-items: center;
}
.feature-item {
  flex: 1;
  padding: 28px 24px;
  text-align: center;
}
.feature-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}
.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 5px;
  font-family: 'Lato', Arial, sans-serif;
}
.feature-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* SECTIONS */
.section { padding: 60px 0; }
.section-light { background: #f5f5f5; }
.section-light .section-title { color: #1a1a1a; }
.section-light .section-sub { color: #555; }
.section-dark { background: var(--dark3); }

.section-header { margin-bottom: 32px; }
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  font-family: 'Lato', Arial, sans-serif;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin-top: 10px;
}
.section-sub { color: var(--text-muted); font-size: 0.93rem; }

/* DATE TABS */
.date-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.date-tab {
  padding: 8px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  background: #fff;
  color: #555;
  border: 2px solid #ddd;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
}
.date-tab.active { border-color: #1a3a6b; color: #1a3a6b; background: #e8eef8; }
.date-picker {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: #555;
  background: #fff;
  cursor: pointer;
  height: 38px;
}
.date-picker:focus { outline: none; border-color: #1a3a6b; }

/* SCHEDULE */
.schedule-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
.schedule-table { width: 100%; border-collapse: collapse; background: #fff; }
.schedule-table th {
  text-align: left;
  padding: 14px 18px;
  background: #1a3a6b;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.schedule-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  vertical-align: middle;
  color: #1a1a1a;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: #f8f9ff; }
.loading-cell { color: #999; text-align: center; padding: 32px 18px !important; }
.dir-a { color: #1a3a6b; font-weight: 700; }
.dir-b { color: #2a7a3a; font-weight: 700; }
.seats-badge { display: inline-block; font-size: 0.82rem; padding: 4px 12px; border-radius: 20px; font-weight: 600; }
.seats-ok { background: #e6f4ea; color: #2a7a3a; }
.seats-few { background: #fff3e0; color: #e65100; }
.seats-zero { background: #fdecea; color: #c62828; }
.schedule-note { margin-top: 16px; color: #666; font-size: 0.88rem; }

/* ABOUT */
.about-section {
  position: relative;
  padding: 100px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
}
.about-content { position: relative; z-index: 2; }
.about-text { max-width: 600px; }
.about-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  font-family: 'Lato', Arial, sans-serif;
}
.about-text h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin-top: 10px;
}
.about-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.about-text strong { color: #fff; }
.about-list { list-style: none; margin-top: 20px; }
.about-list li {
  padding: 7px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-left: 16px;
  position: relative;
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ROUTE */
.route-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.route-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
}
.route-card-alt { border-top-color: #4caf50; }
.route-card-dir {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: 'Lato', Arial, sans-serif;
}
.route-card-alt .route-card-dir { color: #4caf50; }
.route-times { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.route-times span {
  background: rgba(255,193,7,0.12);
  color: var(--accent);
  border: 1px solid rgba(255,193,7,0.3);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
}
.route-card-alt .route-times span {
  background: rgba(76,175,80,0.12);
  color: #4caf50;
  border-color: rgba(76,175,80,0.3);
}
.route-info { color: var(--text-dim); font-size: 0.88rem; }

/* CONTACTS */
.contacts-section { background: #111; padding: 70px 0; }
.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.contacts-left h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  font-family: 'Lato', Arial, sans-serif;
}
.contacts-left h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin-top: 10px;
}
.big-phone {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: 'Lato', Arial, sans-serif;
}
.big-phone:hover { color: var(--accent-dark); }
.contacts-left p { color: var(--text-muted); margin-bottom: 10px; font-size: 0.93rem; }
.contacts-left strong { color: #fff; }
.contacts-btns { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.tg-promo {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.tg-promo h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: 'Lato', Arial, sans-serif;
}
.tg-promo p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* FOOTER */
footer { background: #0a0a0a; padding: 28px 0; border-top: 1px solid #222; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Lato', Arial, sans-serif;
}
.footer-info { color: var(--text-dim); font-size: 0.84rem; text-align: center; }
.footer-info p { margin-bottom: 3px; }
.footer-info a { color: #888; }
.footer-info a:hover { color: var(--accent); }
.footer-copy { color: #444; font-size: 0.82rem; }

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  max-width: 500px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
}
.modal h3 { font-size: 1.2rem; color: #1a3a6b; margin-bottom: 4px; margin-right: 28px; }
.modal-subtitle { color: #666; font-size: 0.9rem; margin-bottom: 20px; }
.modal .close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
}
.modal .close:hover { color: #333; }

/* SEAT MAP */
.seat-map-wrap { margin-bottom: 16px; }
.seat-map-label { font-size: 0.85rem; color: #666; margin-bottom: 10px; }

.car-outer {
  background: #edf1f8;
  border: 2px solid #8899bb;
  border-radius: 8px;
  overflow: hidden;
  display: inline-block;
}
.car-hood {
  background: linear-gradient(to bottom, #c8d4e4, #bbc8d8);
  border-bottom: 2px solid #8899bb;
  padding: 10px 16px 8px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #445566;
  text-transform: uppercase;
}
.car-cabin {
  display: flex;
  align-items: stretch;
  padding: 12px 0;
}
.car-win-strip {
  width: 10px;
  flex-shrink: 0;
  margin: 0 6px;
  background: linear-gradient(to bottom,
    #b0cce0 0%, #b0cce0 30%,
    #7090a8 30%, #7090a8 33%,
    #b0cce0 33%, #b0cce0 65%,
    #7090a8 65%, #7090a8 68%,
    #b0cce0 68%, #b0cce0 100%
  );
  border-radius: 3px;
}
.car-seats { display: flex; align-items: center; gap: 8px; }
.car-grid-left  { display: grid; grid-template-columns: 54px 54px; gap: 8px; }
.car-grid-right { display: grid; grid-template-columns: 54px; gap: 8px; }
.car-trunk {
  background: linear-gradient(to top, #c8d4e4, #bbc8d8);
  border-top: 2px solid #8899bb;
  padding: 8px 16px 10px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #445566;
  text-transform: uppercase;
}
.seat {
  width: 54px; height: 44px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .1s;
}
.seat:hover:not(.taken):not(.driver) { transform: scale(1.08); }
.seat.free { background: #e6f4ea; color: #2a7a3a; border-color: #b2dfbd; }
.seat.taken { background: #eee; color: #aaa; cursor: not-allowed; border-color: #ddd; }
.seat.selected { background: #e8eef8; color: #1a3a6b; border-color: #1a3a6b; }
.seat.driver { background: #e0e0e0; color: #777; cursor: default; font-size: 0.7rem; text-align: center; line-height: 1.3; }
.car-aisle { width: 24px; }
.car-empty { width: 54px; height: 44px; }
.selected-seat-info {
  background: #e8eef8;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 0.9rem;
  margin-bottom: 14px;
  display: none;
  color: #1a3a6b;
}

/* FORM */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.85rem; color: #555; margin-bottom: 5px; font-weight: 600; }
.form-group input {
  width: 100%;
  padding: 10px 13px;
  background: #f5f7fa;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  color: #1a1a1a;
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus { outline: none; border-color: #1a3a6b; background: #fff; }
.form-error { color: #c62828; font-size: 0.85rem; margin-top: 8px; display: none; }

/* CABINET */
.cabinet-wrap { max-width: 640px; margin: 40px auto; padding: 0 24px; }
.cabinet-header { background: #1a3a6b; color: #fff; padding: 24px; border-radius: var(--radius); margin-bottom: 24px; }
.cabinet-header h2 { font-size: 1.3rem; margin-bottom: 4px; }
.cabinet-header p { color: #ccd6f0; font-size: 0.9rem; }
.booking-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 4px solid #1a3a6b;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.booking-card h4 { color: #1a3a6b; margin-bottom: 8px; }
.booking-card p { font-size: 0.9rem; color: #555; margin-bottom: 4px; }
.booking-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .route-cards { grid-template-columns: 1fr; }
  .contacts-inner { grid-template-columns: 1fr; gap: 36px; }
  .features-inner { flex-wrap: wrap; }
  .feature-item { flex: 1 1 45%; }
  .feature-divider { display: none; }
}

@media (max-width: 640px) {
  .hero-content h1 { font-size: 2rem; }
  .hero { min-height: 460px; }
  .main-nav { display: none; }
  .topbar-left { display: none; }
  .section { padding: 44px 0; }
  .feature-item { flex: 1 1 100%; }
  .schedule-table { font-size: 0.85rem; }
  .schedule-table td, .schedule-table th { padding: 10px 10px; }
  .car-grid-left  { grid-template-columns: 46px 46px; gap: 6px; }
  .car-grid-right { grid-template-columns: 46px; gap: 6px; }
  .seat { width: 46px; height: 38px; }
  .car-empty { width: 46px; height: 38px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .about-section { background-attachment: scroll; }
}
