/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1.4;
  font-family: Arial, Tahoma, sans-serif;
  font-size: 14px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}
blockquote::before, blockquote::after,
q::before, q::after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

input {
  outline: none;
}

.clear {
  clear: both;
}

.myhide {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   ОБЩИЕ КОМПОНЕНТЫ (поиск, фильтры, уведомления, кнопка наверх)
   ========================================================================== */

/* ---------- ПОИСК ---------- */
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 40px;
  gap: 20px;
}
.search-container {
  flex: 0 1 200px;
  margin: 0;
  padding: 0;
}
.search-box {
  position: relative;
  width: 100%;
}
.search-input {
  margin-top: 10px;
  width: 100%;
  padding: 8px 35px 8px 15px;
  font-size: 14px;
  border: 2px solid #b32485;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(179,36,133,.1);
  transition: all .3s ease;
}
.search-input:focus {
  outline: none;
  border-color: #8a2be2;
  box-shadow: 0 4px 20px rgba(179,36,133,.2);
}
.search-button {
  position: absolute;
  right: 12px;
  top: 50%;
  margin-top: 4px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #b32485;
  font-size: 18px;
  padding: 5px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-button:hover {
  color: #8a2be2;
  background: rgba(179,36,133,.1);
  border-radius: 50%;
}
.search-results-info {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 1px;
  min-height: 20px;
  padding-left: 5px;
}
@media (max-width: 768px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
    margin-bottom: 15px;
  }
  .tours-section h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.7rem;
  }
  .search-container {
    flex: 0 0 auto;
    width: 100%;
  }
  .search-input {
    padding: 10px 40px 10px 15px;
    font-size: 14px;
  }
  .search-button {
    right: 10px;
  }
}
@media (max-width: 480px) {
  .tours-section h2 {
    font-size: 1.5rem;
  }
  .section-header {
    padding: 0 15px;
  }
  .search-input {
    padding: 8px 35px 8px 12px;
    font-size: 13px;
  }
}

