/* Главная в стиле «Бронза». Подключается после style.css только на index.html.
   Префикс lp- — чтобы не пересекаться со старыми классами (.hero, .prices, .nav) из style.css. */
.lp {
  --ink: #2d2822;
  --ink-2: #5a5046;
  --lp-bg: #fcfbf9;
  --lp-line: #e4ddd3;
  --bronze: #b38b5f;
  --bronze-d: #7b5a36;
  --bronze-l: #d9bb93;
  --brown: #3a2c1d;
  --brown-2: #2a1f14;
  --on-dark: #f5eee4;
  --on-dark-2: #cdbfae;
  --wrap: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  interpolate-size: allow-keywords;
  scroll-padding-top: 24px;
  background: var(--lp-bg);
  color: var(--ink);
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
.lp h1, .lp h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0; text-wrap: balance; }
.lp h2 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3rem); }
.lp p { margin: 0; text-wrap: pretty; }
.lp :focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }
.lp-wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Hero: фото хостела на весь экран, затемнение под текстом, полоса брони снизу */
.lp-hero-wrap { position: relative; isolation: isolate; overflow: clip; min-height: 100svh; display: flex; flex-direction: column; background: var(--brown); color: var(--on-dark); }
.lp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: lp-settle 1.6s var(--ease) both; }
.lp-hero-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(32 23 14 / .9) 0%, rgb(32 23 14 / .72) 38%, rgb(32 23 14 / .25) 72%, rgb(32 23 14 / .1) 100%),
    linear-gradient(0deg, rgb(32 23 14 / .85) 0%, rgb(32 23 14 / 0) 38%),
    linear-gradient(180deg, rgb(32 23 14 / .6) 0%, rgb(32 23 14 / 0) 18%);
}
.lp-top { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.lp-logo { font: 700 1.125rem/1 var(--font-display); letter-spacing: -0.02em; }
.lp-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.lp-nav a, .lp-tel { color: var(--on-dark-2); font-size: .9375rem; }
.lp-nav a:hover, .lp-tel:hover { color: var(--on-dark); }
.lp-tel { font-weight: 600; color: var(--on-dark); white-space: nowrap; }

.lp-hero { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; gap: 1.5rem; padding-block: 3rem 2.5rem; }
.lp-hero__copy { max-width: 44rem; padding-bottom: 1.5rem; text-shadow: 0 1px 24px rgb(20 14 8 / .35); }
.lp-hero h1 { display: grid; gap: 1rem; }
.lp-hero__price { font-size: clamp(4rem, 2rem + 7vw, 6rem); line-height: .95; color: var(--bronze-l); animation: lp-lift 1s var(--ease) both; }
.lp-hero__line { font-size: clamp(1.6rem, 1rem + 2.1vw, 2.6rem); line-height: 1.1; animation: lp-lift 1s .12s var(--ease) both; }
.lp-hero__lead { margin-top: 1.5rem !important; max-width: 32rem; font-size: 1.1875rem; line-height: 1.7; color: #e6dacb; animation: lp-lift 1s .24s var(--ease) both; }
.lp-hero__fine { font-size: .875rem; color: #e6dacb; text-align: center; }

.lp-bar {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr auto; align-items: stretch;
  background: #fff; color: var(--ink); border-radius: 18px; padding: .5rem; gap: .25rem;
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / .6); animation: lp-lift 1s .35s var(--ease) both;
}
.lp-bar__f { display: grid; align-content: center; gap: .1rem; min-width: 0; padding: .5rem 1rem; border-radius: 12px; font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.lp-bar__f:focus-within { background: #f4efe8; }
.lp-bar__f + .lp-bar__f { box-shadow: -1px 0 0 var(--lp-line); }
.lp-bar__f select, .lp-bar__f input { min-width: 0; width: 100%; min-height: 32px; border: 0; padding: .2rem 0; background: transparent; color: var(--ink); font: 600 1.0625rem var(--font-main); text-overflow: ellipsis; }
.lp-bar__f select:focus, .lp-bar__f input:focus { outline: none; }
.lp-bar__sum { display: grid; align-content: center; padding: .5rem 1rem; border-radius: 12px; background: #f4efe8; text-align: right; }
.lp-bar__sum strong { font: 700 1.375rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.lp-bar__sum span { font-size: .8125rem; color: var(--bronze-d); }
.lp-bar .btn { min-height: 64px; padding-inline: 1.75rem; }

/* Таблица цен: суммы считает js/landing.js той же функцией, что и оплата */
.lp-prices { padding-block: 6.5rem 5.5rem; }
.lp-prices__lead { margin-top: 1rem !important; color: var(--ink-2); font-size: 1.125rem; }
.lp-table-scroll { overflow-x: auto; margin-top: 2.75rem; }
.lp-ptable { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; }
.lp-ptable th, .lp-ptable td { padding: 1.15rem 1.25rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--lp-line); }
.lp-ptable thead th { font: 700 1.125rem/1.2 var(--font-display); border-bottom: 0; padding-bottom: 1.5rem; }
.lp-ptable thead img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; border-radius: 14px; margin-bottom: 1rem; transition: scale .6s var(--ease); }
.lp-ptable thead th:hover img { scale: 1.03; }
.lp-ptable tbody th { font-weight: 600; width: 15%; }
.lp-ptable tbody th small { display: block; font-weight: 400; font-size: .8125rem; color: var(--ink-2); }
.lp-ptable tbody td { font: 700 1.25rem/1.2 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lp-ptable .lp-who td { font: 400 .9375rem/1.45 var(--font-main); letter-spacing: 0; color: var(--ink-2); }
.lp-ptable tfoot td { border-bottom: 0; padding-top: 1.5rem; }
.lp-ptable tfoot .btn { width: 100%; }
.lp-ptable .is-mid { background: #f4ede4; }
.lp-ptable thead .is-mid { border-radius: 20px 20px 0 0; padding-top: 1.25rem; }
.lp-ptable tfoot .is-mid { border-radius: 0 0 20px 20px; padding-bottom: 1.25rem; }

/* Внутри */
.lp-inside { padding-block: 5rem 6rem; background: #f4efe8; }
.lp-inside__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: start; }
.lp-amen { list-style: none; margin: .5rem 0 0; padding: 0; columns: 2; column-gap: 2rem; }
.lp-amen li { position: relative; padding: .55rem 0 .55rem 1.5rem; border-bottom: 1px solid #e2d8cb; break-inside: avoid; }
.lp-amen li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--bronze); }
.lp-strip { display: flex; gap: 1rem; margin-top: 3rem; padding-inline: max(1.25rem, (100% - var(--wrap)) / 2); padding-bottom: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(1.25rem, (100% - var(--wrap)) / 2); scrollbar-width: thin; }
.lp-strip figure { flex: 0 0 clamp(300px, 42vw, 600px); margin: 0; overflow: hidden; border-radius: 16px; scroll-snap-align: start; }
.lp-strip img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; border-radius: 16px; transition: scale .8s var(--ease); }
.lp-strip figure:hover img { scale: 1.05; }
.lp-strip figcaption { margin-top: .6rem; font-weight: 600; }

/* Отзыв на бронзе */
.lp-voice { background: var(--bronze); color: var(--brown-2); }
.lp-voice__in { padding-block: 5.5rem; max-width: min(100% - 2.5rem, 1000px); }
.lp-voice blockquote { margin: 0; font: 700 clamp(1.6rem, 1rem + 2.4vw, 2.75rem)/1.15 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.lp-voice__who { margin-top: 1.25rem !important; font-weight: 600; }
.lp-voice__more { list-style: none; padding: 0; margin: 2.5rem 0 2rem; display: flex; flex-wrap: wrap; gap: 1rem 3rem; font-size: 1.0625rem; }
.lp-voice__more span { opacity: .8; }
.lp-voice a { font-weight: 600; text-decoration: underline; }

/* Карта Яндекса на всю ширину, карточка адреса поверх; вокруг карточки карта кликабельна */
.lp-where { position: relative; height: min(640px, 80svh); background: #e9e3da; }
.lp-where__map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lp-where__in { position: relative; height: 100%; display: flex; align-items: center; pointer-events: none; }
.lp-addr { pointer-events: auto; display: grid; gap: .75rem; max-width: 420px; padding: 2rem; font-style: normal; border-radius: 22px; background: var(--brown); color: var(--on-dark); box-shadow: 0 30px 60px -25px rgb(0 0 0 / .55); }
.lp-addr h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); color: var(--bronze-l); }
.lp-addr strong { font: 700 1.125rem/1.3 var(--font-display); letter-spacing: -0.02em; }
.lp-addr > span, .lp-addr > p { color: var(--on-dark-2); font-size: .9375rem; }
.lp-addr .btn { justify-self: start; margin-top: .5rem; }
.lp-addr__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding-top: 1rem; margin-top: .25rem; border-top: 1px solid rgb(245 238 228 / .15); }
.lp-addr__links a { color: var(--on-dark); font-weight: 500; }

/* FAQ + фото входа */
.lp-duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; padding-block: 6rem; align-items: start; }
.lp-faq h2 { margin-bottom: 1.75rem; }
.lp-faq details { border-top: 1px solid var(--lp-line); }
.lp-faq details:last-child { border-bottom: 1px solid var(--lp-line); }
.lp-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; font-weight: 600; font-size: 1.125rem; cursor: pointer; list-style: none; transition: color .2s; }
.lp-faq summary:hover { color: var(--bronze-d); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; flex: none; width: .65rem; height: .65rem; margin-top: .4rem; border-right: 2px solid var(--bronze-d); border-bottom: 2px solid var(--bronze-d); transform: rotate(45deg); transition: transform .35s var(--ease); }
.lp-faq details[open] summary::after { transform: rotate(-135deg); }
.lp-faq details p { padding-bottom: 1.2rem; color: var(--ink-2); max-width: 60ch; }
/* Плавное раскрытие: Chrome 131+, Safari 18.4+. В остальных браузерах открывается мгновенно. */
.lp-faq details::details-content {
  block-size: 0; overflow: clip; opacity: 0; translate: 0 -6px;
  transition: block-size .45s var(--ease), opacity .35s var(--ease), translate .45s var(--ease), content-visibility .45s allow-discrete;
}
.lp-faq details[open]::details-content { block-size: auto; opacity: 1; translate: 0 0; }
.lp-duo__photo { margin: 0; }
.lp-duo__photo img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 22px; }
.lp-duo__photo figcaption { margin-top: .75rem; color: var(--ink-2); font-size: .9375rem; }

