/* Hero-блок Отелле. Файл: /assets/css/otl-hero.css */

.otl-hero {
  --otl-pine: #154831;
  --otl-moss: #3F724F;
  --otl-sand: #E6CE83;
  --otl-chard: #F2DA8E;
  --otl-alabaster: #F8F7F4;
  --otl-nero: #111111;
  --otl-header: 0px; /* высота фиксированной шапки сайта: если шапка перекрывает блок, задайте, например, 90px */

  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-height: 600px;
  min-height: min(88vh, 860px);
  min-height: min(88svh, 860px);
  padding: calc(var(--otl-header) + 56px) 32px 28px;
  color: var(--otl-alabaster);
  font-family: inherit;
  background: transparent;
}
.otl-hero *, .otl-hero *::before, .otl-hero *::after { box-sizing: border-box; }

/* ---------- Слайдер ---------- */
.otl-hero__slider { position: absolute; top: var(--otl-header); right: 12px; bottom: 0; left: 12px; overflow: hidden; border-radius: 20px; background: var(--otl-pine); }
.otl-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.otl-hero__slide.is-active { opacity: 1; z-index: 1; }
.otl-hero__slide img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 7s ease-out;
}
.otl-hero__slide.is-active img { transform: scale(1); }
.otl-hero__overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 42% at 50% 46%, rgba(17,17,17,.38) 0%, rgba(17,17,17,0) 100%),
    rgba(17,17,17,.36); /* чёрное затемнение: общее (последняя цифра) + усиление за текстом (первая) */
}

/* ---------- Текст ---------- */
.otl-hero__content {
  position: relative; z-index: 3; width: 100%; max-width: 920px;
  margin: 0 auto; text-align: center;
}
.otl-hero__title {
  margin: 0; font-size: clamp(32px, 5.2vw, 68px); line-height: 1.08;
  font-weight: 600; letter-spacing: -.01em; color: var(--otl-alabaster); text-wrap: balance;
  text-shadow: 0 2px 24px rgba(17,17,17,.35);
}
.otl-hero__subtitle {
  margin: 18px auto 0; max-width: 760px; text-wrap: balance; font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.45; color: var(--otl-alabaster);
  font-weight: 500; text-shadow: 0 1px 14px rgba(17,17,17,.55), 0 0 2px rgba(17,17,17,.25);
}

/* Курсивный золотой акцент (шрифт берётся из .text-serif сайта) */
.otl-hero__title em { font-style: italic; font-weight: 400; color: var(--otl-chard); text-shadow: 0 2px 24px rgba(17,17,17,.35); }

/* ---------- Точки и стрелки ---------- */
.otl-hero__dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.otl-hero__dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(248,247,244,.45); cursor: pointer; transition: background .2s, transform .2s;
}
.otl-hero__dot.is-active { background: var(--otl-chard); transform: scale(1.25); }
.otl-hero__arrow {
  position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px;
  border: 1px solid rgba(248,247,244,.55); border-radius: 50%; cursor: pointer;
  background: rgba(17,17,17,.25); color: var(--otl-alabaster);
  display: none; align-items: center; justify-content: center; transition: background .2s;
}
.otl-hero__arrow:hover { background: rgba(21,72,49,.85); }
.otl-hero__arrow::before {
  content: ""; width: 10px; height: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
}
.otl-hero__arrow--prev { left: 48px; }
.otl-hero__arrow--prev::before { transform: rotate(-135deg); margin-left: 4px; }
.otl-hero__arrow--next { right: 48px; }
.otl-hero__arrow--next::before { transform: rotate(45deg); margin-right: 4px; }

/* ---------- Модуль бронирования (телефон) ---------- */
.otl-booking {
  position: relative; z-index: 4; width: 100%; max-width: 1040px; margin: 28px auto 0;
  display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px;
  background: var(--otl-alabaster); color: var(--otl-nero);
  border-radius: 20px; box-shadow: 0 20px 50px rgba(17,17,17,.28);
}
.otl-booking__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.otl-booking__field label {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--otl-moss);
}
.otl-booking__field input,
.otl-booking__field select {
  width: 100%; min-height: 54px; padding: 10px 14px; font: inherit; font-size: 17px; font-weight: 600;
  color: var(--otl-nero); background: #fff; border: 1px solid #DCD8CB; border-radius: 12px;
  appearance: none; -webkit-appearance: none;
}
.otl-booking__field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--otl-pine) 50%), linear-gradient(135deg, var(--otl-pine) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.otl-booking__field input:focus,
.otl-booking__field select:focus { outline: 3px solid var(--otl-sand); outline-offset: 1px; border-color: var(--otl-pine); }
.otl-booking__btn {
  min-height: 56px; padding: 0 32px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 17px; font-weight: 600; color: var(--otl-alabaster);
  background: var(--otl-pine); transition: background .2s;
}
.otl-booking__btn:hover { background: var(--otl-moss); }
.otl-booking__btn:focus-visible { outline: 3px solid var(--otl-sand); outline-offset: 2px; }

/* ---------- Вариант панели с виджетом TravelLine ---------- */
.otl-booking--tl { display: block; padding: 10px; }
.otl-booking--tl .tl-container { width: 100%; min-height: 56px; }

/* ---------- Планшет ---------- */
@media (min-width: 768px) {
  .otl-hero { padding: calc(var(--otl-header) + 72px) 48px 40px; }
  .otl-hero__slider { right: 24px; left: 24px; border-radius: 28px; }
  .otl-booking { grid-template-columns: 1fr 1fr; align-items: end; }
}

/* ---------- Десктоп: панель бронирования наполовину выходит за нижний край ---------- */
@media (min-width: 1024px) {
  .otl-hero__arrow { display: flex; }
  /* высота панели (--otl-booking-h) измеряется скриптом: нижняя половина панели выступает за hero,
     под неё резервируется место, поэтому следующий блок не перекрывается при любой высоте формы */
  .otl-hero {
    margin-bottom: calc(var(--otl-booking-h, 120px) / 2 + 48px);
    padding-bottom: calc(var(--otl-booking-h, 120px) / 2 + 40px);
  }
  .otl-booking {
    position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
    width: calc(100% - 80px); margin: 0; padding: 12px;
    grid-template-columns: 1fr 1fr 1fr auto; align-items: end;
  }
  .otl-hero .otl-booking.otl-booking--tl { width: min(1120px, calc(100% - 80px)); max-width: none; padding: 8px; }
  .otl-booking--tl { display: block; }
  .otl-booking__btn { grid-column: auto; min-height: 54px; }
}

/* ---------- Низкие экраны (ноутбуки, телефон в горизонтали) ---------- */
@media (max-height: 640px) and (min-width: 768px) {
  .otl-hero { min-height: 560px; }
  .otl-hero__subtitle { display: none; }
}

/* ---------- Без анимаций, если так настроена система ---------- */
@media (prefers-reduced-motion: reduce) {
  .otl-hero__slide { transition: none; }
  .otl-hero__slide img { transition: none; transform: none; }
}

/* ---------- Убираем тонкую линию между hero и следующим блоком ---------- */
.otl-hero + * { border-top: 0 !important; }

/* Remove the outer booking frame on all screen sizes. */
.otl-hero .otl-booking.otl-booking--tl {
  padding: 0;
  background: transparent;
  box-shadow: none;
}