/* ---------- ФИЛЬТРЫ ---------- */
.select_tour_group_ul {
  list-style: none;
  padding: 0;
  margin: 20px auto 30px;
  text-align: center;
  max-width: 1200px;
}
.select_tour_group_ul li {
  display: inline-block;
  margin: 5px 10px;
}
.select_tour_group_button {
  background: #dddcdc;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 2px 3px rgba(0,0,0,.2);
  font-weight: 500;
}
.select_tour_group_button:hover,
.select_tour_group_button.active {
  background: #b32485;
  color: #fff;
  border-color: #b32485;
}
@media (max-width: 768px) {
  .select_tour_group_ul {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .select_tour_group_ul li {
    display: inline-block;
    float: none;
  }
}

/* ---------- КАРТОЧКИ ТУРОВ ---------- */
.tours-section h2 {
  font-size: 1.9rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 10px auto 0;
  padding: 0;
  text-transform: uppercase;
}
.tour-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
}
.tour-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15), 0 3px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.9);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  transform: translateZ(0);
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tour-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tour-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #b32485, #8a2be2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
  z-index: 2;
}
.tour-card:hover::before {
  transform: scaleX(1);
}
.card-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
  flex-shrink: 0;
}
.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.tour-card:hover .card-image-wrapper img {
  transform: scale(1.05);
}
.tour-card:hover {
  transform: translateY(-8px) translateZ(0);
  box-shadow: 0 12px 35px rgba(0,0,0,.18), 0 6px 20px rgba(0,0,0,.12);
}
.card-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #3498db;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.card-content {
  padding: 24px;
  background: #fff;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  color: #2d3748;
}
.card-content h3 {
  color: #000;
  font-size: 1.3rem;
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.4;
}
.card-content p {
  color: #333;
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.08);
  margin-top: auto;
  flex-shrink: 0;
}
.card-duration {
  color: #000;
  font-weight: 500;
}
.card-price {
  color: #006400;
  font-weight: bold;
  font-size: 1.1rem;
}
.card-details-btn {
  background: linear-gradient(135deg, #3453db 0%, #2c3150 100%);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(52,152,219,.3);
  margin: 0 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  text-decoration: none;
}
.card-details-btn:hover {
  background: linear-gradient(135deg, #2980b9 0%, #1a2530 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(41,128,185,.4);
}
.tour-card.hidden {
  display: none;
}
.tour-card.visible {
  animation: fadeIn .5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.no-results {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 18px;
  grid-column: 1/-1;
}
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}
.search-suggestion {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all .3s ease;
}
.search-suggestion:hover {
  background: #b32485;
  color: #fff;
  border-color: #b32485;
}

/* Подсветка карточки */
.tour-card {
  contain: layout style paint;
  will-change: transform;
}
.tour-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 0 0 4px #f39c12;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 5;
}
.tour-card.highlighted::after {
  opacity: 1;
}
.tour-card.highlighted {
  box-shadow: 0 0 0 4px #f39c12, 0 12px 35px rgba(0,0,0,0.18) !important;
  transition: box-shadow 0.3s ease;
  animation: pulse-highlight 2s ease;
  z-index: 10;
}
@keyframes pulse-highlight {
  0% { box-shadow: 0 0 0 0 #f39c12; }
  50% { box-shadow: 0 0 0 8px rgba(243,156,18,0.5); }
  100% { box-shadow: 0 0 0 4px #f39c12; }
}

/* Бейджи китайского названия и расстояния */
.distance-badge {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  pointer-events: none;
}
.chinese-name {
  display: none;
  font-size: 1.0rem;
  color: #fff;
  font-weight: 501;
  line-height: 1.2;
  z-index: 10;
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  background: rgba(179, 36, 133, 0.8);
  border-radius: 5px;
  pointer-events: auto;
}
body.show-chinese .chinese-name {
  display: block;
}
body.show-distance .distance-badge {
  display: block;
}
.card-image-wrapper {
  position: relative;
}

/* Адаптив карточек */
@media (max-width: 768px) {
  .tour-cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    margin: 20px auto;
  }
  .card-image-wrapper {
    aspect-ratio: 4/3;
    height: auto;
  }
  .card-content {
    padding: 20px;
  }
  .card-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .card-duration,
  .card-price,
  .card-details-btn {
    flex: 1;
    min-width: 30%;
    text-align: center;
  }
  .card-details-btn {
    padding: 5px 10px;
    font-size: .8rem;
    margin: 0 5px;
  }
}
@media (max-width: 480px) {
  .card-meta {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .card-duration,
  .card-price,
  .card-details-btn {
    width: 100%;
    text-align: center;
    margin: 2px 0;
  }
  .card-details-btn {
    order: -1;
    margin-bottom: 8px;
  }
}

/* ---------- ВСПЛЫВАЮЩЕЕ УВЕДОМЛЕНИЕ (ПРОМО) ---------- */
.promo-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #b32485, #8a2be2);
  color: white;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  z-index: 10000;
  max-width: 380px;
  font-family: Arial, sans-serif;
  animation: slideInUp 0.5s ease-out;
  border-left: 6px solid #ffcc00;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.promo-popup.hide {
  animation: slideOutDown 0.5s ease-in forwards;
}
.promo-content {
  flex: 1;
  padding-right: 0;
}
.promo-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffcc00;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.promo-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}
.close-promo {
  background: rgba(255,255,255,0.25);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  line-height: 1;
  padding: 0;
}
.close-promo:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.1);
}
@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideOutDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}
@media (max-width: 768px) {
  .promo-popup {
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
    padding: 15px 20px;
  }
  .promo-content h3 { font-size: 1.1rem; }
  .promo-content p { font-size: 0.95rem; }
}

