/* Общий каркас PDF-страниц: фон, hero, нижняя навигация, акция «Баня Эгоист» */
@import url("unique-offer-banner.css");
@import url("gle-hero-chrome.css?v=20260724a");

:root {
  --gle-canvas-max: 1920px;
  --gle-bp-mobile: 768px;
  --gle-content-pad-mobile: 1rem;
  /* Тот же коричневый, что у подвала (contacts-footer / макет) */
  --gle-brand-brown: #5c3317;
  --gle-brand-brown-dark: #4a2812;
}

.pdf-shell {
  margin: 0;
  background: #f5f4ef;
  color: #2c2825;
  font-family: "Acrom-Light", system-ui, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Единая ширина основного контента с макетом AI (~1920 pt) */
.pdf-shell > main {
  max-width: var(--gle-canvas-max, 1920px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.pdf-shell .usadba-detail-main {
  max-width: var(--gle-canvas-max, 1920px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.pdf-shell a {
  color: inherit;
}

/* Не ломать абсолютные карточки и иконки подвала */
.pdf-shell img:not(.pdf-card__shot):not(.contacts-footer__logo-img):not(.contacts-footer__line-ico):not(.contacts-footer__social__img):not(.contacts-footer__acc-img):not(.pdf-hero__brand-img):not(.pdf-hero__title-img):not(.pdf-hero__corner-logo-img):not(.gle-unique-offer__img):not(.home-ohota__circle-img):not(.home-ohota__title-img):not(.gle-ohota__circle-img):not(.gle-ohota__title-img) {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.pdf-shell .pdf-card__shot,
.pdf-shell .contacts-footer__logo-img,
.pdf-shell .contacts-footer__line-ico,
.pdf-shell .pdf-hero__brand-img {
  max-width: none;
}

.pdf-serif {
  font-family: "Acrom-Light", system-ui, Arial, sans-serif;
}

/* Каркас как у страницы «Контакты»: фон на весь экран, контент поверх, меню — отдельная полоса снизу */
.pdf-hero-shell {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: visible;
  color: #fff;
  background: linear-gradient(165deg, #2a241c 0%, #1a1510 100%);
  padding-bottom: 0.4rem;
  box-sizing: border-box;
}

.pdf-hero--tall {
  min-height: 100vh;
  min-height: 100dvh;
}

.pdf-hero-shell__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #2a241c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.pdf-hero-shell__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.pdf-hero-shell__main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.5rem 1rem 0;
}

.pdf-hero__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: min(var(--gle-canvas-max, 1920px), 100%);
  margin: 0 auto;
  padding: 0.35rem 0.25rem 0.75rem;
  background: transparent;
  box-shadow: none;
}

.pdf-hero__top--bar {
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.65rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.pdf-hero__top--utils-only {
  justify-content: flex-end;
}

.pdf-hero__top--utils-only .pdf-hero__utils {
  margin-left: auto;
  margin-right: 0;
}

.pdf-hero__brand {
  overflow: visible;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1rem 2rem;
  min-height: 0;
}

a.pdf-hero__brand-link {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
}

a.pdf-hero__brand-link:hover .pdf-hero__brand-img {
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.45)) brightness(1.04);
}

.pdf-hero__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.35rem;
  overflow: visible;
}

.pdf-hero__logo-svg {
  width: clamp(4.5rem, 11vw, 6.75rem);
  height: auto;
  color: #fff;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}


.pdf-hero__brand-img {
  display: block;
  width: clamp(8.5rem, 18vw, 13.5rem);
  height: auto;
  max-height: min(42vh, 22rem);
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.35));
}
.pdf-hero__logo-img {
  display: block;
  width: clamp(4.5rem, 11vw, 6.75rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}

.pdf-hero__title {
  margin: 0.85rem 0 0;
  font-weight: 600;
  letter-spacing: 0.28em;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  line-height: 1.5;
}

.pdf-hero__title span {
  display: block;
}

.pdf-hero__title-img {
  display: block;
  width: clamp(9.5rem, 20vw, 14.75rem);
  max-width: calc(100% - 1.5rem);
  height: auto;
  max-height: clamp(4.35rem, 10.5vw, 5.5rem);
  margin: 0.1rem auto 0;
  padding: 0;
  object-fit: contain;
  object-position: center center;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.35));
}

.pdf-hero__tagline {
  display: none !important;
}


.pdf-hero-shell__nav.pdf-hero__nav {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  max-width: none;
  box-sizing: border-box;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  padding: 0.55rem 0.35rem;
  overflow: visible;
  max-width: 100%;
}

.pdf-hero__nav a {
  color: #fff !important;
  text-decoration: none !important;
  font-family: "Acrom-Light", system-ui, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.65rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.pdf-hero__nav-item {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.pdf-hero__nav-item--sub:hover,
.pdf-hero__nav-item--sub:focus-within {
  z-index: 50;
}

.pdf-hero__nav-item > a {
  border-left: none;
}

.pdf-hero__nav > a:first-of-type,
.pdf-hero__nav > .pdf-hero__nav-item:first-child {
  border-left: none;
}

.pdf-hero__nav-item--sub > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.34rem solid currentColor;
  opacity: 0.85;
  transform: translateY(0.08rem);
}

.pdf-hero__subnav {
  position: absolute;
  top: 100%;
  bottom: auto;
  left: 50%;
  z-index: 40;
  display: none;
  flex-direction: column;
  min-width: 11.5rem;
  margin: 0.15rem 0 0;
  padding: 0;
  background: #5c3317;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

/* Hero-меню внизу экрана (не липкое): подменю вверх, привязка к пункту */
.pdf-hero-shell__nav.pdf-hero__nav:not(.is-stuck) .pdf-hero__subnav {
  top: auto;
  bottom: 100%;
  left: 0;
  margin: 0 0 0.15rem;
  transform: none;
}

.pdf-hero__nav-item--sub:hover .pdf-hero__subnav,
.pdf-hero__nav-item--sub:focus-within .pdf-hero__subnav {
  display: flex;
}

.pdf-hero__subnav a {
  display: block;
  padding: 0.85rem 0.9rem;
  border-left: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0.06em;
  font-size: clamp(0.62rem, 1vw, 0.72rem);
}

.pdf-hero__subnav a:first-child {
  border-top: none;
}

.pdf-hero__subnav a:hover {
  background: rgba(0, 0, 0, 0.15);
  text-decoration: none !important;
}

.pdf-hero__nav a:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.pdf-hero__nav a.is-active {
  color: #fff;
}

.pdf-hero__nav--solid {
  background: #0a0a0a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pdf-hero-shell__nav.pdf-hero__nav--solid {
  background: #0a0a0a !important;
}

/* ----- Акция (как на отелях / портфолио) ----- */
.pdf-promo {
  position: relative;
  background: #8a1e24;
  color: #fff;
  padding: 2.5rem 1.25rem;
  overflow: hidden;
}

.pdf-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.06) 40px,
    rgba(255, 255, 255, 0.06) 42px
  );
  pointer-events: none;
}

