/* ========================= ПЕРЕМЕННЫЕ ========================= */
:root {
  --mk-accent: #1497d4;
  --mk-accent-2: #0fb6c0;
  --mk-accent-dk: #0b6fa0;
  --mk-ink: #1d2b3a;
  --mk-muted: #5a6b7c;
  --mk-line: #e4ebf2;
  --mk-soft: #f3f7fb;
  --mk-white: #ffffff;
  --mk-radius: 18px;
  --mk-shadow: 0 18px 50px -22px rgba(13,58,92,0.45);
  --mk-display: 'Manrope', sans-serif;
  --mk-font: 'Manrope', sans-serif;
}

/* ========================= ХЕДЕР И МЕНЮ ========================= */
.header-static {
  position: relative;
  background: #fff;
  z-index: 1000;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.header-static.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  animation: headerStaticShow 0.2s ease;
}
.header-static-placeholder {
  display: none;
}
.header-static-placeholder.is-active {
  display: block;
}

@keyframes headerStaticShow {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.mk-header-main {
  background: #fff;
  padding: 24px 0;
  transition: padding 0.25s ease;
}
.mk-header-main__inner {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.mk-header-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}
.mk-header-logo img {
  max-height: 86px;
  width: auto;
  transition: all 0.25s ease;
}
.mk-header-location__title {
  color: #111;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}
.mk-header-location__text {
  margin-top: 6px;
  color: #7291a4;
  font-size: 16px;
  line-height: 1.3;
}

.header-static.is-fixed .mk-header-main {
  padding: 10px 0;
}
.header-static.is-fixed .mk-header-main__inner {
  grid-template-columns: 160px 1fr;
  gap: 24px;
}
.header-static.is-fixed .mk-header-logo img {
  max-height: 54px;
}
.header-static.is-fixed .mk-header-location__title {
  font-size: 17px;
}
.header-static.is-fixed .mk-header-location__text {
  display: none;
}

/* Меню */
.mk-menu-layer {
  position: relative;
  z-index: 1020;
}
.mk-main-menu {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #18367c;
  z-index: 1020;
}
.mk-main-menu__link {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none !important;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.mk-main-menu__link:hover,
.mk-main-menu__link.is-active {
  background: #20aee0;
}

.mk-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1020;
  position: relative;
  margin-left: auto;
}
.mk-burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #18367c;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.mk-burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mk-burger.is-open span:nth-child(2) {
  opacity: 0;
}
.mk-burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mk-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #edf1f4;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  z-index: 1015;
  flex-direction: column;
  padding: 10px 0;
}
.mk-mobile-menu.is-open {
  display: flex;
}
.mk-mobile-menu__link {
  display: block;
  padding: 14px 20px;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.mk-mobile-menu__link:hover,
.mk-mobile-menu__link.is-current {
  background: #f4f9fc;
  color: #0791c5;
}

body.mk-menu-open {
  overflow: hidden;
}

/* Мобильные элементы в строке меню (по умолчанию скрыты) */
.mk-mobile-logo,
.mk-mobile-book-btn,
.mk-mobile-phone {
  display: none;
}

/* Адаптивность меню */
@media (max-width: 768px) {
  /* Скрываем основное меню и показываем бургер */
  .mk-main-menu {
    display: none !important;
  }
  .mk-burger {
    display: flex;
    margin-left: 0;
  }

  /* Скрываем десктопную шапку, чтобы не было дублирования */
  .mk-header-main {
    display: none !important;
  }

  /* Контейнер мобильной панели */
  .mk-menu-layer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 15px;
    background: #fff;
    border-bottom: 1px solid #edf1f4;
    gap: 10px;
  }

  /* Показываем логотип */
  .mk-mobile-logo {
    display: flex;
    align-items: center;
    margin-right: auto;
  }
  .mk-mobile-logo img {
    height: 36px;
    width: auto;
  }

  /* Кнопка "Забронировать" */
  .mk-mobile-book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: var(--mk-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
  }

  /* Иконка телефона */
  .mk-mobile-phone {
    display: flex;
    align-items: center;
  }
  .mk-mobile-phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--mk-soft);
    border-radius: 50%;
    color: var(--mk-accent);
    font-size: 18px;
    text-decoration: none;
  }
  /* Если внутри есть текст, скрываем его */
  .mk-mobile-phone a span,
  .mk-mobile-phone a .text {
    display: none;
  }
}

