*,
*::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;
}
@import url('https://googleapis.com');

.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: 15%;  
  left: 10%; /* Отступ в процентах, чтобы на больших экранах текст не прижимался к краю */
  margin: 0; 
  
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  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: 1.8rem;
    top: 12%;
    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: 48px;
    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: 48px;          /* карточка заезжает на 32px, поэтому ставим выше */
    left: 16px;
    right: 16px;
    font-size: 1.6rem;
    letter-spacing: 1px;
    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; }
}

/* на тачскринах убираем «залипание» hover */
@media (hover: none) {
  .contact-btn:hover { transform: none; }
}