@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;600;700&family=PT+Serif:ital,wght@1,700&display=swap');
*,
*::before,
*::after {
  box-sizing: border-box;
}
html{
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #1f2328;
  background: #fff;
}

.hero {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.hero_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
/* 4. Корректируем положение надписи для полноэкранного режима */
.hero_title {
  position: absolute;
  top: auto;
  bottom: calc(48px + 1em);
  left: 10%; /* Отступ в процентах, чтобы на больших экранах текст не прижимался к краю */
  margin: 0; 
  
  color: #ffffff;
  font-family: Georgia, 'PT Serif', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 3.2rem;
  letter-spacing: -.01em;
  text-transform: none;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 2; 
}



/* Адаптивность для мобильных экранов */
@media (max-width: 1200px) {
  .hero_title {
    left: 6%;
    transform: none;
  }
}
@media (max-width: 768px) {
  .hero_title {
    font-size: 2.4rem;
    top: auto;
    left: 8%;
    transform: none;
  }
}


.card {
  position: relative;
  width: 100%;
  margin-top: -32px;
  padding: 32px 20px 56px;
  background: #fff;
  border-radius: 28px 28px 0 0;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Основной текст ---------- */
.content {
  max-width: 108ch; /* строка не длиннее ~70 символов */
}

.content h2 {
  margin: 36px 0 12px -100px;
  font-size: 24px;
  line-height: 1.3;
}

.content p {
  margin: 0 0 16px -100px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 6px 36px;
  border-radius: 999px;
  background: #e1f5ee;
  color: #085041;
  font-size: 16px;
  font-weight: 500;
}

/* Списки */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding: 6px 0 6px 32px;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: #1d9e75;
  font-weight: 700;
}

.list--check li::before {
  content: "✓";
  left: 6px;
}

.list--cross li::before {
  content: "✕";
  left: 6px;
  color: #a32d2d;
}

/* ---------- Панель с ценой и кнопкой ---------- */
.booking {
  align-self: start;
  padding: 24px;
  border: 1px solid #e3e5e3;
  border-radius: 20px;
  background: #f7faf9;
}

.booking__label {
  display: block;
  font-size: 15px;
  color: #6b7075;
}

.booking__price {
  display: block;
  margin-bottom: 16px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}

.booking__facts {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: #4a4f55;
}

.btn {
  display: block;
  padding: 14px 24px;
  border-radius: 12px;
  background: #1d9e75;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover {
  background: #0f6e56;
}

/* ---------- Компьютер ---------- */
@media (min-width: 900px) {
  .hero {
    height: 400px;
  }

  .hero_title {
    font-size: 56px;
    padding: 16px 32px;
  }

  .card {
    margin-top: -48px;
    padding: 48px 48px 72px;
  }

  .layout {
    grid-template-columns: 1fr 340px;
    gap: 56px;
  }

  /* Панель с ценой остаётся на экране при прокрутке */
  .booking {
    position: sticky;
    top: 24px;
  }
}
.contact-dialog {
  border: none;
  padding: 0;                       /* отступы внутри, чтобы клик по фону отличался от клика по окну */
  border-radius: 28px;
  width: min(420px, calc(100% - 32px));
  background: #fff;
  color: #0E2A26;
  font-family: 'Onest', system-ui, sans-serif;
  box-shadow: 0 30px 80px rgba(14, 42, 38, .35);
}
.contact-dialog::backdrop {
  background: rgba(14, 42, 38, .55);
  backdrop-filter: blur(4px);
}
.contact-dialog__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
}
.contact-dialog h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.contact-dialog p  { margin: 0 0 8px; color: #46605B; line-height: 1.5; }

.contact-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid #D5DBD3;
  font-weight: 600;
  color: #0E2A26;
}
.contact-btn:hover { background: #EEF1EC; }
.contact-btn--main { background: #D9B44A; border-color: #D9B44A; font-weight: 700; }
.contact-btn--main:hover { background: #E3C468; }

.contact-dialog__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #46605B;
}
/* ===== Окно «Заказать» ===== */
.contact-dialog {
  border: none;
  padding: 0;                        /* отступы внутри .contact-dialog__body */
  border-radius: 28px;
  width: min(420px, calc(100% - 32px));
  background: #fff;
  color: #0E2A26;
  font-family: 'Onest', system-ui, sans-serif;
  box-shadow: 0 30px 80px rgba(14, 42, 38, .35);
}

.contact-dialog::backdrop {
  background: rgba(14, 42, 38, .55);
  backdrop-filter: blur(4px);
}

.contact-dialog__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
}

.contact-dialog h2 {
  margin: 0;
  padding-right: 32px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.contact-dialog p {
  margin: 0 0 8px;
  color: #46605B;
  line-height: 1.5;
}

.contact-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid #D5DBD3;
  font-weight: 600;
  color: #0E2A26;
  transition: transform .2s ease, background-color .2s ease;
}
.contact-btn:hover {
  background: #EEF1EC;
  transform: translateY(-2px);
}

.contact-btn--main {
  background: #D9B44A;
  border-color: #D9B44A;
  font-weight: 700;
}
.contact-btn--main:hover {
  background: #E3C468;
}

.contact-dialog__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #46605B;
}
.contact-dialog__close:hover {
  background: #EEF1EC;
}