.pdf-promo__inner {
  position: relative;
  z-index: 1;
  max-width: min(var(--gle-canvas-max, 1920px), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.5rem 2rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 800px) {
  .pdf-promo__inner {
    grid-template-columns: 1fr;
  }
}

.pdf-promo__photo {
  aspect-ratio: 4 / 3;
  background: #000;
  overflow: hidden;
}

.pdf-promo__photo img,
.pdf-promo__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdf-promo__photo--ph {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.pdf-promo__kicker {
  margin: 0 0 0.75rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pdf-promo__badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.pdf-promo__aktsiya {
  display: inline-block;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pdf-promo__ico {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.pdf-promo__product {
  margin: 0 0 0.75rem;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #f5d78a;
}

.pdf-promo__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.95;
}

.pdf-promo__play {
  margin-top: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: #f9a825;
  color: #1a1613;
  cursor: pointer;
  font-size: 0.85rem;
}

/* hero: скрыть только текстовый дубль (PNG-заголовок остаётся) */
.pdf-hero__title--brand,
.home-hero__title--brand {
  display: none !important;
}

/* ── PDF nav burger — fullscreen overlay (mobile only) ──────────────────── */
.pdf-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.pdf-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #111;
  border-radius: 0;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.pdf-burger--open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.pdf-burger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.pdf-burger--open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.pdf-burger--open span { background: #fff; }

.pdf-nav-links {
  display: contents;
}

@media (max-width: 768px) {
  /* Nav bar: прозрачная, нулевая высота — бургер уходит в fixed */
  .pdf-hero-shell__nav.pdf-hero__nav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: 0;
    min-height: 0;
    overflow: visible;
    padding: 0;
    margin: 0;
    pointer-events: none;
  }

  /* Бургер: фиксированный в правом верхнем углу */
  .pdf-burger {
    display: flex;
    position: fixed;
    top: 1.1rem;
    right: 1.25rem;
    z-index: 1200;
    pointer-events: auto;
  }

  /* Fullscreen overlay */
  .pdf-nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: #0c1824;
    z-index: 1100;
    flex-direction: column;
    padding: 5rem 1.75rem 2.5rem;
    overflow-y: auto;
    pointer-events: auto;
  }
  .pdf-nav-links--open {
    display: flex;
  }

  /* Пункты меню */
  .pdf-nav-links > a,
  .pdf-nav-links .pdf-hero__nav-item > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-family: "Acrom-Light", system-ui, Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 1.05rem 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    width: 100%;
    border-radius: 0 !important;
    background: transparent !important;
  }
  .pdf-nav-links > a:first-of-type,
  .pdf-nav-links > .pdf-hero__nav-item:first-of-type > a {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
  }
  /* Убрать подчёркивание активного пункта в оверлее */
  .pdf-nav-links .is-active {
    text-decoration: none !important;
    border-left: none !important;
  }

  /* Шеврон: перебиваем десктопный CSS-треугольник одним правилом */
  .pdf-hero__nav-item--sub > a::after {
    content: '›' !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    color: rgba(255,255,255,0.5) !important;
    flex-shrink: 0 !important;
    margin-left: 0.5rem !important;
    transition: transform 0.2s ease !important;
    display: inline-block !important;
    transform: rotate(90deg) !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    opacity: 1 !important;
  }
  .pdf-hero__nav-item--sub.pdf-sub-open > a::after {
    transform: rotate(-90deg) !important;
  }

  /* Подменю */
  .pdf-hero__nav-item--sub {
    flex-direction: column;
    width: 100%;
    position: static;
  }
  .pdf-hero__subnav {
    position: static !important;
    display: none !important;
    flex-direction: column;
    background: rgba(255,255,255,0.04);
    padding: 0.25rem 0 0.5rem 0.75rem;
    box-shadow: none !important;
    transform: none !important;
    gap: 0;
  }
  .pdf-hero__subnav a {
    font-size: 0.82rem !important;
    letter-spacing: 0.06em !important;
    padding: 0.6rem 0 !important;
    color: rgba(255,255,255,0.7) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    text-transform: uppercase !important;
  }
  .pdf-hero__subnav a:last-child { border-bottom: none !important; }
  .pdf-hero__nav-item--sub.pdf-sub-open .pdf-hero__subnav {
    display: flex !important;
  }
  .pdf-hero__nav-item--sub:hover .pdf-hero__subnav {
    display: none !important;
  }
  .pdf-hero__nav-item--sub.pdf-sub-open:hover .pdf-hero__subnav {
    display: flex !important;
  }
}

/* Меню шапки — всегда Acrom-Light (защита от перебивания на тяжёлых страницах, напр. контакты) */
.pdf-hero__nav a,
.pdf-hero__nav-item > a,
.pdf-nav-links a { font-family: "Acrom-Light", system-ui, Arial, sans-serif !important; }


/* ── Мобильное подменю: ссылка ведёт на страницу, подменю раскрывает стрелка ── */
.pdf-hero__nav-toggle { display: none; }

@media (max-width: 768px) {
  .pdf-hero__nav-item--sub { position: relative; }
  .pdf-hero__nav-item--sub > a::after { content: none !important; display: none !important; }
  .pdf-hero__nav-item--sub > a { padding-right: 3.6rem !important; }
  .pdf-hero__nav-toggle {
    display: flex !important;
    position: absolute;
    top: 0;
    right: 0;
    width: 3.4rem;
    height: 3.4rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 3;
    color: rgba(255, 255, 255, 0.6);
  }
  .pdf-hero__nav-toggle::before {
    content: '\203A';
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
  }
  .pdf-hero__nav-item--sub.pdf-sub-open .pdf-hero__nav-toggle::before {
    transform: rotate(-90deg);
  }
}
