/* Elita Tour — the site "shell", shared by every page and loaded AFTER the page styles (12.10.2026):
   1) header dropdown (Information → Bus tours),
   2) burger menu (the button and the mobile items are added by assets/js/site.js),
   3) shared responsive rules: tablet ≤1279px, mobile ≤767px. Page-specific media queries live in each page's own CSS.
   Every media query is screen-only: when printing, Chrome evaluates them against the paper width and the desktop PDF came out mobile */

/* ===== 1. Submenu ===== */
.hdr nav{position:relative}
.hdr nav .has-sub{position:relative;display:flex;align-items:center}
.hdr nav .has-sub > a{padding-right:28px;position:relative}
.hdr nav .has-sub > a::after{content:"";position:absolute;right:12px;top:50%;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-65%) rotate(45deg);opacity:.6}
.hdr nav .sub{position:absolute;left:-8px;top:calc(100% + 16px);min-width:400px;background:#fff;border-radius:22px;padding:18px 10px 10px;box-shadow:0 20px 50px rgba(var(--ink-rgb),.18);display:none;z-index:20}
.hdr nav .sub::before{content:"";position:absolute;left:0;right:0;top:-18px;height:18px}
.hdr nav .sub::after{content:"";position:absolute;left:36px;top:-8px;width:16px;height:16px;background:#fff;transform:rotate(45deg);border-radius:3px}
.hdr nav .has-sub:hover .sub,.hdr nav .has-sub:focus-within .sub,.hdr nav .has-sub.open .sub{display:block}
.hdr nav .sub .grp{display:block;padding:0 14px 8px;font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--orange-deep)}
.hdr nav .sub a{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;font-weight:800;font-size:14px;line-height:1.3;text-transform:none}
.hdr nav .sub a::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--sky)}
.hdr nav .sub a:hover{background:var(--sand)}
.hdr nav .sub a.all{margin-top:6px;border-top:2px dashed var(--sand);border-radius:0 0 14px 14px;color:var(--orange-deep);font-size:13px;letter-spacing:.06em;text-transform:uppercase}
.hdr nav .sub a.all::before{display:none}
.hdr nav .sub-toggle{display:none}