/* ---------- КНОПКА "НАВЕРХ" ---------- */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2c3e50;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}
.scroll-to-top:hover {
  background: #1e7e34;
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ==========================================================================
   ШАПКА (BANNER)
   ========================================================================== */
.banner {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  animation: fadeInDown 0.6s ease-out;
}
.welcome {
  width: 100%;
  text-align: left;
}
.welcome h1 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.welcome .tagline {
  color: #ddd;
}
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- КОНТАКТЫ В ШАПКЕ ---------- */
.contacts {
  width: 100%;
  display: grid;
  justify-content: center;
  gap: 8px;
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 7px;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 20px;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-height: 32px;
  border: 1px solid rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}
.contact-link:hover {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231,76,60,0.4);
}
.contact-link:hover::before {
  left: 100%;
}
.contact-link svg {
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.contact-link:hover svg {
  opacity: 1;
}
/* Цвета для конкретных мессенджеров */
.contact-link[href*="t.me"]:hover {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  box-shadow: 0 4px 15px rgba(0,136,204,0.4);
}
.contact-link[href*="whatsapp"]:hover {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
}
.contact-link[href^="tel:"]:hover {
  background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
  box-shadow: 0 4px 15px rgba(39,174,96,0.4);
}
.contact-link[href^="mailto:"]:hover {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  box-shadow: 0 4px 15px rgba(230,126,34,0.4);
}
.contact-link[href*="max.ru"]:hover {
  background: linear-gradient(135deg, #0078d7 0%, #005a9e 100%);
  box-shadow: 0 4px 15px rgba(0,120,215,0.4);
}
.contact-link[href*="imo:"]:hover {
  background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
  box-shadow: 0 4px 15px rgba(255,126,95,0.4);
}
.contact-link[href*="msteams:"]:hover {
  background: linear-gradient(135deg, #6264a7 0%, #4b4e8c 100%);
  box-shadow: 0 4px 15px rgba(98,100,167,0.4);
}

/* Адаптивность контактов */
@media (max-width: 360px) {
  .contacts {
    grid-template-columns: 1fr;
    max-width: 200px;
    margin: 0 auto;
  }
  .contact-link {
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 15px;
    width: 160px;
  }
}
@media (min-width: 361px) and (max-width: 480px) {
  .contacts {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .contact-link {
    padding: 5px 6px;
    font-size: 0.75rem;
    min-height: 28px;
  }
  .banner {
    padding: 8px 10px;
  }
  .welcome h1 {
    font-size: 1.2rem;
    text-align: center;
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  .contacts {
    grid-template-columns: repeat(3, 1fr);
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
  }
  .contact-link {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
  .banner {
    padding: 12px 20px;
  }
  .welcome h1 {
    font-size: 1.6rem;
    text-align: center;
  }
}
@media (min-width: 769px) and (max-width: 1023px) {
  .contacts {
    grid-template-columns: repeat(4, 1fr);
    max-width: 600px;
    margin: 0 auto;
  }
  .contact-link {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}
@media (min-width: 1024px) {
  .contacts {
    grid-template-columns: repeat(6, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }
  .contact-link {
    font-size: 0.9rem;
    padding: 7px 12px;
  }
}
@media (min-width: 769px) {
  .banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    min-height: 70px;
  }
  .welcome {
    width: auto;
    flex: 1;
    text-align: left;
  }
  .welcome h1 {
    font-size: 1.75rem;
    background: linear-gradient(45deg, #fff, #ecf0f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
  }
}
@media (min-width: 1180px) {
  .contacts {
    grid-template-columns: repeat(6, 1fr);
    max-width: 660px;
    gap: 5px;
  }
  .contact-link {
    padding: 6px 13px;
  }
}
@media (min-width: 1280px) {
  .contacts {
    max-width: 700px;
  }
  .contact-link {
    padding: 7px 12px;
    margin: 0 3px;
  }
}
@media (min-width: 1380px) {
  .contacts {
    grid-template-columns: repeat(7, 1fr);
    max-width: 882px;
  }
  .contact-link {
    padding: 8px 12px;
    margin: 0 5px;
  }
}
@media (min-width: 1480px) {
  .contacts {
    max-width: 862px;
  }
  .contact-link {
    padding: 9px 12px;
    font-size: 1rem;
    margin: 0 10px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .banner {
    flex-direction: row;
    justify-content: space-between;
    padding: 5px 15px;
    min-height: 50px;
  }
  .welcome {
    width: auto;
    flex: 1;
    text-align: left;
  }
  .welcome h1 {
    font-size: 1.1rem;
  }
  .contacts {
    width: auto;
    flex: 2;
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }
}

/* ==========================================================================
   МЕНЮ
   ========================================================================== */
#menu {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 1px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  animation: slideInDown 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
#menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #e67e22, #f39c12, #e74c3c, #9b59b6);
  background-size: 400% 100%;
  animation: gradientShift 3s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
#menu > ul > li {
  position: relative;
}
#menu > ul > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  padding: 20px 28px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  border-bottom: 3px solid transparent;
  position: relative;
  overflow: hidden;
}
#menu > ul > li > a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s ease;
}
#menu > ul > li > a:hover::before {
  left: 100%;
}
#menu > ul > li > a:hover {
  background: rgba(255,255,255,0.08);
  border-bottom-color: #e67e22;
  color: #f39c12;
  transform: translateY(-1px);
  box-shadow: inset 0 -2px 10px rgba(231,126,34,0.3);
}
#menu .current-page {
  background: linear-gradient(135deg, rgba(231,126,34,0.25) 0%, rgba(211,84,0,0.2) 100%);
  border-bottom-color: #e67e22;
  color: #f39c12;
  position: relative;
}
#menu .current-page::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #f39c12;
  border-radius: 50%;
  box-shadow: 0 0 10px #f39c12;
}
.menu-group {
  position: relative;
}
.menu-group > a::after {
  content: '⌄';
  margin-left: 4px;
  font-size: 0.9em;
  opacity: 0.7;
  transition: transform 0.3s ease;
}
.menu-group:hover > a::after {
  transform: rotate(180deg);
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  min-width: 260px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 5px 20px rgba(0,0,0,0.1);
  border-radius: 0 0 12px 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  z-index: 1001;
  border: 1px solid rgba(255,255,255,0.8);
  border-top: 3px solid #e67e22;
  overflow: hidden;
}
.submenu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e67e22, #f39c12, #e74c3c);
}
.menu-group:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.submenu li {
  border-bottom: 1px solid rgba(236,240,241,0.8);
  position: relative;
  overflow: hidden;
}
.submenu li:last-child {
  border-bottom: none;
}
.submenu li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #e67e22;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.submenu li:hover::before {
  transform: scaleY(1);
}
.submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.submenu a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}
.submenu a:hover {
  background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 100%);
  color: #e67e22;
  padding-left: 32px;
  transform: translateX(5px);
}
.submenu a:hover::before {
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-btn {
  display: none;
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 15px 20px;
  width: 100%;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.mobile-menu-btn:hover {
  background: linear-gradient(135deg, #d35400 0%, #a84300 100%);
  transform: translateY(-2px);
}
.mobile-menu-btn::after {
  content: ' ☰';
  font-size: 1.1em;
}
.mobile-menu-btn.active::after {
  content: ' ✕';
}

@media (max-width: 768px) {
  #menu {
    border-radius: 0;
  }
  #menu > ul {
    flex-direction: column;
    display: none;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  }
  #menu > ul.show {
    display: flex;
    animation: slideDown 0.4s ease-out;
  }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    margin: 0;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .submenu a {
    color: rgba(255,255,255,0.9);
    padding: 12px 20px 12px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .submenu a:hover {
    background: rgba(255,255,255,0.1);
    color: #f39c12;
  }
  .submenu li::before {
    display: none;
  }
  #menu > ul > li > a {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .menu-group > a::after {
    content: '›';
    transform: rotate(90deg);
  }
  .menu-group:hover > a::after {
    transform: rotate(-90deg);
  }
}
@media (max-width: 928px) and (min-width: 769px) {
  #menu > ul > li > a {
    padding: 14px;
    font-size: 1rem;
  }
}
@media (max-width: 884px) and (min-width: 769px) {
  #menu > ul > li > a {
    padding: 12px;
    font-size: 0.95rem;
  }
}
@media (max-width: 824px) and (min-width: 769px) {
  #menu > ul > li > a {
    padding: 10px;
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  #menu > ul > li > a {
    padding: 14px 16px;
    font-size: 1rem;
  }
  .submenu a {
    padding: 10px 16px 10px 32px;
    font-size: 0.95rem;
  }
  .mobile-menu-btn {
    padding: 12px 16px;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.footer {
  background: linear-gradient(135deg, #1a1d23 0%, #2d3436 100%);
  padding: 30px 0 20px;
  position: relative;
  overflow: hidden;
}
.footer__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1.5fr auto 1fr;
  align-items: center;
  gap: 25px;
}
.footer__brand {
  text-align: left;
}
.footer__title {
  color: #fcfbfb;
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 0 5px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.footer__tagline {
  color: #a0a0a0;
  font-size: 0.85em;
  margin: 0;
  font-weight: 300;
}
.contact-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer__copyright {
  text-align: right;
}
.footer__copyright p {
  color: #888;
  font-size: 0.8em;
  margin: 0;
  font-weight: 300;
}
@media (max-width: 968px) {
  .footer__container {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .footer__brand {
    text-align: center;
  }
  .contact-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  .footer__copyright {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .footer {
    padding: 25px 0 15px;
  }
  .contact-links {
    flex-direction: column;
    gap: 10px;
  }
  .contact-links .contact-link {
    width: 130px;
    justify-content: center;
  }
}

/* ==========================================================================
   МОДАЛЬНЫЕ ОКНА, ХЛЕБНЫЕ КРОШКИ, СТРАНИЦЫ
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: 700;
  cursor: pointer;
}
.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
  color: #666;
}
.breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb li {
  margin-right: 10px;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 10px;
  color: #999;
}
.breadcrumb a {
  color: #2c5282;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.policy-page,
.terms-page,
.about-page,
.reviews-page,
.blog-page,
.article-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .policy-page,
  .terms-page,
  .about-page,
  .reviews-page,
  .blog-page,
  .article-page {
    padding: 15px;
  }
  .hero-content,
  .included-box,
  .responsibilities,
  .philosophy-grid,
  .certificates,
  .values,
  .payment-methods,
  .trust-badges {
    grid-template-columns: 1fr !important;
  }
  .rating-summary {
    flex-direction: column;
    gap: 30px;
  }
  .review-header {
    flex-direction: column;
    text-align: center;
  }
  .reviewer {
    flex-direction: column;
    text-align: center;
  }
  .review-meta {
    text-align: center;
  }
}

/* ==========================================================================
   КНОПКИ СРАВНЕНИЯ
   ========================================================================== */
.compare-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.9);
  border: 2px solid #b32485;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #b32485;
  transition: all 0.3s ease;
}
.compare-btn:hover {
  background: #b32485;
  color: #fff;
  transform: scale(1.1);
}
.compare-btn.active {
  background: #b32485;
  color: #fff;
}
.compare-btn::after {
  content: "+";
  font-weight: 700;
}
.compare-btn.active::after {
  content: "✓";
}
.compare-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  padding: 15px 20px;
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 15px;
  animation: slideUp 0.3s ease;
  border: 2px solid #b32485;
  min-width: 300px;
}
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.compare-panel.show {
  display: flex;
}
.compare-panel-info {
  flex: 1;
}
.compare-panel-count {
  font-weight: 700;
  color: #b32485;
  font-size: 1.1em;
}
.compare-panel-text {
  font-size: 0.9em;
  color: #666;
}
.compare-panel-btn {
  background: #b32485;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.compare-panel-btn:hover {
  background: #8a1c6b;
  transform: translateY(-2px);
}
.clear-compare-btn {
  background: transparent;
  border: 1px solid #ddd;
  color: #666;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85em;
}
.clear-compare-btn:hover {
  background: #f8f8f8;
}
.compare-page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}
.compare-header {
  text-align: center;
  margin-bottom: 40px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.compare-table th {
  background: #b32485;
  color: #fff;
  padding: 15px;
  text-align: left;
  font-weight: 600;
}
.compare-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
}
.compare-table tr:last-child td {
  border-bottom: none;
}
.compare-table tr:nth-child(2n) {
  background: #f9f9f9;
}
.compare-card {
  text-align: center;
  vertical-align: top;
}
.compare-card img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.remove-compare-btn {
  background: #ff4444;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.85em;
  margin-top: 10px;
}
.remove-compare-btn:hover {
  background: #c00;
}
.back-to-tours {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  background: #3453db;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
}
.back-to-tours:hover {
  background: #2c3150;
}

/* ==========================================================================
   ТЁМНАЯ ТЕМА (единый блок)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  .banner {
    background: linear-gradient(135deg, #1a2530 0%, #2c3e50 100%);
  }
  .contact-link {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #ecf0f1;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .contact-link:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
  }
  .submenu {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 1px solid rgba(255,255,255,0.1);
  }
  .submenu a {
    color: #ecf0f1;
  }
  .submenu a:hover {
    background: rgba(255,255,255,0.1);
    color: #f39c12;
  }
  .submenu li {
    border-bottom-color: rgba(255,255,255,0.1);
  }
}
/* Повторное определение стилей кнопки (на случай, если они не попали в основной блок) */
  .scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #2c3e50;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }
  .scroll-to-top:hover { background: #1e7e34; }
  .scroll-to-top.visible { opacity: 1; visibility: visible; }
  @media (max-width: 768px) {
    .scroll-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
  }

  .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
      .wild-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;        /* размер эмодзи */
  line-height: 1;
  text-decoration: none;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 4px !important;
  color: #27ae60;           /* зелёный цвет для эмодзи (по желанию) */
  transition: transform 0.2s ease;
}
.wild-badge:hover {
  transform: scale(1.1);
  background: none !important;
  color: #1e8449;
}