/* Финал и футер */
.lp-final { background: var(--brown); color: var(--on-dark); overflow: hidden; }
.lp-final__in { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem 4rem; padding-block: 5rem 4rem; }
.lp-final__big { font: 700 clamp(4rem, 2rem + 7vw, 6rem)/1 var(--font-display); letter-spacing: -0.04em; color: var(--bronze-l); }
.lp-final h2 { margin-bottom: 1.5rem; }
.lp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-block: 2rem 2.5rem; border-top: 1px solid rgb(245 238 228 / .15); font-size: .875rem; color: var(--on-dark-2); }
.lp-foot > span { margin-right: auto; }
.lp-foot a:hover { color: var(--on-dark); }
.lp-foot__social { display: flex; gap: .5rem; }
.lp-foot__social img { width: 28px; height: 28px; }

/* Мобильная кнопка брони (класс .mobile-cta нужен старому CSS: он прячет её при открытой модалке) */
.lp .mobile-cta { display: none; }

@keyframes lp-lift { from { transform: translateY(24px); } }
@keyframes lp-settle { from { transform: scale(1.06); } }

/* Анимации по скроллу: привязаны к позиции, не ко времени. Без поддержки — контент просто виден. */
@supports (animation-timeline: view()) {
  @keyframes lp-up { from { opacity: 0; transform: translateY(48px); } }
  @keyframes lp-pop { from { opacity: 0; transform: scale(.7); } }
  @keyframes lp-card { from { opacity: .35; transform: scale(.88); } }
  @keyframes lp-drift { to { translate: 0 18%; } }

  .lp-prices h2, .lp-prices__lead, .lp-ptable tbody tr, .lp-ptable tfoot,
  .lp-inside h2, .lp-amen li, .lp-voice blockquote, .lp-voice__who, .lp-voice__more li,
  .lp-faq h2, .lp-faq details, .lp-duo__photo, .lp-addr, .lp-final h2 {
    animation: lp-up linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 70%;
  }
  .lp-ptable thead th { animation: lp-up linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  .lp-final__big { animation: lp-pop linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  .lp-strip figure { animation: lp-card linear both; animation-timeline: view(inline); animation-range: entry 0% entry 80%; }
  .lp-bg { animation: lp-settle 1.6s var(--ease) both, lp-drift linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100svh; }
}

@media (max-width: 1024px) {
  .lp-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-bar__f_type, .lp-bar__sum, .lp-bar .btn { grid-column: 1 / -1; }
  .lp-bar__f + .lp-bar__f { box-shadow: none; }
  .lp-bar__f_type { border-bottom: 1px solid var(--lp-line); border-radius: 12px 12px 0 0; }
  .lp-bar__sum { text-align: left; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
}

@media (max-width: 860px) {
  .lp-nav { display: none; }
  .lp-tel { margin-left: auto; }
  .lp-hero__copy { padding-bottom: 0; }
  .lp-hero-wrap::before { background: linear-gradient(0deg, rgb(32 23 14 / .92) 0%, rgb(32 23 14 / .78) 55%, rgb(32 23 14 / .45) 100%); }
  .lp-inside__head, .lp-duo, .lp-final__in { grid-template-columns: 1fr; }
  .lp-duo { gap: 3rem; }
  .lp-duo__photo img { aspect-ratio: 4 / 3; }
  .lp-where { height: auto; background: var(--brown); }
  .lp-where__map { position: static; display: block; height: 380px; }
  .lp-where__in { display: block; padding-block: 0 1rem; }
  /* Без нахлёста: низ карты с атрибуцией Яндекса закрывать нельзя */
  .lp-addr { max-width: none; padding-inline: 0; box-shadow: none; }
}

@media (max-width: 640px) {
  .lp-top { min-height: 60px; }
  .lp-hero { padding-block: 2rem 1.5rem; gap: 1.25rem; }
  .lp-hero__lead { margin-top: 1rem !important; font-size: 1rem; line-height: 1.6; }
  .lp-bar .btn { min-height: 56px; }
  .lp-amen { columns: 1; }
  .lp-final__in { padding-bottom: 3rem; }
  .lp-foot { padding-bottom: 6rem; }
  .lp .mobile-cta {
    position: fixed; z-index: 30; left: .75rem; right: 5.25rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 14px;
    background: var(--bronze); color: var(--brown-2); font-weight: 600;
    box-shadow: 0 14px 30px -12px rgb(0 0 0 / .55);
  }
  .lp.lp-form-in-view .mobile-cta { display: none; }
  .lp.lp-form-in-view .chat-widget { opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
}

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
  .lp-strip { scroll-snap-type: none; }
}