.contact-dialog[open] {
  animation: dialog-in .25s ease;
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-dialog[open] { animation: none; }
}
/* ===== Мобильная оптимизация ===== */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
a, button { -webkit-tap-highlight-color: transparent; }

/* узкие ноутбуки и планшеты: убираем сдвиг текста влево */
@media (max-width: 1250px) {
  .content h2,
  .content p { margin-left: 0; }
  .tags { gap: 16px; }
}

/* планшеты: цена под текстом, не липнет */
@media (max-width: 899px) {
  .booking { position: static; }
  .hero { height: 300px; }
}

/* телефоны */
@media (max-width: 700px) {
  .hero { height: 240px; }
  .hero_image { object-position: center; }
  .hero_title {
    top: auto;
    bottom: calc(24px + 1em);          /* карточка заезжает на 32px, поэтому ставим выше */
    left: 16px;
    right: 16px;
    font-size: 2.2rem;
    letter-spacing: 0px;
    line-height: 1.15;
  }

  .card {
    margin-top: -24px;
    padding: 24px 16px 40px;
    border-radius: 22px 22px 0 0;
  }
  .layout { gap: 24px; }

  .tags { gap: 8px; }
  .tag { padding: 6px 16px; font-size: 14px; }

  .content h2 { font-size: 26px !important; margin: 24px 0 10px; }
  .content p  { font-size: 17px !important; line-height: 1.65; margin-bottom: 14px; }

  .booking { padding: 20px; border-radius: 16px; }
  .booking__price { font-size: 30px; }
  .btn { padding: 16px 24px; }

  .contact-dialog__body { padding: 24px; }
  .contact-dialog__close { width: 44px; height: 44px; }
}
@media (hover: none) {
  .contact-btn:hover { transform: none; }
}

.combined-routes {
    text-align: left !important;
}

.combined-routes .routes__main-title {
    font-size: 28px !important;
    font-weight: bold !important;
    text-align: left !important;
    margin-bottom: 20px !important;
}

.combined-routes .routes__sub-title {
    font-size: 26px !important;
    font-weight: bold !important;
    text-align: left !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
}
.combined-routes .routes__sub-title--how {
    margin-left: 235px !important;
}

.combined-routes .routes__sub-title--examples {
    margin-left: 100px !important;
}

.combined-routes .routes__text {
    font-size: 22px !important;
    margin-bottom: 15px !important;
}

.combined-routes .routes__list-item {
    margin-bottom: 10px !important;
}

.combined-routes .routes__text--spaced {
    margin-top: 25px !important;
}

.combined-routes .routes__text--bold {
    font-weight: bold !important;
    margin-top: 25px !important;
}

@media screen and (max-width: 768px) {
    .combined-routes .routes__main-title {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }

    .combined-routes .routes__sub-title {
        font-size: 20px !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }
    .combined-routes .routes__sub-title--how,
    .combined-routes .routes__sub-title--examples {
        margin-left: 0 !important;
    }

    .combined-routes .routes__text {
        font-size: 16px !important;
    }
}
/* ===== Фотографии на страницах экскурсий ===== */
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 24px -100px; /* -100px, как у текста в .content */
}
.photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
@media (max-width: 1250px) {
  .photos { margin-left: 0; }
}
@media (max-width: 700px) {
  .photos { grid-template-columns: 1fr; gap: 10px; }
}
/* Одно фото занимает всю ширину, два фото делят её пополам */
.photos:has(img:only-child) { grid-template-columns: 1fr; }
.photos:has(img:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }

/* ===== Увеличение фото ===== */
.photos img {
  cursor: zoom-in;
  transition: filter .2s ease;
}
@media (hover: hover) {
  .photos img:hover { filter: brightness(.75); }
}

.photo-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 96vh;
  overflow: visible;
}
.photo-dialog::backdrop {
  background: rgba(0, 0, 0, .85);
}
.photo-dialog img {
  display: block;
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  cursor: zoom-out;
}