/* Hide header book CTA on mobile — sticky bar has «Бронь» */
@media (max-width: 768px) {
  .header-book { display: none !important; }
  .header-actions .header-phone { display: none !important; }
}


/* ===== ROUTES MAP ===== */
.routes-map-section {
  padding: 72px 0 96px;
  background: var(--bg);
}
.routes-map-wrap {
  max-width: 960px;
  margin: 0 auto;
}
#routes-map {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0;
  background: #e8eef5;
  z-index: 1;
}
.routes-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.map-legend-item:hover {
  border-color: var(--gold);
  color: var(--dark);
}
.map-legend-item.is-active {
  border-color: var(--gold);
  background: rgba(197, 160, 89, 0.1);
  color: var(--dark);
  box-shadow: 0 2px 10px rgba(197, 160, 89, 0.15);
}
.map-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-dot-all {
  background: linear-gradient(135deg, #c5a059, #3b82f6, #22c55e);
}
.map-pin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pin, #c5a059);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 2px solid #fff;
}
.map-pin-home {
  width: auto;
  min-width: 56px;
  height: 28px;
  padding: 0 10px;
  border-radius: 100px;
  background: #0f172a;
  font-size: 12px;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
}
.map-marker-cahul,
.map-marker-dest {
  background: transparent !important;
  border: none !important;
}
.leaflet-popup-content {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
}
.leaflet-popup-content a {
  color: #a88b3f;
  font-weight: 600;
}
@media (max-width: 768px) {
  #routes-map { height: 320px; border-radius: 16px; }
  .routes-map-section { padding: 48px 0 72px; }
  .map-legend-item { font-size: 0.82rem; padding: 8px 12px; }
}

/* ===== REVIEWS ===== */
.reviews {
  background: var(--bg);
  padding: 96px 0;
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.review-card {
  background: var(--white);
  border: 1px solid #eef2f7;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8d5a8, #c5a059);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.review-meta strong {
  display: block;
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.review-stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 2px;
  line-height: 1;
  margin: 0;
}
.review-card > p {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}
@media (min-width: 900px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 860px;
  }
}




.form-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) {
  .form-actions { grid-template-columns: 1fr 1fr; }
}
.form-hint {
  margin-top: 14px; font-size: 0.85rem; color: #64748b; text-align: center;
}
.form-group .optional { font-weight: 400; color: #94a3b8; font-size: 0.85rem; }
.form-success {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: rgba(34, 197, 94, 0.12); color: #166534; font-weight: 500;
}
.form-success.is-error { background: rgba(239, 68, 68, 0.1); color: #991b1b; }
input[type="file"] { font-size: 0.9rem; padding: 10px 0; }
.form-consent { margin: 8px 0 20px; }

/* FAQ on light pages — colors handled in tokens.css / style.css.
   Do not push icon to the right or force space-between here. */

/* Reviews: name + stars to the RIGHT of avatar */
.review-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 14px;
}
.review-avatar {
  flex-shrink: 0;
}
.review-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.review-meta strong {
  display: block;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.review-stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 2px;
  line-height: 1;
  margin: 0;
}

/* Custom checkbox matching gold/navy site style */
.consent-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text, #334155);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}
.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 2px solid #c5a059;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.consent-label input[type="checkbox"]:hover {
  border-color: #a88b3f;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}
.consent-label input[type="checkbox"]:checked {
  background: linear-gradient(145deg, #e8d5a8, #c5a059);
  border-color: #c5a059;
}
.consent-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #0f172a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent-label input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.35);
}
.consent-label a {
  color: #c5a059;
  text-decoration: underline;
}


/* Phone validation */
input[name="phone"].is-invalid,
input.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.field-error {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #dc2626;
}

/* ===== ROUTES CARDS ===== */
.routes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .routes-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 1100px) {
  .routes-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.route-card {
  background: var(--white, #fff);
  border-radius: var(--radius, 16px);
  overflow: hidden;
  border: 1px solid var(--border, #e8edf3);
  box-shadow: var(--shadow-card, 0 6px 24px rgba(15, 23, 42, 0.07));
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.route-card:hover {
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.route-card-img {
  position: relative;
  height: 180px;
  min-height: 180px;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: var(--space-card, 18px);
}
.route-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.22) 50%, transparent 75%);
  pointer-events: none;
}
.route-card-img .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  transform: none;
  z-index: 2;
  background: var(--white, #fff);
  color: var(--heading, #0f172a);
  font-size: var(--fs-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  white-space: nowrap;
}
.route-title-on-img {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--white, #fff);
  font-family: var(--font-display, inherit);
  font-size: var(--fs-lg, 1.15rem);
  font-weight: var(--fw-bold, 700);
  line-height: var(--lh-tight, 1.25);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.route-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--space-card, 18px);
  gap: 14px;
}

.route-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ri-svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--navy, #1e3a5f);
  margin-top: 1px;
}
.route-info-text {
  font-size: var(--fs-sm, 0.875rem);
  color: var(--text, #334155);
  line-height: 1.45;
  flex: 1;
}
.route-info-label {
  display: block;
  font-weight: var(--fw-bold, 700);
  color: var(--heading, #0f172a);
  margin-bottom: 3px;
  font-size: var(--fs-sm, 0.875rem);
}

.amen-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--gold, #c5a059);
}
.amen-icons svg {
  width: 18px;
  height: 18px;
  display: block;
}

.route-cost {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading, #0f172a);
  margin-top: auto;
  padding-top: 8px;
}
.route-card-btn {
  margin-top: 10px;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  box-sizing: border-box;
  padding: var(--btn-pad-y, 12px) var(--btn-pad-x, 24px);
  font-size: var(--btn-fs, 0.95rem);
  font-weight: var(--btn-fw, 600);
  border-radius: var(--btn-radius, 100px);
  background: var(--gold, #c5a059) !important;
  color: var(--white, #fff) !important;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s;
  position: relative;
  z-index: 4;
}
.route-card-btn:hover {
  background: var(--gold-dark, #a88b3f) !important;
}

.route-card-stretch {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  text-indent: -9999px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}
/* Keyboard users use the visible CTA; stretch is mouse/touch only */
.route-card-stretch:focus {
  outline: none;
}

@media (max-width: 639px) {
  .routes-grid { gap: 14px; }
  .route-card-img { height: 160px; min-height: 160px; }
  .route-title-on-img { font-size: 1.05rem; }
  .route-card-body { gap: 12px; }
}

.route-schedule {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text, #334155);
  line-height: 1.4;
}
.route-schedule strong {
  font-weight: 600;
  color: var(--heading, #0f172a);
}
.route-cost,
.route-cost.js-route-price {
  margin: 0;
  margin-top: auto;
  padding-top: 12px;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--heading, #0f172a) !important;
  font-family: var(--font-display), var(--font), system-ui, sans-serif;
}
.route-cost::first-line {
  font-weight: 800;
}
.route-card-body {
  gap: 12px;
}
.route-card-img .badge {
  left: 14px !important;
  right: auto !important;
}