/* ===== 2. Burger (the button and the mobile items are created by the script) ===== */
.hdr .burger{display:none;width:52px;height:52px;border-radius:50%;background:#fff;border:0;box-shadow:0 8px 24px rgba(var(--ink-rgb),.14);position:relative;flex:none;margin-left:auto}
.hdr .burger i,.hdr .burger::before,.hdr .burger::after{content:"";position:absolute;left:16px;width:20px;height:2.5px;border-radius:2px;background:var(--cocoa);transition:.25s}
.hdr .burger::before{top:18px}.hdr .burger i{top:25px}.hdr .burger::after{top:32px}
.hdr.open .burger::before{top:25px;transform:rotate(45deg)}.hdr.open .burger i{opacity:0}.hdr.open .burger::after{top:25px;transform:rotate(-45deg)}
.hdr nav .m-only{display:none}

/* strips: grab cursor when there is something to scroll */
.panels.many{cursor:grab}
@media screen and (max-width:1023px){.envs{cursor:grab}}
@media screen and (max-width:767px){.tickets{cursor:grab}}

/* ===== 3. Responsive: tablet ===== */
@media screen and (max-width:1279px){
  body{min-width:0}
  .wrap{width:auto;margin:0 32px}
  .hdr{top:16px}
  .hdr .wrap{gap:10px}
  .hdr .logo img{height:44px}
  .brand small{display:none}
  .brand b{font-size:17px}
  .hdr nav a{padding:9px 11px;font-size:14px}
  .hdr .pill{display:none}
  .hdr .phone{padding:11px 14px;font-size:14px}
  .band{padding:64px 0}
  .band h2,.sec h2{font-size:40px}
  .band .head,.sec .head{flex-wrap:wrap;gap:20px}
  .phero{padding:130px 0 60px}
  .phero h1{font-size:50px}
  .phero.photo{min-height:500px;padding-top:150px}
  .tickets.four{grid-template-columns:repeat(2,1fr)}
  .tickets.three{grid-template-columns:repeat(2,1fr)}
  .cta{padding:64px 0}
  .cta h2{font-size:38px}
  footer .wrap{grid-template-columns:1fr 1fr;gap:28px}
  footer .wrap > div:first-child{grid-column:1/-1}
}
/* portrait tablet and smaller: burger instead of the menu, one-column form */
@media screen and (max-width:1023px){
  .hdr .burger{display:block;margin-left:0}
  .hdr .phone{margin-left:auto}
  .hdr nav{display:none;position:absolute;left:0;right:0;top:calc(100% + 12px);flex-direction:column;gap:2px;padding:12px;border-radius:24px;box-shadow:0 24px 60px rgba(var(--ink-rgb),.25)}
  .hdr.open nav{display:flex}
  .hdr nav a{padding:13px 16px;font-size:16px;border-radius:14px}
  .hdr nav .has-sub{display:block}
  .hdr nav .has-sub > a{display:block;padding-right:56px}
  .hdr nav .has-sub > a::after{display:none}
  .hdr nav .sub-toggle{display:grid;place-items:center;position:absolute;right:6px;top:4px;width:44px;height:44px;border:0;background:var(--cream);border-radius:12px}
  .hdr nav .sub-toggle::before{content:"";width:8px;height:8px;border-right:2px solid var(--cocoa);border-bottom:2px solid var(--cocoa);transform:translateY(-2px) rotate(45deg);transition:.25s}
  .hdr nav .has-sub.open .sub-toggle::before{transform:translateY(2px) rotate(-135deg)}
  .hdr nav .has-sub:hover .sub,.hdr nav .has-sub:focus-within .sub{display:none}
  .hdr nav .has-sub.open .sub{display:block}
  .hdr nav .sub{position:static;min-width:0;box-shadow:none;background:var(--cream);padding:10px 6px;margin:4px 0 6px;border-radius:16px}
  .hdr nav .sub::before,.hdr nav .sub::after{display:none}
  .hdr nav .m-only{display:flex;align-items:center;justify-content:center;margin-top:6px}
  .hdr nav .m-only.phone-l{background:var(--sky-pale);font-weight:900}
  .hdr nav .m-only.cta-l{background:var(--orange);color:#fff;box-shadow:0 4px 0 var(--orange-deep)}
  .cta .wrap{grid-template-columns:1fr;gap:32px}
  .cta p{max-width:none}
}
/* ===== 4. Responsive: mobile ===== */
@media screen and (max-width:767px){
  body{font-size:16px}
  .wrap{margin:0 16px}
  .hdr{top:12px}
  .hdr .logo{padding:5px 12px 5px 8px}
  .hdr .logo img{height:38px}
  .brand{display:none}
  .hdr .phone{display:none}
  .hdr .burger{width:48px;height:48px;margin-left:auto} /* the phone is hidden, the burger holds the right edge on its own */
  .hdr .burger i,.hdr .burger::before,.hdr .burger::after{left:14px}
  .hdr .burger::before{top:16px}.hdr .burger i{top:23px}.hdr .burger::after{top:30px}
  .hdr.open .burger::before,.hdr.open .burger::after{top:23px}
  /* open menu covers the viewport (client, 29.10.2026); the logo and the burger stay on top of it, the page behind does not scroll (body.menu-open is set by site.js) */
  .hdr.open{z-index:95} /* above the floating helper (90), below the photo popup (100) */
  .hdr.open .logo,.hdr.open .burger{position:relative;z-index:2}
  .hdr.open nav{position:fixed;inset:0;z-index:1;top:0;border-radius:0;box-shadow:none;background:#fff;padding:76px 16px 24px;gap:4px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .admin-bar .hdr.open nav{padding-top:122px}
  body.menu-open{overflow:hidden}
  .pill{height:48px;padding:0 20px;font-size:15px}
  .band{padding:48px 0}
  .band h2,.sec h2{font-size:30px}
  .band .head p,.sec .head p{font-size:16px}
  .sec{padding:48px 0}
  .phero{padding:100px 0 44px}
  .phero h1{font-size:34px}
  .phero .lead{font-size:16px}
  .phero .wrap{grid-template-columns:1fr;gap:24px}
  .phero.photo{min-height:440px;padding-top:120px}
  .crumbs{flex-wrap:wrap;font-size:12px}
  .sticker{display:none}
  /* programme cards: a swipe strip (like the categories) */
  /* scroll-padding: after a swipe the card stops 16px from the edge, not flush with it;
     ::after instead of padding-right: Safari ignores the trailing padding of a scroll container, so the last slide would stick to the edge */
  .tickets,.tickets.four,.tickets.three{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:16px;margin:0 -16px;padding:4px 0 14px 16px;scrollbar-width:none}
  .tickets::after{content:"";flex:0 0 2px}
  .tickets::-webkit-scrollbar{display:none}
  .tickets .poster{flex:0 0 78vw;max-width:340px;scroll-snap-align:start;height:400px}
  .poster.rv,.poster.rv.in{transition-delay:0s}
  .card{padding:20px}
  .cta{padding:48px 0}
  .cta h2{font-size:30px}
  .cta p{font-size:16px}
  .cta form{padding:16px;border-radius:20px}
  .cta .two,.cta .three{grid-template-columns:1fr}
  .ftypes{gap:6px}
  .ftype{padding:10px 8px;gap:2px}
  .ftype strong{font-size:12px}
  .ftype span{display:none}
  .ftype svg{width:20px;height:20px;margin:0}
  .cta .contacts a{font-size:14px}
  footer{padding:40px 0 20px}
  footer .wrap{grid-template-columns:1fr;gap:22px}
  footer .legal{flex-direction:column;gap:6px}
}

/* ===== 5. Floating assistant (14.10.2026, reworked 04.11.2026): the mascot photo in a round button at the bottom right; a click opens a card with a video on top
   (plays once with sound, mute and ▶ buttons over it), the request and "Pick a tour" buttons, the two-step picker and the messengers.
   Markup is built by assets/js/site.js. The photo has a grey background, so the plate under it is the same grey (#cbc9c7) and the head is framed with object-position ===== */
.helper{position:fixed;right:24px;bottom:24px;z-index:90;display:flex;flex-direction:column;align-items:flex-end;gap:12px;font-family:var(--body)}
.hp-btn{width:76px;height:76px;border-radius:50%;border:4px solid #fff;padding:0;overflow:hidden;background:var(--mascot-grey);box-shadow:0 12px 30px rgba(var(--ink-rgb),.28);cursor:pointer;position:relative;transition:transform .2s}
.hp-btn img{display:block;width:100%;height:100%;object-fit:cover;object-position:54% 18%;transform:scale(.86) translateY(3%)} /* slightly scaled down so the cap is not clipped by the circle */
.hp-btn:hover{transform:scale(1.06)}
.hp-btn::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:3px solid var(--orange);opacity:0;animation:hp-pulse 2.4s ease-out infinite}
.helper.open .hp-btn::after{animation:none}
@keyframes hp-pulse{0%{transform:scale(.9);opacity:.8}70%{transform:scale(1.35);opacity:0}100%{opacity:0}}
.hp-hi{position:relative;background:#fff;color:var(--cocoa);border-radius:16px 16px 4px 16px;padding:12px 40px 12px 16px;font-weight:800;font-size:15px;box-shadow:0 12px 30px rgba(var(--ink-rgb),.18);max-width:260px;animation:hp-slide .35s cubic-bezier(.2,.7,.2,1)}
@keyframes hp-slide{from{transform:translateY(10px)}to{transform:none}} /* no opacity: a headless screenshot freezes a timer-started animation on its first frame */
.hp-hi button{position:absolute;right:8px;top:8px;width:26px;height:26px;border-radius:50%;border:0;background:var(--cream);color:var(--cocoa-2);font-size:16px;line-height:1;cursor:pointer}
.hp-hi button:hover{background:var(--sand)}
.hp{position:relative;width:360px;max-height:calc(100vh - 120px);overflow:auto;overscroll-behavior:contain;background:#fff;border-radius:24px;box-shadow:0 24px 60px rgba(var(--ink-rgb),.28);animation:hp-in .3s cubic-bezier(.2,.7,.2,1)}
@keyframes hp-in{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
.hp-video{position:relative;aspect-ratio:16/9;background:var(--mascot-grey)}
.hp-video video{display:block;width:100%;height:100%;object-fit:cover}
.hp-mute,.hp-play{position:absolute;border:0;border-radius:50%;background:rgba(var(--ink-rgb),.55);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(4px)}
.hp-mute:hover,.hp-play:hover{background:var(--orange)}
.hp-mute{right:12px;bottom:12px;width:40px;height:40px}
.hp-mute .ico{width:20px;height:20px}
.hp-play{left:50%;top:50%;width:64px;height:64px;transform:translate(-50%,-50%)}
.hp-play .ico{width:30px;height:30px;fill:currentColor;stroke:none;margin-left:3px}
.hp-head{background:var(--cocoa);color:#fff;padding:16px 20px 18px}
.hp-head b{font-family:var(--display);font-size:18px;display:block;line-height:1.2}
.hp-head p{margin:8px 0 0;font-size:14px;font-weight:600;color:#c9d3e6;line-height:1.45}
.hp-x{position:absolute;right:12px;top:12px;z-index:1;width:32px;height:32px;border-radius:50%;border:0;background:rgba(var(--ink-rgb),.55);color:#fff;font-size:18px;line-height:1;cursor:pointer}
.hp-x:hover{background:var(--orange)}
.hp-acts{display:grid;gap:8px;padding:18px 18px 10px}
.hp-acts .pill{height:50px;font-size:15px;width:100%;font-family:inherit;cursor:pointer}
.hp-msg{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:0 18px 14px}
.hp-msg a{display:flex;align-items:center;justify-content:center;gap:6px;height:44px;border-radius:14px;background:var(--cream);font-weight:800;font-size:14px;color:var(--cocoa)}
.hp-msg a:hover{background:var(--sand)}
.hp-msg svg{width:18px;height:18px}
.hp small{display:block;padding:0 18px 16px;font-size:12px;font-weight:700;color:var(--cocoa-2)}
.hp-pick{padding:14px 18px 18px}
.hp-pick-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;color:var(--cocoa-2)}
.hp-back{border:0;background:none;padding:4px 0;color:var(--orange);font:inherit;font-weight:800;font-size:14px;cursor:pointer}
.hp-back:hover{color:var(--orange-deep)}
.hp-pick h4{margin:10px 0 12px;font-family:var(--display);font-size:20px;line-height:1.2;color:var(--cocoa);outline:0}
.hp-opts{display:flex;flex-wrap:wrap;gap:8px}
.hp-opts button{min-height:44px;padding:8px 14px;border:0;border-radius:14px;background:var(--cream);font:inherit;font-weight:800;font-size:14px;color:var(--cocoa);cursor:pointer;text-align:left}
.hp-opts button:hover,.hp-opts button.on{background:var(--sand)}
@media screen and (max-width:767px){
  .helper{right:14px;bottom:14px;gap:10px}
  .hp-btn{width:62px;height:62px;border-width:3px}
  .hp-hi{font-size:14px;padding:10px 36px 10px 14px}
  /* the open card is a bottom sheet (client, 05.11.2026): .helper covers the viewport, so the card is never taller than the visible area (no 100vh guess —
     in Safari and the Telegram browser 100vh includes the collapsed toolbars) and scrolls inside itself; the round button hides under it, the page is locked by site.js */
  .helper.open{inset:0;padding:max(12px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));justify-content:flex-end;align-items:stretch;background:rgba(var(--ink-rgb),.35)}
  .helper.open .hp{width:auto;max-height:100%;-webkit-overflow-scrolling:touch}
  .helper.open .hp-btn{display:none}
  /* and the card is made shorter so step 1 (seven options) fits a phone without scrolling: a 160px video shown whole on the grey plate, tighter texts and chips */
  .hp-video{aspect-ratio:auto;height:160px}
  .hp-video video{object-fit:contain}
  .hp-mute{right:10px;bottom:10px;width:36px;height:36px}
  .hp-head{padding:12px 16px 14px}
  .hp-head b{font-size:17px}
  .hp-head p{margin-top:6px;font-size:13px}
  .hp-acts{padding:14px 16px 8px}
  .hp-acts .pill{height:46px}
  .hp-msg{padding:0 16px 12px}
  .hp small{padding:0 16px 14px}
  .hp-pick{padding:12px 16px 16px}
  .hp-pick h4{margin:8px 0 10px;font-size:18px}
  .hp-opts{gap:6px}
  .hp-opts button{min-height:40px;padding:6px 12px;font-size:13px}
}
@media (prefers-reduced-motion:reduce){.hp-btn::after,.hp,.hp-hi{animation:none}}
@media print{.helper{display:none}}

/* ===== shared responsive component rules (19.10.2026), moved here from the page -mq files so they keep loading after the desktop rules; page -mq files keep only their differences ===== */
@media screen and (max-width:1279px){
  .ask .wrap{grid-template-columns:1fr;gap:24px} /* was: about-mq.css, catalog-mq.css, info-mq.css */
  .ask h2{font-size:32px} /* was: about-mq.css, catalog-mq.css, info-mq.css */
  .search .pill{grid-column:1/-1;margin:6px 0 0} /* was: catalog-mq.css, home-mq.css */
}
@media screen and (max-width:767px){
  .ask{padding:48px 0} /* was: about-mq.css, catalog-mq.css, info-mq.css */
  .ask h2{font-size:28px} /* was: about-mq.css, catalog-mq.css, info-mq.css */
  .ask p{font-size:16px} /* was: about-mq.css, catalog-mq.css, info-mq.css */
  .ask .acts{flex-wrap:wrap} /* was: about-mq.css, catalog-mq.css, info-mq.css */
  .phero.photo{min-height:0;padding-top:110px} /* was: article-mq.css, program-mq.css */
  .faq summary{font-size:15px;padding:14px 0} /* was: info-mq.css, program-mq.css */
  .faq details{padding:0 16px} /* was: info-mq.css, program-mq.css */
}
