/* =========================================================
   Бравый Путешественник — дизайн-система v2
   Основано на фирменном стиле оригинального сайта (Tilda):
   белый фон, чёрные акцентные секции, яркий оранжевый (#FF6600),
   тёплые персиковые подложки карточек, шрифт Inter, сильное
   скругление углов. Модернизировано: больше воздуха, мягкие
   цветные тени, крупная типографика, аккуратные hover-эффекты.
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --bg-warm: #FFF6F2;
  --bg-warm-2: #FFE8DF;
  --ink: #101010;
  --ink-soft: #4A2A1E;
  --text-muted: #6B6660;
  --accent: #FF6600;
  --accent-deep: #E6540A;
  --accent-tint: #FFF0E6;
  --success: #1E9E56;
  --info: #1D98DC;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 8px 24px rgba(16,16,16,0.06);
  --shadow-accent: 0 10px 30px rgba(255,102,0,0.22);
  --font-display: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}

/* Пунктирная маршрутная линия — фирменный разделитель разделов */
.route-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2.5rem 0;
  color: var(--accent);
}
.route-divider::before, .route-divider::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 2px dotted rgba(255,102,0,0.4);
}
.route-divider .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #F0EBE6;
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.brand .mark { width: 36px; height: 36px; flex-shrink: 0; }
.main-nav { display: flex; gap: 30px; font-size: 0.92rem; font-weight: 600; }
.main-nav a { color: var(--ink); opacity: 0.6; transition: opacity .15s; }
.main-nav a:hover { opacity: 1; }
.lang-switch {
  border: none;
  background: var(--ink);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background .15s;
}
.lang-switch:hover { background: var(--accent); }