@media (min-width: 769px) {
  .mk-burger,
  .mk-mobile-menu {
    display: none !important;
  }
}

/* Фиксация мобильного меню при липкой шапке */
.header-static.is-fixed .mk-mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  z-index: 9999;
}

/* ========================= КАРТОЧКИ ТУРОВ/НОМЕРОВ ========================= */
.mk-tour-card {
  background: var(--mk-white);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mk-tour-card:hover {
  border-color: var(--mk-accent);
  transform: translateY(-6px);
  box-shadow: var(--mk-shadow);
}

.mk-tour-card__thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--mk-soft);
}

/* ----- Галерея внутри карточки ----- */
.mk-gallery {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.mk-gallery__inner {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 100%;
  gap: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mk-gallery__inner::-webkit-scrollbar {
  display: none;
}
.mk-gallery__inner img {
  scroll-snap-align: start;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--mk-soft);
}
.mk-gallery__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 1.5rem;
  padding: 0.3em 0.5em;
  cursor: pointer;
  z-index: 2;
  border-radius: 4px;
}
.mk-gallery__prev { left: 5px; }
.mk-gallery__next { right: 5px; }

.mk-tour-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(37, 211, 102, 0.12);
  color: #1f8b4c;
  z-index: 2;
}

.mk-tour-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mk-tour-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.mk-tour-card__meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--mk-muted);
}
.mk-tour-card__meta-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--mk-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.mk-tour-card h3 {
  font-family: var(--mk-display);
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--mk-ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.mk-tour-card p {
  font-size: 13.5px;
  color: var(--mk-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.mk-tour-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.mk-tour-card__tag {
  background: rgba(20, 151, 212, 0.08);
  border: 1px solid rgba(20, 151, 212, 0.2);
  font-size: 11px;
  color: var(--mk-accent-dk);
  padding: 4px 10px;
  border-radius: 6px;
}

.mk-tour-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--mk-line);
  margin-top: auto;
}
.mk-tour-card__footer .mk-btn {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}
.mk-tour-card__price {
  font-family: var(--mk-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--mk-accent);
  white-space: nowrap;
}
.mk-tour-card__price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--mk-muted);
  font-family: var(--mk-font);
}

.mk-btn--sm {
  padding: 10px 16px;
  font-size: 12px;
}

.mk-tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ========================= ТАБЛИЦА ЦЕН ========================= */
.mk-price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.mk-price-table th,
.mk-price-table td {
  padding: 14px 16px;
  text-align: center;
  border: 1px solid #e4ebf2;
}
.mk-price-table th {
  background: #18367c;
  color: #fff;
  font-weight: 700;
}
@media (max-width: 600px) {
  .mk-price-table thead { display: none; }
  .mk-price-table tr { display: block; margin-bottom: 10px; }
  .mk-price-table td { display: flex; justify-content: space-between; align-items: center; }
  .mk-price-table td::before { content: attr(data-label); font-weight: 700; }
}

/* ========================= БЛОК ПОДБОРА НОМЕРА ========================= */
.mk-booking-bar-wrapper {
  max-width: 960px;
  margin: 20px auto 40px;
  background: #fff;
  border-radius: var(--mk-radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  padding: 24px 28px;
  position: relative;
  z-index: 10;
}

.mk-booking-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
}

.mk-booking-field {
  flex: 1 1 180px;
  min-width: 0;
}

.mk-booking-field-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mk-muted);
}

.mk-booking-field input[type="date"],
.mk-booking-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--mk-line);
  border-radius: 14px;
  font-family: var(--mk-font);
  font-size: 16px;
  background: #f9fbfd;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  min-height: 54px;
}

.mk-booking-field input[type="date"]:focus,
.mk-booking-field select:focus {
  outline: none;
  border-color: var(--mk-accent);
  box-shadow: 0 0 0 3px rgba(20,151,212,0.1);
}

.mk-booking-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
}

.mk-booking-action {
  flex: 0 0 auto;
}

.mk-booking-submit {
  height: 54px;
  padding: 0 32px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Результат */
.mk-booking-result {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--mk-line);
}

.mk-booking-result.show {
  display: flex;
}

.mk-booking-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: baseline;
  font-size: 1rem;
  color: var(--mk-ink);
}

.mk-booking-nights {
  color: var(--mk-muted);
}

.mk-booking-total strong {
  color: var(--mk-accent);
  font-size: 1.3rem;
}

.mk-booking-wa {
  white-space: nowrap;
}

