/* Layout refinements requested for the mobile site. */
html { touch-action: manipulation; }
.mobile-routes-cta { display: none; }

/* Give consecutive content sections room without changing the cover. */
@media (max-width: 700px) {
  :root { --sec: 82px; }
  main > .sec--tight { padding-block: 76px; }
  .home .excursions--heli { padding-bottom: 100px; }
  .home .excursions--rafting { padding-top: 100px; }

  /* One compact card rhythm across the home page. */
  #formaty .formats,
  .home .mobile-route-grid,
  .home .heli-cards { align-items: stretch; }
  #formaty .fcard,
  .home .mobile-route-card,
  .home .heli-card { min-width: 0; height: 100%; }
  #formaty .fcard h3 { font-size: 18px; line-height: 1.2; margin-top: 12px; }
  #formaty .fcard p { font-size: 13px; line-height: 1.4; }
  #formaty .fcard .btn,
  .home .pcard .btn,
  .home .prows .btn,
  .home .mobile-route-card__more,
  .popular-showcase .btn,
  .popular-showcase .popular-card__go { font-size: 13px; line-height: 1.15; }
  #formaty .fcard .btn,
  .home .pcard .btn,
  .home .prows .btn,
  .popular-showcase .btn { width: fit-content; min-width: 0; min-height: 38px; padding: 8px 12px; gap: 6px; }
  #formaty .fcard .btn { margin-top: auto; align-self: start; }
  .home #formaty .fcard .btn,
  .home .pcard .btn { width: fit-content!important; min-width: 0!important; min-height: 34px!important; padding: 7px 10px!important; font-size: 12px!important; }
  .home #formaty .fcard .btn .i,
  .home .pcard .btn .i { width: 13px!important; height: 13px!important; }
  #formaty .fcard .btn .i,
  .home .pcard .btn .i,
  .home .prows .btn .i { width: 15px; height: 15px; }
  .home .mobile-route-card { display: flex; flex-direction: column; }
  .home .mobile-route-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
  .home .mobile-route-card h3 { font-size: 16px; margin: 12px 0 8px; }
  .home .mobile-route-card__description { font-size: 13px; margin-bottom: 12px; }
  .home .mobile-route-card__more { margin-top: auto; min-height: 36px; }
  .home .mobile-route-card:nth-child(3n) { grid-column: 1/-1; }
  .home .mobile-route-card:nth-child(3n) .mobile-route-card__photo { aspect-ratio: 16/9; }
  .home .journey__part + .journey__part { margin-top: 54px; }

  /* Two tour cards in a balanced row. */
  .home .sec:has(> .wrap > .sec__head + .prows) > .wrap > .prows {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; border: 0;
  }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow {
    display: flex; flex-direction: column; min-width: 0; height: 100%; gap: 10px; padding: 0; border: 0;
  }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow__img { width: 100%; aspect-ratio: 1.1; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow__main { gap: 7px; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow h3 { font-size: 17px; line-height: 1.2; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow__main > p { font-size: 13px; line-height: 1.4; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow__list { font-size: 12px; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow__side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: auto; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow__price { font-size: 17px; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow .btn { white-space: normal; }

  /* Helicopter call to action follows the third route. */
  .home .mobile-heli-cta { grid-column: 1/-1; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; margin-top: 18px; padding: 0; background: transparent; }
  .home .heli-card:nth-child(3n) { grid-column: 1/-1; }
  .home .heli-card:nth-child(3n) .heli-card__photo { aspect-ratio: 16/9; }
  .home .mobile-heli-cta .btn,
  .home .mobile-heli-cta .link { width: fit-content; min-height: 40px; padding: 9px 12px; font-size: 13px; line-height: 1.2; white-space: normal; }
  .home .mobile-heli-cta .link { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--main); color: var(--main); text-decoration: none; }
  .home .mobile-heli-cta .i { width: 15px; height: 15px; flex: none; }
  .home .excursions--rafting .prow__side { margin-top: auto; }
  .home .excursions--rafting .btn { white-space: nowrap; font-size: 12px; padding-inline: 9px; }

  /* Compact budget form and payment cards. */
  #podbor .ask { gap: 18px; }
  #podbor .ask__head { gap: 8px; }
  #podbor .ask__head h2 { font-size: 30px; }
  #podbor .ask > :last-child { padding-block: 20px 30px; }
  #podbor .form { gap: 14px; }
  #podbor .fields { gap: 12px; }
  #podbor .f { gap: 5px; }
  #podbor .chips { gap: 5px; margin-top: 0; }
  #podbor .chip span { min-height: 34px; padding-inline: 10px; font-size: 12px; }
  #podbor .input { min-height: 42px; }
  .home .booking-cards { grid-template-columns: repeat(2,minmax(0,1fr))!important; }
  .home .booking-cards > :last-child { grid-column: 1/-1!important; width: 100%; }
  .home .booking-cards > * { min-height: 0!important; padding: 20px 14px!important; }
  .home .booking-cards h3 { font-size: 17px!important; }
  .home .booking-cards p { font-size: 12px!important; line-height: 1.45!important; }
  .home .company-c3__panel { padding-block: 52px; }
  .home .company-c3__in { gap: 16px; }
  .home .company-c3__lead { font-size: 16px; line-height: 1.45; }
  .home .company-c3__list > div { padding-block: 12px; }
  .home .company-c3__list h3 { font-size: 20px; }

  /* Catalog cards: consistent spacing and readable two-column summaries. */
  .popular-showcase .popular-grid,
  .marine-index .bento--catalog,
  .jeep-index .bento--catalog,
  .page--rafting .bento--catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .popular-showcase .popular-card,
  .popular-showcase .popular-card--1 { min-width: 0; min-height: 0; aspect-ratio: 1; }
  .popular-showcase .popular-card:nth-child(3n) { grid-column: 1/-1; aspect-ratio: 16/9; }
  .popular-showcase .popular-card__body { padding: 14px; gap: 7px; }
  .popular-showcase .popular-card h3,
  .popular-showcase .popular-card--1 h3 { font-size: 19px; line-height: 1.15; }
  .popular-showcase .popular-card__meta { font-size: 12px; }
  .marine-index .bento--catalog .bcard,
  .jeep-index .bento--catalog .bcard,
  .page--rafting .bento--catalog .bcard { min-width: 0; min-height: 0; grid-column: auto; }
  .marine-index .bento--catalog .bcard__t,
  .jeep-index .bento--catalog .bcard__t,
  .page--rafting .bento--catalog .bcard__t { padding: 14px; }
  .marine-index .bento--catalog h3,
  .jeep-index .bento--catalog h3,
  .page--rafting .bento--catalog h3 { font-size: 18px; line-height: 1.15; }
  .marine-index .bento--catalog p,
  .jeep-index .bento--catalog p,
  .page--rafting .bento--catalog p { font-size: 12px; line-height: 1.35; }
  .bento--catalog .bcard__meta { font-size: 11px; }
  .page--heli .bento--catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .page--heli .bento--catalog .bcard { min-width: 0; min-height: 0; grid-column: auto; }
  .page--heli .bento--catalog .bcard__t { padding: 14px; gap: 7px; }
  .page--heli .bento--catalog h3 { font-size: 18px; line-height: 1.15; }
  .page--heli .bento--catalog p { font-size: 12px; line-height: 1.35; }
  .page--heli .bento--catalog .bcard__go { font-size: 12px; }
  .marine-index .bento--catalog .bcard,
  .jeep-index .bento--catalog .bcard,
  .page--rafting .bento--catalog .bcard,
  .page--heli .bento--catalog .bcard { display: flex; flex-direction: column; align-items: stretch; background: var(--ink); }
  .bento--catalog .bcard::after { display: none; }
  .bento--catalog .bcard__image-link { position: relative!important; inset: auto!important; display: block; width: 100%; aspect-ratio: 1; flex: none; overflow: hidden; }
  .bento--catalog .bcard__image-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .bento--catalog .bcard > img,
  .bento--catalog .bcard > .ph,
  .bento--catalog .bcard > .heli-route-photo-placeholder { position: relative!important; inset: auto!important; display: block; width: 100%; height: 160px; flex: none; object-fit: cover; }
  .bento--catalog .bcard > .ph,
  .bento--catalog .bcard > .heli-route-photo-placeholder { display: grid; place-items: center; padding: 12px; }
  .bento--catalog .bcard__t { flex: 1; align-content: start; }
  .bento--catalog .bcard__t > p:first-of-type { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
  .bento--catalog .bcard__go { align-self: start; margin-top: auto; padding-top: 12px; }
  .marine-index .bento--catalog .bcard:nth-child(3n),
  .jeep-index .bento--catalog .bcard:nth-child(3n),
  .page--rafting .bento--catalog .bcard:nth-child(3n),
  .page--heli .bento--catalog .bcard:nth-child(3n) { grid-column: 1/-1; }
  .bento--catalog .bcard > img,
  .bento--catalog .bcard > .ph,
  .bento--catalog .bcard > .heli-route-photo-placeholder { height: auto; aspect-ratio: 1; }
  .bento--catalog .bcard:nth-child(3n) > img,
  .bento--catalog .bcard:nth-child(3n) > .ph,
  .bento--catalog .bcard:nth-child(3n) > .heli-route-photo-placeholder,
  .bento--catalog .bcard:nth-child(3n) > .bcard__image-link { aspect-ratio: 16/9; }

  /* Page-specific spacing. */
  .page--popular .phero__pager { top: auto; bottom: 24px; left: var(--pad); right: auto; }
  .page--popular .phero__body { padding-bottom: 105px; }
  .page--heli .phero .facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .page--heli .phero .facts > div { min-width: 0; }
  .page--heli .phero .facts dd { font-size: 15px; }
  .page--heli .sec--soft .sec__head > .btn { display: none; }
  .page--heli .sec--soft .bento--catalog { margin-bottom: 24px; }
  .page--heli .sec--soft .mobile-routes-cta { display: flex; justify-content: flex-start; }
  .page--heli .waysec__in { gap: 34px; }
  .page--heli .waysec ol { gap: 24px; }
  .page--bath .steps3 ol { gap: 18px; }
  .page--about .about-four h3 { font-size: 19px; }
  .page--about .about-four__list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .page--about .about-four__list li { min-width: 0; }
  .page--about .about-four__list p { font-size: 13px; line-height: 1.4; }
  .page--contacts .contact-page__grid { row-gap: 18px; }
  .page--contacts .contact-page__primary,
  .page--contacts .contact-page__secondary { padding-block: 28px!important; }
  .page--guest-house .stay-combined h3 { font-size: 23px; line-height: 1.2; }
  .page--guest-house .stay-map { margin-top: 24px; }
  .page--guest-house .stay-map iframe { display: block; width: 100%; height: 320px; border: 0; }
  .page--guest-house .stay-map p { margin-top: 10px; }
  .tiles--4 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .tiles--4 .tile { min-width: 0; aspect-ratio: 1; }
  .tiles--4 .tile__t { font-size: 18px; left: 12px; right: 12px; bottom: 12px; }
  .page--guest-house .phero .actions,
  .page--bath .phero .actions { gap: 10px!important; }
  .page--guest-house .phero .actions > .btn,
  .page--bath .phero .actions > .btn { min-width: 192px!important; padding-inline: 24px; }
  .page--guest-house .phero .actions > .link,
  .page--bath .phero .actions > .link { align-self: flex-start!important; margin-top: -3px!important; }

  /* Calendar begins with dates, never with an input keyboard. */
  .page--bath .bk__cal > .tabs { order: 0; }
  .page--bath .bk__cal > .f { order: 1; }
  .page--bath .bk__cal > .tab-panel { order: 2; }
  .bk__close { touch-action: manipulation; }

  /* Footer groups start below the contact column. */
  .foot__top { row-gap: 42px; padding-top: 64px; }
  .foot__nav-groups { row-gap: 24px; }
}

@media (min-width: 701px) {
  .page--guest-house .stay-map { margin-top: 28px; }
  .page--guest-house .stay-map iframe { display: block; width: 100%; height: 350px; border: 0; }
  .page--guest-house .stay-map p { margin-top: 10px; }
  .foot__top { column-gap: clamp(48px,5vw,100px); }
}

.home-booking-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--ink); }
.home-booking-dialog::backdrop { background: rgba(12,24,19,.76); }
.home-booking-dialog iframe { display: block; width: 100%; height: 100%; border: 0; }
.home-booking-dialog__close { position: absolute; z-index: 3; right: 8px; bottom: 8px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.home-booking-dialog.is-loaded .home-booking-dialog__close { display: none; }
@media (min-width: 720px) {
  .home-booking-dialog { width: min(1180px,calc(100vw - 48px)); height: min(820px,calc(100dvh - 40px)); margin: auto; }
}


/* Follow-up mobile adjustments, 23 November. */
.page--popular .popular-card__n { display: none; }
@media (max-width: 700px) {
  :root { --sec: 70px; }
  .home .excursions--heli { padding-bottom: 70px!important; }
  .home .excursions--rafting { padding-top: 70px!important; }
  .home #formaty .fcard .fcard__price { margin-bottom: 13px; }
  .home #formaty .fcard .btn { margin-top: auto!important; }
  .home .rail[data-rail] { touch-action: pan-y; overscroll-behavior-x: contain; }
  .home .journey { padding-top: 56px!important; }
  .home .journey__part { padding-block: 26px!important; }
  .home .journey__part + .journey__part { margin-top: 8px!important; }
  .home .mobile-route-block { padding-inline: 0!important; width: 100%; }
  .home .mobile-route-block > h2 { margin-bottom: 16px; }
  .home .mobile-route-card__body { gap: 0; }
  .home .mobile-route-card h3 { margin-bottom: 4px; }
  .home .mobile-route-card__description { margin-bottom: 10px; }
  .home .mobile-route-card__more { display: inline-flex; align-items: center; width: fit-content; padding: 8px 12px; border-radius: 999px; background: var(--main); color: var(--bg); text-decoration: none; }
  .home .mobile-route-card__more .i { width: 14px; height: 14px; }
  .home .journey__part--jeep { display: flex; flex-direction: column; }
  .home .journey__part--jeep .mobile-route-block { order: 0; }
  .home .journey__part--jeep .other { order: 1; margin-top: 25px; }
  .home .mobile-heli-cta .link { border-radius: 999px; }
  .home .excursions--rafting .prow__side { gap: 3px; }
  .home .pcard .btn span, .home .bcard__go { white-space: nowrap; }
  .home .company-c3 .link, .home .company-c3 .btn { font-size: 13px!important; padding: 8px 12px!important; min-height: 36px!important; }
  #podbor .chips { justify-content: flex-start!important; align-content: flex-start; gap: 8px!important; }
  #podbor .chip { flex: 0 0 auto; margin: 0!important; }
  #podbor .chip span { width: auto; }
  .phero .actions { row-gap: 6px!important; }
  .phero .actions > .link[data-open="usloviya"] { align-self: flex-start!important; margin: -4px 0 0 24px!important; padding: 0!important; min-height: 36px!important; }
  .route-packing-tour { padding-top: 78px!important; padding-bottom: 76px!important; }
  .route-packing-tour + .route-booking { padding-top: 76px!important; }
  .route-packing-tour .who__in { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; }
  .route-packing-tour .sheet { margin-top: 25px; width: 100%; max-width: none; }
  .route-packing-tour .sheet h3 { padding-right: 0; }
  .page--heli .waysec ol { display: grid; gap: 42px!important; }
  .page--about .about-four__list { display: block; width: 100%; }
  .page--about .about-four__list li { padding: 19px 0!important; width: 100%; }
  .page--about .about-four__list li::before { display: none; }
  .page--about .about-four__list h3 { font-size: 18px; }
  .page--about .about-four__list p { font-size: 15px; }
  .page--guest-house .stay-map { display: block!important; width: 100%; min-height: 320px; border: 1px solid var(--line); background: #d9e3d8; }
  .page--guest-house .stay-map iframe { width: 100%!important; height: 320px!important; min-height: 320px; }
  .page--sea-catalog .phero__img img { object-position: 32% center; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard { background: var(--bg)!important; color: var(--ink)!important; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard__t { background: var(--bg)!important; color: var(--ink)!important; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard__t :is(h3,h3 a,p,span) { color: var(--ink)!important; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard__go { width: fit-content; min-height: 34px; margin-top: 11px; padding: 7px 11px!important; border: 1px solid #a99d80!important; border-radius: 999px; background: transparent!important; color: var(--ink)!important; text-decoration: none; line-height: 1.1; white-space: nowrap; }
}
@media (max-width: 700px) {
  .page--tours-catalog .bento--catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .page--tours-catalog .bento--catalog .bcard { display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 0; grid-column: auto; background: var(--ink); }
  .page--tours-catalog .bento--catalog .bcard__t { padding: 14px; }
  .page--tours-catalog .bento--catalog h3 { font-size: 18px; line-height: 1.15; }
  .page--tours-catalog .bento--catalog p { font-size: 12px; line-height: 1.35; }
  .home .excursions:not(.excursions--rafting) .prow .btn span { white-space: nowrap; }
}
@media (max-width: 700px) {
  .home .sec:has(> .wrap > .sec__head + .prows) .prow .btn { white-space: nowrap!important; font-size: 11px!important; padding-inline: 7px!important; gap: 4px!important; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow .btn .i { width: 13px; height: 13px; }
}
@media (max-width: 700px) {
  #podbor .chips .chip { padding: 0!important; }
  #podbor .chips .chip span { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 10px; }
}


/* Follow-up from four reference photos. */
@media (max-width: 700px) {
  .home .mobile-route-card__more {
    min-height: 34px; padding: 7px 10px; border: 1px solid var(--ink);
    border-radius: 999px; background: transparent; color: var(--ink);
    font-size: 12px; line-height: 1.15;
  }
  .home .mobile-route-card__more .i { width: 13px; height: 13px; }
  .home .mobile-route-card__meta { display: flex; flex-direction: column; gap: 2px; margin: 5px 0 0; font-size: 11px; line-height: 1.25; opacity: .75; }
  .home .mobile-route-card__price { margin: 7px 0 12px; font-size: 12px; line-height: 1.2; }
  .home .journey { padding-top: 24px!important; }
  .home .journey__part + .journey__part { margin-top: 42px!important; }
  #podbor .chips { margin-top: 12px!important; }
  .home .company-c3 .link { justify-self: start; margin-left: 0!important; padding-left: 0!important; }
  .home .company-c3 .link .i { width: 14px; height: 14px; }
  .page--tours-catalog .bento--catalog { grid-template-columns: minmax(0,1fr)!important; gap: 18px; }
  .page--tours-catalog .bento--catalog .bcard { position: relative; display: flex; align-items: flex-end; min-height: 470px; background: var(--main); color: #fff; }
  .page--tours-catalog .bento--catalog .bcard::after { display: block!important; content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(18,32,28,.91), rgba(18,32,28,.08) 78%); pointer-events: none; }
  .page--tours-catalog .bento--catalog .bcard__image-link { position: absolute!important; inset: 0!important; width: 100%; height: 100%; aspect-ratio: auto; }
  .page--tours-catalog .bento--catalog .bcard__image-link img { width: 100%; height: 100%; object-fit: cover; }
  .page--tours-catalog .bento--catalog .bcard__t { position: relative; z-index: 2; width: 100%; padding: 24px; color: #fff; }
  .page--tours-catalog .bento--catalog .bcard__t :is(h3,h3 a,p,span) { color: #fff; }
  .page--tours-catalog .bento--catalog .bcard h3 { font-size: 27px; }
  .page--tours-catalog .bento--catalog .bcard__t > p:first-of-type { font-size: 14px; line-height: 1.4; -webkit-line-clamp: unset; }
  .page--tours-catalog .bento--catalog .bcard__meta { font-size: 12px; }
  .page--tours-catalog .bento--catalog .bcard__go { color: var(--acc)!important; font-size: 14px; text-decoration: none; pointer-events: auto; }
  .page--sea-catalog .phero__img img { object-position: 40% center; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard,
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard__t { background: transparent!important; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard__t { padding-inline: 0!important; }
  .route-packing-tour { padding-bottom: 36px!important; }
  .route-packing-tour + .route-booking { padding-top: 36px!important; }
  .page--heli .waysec .way { display: block; }
  .page--heli .waysec .way::before { left: 21px; top: 22px; bottom: 22px; }
  .page--heli .waysec .way ol { display: flex; flex-direction: column; gap: 36px!important; list-style: none; padding: 0; margin: 0; }
  .page--heli .waysec .way li { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 16px; align-items: center; }
  .page--heli .waysec .way__dot { grid-column: 1; margin: 0; }
  .page--heli .waysec .way__t { grid-column: 2; max-width: none; margin: 0; padding: 0; font-size: 20px; line-height: 1.25; text-align: left; }
  .page--rafting .bento--catalog .bcard__go { max-width: 100%; min-height: 32px; padding: 6px 7px!important; gap: 3px; font-size: 10px!important; line-height: 1.1; }
  .page--rafting .bento--catalog .bcard__go .i { width: 12px; height: 12px; flex: none; }
  .page--about .about-four__list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
  .page--about .about-four__list li { min-width: 0; }
  .page--guest-house .stay-combined__arrival { transform: none!important; opacity: 1!important; }
}
@media (max-width: 700px) {
  .page--tours-catalog .bento--catalog .bcard__t { margin-top: auto; }
}
@media (max-width: 700px) {
  .page--tours-catalog .bento--catalog .bcard__t { flex: none!important; margin-top: auto!important; align-content: end; }
}
/* Keep the helicopter route heading and application action on one visual line. */
@media (min-width: 701px) {
  .page--heli .sec--soft .sec__head--split > .btn {
    width: max-content;
    min-width: 0;
    justify-self: start;
    align-self: center;
  }
}
@media (min-width: 900px) {
  .page--heli .sec--soft .sec__head--split > .btn { justify-self: end; }
}
@media (min-width: 900px) {
  .page--heli .sec--soft .sec__head--split > .btn { position: relative; top: 8px; }
}


/* Booking, filters, packing cards and excursion actions — 24 November. */
.route-packing-tour .sheet, .who .sheet { background: #fff!important; }
.bento--catalog .bcard[hidden] { display: none!important; }
@media (max-width: 700px) {
  .who .sheet__pic { top: 0; right: 0; width: 80px; }
  .who .sheet h3 { padding-right: 82px!important; }
}
dialog.booking-flow .bk__grid { grid-template-rows: auto auto; align-content: start; overflow-y: auto; }
dialog.booking-flow .booking-flow__aside { justify-content: flex-start; overflow: visible; }
dialog.booking-flow .bk__side { overflow: visible!important; }
dialog.booking-flow .booking-flow__aside-bottom {
  grid-column: 1 / -1; width: 100%; padding: 24px 30px 30px;
  background: var(--ink); color: var(--bg); box-sizing: border-box;
}
dialog.booking-flow .booking-flow__aside-bottom .booking-flow__totals,
dialog.booking-flow .booking-flow__aside-bottom .btn { max-width: 440px; }
@media (max-width: 720px) {
  dialog.booking-flow .bk__grid { display: block; }
  dialog.booking-flow .booking-flow__aside-bottom { padding: 25px 20px calc(30px + env(safe-area-inset-bottom)); }
}
:is(.page--sea-catalog,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard__go {
  width: fit-content; border: 1px solid var(--ink)!important; border-radius: 999px;
  padding: 8px 12px; background: var(--bg); color: var(--ink)!important;
  text-decoration: none; cursor: pointer;
}
.page--heli .sec--soft .sec__head--split > .btn,
.page--heli .mobile-routes-cta .btn {
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
}
@media (max-width: 700px) {
  :is(.page--sea-catalog,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard__go { background: transparent!important; }
  .page--rafting .bento--catalog .bcard__go { padding: 6px 7px!important; }
}

.sheet { background: #fff!important; }


/* Tablet route and companion-card layout. */
@media (min-width: 701px) and (max-width: 1031px) {
  .home .journey__part > .routes,
  .home .journey__part > .journey__jeep-content,
  .home .journey__part > .journey__head { display: none!important; }
  .home .journey, .home .journey__part { height: auto!important; min-height: 0!important; }
  .home .journey__part { padding-block: 32px; }
  .home .journey__part + .journey__part { margin-top: 48px; }
  .home .mobile-route-block { display: block; width: 100%; padding: 0; }
  .home .mobile-route-block > h2 { margin: 0 0 24px; font-size: clamp(32px,4vw,42px); line-height: 1.1; }
  .home .mobile-route-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 18px; align-items: stretch; }
  .home .mobile-route-card { min-width: 0; display: flex; flex-direction: column; }
  .home .mobile-route-card__photo { display: block; width: 100%; aspect-ratio: 1.25; overflow: hidden; background: var(--soft); }
  .home .mobile-route-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: none!important; }
  .home .mobile-route-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
  .home .mobile-route-card h3 { margin: 14px 0 6px; font-size: 22px; line-height: 1.2; font-weight: 400; }
  .home .mobile-route-card h3 a { color: var(--ink); text-decoration: none; }
  .home .mobile-route-card__description { margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
  .home .mobile-route-card__meta { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 13px; line-height: 1.3; opacity: .76; }
  .home .mobile-route-card__price { margin: 8px 0 14px; font-size: 14px; }
  .home .mobile-route-card__more { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 38px; margin-top: auto; padding: 8px 13px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 13px; }
  .home .mobile-route-card__more .i { width: 15px; height: 15px; }
  .home .mobile-route-card:nth-child(3n) { grid-column: 1 / -1; }
  .home .mobile-route-card:nth-child(3n) .mobile-route-card__photo { aspect-ratio: 16 / 7; }
  .home .journey__part--jeep { display: flex; flex-direction: column; }
  .home .journey__part--jeep .mobile-route-block { order: 0; }
  .home .journey__part--jeep .other { order: 1; margin-top: 28px; }
}
@media (min-width: 701px) and (max-width: 899px) {
  .tiles--4 { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .tiles--4 .tile { grid-column: auto; min-width: 0; min-height: 0; aspect-ratio: 1; }
  .tiles--4 .tile__t { font-size: clamp(18px,2.5vw,24px); left: 16px; right: 16px; bottom: 16px; }
}


/* Desktop booking summary stays inside the existing dark date column. */
@media (min-width: 721px) {
  dialog.booking-flow .bk__grid { grid-template-rows: minmax(0,1fr); align-content: stretch; overflow: hidden; }
  dialog.booking-flow .booking-flow__aside { justify-content: space-between; overflow-y: auto; padding-bottom: 12px; }
  dialog.booking-flow .bk__side { overflow-y: auto!important; }
  dialog.booking-flow .booking-flow__aside-bottom {
    grid-column: auto; width: 100%; margin-top: auto; padding: 18px 0 0;
    background: transparent; color: inherit;
  }
}

/* Light jeep routes have their own mobile mosaic; all routes keep their original grid. */
@media (max-width: 700px) {
  .jeep-index .bento--catalog.is-light-filter .bcard:not([hidden]) { order: var(--light-order); grid-column: auto!important; }
  .jeep-index .bento--catalog.is-light-filter .bcard[style*="--light-order: 3"],
  .jeep-index .bento--catalog.is-light-filter .bcard[style*="--light-order: 6"] { grid-column: 1 / -1!important; }
  .jeep-index .bento--catalog.is-light-filter .bcard[style*="--light-order: 3"] .bcard__image-link,
  .jeep-index .bento--catalog.is-light-filter .bcard[style*="--light-order: 6"] .bcard__image-link { aspect-ratio: 16 / 9; }
}

@media (min-width: 900px) { dialog.booking-flow .booking-flow__aside { padding-bottom: 27px; } }

/* Two selected dates read as separate labeled lines in every booking calendar. */
dialog.bk [data-dates], dialog.booking-flow .booking-flow__date-value, dialog.booking-flow .booking-flow__summary { white-space: pre-line; }


/* Booking and route refinements, 24 November. */
.page--rafting #marshruty { padding-bottom: clamp(38px,5vw,70px)!important; }
.page--rafting #marshruty + .sec--faq { padding-top: clamp(24px,3vw,48px)!important; }
@media (max-width: 899px) {
  :root { --head: 58px; }
  body .head, body .head:not(.is-stuck), body .head.is-stuck { --head: 58px; height: 58px; }
}
@media (max-width: 700px) {
  .home .mobile-route-block > h2 { font-size: 36px; }
  .home .mobile-route-card h3 { font-size: 18px; line-height: 1.18; }
  .home .excursions--heli { padding-bottom: 50px!important; }
  .home .excursions--rafting { padding-top: 50px!important; }
  :is(.marine-index,.jeep-index,.page--bath) .phero .actions > .link[data-open="usloviya"] { margin-left: 14px!important; }
  .page--heli .mobile-routes-cta { position: relative; justify-content: center!important; text-align: center; }
  .page--heli .mobile-routes-cta .i { position: absolute; right: 18px; }
}
/* The same compact two-plus-one catalog layout on 701–792px tablets. */
@media (min-width: 701px) and (max-width: 792px) {
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard { min-width: 0; min-height: 0; grid-column: auto; display: flex; flex-direction: column; align-items: stretch; background: transparent; color: var(--ink); }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard::after { display: none; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard > :is(.bcard__image-link,img,.ph,.heli-route-photo-placeholder) { position: relative!important; inset: auto!important; display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 1; flex: none; overflow: hidden; object-fit: cover; background: var(--ink); color: var(--bg); }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard__image-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard > :is(.ph,.heli-route-photo-placeholder) { padding: 12px; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard > :is(.ph,.heli-route-photo-placeholder) span { margin: 0; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard__t { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 7px; max-width: none; width: 100%; padding: 14px 0; background: transparent; color: var(--ink); }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard__t :is(h3,h3 a,p,span) { color: var(--ink); }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard h3 { font-size: 20px; line-height: 1.16; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard p { font-size: 13px; line-height: 1.4; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard__meta { font-size: 12px; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard__go { align-self: flex-start; width: fit-content; min-height: 34px; margin-top: auto; padding: 7px 11px; border: 1px solid #a99d80; border-radius: 999px; background: transparent; color: var(--ink); text-decoration: none; white-space: nowrap; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard:nth-child(3n) { grid-column: 1 / -1; }
  :is(.marine-index,.jeep-index,.page--heli,.page--rafting) .bento--catalog .bcard:nth-child(3n) > :is(.bcard__image-link,img,.ph,.heli-route-photo-placeholder) { aspect-ratio: 16 / 8; }
}

/* About: one wide sea excursion followed by two balanced cards. */
.about-destinations .tiles--4 .tile--wide { grid-column: 1 / -1; min-height: clamp(260px,28vw,390px); aspect-ratio: 16 / 6; }
@media (min-width: 900px) { .about-destinations .tiles--4 .tile:not(.tile--wide) { grid-column: span 3; } }
@media (max-width: 899px) { .about-destinations .tiles--4 .tile--wide { min-height: 0; aspect-ratio: 16 / 9; } }

/* Header, 24 November: Kamchatka local time next to a full-size «Связаться» button. */
.head__right { position: relative; height: 100%; box-sizing: border-box; padding-top: 0; flex-direction: column; align-items: flex-end; justify-content: center; gap: 3px; }
.head__time { display: inline-flex; align-items: baseline; gap: 5px; font-size: 14px; line-height: 16px; font-weight: 500; white-space: nowrap; color: inherit; }
.head__time b { font-weight: 500; font-variant-numeric: tabular-nums; }
body .head .head__call.btn,
body .head .head__call.btn.btn--sm.btn--compact { min-height: 40px; padding-block: 0; padding-inline: 16px; gap: 9px; font-size: 14px; }
body .head .head__call.btn .i { width: 16px; height: 16px; }
/* Tablets keep a slightly taller bar than phones. */
@media (min-width: 900px) and (max-width: 1200px) {
  :root { --head: 64px; }
  body .head, body .head:not(.is-stuck), body .head.is-stuck { --head: 64px; height: 64px; }
}
/* Burger header below 1200px: one line — local time, «Связаться», burger. */
@media (max-width: 1200px) {
  .head__right { flex-direction: row; align-items: center; gap: 12px; }
  .head__time { font-size: 12.5px; line-height: 1.2; font-weight: 600; }
  .head__time-label { font-weight: 500; }
  body .head .head__call.btn,
  body .head .head__call.btn.btn--sm.btn--compact { min-height: 36px; padding-inline: 14px; gap: 8px; font-size: 13px; }
  body .head .head__call.btn .i { width: 15px; height: 15px; }
  body .head .burger { width: 42px; height: 42px; }
}
/* Phones from 650px and down: the time takes two lines — the label above the clock. */
@media (max-width: 650px) {
  body .head { padding-inline: 14px; gap: 8px; }
  body .head .head__logo { width: 116px; }
  .head__time { flex-direction: column; align-items: flex-end; gap: 0; font-size: 13px; line-height: 1.15; }
  .head__time-label { font-size: 10.5px; line-height: 1.2; }
  body .head .head__call.btn,
  body .head .head__call.btn,
  body .head .head__call.btn.btn--sm.btn--compact { min-height: 40px; padding-inline: 13px; gap: 7px; font-size: 12.5px; }
}
@media (max-width: 420px) {
  body .head { padding-inline: 12px; }
  body .head .head__logo { width: 92px; }
  .head__time { font-size: 12.5px; }
  body .head .head__call.btn,
  body .head .head__call.btn.btn--sm.btn--compact { padding-inline: 9px; gap: 5px; font-size: 11.5px; }
  body .head .head__call.btn .i { width: 13px; height: 13px; }
  body .head .burger { width: 38px; height: 38px; }
}
/* Tiny phones keep the time and the burger only: the contact button is dropped. */
@media (max-width: 339px) {
  body .head .head__call.btn { display: none; }
}
/* Explicit header mode switch: tabs from 1201px, burger up to 1200px. */
@media (max-width: 1200px) {
  body .head .head__nav { display: none; }
  body .head .burger { display: grid; }
}
@media (min-width: 1201px) {
  body .head .head__nav { display: block; }
  body .head .burger { display: none; }
}
/* Desktop and small laptops: the local time sits to the left of the button in one line. */
@media (min-width: 1201px) {
  body .head { gap: clamp(20px, 1.4vw, 28px); }
  body .head .head__nav { flex: 0 1 auto; }
  body .head .head__nav > ul { justify-content: center; gap: clamp(8px, .7vw, 16px); }
  .head__right { flex-direction: row; align-items: center; gap: 18px; margin-left: clamp(24px, 3.2vw, 52px); }
  .head__time { font-size: 14px; font-weight: 600; }
  .head__time-label { font-weight: 500; }
}
/* 1201–1359px: the tab row only just fits — tighter gaps keep the first tab clear of the logo. */
@media (min-width: 1201px) and (max-width: 1359px) {
  body .head { gap: clamp(14px, 1.3vw, 20px); padding-inline: 16px; }
  body .head .head__logo { width: 116px; }
  body .head .head__nav > ul { gap: 7px; }
  .head__right { flex: none; gap: 14px; }
  .head__time { font-size: 13px; }
  body .head .head__call.btn,
  body .head .head__call.btn.btn--sm.btn--compact { min-height: 36px; padding-inline: 12px; gap: 7px; font-size: 12.5px; }
  body .head .head__call.btn .i { width: 15px; height: 15px; }
}
/* 1360–1599px: the tab row is wider than its box here and used to overlap the logo. */
@media (min-width: 1360px) and (max-width: 1599px) {
  body .head .head__logo { width: 146px; }
  body .head .head__nav a,
  body .head .head__nav summary { font-size: 12px; }
  body .head .head__nav > ul { gap: 8px; }
}
/* Tablet (701-899px): keep the two tour cards in one row instead of stacking full width. */
@media (min-width: 701px) and (max-width: 899px) {
  .home .sec:has(> .wrap > .sec__head + .prows) > .wrap > .prows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; border: 0; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow { display: flex; flex-direction: column; align-items: stretch; min-width: 0; height: 100%; gap: 14px; padding: 0; border: 0; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow__img { width: 100%; aspect-ratio: 4 / 3; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow__main { gap: 9px; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow h3 { font-size: 20px; line-height: 1.2; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow__main > p:last-child { font-size: 14px; line-height: 1.45; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow__list { font-size: 13px; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow__side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow__price { font-size: 19px; }
  .home .sec:has(> .wrap > .sec__head + .prows) .prow .btn { white-space: normal; }
}/* Header alignment and navigation spacing. */
@media (min-width: 1201px) and (max-width: 1359px) {
  body .head .head__nav { display: none; }
  body .head .burger { display: grid; }
  body .head .head__right { margin-left: auto; }
}
@media (min-width: 1360px) {
  body .head { gap: 16px; }
  body .head .head__nav { flex: 1 1 auto; min-width: 0; }
  body .head .head__nav > ul { align-items: center; justify-content: center; gap: clamp(12px, 1vw, 22px); }
  body .head .head__nav > ul > li { display: flex; align-items: center; flex: none; }
  body .head .head__nav > ul > li > details > summary { min-height: 44px; display: flex; align-items: center; }
  body .head .head__right { flex: none; margin-left: 0; gap: 14px; }
}
body .head .head__nav li > details > ul { min-width: 240px; padding: 10px 20px; }
body .head .head__nav li > details > ul a { min-height: 46px; font-size: 16px; line-height: 1.3; }
/* Restore the full-screen menu at widths where the navigation collapses. */
@media (min-width: 900px) and (max-width: 1359px) {
  body .menu { display: flex; }
}
/* Keep the local time on the same baseline and at the contact button's text size. */
@media (max-width: 650px) {
  body .head .head__time { flex-direction: row; align-items: center; gap: 4px; font-size: 12.5px; line-height: 1.2; font-weight: 500; }
  body .head .head__time-label { font-size: inherit; line-height: inherit; font-weight: inherit; }
}
@media (max-width: 460px) {
  body .head .head__time { font-size: 11.5px; }
  body .head .head__time-label { display: none; }
}
@media (min-width: 421px) and (max-width: 460px) {
  body .head .head__time { font-size: 12.5px; }
}
