/* Network shell 20261127-funnel1: compact header + funnel presentation + bottom clearance */
:root{
  --ns-header-h:54px;
  --ns-bar-clearance:84px;
  --ns-green:#183e33;
}

/* Always leave room for the fixed CRM contact bar */
html{scroll-padding-bottom:var(--ns-bar-clearance)}
body{
  padding-bottom:var(--ns-bar-clearance)!important;
  box-sizing:border-box;
}

/* ===== Compact header (all pages, mobile-first) ===== */
@media (max-width:800px){
  /* Beat catalog/mx-ready specificity (body.network-catalog header .catalog-brand …) */
  html body.network-catalog.mx-ready :is(.site-header,header.header,body>header,header),
  html body.network-catalog :is(.site-header,header.header,body>header,header),
  html body.mx-ready :is(.site-header,header.header,body>header,header),
  html body :is(.site-header,header.header,body>header){
    position:sticky!important;
    top:0!important;
    z-index:40!important;
    min-height:var(--ns-header-h)!important;
    height:auto!important;
    max-height:none!important;
    padding:0!important;
    background:#fff!important;
    border-bottom:1px solid #e2ebe5!important;
  }

  html body.network-catalog.mx-ready :is(.site-header,header) :is(.masthead,.mast,.header-main,.header-row,.header-inner,.topline,.wrap.mast,.mx-header-row),
  html body :is(.site-header,header) :is(.masthead,.mast,.header-main,.header-row,.header-inner,.topline,.wrap.mast,.mx-header-row){
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    grid-template-columns:none!important;
    min-height:var(--ns-header-h)!important;
    height:var(--ns-header-h)!important;
    max-height:var(--ns-header-h)!important;
    padding:0 12px!important;
    flex-wrap:nowrap!important;
  }

  /* Brand: one compact line — hide location subtitle, no mid-word cut if possible */
  html body.network-catalog.mx-ready :is(.site-header,header) :is(.brand,.catalog-brand,.rs-brand),
  html body.network-catalog :is(.site-header,header) :is(.brand,.catalog-brand,.rs-brand),
  html body :is(.site-header,header) :is(.brand,.catalog-brand,.rs-brand){
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    grid-column:auto!important;
    min-width:0!important;
    max-width:calc(100% - 108px)!important;
    font:600 15px/1.2 Arial,Helvetica,sans-serif!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body.network-catalog.mx-ready :is(.site-header,header) :is(.brand,.catalog-brand) :is(h1,h2,.brand-title),
  html body :is(.site-header,header) :is(.brand,.catalog-brand) :is(h1,h2,.brand-title){
    display:block!important;
    margin:0!important;
    font:600 15px/1.2 Arial,Helvetica,sans-serif!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:100%!important;
  }
  html body.network-catalog.mx-ready :is(.site-header,header) :is(.brand small,.catalog-brand small,.header-info,.mobile-contact-row),
  html body.network-catalog :is(.site-header,header) :is(.brand small,.catalog-brand small,.header-info,.mobile-contact-row),
  html body :is(.site-header,header) :is(.brand small,.catalog-brand small,.header-info,.mobile-contact-row){
    display:none!important;
  }

  /* Right cluster: phone icon 40x40 + menu 36–40 */
  html body :is(.site-header,header) :is(.top-actions,.header-actions,.rs-actions){
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    flex:none!important;
    margin:0!important;
  }
  html body :is(.site-header,header) :is(.header-book,.btn.header-book){
    display:none!important;
  }
  html body.network-catalog :is(.site-header,header) a.phone,
  html body :is(.site-header,header) a.phone,
  html body :is(.site-header,header) a[href^="tel:"].phone,
  html body :is(.site-header,header) .mast .phone{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    padding:0!important;
    border:1px solid #c5d5cc!important;
    border-radius:12px!important;
    background:#fff!important;
    font-size:0!important;
    line-height:0!important;
    color:var(--ns-green)!important;
    text-decoration:none!important;
    overflow:hidden!important;
  }
  html body :is(.site-header,header) a.phone small,
  html body :is(.site-header,header) .mast .phone small{
    display:none!important;
  }
  html body :is(.site-header,header) a.phone::before,
  html body :is(.site-header,header) .mast a[href^="tel:"]::before{
    content:"";
    width:18px;height:18px;display:block;
    background:currentColor;
    -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M7.5 5.5c.4-1 1.5-1.4 2.4-1l1.6.7c.8.3 1.1 1.2.8 2l-.5 1.3a1.4 1.4 0 0 0 .3 1.5l3.4 3.4c.4.4 1 .5 1.5.3l1.3-.5c.8-.3 1.7 0 2 .8l.7 1.6c.4.9 0 2-1 2.4-2.2.9-5.1.2-8-2.7-2.9-2.9-3.6-5.8-2.7-8Z' stroke='black' stroke-width='1.8' stroke-linejoin='round'/></svg>") center/contain no-repeat;
            mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M7.5 5.5c.4-1 1.5-1.4 2.4-1l1.6.7c.8.3 1.1 1.2.8 2l-.5 1.3a1.4 1.4 0 0 0 .3 1.5l3.4 3.4c.4.4 1 .5 1.5.3l1.3-.5c.8-.3 1.7 0 2 .8l.7 1.6c.4.9 0 2-1 2.4-2.2.9-5.1.2-8-2.7-2.9-2.9-3.6-5.8-2.7-8Z' stroke='black' stroke-width='1.8' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  }

  html body :is(.site-header,header) :is(.menu-toggle,.menu,.mx-menu-toggle){
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    height:36px!important;
    min-height:36px!important;
    max-height:40px!important;
    padding:0 12px!important;
    border:1px solid #c5d5cc!important;
    border-radius:10px!important;
    background:#fff!important;
    color:var(--ns-green)!important;
    font:600 14px/1 Arial,sans-serif!important;
    white-space:nowrap!important;
  }

  /* Hide secondary nav rows that inflate the header */
  html body :is(.site-header,header) :is(.section-nav,.simple-nav,.nav.simple-nav):not(.mx-open){
    display:none!important;
  }
  html body.mx-ready .mx-nav.mx-open{
    display:grid!important;
  }

  /* Call bar: equal Позвонить / Заказать звонок */
  html body.mx-ready .mx-mobile-bar,
  html body.ns-call-bar-ready .mx-mobile-bar{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
    align-items:center!important;
    z-index:9990!important;
  }
  html body.mx-ready .mx-mobile-bar .ns-call-btn,
  html body.ns-call-bar-ready .mx-mobile-bar .ns-call-btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    padding:0 10px!important;
    font:600 15px/1 Arial,Helvetica,sans-serif!important;
    white-space:nowrap!important;
    border-radius:12px!important;
    box-sizing:border-box!important;
  }
  html body.mx-ready .mx-mobile-bar .ns-call-phone,
  html body.ns-call-bar-ready .mx-mobile-bar .ns-call-phone{
    background:#183e33!important;
    color:#fff!important;
    border:0!important;
  }
  html body.mx-ready .mx-mobile-bar .ns-call-back,
  html body.ns-call-bar-ready .mx-mobile-bar .ns-call-back{
    background:#fff!important;
    color:#183e33!important;
    border:1px solid #c5d5cc!important;
  }

  /* Hide floating manager tip/launcher when bottom call bar is present */
  html body.mx-bar-ready .sa-launcher,
  html body.ns-call-bar-ready .sa-launcher,
  html body.mx-bar-ready .sa-launcher-tip{
    display:none!important;
  }

  /* Quiet-home: break nested .wrap so photo/copy use full mobile width */
  html body.quiet-home .nature-home > .wrap{
    max-width:none!important;
    width:100%!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  html body.quiet-home .quiet-hero,
  html body.quiet-home .quiet-hero > .wrap.quiet-hero-grid,
  html body.quiet-home .quiet-hero-grid{
    display:flex!important;
    flex-direction:column!important;
    max-width:none!important;
    width:100%!important;
    margin:0!important;
    padding-left:0!important;
    padding-right:0!important;
    gap:0!important;
  }
  html body.quiet-home .quiet-hero-photo{
    order:1!important;
    width:100%!important;
    max-width:none!important;
  }
  html body.quiet-home .quiet-hero-photo a,
  html body.quiet-home .quiet-hero-photo img{
    width:100%!important;
    max-width:none!important;
    border-radius:0!important;
  }
  html body.quiet-home .quiet-hero-copy{
    order:2!important;
    max-width:none!important;
    width:100%!important;
    padding:12px 16px 8px!important;
    box-sizing:border-box!important;
  }
  html body.quiet-home .nature-home > .wrap > :not(.quiet-hero){
    padding-left:16px!important;
    padding-right:16px!important;
    box-sizing:border-box!important;
  }
  html body.quiet-home .quiet-perks{
    display:flex!important;
    flex-wrap:wrap!important;
    flex-direction:row!important;
    gap:6px!important;
    margin:8px 0 12px!important;
    width:100%!important;
  }
  html body.quiet-home .quiet-perks li{
    display:inline-flex!important;
    align-items:center!important;
    flex:0 1 auto!important;
    width:auto!important;
    max-width:100%!important;
    font-size:12px!important;
    padding:5px 10px!important;
    line-height:1.25!important;
    list-style:none!important;
  }
  html body.quiet-home .quiet-hero-copy h1{
    font-size:clamp(20px,5.2vw,26px)!important;
    margin:0 0 8px!important;
  }
  html body.quiet-home .ns-inline-cta{
    width:100%!important;
    justify-content:center!important;
  }

  /* Keep content clear of the 60px call bar */
  html body.mx-ready,
  html body.ns-call-bar-ready,
  html body.mx-bar-ready{
    padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important;
  }
}

/* ===== Funnel presentation hero (homepages) ===== */
.ns-hero{
  position:relative;
  margin:0 0 28px;
  border-radius:0;
  overflow:hidden;
  background:#173e31;
  aspect-ratio:16/10;
  max-height:min(62vh,520px);
}
.ns-hero > img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
}
.ns-hero-shade{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(12,36,29,.28) 0%,rgba(12,36,29,.72) 100%);
}
.ns-hero-copy{
  position:relative;z-index:1;
  display:flex;flex-direction:column;justify-content:flex-end;
  gap:14px;
  height:100%;
  padding:24px 16px 28px;
  color:#fff;
  box-sizing:border-box;
}
.ns-hero-copy h1{
  margin:0;
  font:600 clamp(22px,5.2vw,30px)/1.25 Arial,Helvetica,sans-serif!important;
  letter-spacing:-.02em;
  color:#fff!important;
  max-width:18em;
}
.ns-badges{
  display:flex;flex-wrap:wrap;gap:8px;
  list-style:none;margin:0;padding:0;
}
.ns-badges li{
  display:inline-flex;align-items:center;
  min-height:32px;padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.35);
  font:600 13px/1.2 Arial,sans-serif;
  color:#fff;
  white-space:nowrap;
}
.ns-hero-cta{
  display:inline-flex;align-items:center;justify-content:center;
  align-self:flex-start;
  min-height:48px;padding:12px 18px;
  border-radius:12px;
  background:#fff;color:var(--ns-green);
  font:700 16px/1 Arial,sans-serif;
  text-decoration:none!important;
}
.ns-hero-cta:focus-visible{outline:3px solid #b38644;outline-offset:3px}

/* Quiet-home: kill early booking form in hero; keep photo + CTA */
body.quiet-home .quiet-form,
body.quiet-home .quiet-guests{
  display:none!important;
}
body.quiet-home .skip,
body.quiet-home .skip-link,
body.quiet-home a.skip{
  position:absolute!important;
  left:-10000px!important;
  top:auto!important;
  width:1px!important;height:1px!important;
  overflow:hidden!important;
}
body.quiet-home .skip:focus,
body.quiet-home .skip-link:focus,
body.quiet-home a.skip:focus{
  left:12px!important;top:12px!important;width:auto!important;height:auto!important;
  z-index:100;padding:10px 12px;background:#fff;color:#183e33;
}
body.quiet-home .quiet-hero{
  padding:0!important;
  margin:0 0 24px!important;
}
body.quiet-home .quiet-hero-grid{
  display:flex!important;
  flex-direction:column!important;
  position:relative;
  min-height:0;
  gap:0!important;
}
body.quiet-home .quiet-hero-photo{
  margin:0!important;
  display:block!important;
  order:1;
}
body.quiet-home .quiet-hero-photo a,
body.quiet-home .quiet-hero-photo img{
  display:block;width:100%;height:auto;
  object-fit:cover;
  border-radius:0!important;
}
@media (max-width:800px){
  body.quiet-home .quiet-hero-photo a,
  body.quiet-home .quiet-hero-photo img{
    aspect-ratio:16/10;
    max-height:min(52vh,420px);
  }
}
body.quiet-home .quiet-hero-copy{
  position:relative!important;
  inset:auto!important;
  order:2;
  z-index:2;
  padding:16px 16px 8px!important;
  background:#fff!important;
  color:#1a2e28!important;
}
body.quiet-home .quiet-hero-copy h1{
  color:#1a2e28!important;
  font-size:clamp(22px,5vw,28px)!important;
  margin:0 0 12px!important;
  line-height:1.25!important;
}
body.quiet-home .quiet-lead{display:none!important}
body.quiet-home .quiet-perks{
  display:flex!important;flex-wrap:wrap;gap:8px;
  margin:0 0 14px!important;padding:0;list-style:none;
}
body.quiet-home .quiet-perks li{
  color:#183e33!important;
  background:#eef5f0!important;
  border:1px solid #c5d5cc!important;
  border-radius:999px;
  padding:6px 12px;
  font-size:13px!important;
}
body.quiet-home .quiet-perks li::before{display:none!important}
body.quiet-home .ns-inline-cta{
  display:inline-flex!important;
  align-items:center;justify-content:center;
  min-height:48px;padding:12px 18px;
  border-radius:12px;background:#183e33!important;color:#fff!important;
  font:700 16px/1 Arial,sans-serif;text-decoration:none!important;
  box-shadow:none!important;
}

/* Trip form only after warm-up: keep readable when moved */
#trip-selection,
.network-trip-selection,
#ns-trip-form,
.ns-trip-later{
  scroll-margin-top:72px;
}

/* Hide outbound source / competitor links that bounce visitors away */
a.nc-source,
.np-source,
p.np-source,
a[href*="alean.ru"],
a[href*="Открыть прайс источника"]{
  display:none!important;
}

@media (min-width:801px){
  /* Desktop: no sticky contact bar clearance */
  body{padding-bottom:0!important}
  html.sa-has-compact-bar body{padding-bottom:0!important}

  /* Phone block: hours ABOVE number (not inline to the right) */
  body :is(.site-header,header) a.phone,
  body :is(.site-header,header) a[href^="tel:"].phone,
  body :is(.site-header,header) .masthead .phone,
  body :is(.site-header,header) .top-actions .phone{
    display:flex!important;
    flex-direction:column-reverse!important;
    align-items:flex-end!important;
    justify-content:center!important;
    gap:2px!important;
    width:auto!important;
    height:auto!important;
    min-width:0!important;
    min-height:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    font-size:20px!important;
    font-weight:700!important;
    line-height:1.15!important;
    white-space:normal!important;
    color:inherit!important;
    overflow:visible!important;
  }
  body :is(.site-header,header) a.phone::before,
  body :is(.site-header,header) .mast a[href^="tel:"]::before{
    content:none!important;
    display:none!important;
  }
  body :is(.site-header,header) a.phone small,
  body :is(.site-header,header) .masthead .phone small,
  body :is(.site-header,header) .top-actions .phone small{
    display:block!important;
    font-size:11px!important;
    font-weight:400!important;
    line-height:1.25!important;
    color:#6a7a72!important;
    text-align:right!important;
    white-space:nowrap!important;
    margin:0!important;
    max-width:none!important;
  }

  body.quiet-home .site-header .brand-title{font-size:18px!important;line-height:1.2!important}
  body.quiet-home .site-header .catalog-brand small{font-size:10px!important;margin-top:2px!important;color:#6a7a72!important}
  body.quiet-home .masthead{min-height:56px!important;height:56px!important}
  body.quiet-home .section-nav{min-height:44px!important}

  /* Catalog CSS caps main at 1240px — kill that for quiet-home hero */
  body.quiet-home main,
  body.quiet-home.network-catalog main,
  body.network-catalog.quiet-home main{
    max-width:none!important;
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  /* Break hero out of .nature-home > .wrap column */
  body.quiet-home .nature-home{
    max-width:none!important;
    width:100%!important;
  }
  body.quiet-home .nature-home > .wrap{
    max-width:none!important;
    width:100%!important;
    padding-left:0!important;
    padding-right:0!important;
    padding-top:0!important;
  }
  body.quiet-home .nature-home > .wrap > :not(.quiet-hero){
    max-width:1280px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:5%!important;
    padding-right:5%!important;
    box-sizing:border-box!important;
  }

  /* Full-bleed presentation hero — edge to edge (escape any parent cap) */
  body.quiet-home .quiet-hero{
    margin:0 0 48px!important;
    padding:0!important;
    width:100vw!important;
    max-width:100vw!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:calc(50% - 50vw)!important;
    position:relative!important;
    left:0!important;
    right:0!important;
    overflow:hidden!important;
  }
  body.quiet-home .quiet-hero > .wrap.quiet-hero-grid,
  body.quiet-home .quiet-hero-grid{
    display:block!important;
    position:relative!important;
    max-width:none!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    min-height:min(68vh,620px)!important;
    height:min(68vh,620px)!important;
  }
  body.quiet-home .quiet-hero-photo{
    order:0!important;
    position:absolute!important;
    inset:0!important;
    margin:0!important;
    width:100%!important;
    height:100%!important;
    max-height:none!important;
  }
  body.quiet-home .quiet-hero-photo a{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    border-radius:0!important;
    overflow:hidden!important;
  }
  body.quiet-home .quiet-hero-photo img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    object-fit:cover!important;
    object-position:center!important;
    border-radius:0!important;
  }
  /* avoid 100vw scrollbar gutter */
  body.quiet-home{overflow-x:clip}
  body.quiet-home .quiet-hero{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.quiet-home .quiet-hero-photo::after{
    content:"";
    position:absolute;inset:0;
    z-index:1;
    background:linear-gradient(90deg,rgba(12,36,29,.78) 0%,rgba(12,36,29,.48) 42%,rgba(12,36,29,.18) 100%);
    pointer-events:none;
  }
  body.quiet-home .quiet-hero-copy{
    position:relative!important;
    z-index:2!important;
    order:0!important;
    max-width:1280px;
    width:100%;
    margin:0 auto;
    padding:80px 5% 56px!important;
    min-height:min(68vh,620px)!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-end!important;
    gap:14px;
    background:transparent!important;
    color:#fff!important;
    box-sizing:border-box!important;
  }
  body.quiet-home .quiet-hero-copy h1{
    color:#fff!important;
    font-size:clamp(36px,4.2vw,52px)!important;
    line-height:1.15!important;
    max-width:14em;
    margin:0!important;
  }
  body.quiet-home .quiet-hero-copy .quiet-lead{
    color:rgba(255,255,255,.88)!important;
    max-width:36em;
    margin:0!important;
  }
  body.quiet-home .quiet-perks{
    margin:4px 0 8px!important;
  }
  body.quiet-home .quiet-perks li{
    color:#fff!important;
    background:rgba(255,255,255,.16)!important;
    border-color:rgba(255,255,255,.35)!important;
  }
  body.quiet-home .ns-inline-cta{
    background:#fff!important;
    color:#183e33!important;
    align-self:flex-start;
  }
  /* About CTA should continue warm-up, not hard-sell dates */
  body.quiet-home .quiet-about .quiet-btn[href="#podbor"]{
    display:none!important;
  }
}