/* Адаптивность */
@media (max-width: 768px) {
  .mk-booking-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .mk-booking-field {
    flex: 1 1 auto;
  }
  .mk-booking-action {
    width: 100%;
  }
  .mk-booking-submit {
    width: 100%;
    justify-content: center;
  }
  .mk-booking-result {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .mk-booking-bar-wrapper {
    padding: 16px;
  }
  .mk-booking-field input[type="date"],
  .mk-booking-field select {
    font-size: 15px;
    padding: 12px;
  }
}

/* ========================= ПРОЧИЕ КОМПОНЕНТЫ ========================= */
.mk-sec--gray {
  background: #f0f4f6;
  padding: 40px 0;
  margin-bottom: 0;
  border-radius: 0;
}
.mk-sec--white {
  background: #fff;
  padding: 40px 0;
  margin-bottom: 0;
  border-radius: 0;
}

.mk-filter {
  background: var(--mk-white);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px -18px rgba(13,58,92,.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
/* (сокращённо, остальные стили фильтра не менялись, оставлены) */
.mk-filter__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--mk-ink);
  margin-right: 8px;
  white-space: nowrap;
}
.mk-filter__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mk-filter__tabs input[type="radio"] { display: none; }
.mk-filter__tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--mk-soft);
  border: 1px solid var(--mk-line);
  font-size: 14px;
  font-weight: 600;
  color: var(--mk-muted);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.mk-filter__tabs label:hover {
  border-color: var(--mk-accent);
  color: var(--mk-accent);
  background: #fff;
}
.mk-filter__tabs input[type="radio"]:checked + label {
  background: linear-gradient(135deg, var(--mk-accent-2), var(--mk-accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px -6px var(--mk-accent);
}
.mk-filter__price {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 360px;
  min-width: 220px;
}
.mk-filter__price label {
  font-size: 13px;
  color: var(--mk-muted);
  white-space: nowrap;
}
.mk-filter__price input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--mk-accent) 0%, var(--mk-accent) 100%, var(--mk-line) 100%, var(--mk-line) 100%);
  outline: none;
}
.mk-filter__price input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mk-accent);
  box-shadow: 0 4px 10px rgba(20,151,212,.4);
  cursor: pointer;
  border: 2px solid #fff;
  transition: .2s;
}
.mk-filter__price span {
  font-size: 14px;
  font-weight: 700;
  color: var(--mk-ink);
  min-width: 90px;
  text-align: right;
}

.mk-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--mk-muted);
  padding: 12px 0;
  margin-bottom: 16px;
}
.mk-breadcrumbs a {
  color: var(--mk-accent);
  text-decoration: none;
  font-weight: 500;
}
.mk-breadcrumbs a:hover {
  color: var(--mk-accent-dk);
  text-decoration: underline;
}
.mk-breadcrumbs__sep {
  color: var(--mk-line);
  user-select: none;
}
.mk-breadcrumbs > span:last-child {
  color: var(--mk-ink);
  font-weight: 600;
}

.mk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}
.mk-tag-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--mk-soft);
  border: 1px solid var(--mk-line);
  color: var(--mk-ink) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: all .2s ease;
}
.mk-tag-link:hover {
  background: linear-gradient(135deg, var(--mk-accent-2), var(--mk-accent));
  color: #fff !important;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px var(--mk-accent);
}
.mk-tag-link.active {
  background: var(--mk-accent);
  color: #fff !important;
  border-color: var(--mk-accent);
  pointer-events: none;
  box-shadow: 0 8px 20px -10px var(--mk-accent);
}

/* Исправление: показываем header-desktop на мобильных, чтобы мобильная панель была видна */
@media (max-width: 768px) {
    .header .header-desktop {
        display: block !important;
    }
}

/* =========================
   НИЖНЯЯ ЛИПКАЯ ПАНЕЛЬ (везде)
   ========================= */
.mk-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 9998;
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #e4ebf2;
}

body {
  padding-bottom: 75px !important;
}

.mk-bottom-bar__phone,
.mk-bottom-bar__book {
  flex: 1;                     /* одинаковая ширина */
  padding: 14px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: 0.2s;
}

.mk-bottom-bar__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--mk-soft);
  color: var(--mk-ink);
  text-decoration: none;
}

.mk-bottom-bar__book {
  background: linear-gradient(135deg, var(--mk-accent-2), var(--mk-accent));
  color: #fff;
  border: none;
  cursor: pointer;
}

.mk-bottom-bar__book:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15,182,192,0.5);
}