/* ---------- Hero slider (replaces old static hero) ---------- */
.hero-slider {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--ink);
}
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide .slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.55));
}
.slide .slide-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 0 24px;
}
.slide .slide-content h2 { font-size: 2.6rem; color: #fff; max-width: 760px; margin-bottom: 0.4em; }
.slide .slide-content p { max-width: 620px; color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 1.4em; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3; transition: background .15s;
  font-size: 1.1rem; color: var(--ink);
}
.slider-arrow:hover { background: #fff; }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
.slider-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.slider-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid #fff; background: transparent; cursor: pointer; padding: 0;
}
.slider-dots button.active { background: #fff; }
@media (max-width: 700px) {
  .hero-slider { height: 460px; }
  .slide .slide-content h2 { font-size: 1.8rem; }
}

/* ---------- About company section ---------- */
.about-section {
  background: var(--accent);
  color: #fff;
  padding: 80px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-section h2 { color: #fff; font-size: 2.1rem; }
.about-section p { color: rgba(255,255,255,0.9); font-size: 1.05rem; max-width: 520px; }
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-photos .photo {
  border-radius: var(--radius);
  height: 160px;
  background-size: cover; background-position: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.about-photos .photo:nth-child(2) { margin-top: 26px; }
.about-photos .photo:nth-child(4) { margin-top: -26px; }

/* ---------- Hero (fallback, still used on tour pages etc.) ---------- */
.hero {
  padding: 88px 0 64px;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,102,0,0.35), transparent 55%);
}
.hero .container { position: relative; }
.hero h1 { font-size: 3rem; max-width: 720px; color: #fff; line-height: 1.08; }
.hero p { max-width: 600px; color: rgba(255,255,255,0.72); font-size: 1.08rem; }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 28px 0 44px;
}
.filter-chip {
  border: 1.5px solid #EFE7E0;
  background: #fff;
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all .15s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

/* ---------- Tour cards ---------- */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}
.tour-card {
  background: var(--bg-warm);
  border: 1px solid #F5EAE2;
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.tour-card .card-image {
  width: 100%; height: 180px;
  background-size: cover; background-position: center;
  background-color: var(--bg-warm-2);
}
.card-image.placeholder, .cover-image.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
}
.cover-image.placeholder { font-size: 3.6rem; }
.placeholder.cat-multiday { background: linear-gradient(135deg, #FFDAB0, #FF6600); }
.placeholder.cat-moscow { background: linear-gradient(135deg, #FFE8DF, #FFB380); }
.placeholder.cat-den-medika { background: linear-gradient(135deg, #FFCDB0, #E6540A); }
.placeholder.cat-production-tours { background: linear-gradient(135deg, #FFE0CC, #FF8A3D); }
.placeholder.cat-default { background: linear-gradient(135deg, #FFF0E6, #FFB380); }
.tour-card .card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.tour-card .category-tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--accent); font-weight: 700;
}
.tour-card h3 { font-size: 1.2rem; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.tour-card .subtitle { color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; }
.tour-card .price {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink);
}
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  text-align: center;
  transition: all .15s;
  box-shadow: var(--shadow-accent);
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn.secondary {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ---------- Tour detail page ---------- */
.tour-hero {
  padding: 56px 0 32px;
  background: var(--bg-warm);
  border-bottom: 1px solid #F5EAE2;
}
.tour-hero .cover-image {
  width: 100%; height: 320px; border-radius: var(--radius-lg);
  background-size: cover; background-position: center; margin-bottom: 28px;
  background-color: var(--bg-warm-2);
}
.tour-hero .category-tag { color: var(--accent); text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.75rem; font-weight: 700; }
.tour-hero h1 { font-size: 2.3rem; color: var(--ink); margin-top: 8px; }
.tour-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; padding: 44px 0 88px; align-items: start; }
@media (max-width: 900px) { .tour-body { grid-template-columns: 1fr; } }

.description-block { color: #35302B; white-space: pre-line; font-size: 1.02rem; }
.description-block strong { color: var(--ink); }

.includes-box {
  background: var(--bg-warm); border: 1px solid #F5EAE2; border-radius: var(--radius);
  padding: 20px 22px; margin-top: 22px; color: #35302B; white-space: pre-line;
}
.includes-box h4 { color: var(--accent); }

/* ---------- Booking panel ---------- */
.booking-panel {
  background: #fff;
  border: 1.5px solid #F0EBE6;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky; top: 100px;
}
.booking-panel h3 { color: var(--ink); }
.booking-panel select, .booking-panel input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1.5px solid #EFE7E0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: #FCFAF8;
}
.booking-panel select:focus, .booking-panel input:focus { outline: none; border-color: var(--accent); }
.booking-panel label { font-size: 0.82rem; font-weight: 700; display: block; margin-bottom: 5px; }

/* ---------- Bus seat map ---------- */
.seatmap-wrap { margin: 18px 0; }
.seatmap-legend { display: flex; gap: 16px; font-size: 0.78rem; margin-bottom: 12px; color: var(--text-muted); }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: middle; }
.legend-free { background: #FCFAF8; border: 1.5px solid #EFE7E0; }
.legend-taken { background: #D8D2CA; }
.legend-selected { background: var(--accent); }

.bus-shell {
  border: 2px solid #F0EBE6;
  border-radius: var(--radius-lg) var(--radius-lg) 10px 10px;
  padding: 18px 14px;
  background: var(--bg-warm);
}
.bus-row { display: flex; gap: 6px; margin-bottom: 6px; justify-content: center; }
.seat {
  width: 32px; height: 32px;
  border-radius: 8px 8px 10px 10px;
  border: 1.5px solid #EFE7E0;
  background: #FCFAF8;
  font-size: 0.65rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  transition: all .12s;
}
.seat.aisle { border: none; background: transparent; cursor: default; width: 16px; }
.seat.taken { background: #D8D2CA; color: #8C877E; cursor: not-allowed; border-color: #CFC8BE; }
.seat.selected { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 10px rgba(255,102,0,0.35); }
.seat:not(.taken):not(.aisle):not(.selected):hover { border-color: var(--accent); transform: translateY(-1px); }

.selection-summary {
  margin-top: 18px; padding-top: 18px; border-top: 1.5px dashed #EFE7E0;
  font-size: 0.9rem;
}
.selection-summary .total { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; margin-top: 6px; color: var(--ink); }

/* ---------- Contact form ---------- */
.contact-section { background: var(--ink); color: #fff; padding: 64px 0; }
.contact-section h2 { color: #fff; }
.contact-form { max-width: 520px; display: grid; gap: 12px; margin-top: 20px; }
.contact-form input, .contact-form textarea {
  padding: 13px 16px; border-radius: var(--radius-sm); border: none;
  background: rgba(255,255,255,0.08); color: #fff; font-family: var(--font-body);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.45); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); }
.form-note { font-size: 0.8rem; color: var(--text-muted); }
.contact-section .form-note { color: rgba(255,255,255,0.55); }
.form-success { color: #4ADE80; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 44px 0; background: #fff;
  color: var(--text-muted); font-size: 0.85rem;
}
.site-footer a { color: var(--accent); font-weight: 600; }

/* ---------- Admin ---------- */
.admin-body { background: #FAF7F4; color: var(--ink); font-family: var(--font-body); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 232px; background: var(--ink); color: #fff; padding: 26px 18px; flex-shrink: 0;
}
.admin-sidebar .brand { font-size: 1.05rem; margin-bottom: 28px; color: #fff; }
.admin-sidebar a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: rgba(255,255,255,0.6); font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,102,0,0.15); color: var(--accent); }
.admin-main { flex: 1; padding: 34px 42px; max-width: 1200px; }
.admin-card { background: #fff; border: 1px solid #F0EBE6; border-radius: var(--radius); padding: 24px; margin-bottom: 22px; box-shadow: var(--shadow-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid #F0EBE6; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-soft); }
.stat-card .num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; }
.stat-card .label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.admin-table th, table.admin-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #F5F0EA; }
table.admin-table th { color: var(--text-muted); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; font-weight: 700; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge.paid { background: #E3F7EC; color: var(--success); }
.badge.pending_payment { background: #FFF0E6; color: var(--accent-deep); }
.badge.expired, .badge.cancelled { background: #FDEAEA; color: #C0392B; }
.badge.new { background: #E4F3FC; color: var(--info); }

.admin-form label { display: block; font-size: 0.82rem; font-weight: 700; margin: 14px 0 5px; }
.admin-form input, .admin-form textarea, .admin-form select {
  width: 100%; padding: 11px 14px; border: 1.5px solid #EFE7E0; border-radius: var(--radius-sm); font-family: var(--font-body);
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { outline: none; border-color: var(--accent); }
.admin-form textarea { min-height: 100px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.checkbox-row input { width: auto; }
.login-shell { display:flex; align-items:center; justify-content:center; min-height:100vh; background: var(--ink); }
.login-card { background: #fff; padding: 44px; border-radius: var(--radius-lg); width: 340px; box-shadow: var(--shadow-soft); }
