/* ============================================================
   iTrip — главная:
   тёмный первый экран, одна строка поиска, светлая панель с турами заезжает снизу.
   ============================================================ */

/* ---------- шапка на тёмном ---------- */
body.home .topbar{background:rgba(20,20,20,.95);border-bottom:1px solid rgba(255,255,255,.06);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);}
body.home .top-login{color:#fff;border-color:rgba(255,255,255,.18);}
body.home .top-login svg{stroke:#bfc5cb;}
body.home .top-login:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.38);}
body.home .top-login .dot{box-shadow:0 0 0 2px #141414;}

/* валюта ₽/฿ и «Поддержка» */
.cur{display:flex;padding:3px;border-radius:999px;background:rgba(255,255,255,.08);}
.cur button{border:none;background:none;color:#aab0b6;font:inherit;font-size:13px;font-weight:800;width:32px;height:28px;border-radius:999px;cursor:pointer;transition:background .15s,color .15s;}
.cur button.on{background:#fff;color:var(--ink);}
.sup{position:relative;}
.top-ic{display:inline-flex;align-items:center;gap:7px;border:none;background:none;color:#fff;font:inherit;font-size:13px;font-weight:700;
  padding:9px 10px;border-radius:6px;cursor:pointer;}
.top-ic:hover{background:rgba(255,255,255,.07);}
.top-ic svg,body.home .top-login svg{width:17px;height:17px;fill:none;stroke:#bfc5cb;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.sup-pop{position:absolute;right:0;top:calc(100% + 8px);width:280px;background:#fff;border-radius:16px;padding:8px;z-index:60;
  box-shadow:0 20px 50px rgba(0,0,0,.35);display:none;}
.sup.open .sup-pop{display:block;animation:popIn .16s ease-out;}
.sup-pop a{display:block;padding:10px 12px;border-radius:10px;text-decoration:none;color:var(--ink);}
.sup-pop a:hover{background:#F1F3F5;}
.sup-pop b{display:block;font-size:14.5px;}
.sup-pop small{font-size:12.5px;color:#7b828a;}

/* ---------- первый экран ---------- */
/* окошки полей должны лечь поверх панели с турами: поэтому без overflow:hidden и isolation,
   а контент .av-in поднят над панелью (z-index 4 > 3) */
.av{position:relative;background:#141414;color:#fff;padding:76px 0 178px;}
.av::before{content:"";position:absolute;left:50%;top:60%;width:min(1180px,100%);height:560px;z-index:0;
  background:radial-gradient(closest-side,rgba(196,251,47,.17),rgba(196,251,47,.05) 55%,rgba(196,251,47,0));
  transform:translate(-50%,-50%);animation:breathe 8s ease-in-out infinite;pointer-events:none;}
.av::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:56px 56px;-webkit-mask-image:radial-gradient(ellipse at 50% 40%,#000 0%,transparent 70%);mask-image:radial-gradient(ellipse at 50% 40%,#000 0%,transparent 70%);}
@keyframes breathe{0%,100%{opacity:.6;transform:translate(-50%,-50%) scale(.92);}50%{opacity:1;transform:translate(-50%,-50%) scale(1.06);}}
.av-in{position:relative;z-index:4;max-width:1120px;margin:0 auto;padding:0 28px;text-align:center;}
.av h1{font-size:clamp(26px,4.4vw,56px);line-height:1.04;color:#fff;margin:0 auto 38px;
  animation:riseIn .7s cubic-bezier(.2,.8,.2,1) both;}
.av h1 .l1{display:block;}
.rot{display:inline-grid;color:var(--lime);overflow:hidden;vertical-align:top;padding:.06em 0 .1em;}
.rot span{grid-area:1/1;white-space:nowrap;transform:translateY(105%);opacity:0;
  transition:transform .65s cubic-bezier(.2,.8,.2,1),opacity .45s ease;}
.rot span.on{transform:none;opacity:1;}
.rot span.out{transform:translateY(-105%);opacity:0;}
@keyframes riseIn{from{opacity:0;transform:translateY(18px);}to{opacity:1;transform:none;}}

/* ---------- строка поиска ---------- */
.finder2{position:relative;z-index:20;display:grid;max-width:1060px;margin:0 auto;text-align:left;gap:3px;
  grid-template-columns:minmax(0,2.1fr) minmax(0,1.2fr) minmax(0,1.2fr) auto;
  animation:riseIn .7s .12s cubic-bezier(.2,.8,.2,1) both;}
.fc{position:relative;background:#F4F6F8;color:var(--ink);padding:12px 18px;min-height:68px;min-width:0;
  display:flex;flex-direction:column;justify-content:center;cursor:pointer;transition:background .15s ease,box-shadow .15s ease;outline:none;}
.fc:first-child{border-radius:16px 0 0 16px;}
.fc:nth-child(3){border-radius:0 16px 16px 0;}
.fc:hover{background:#fff;}
.fc.open,.fc:focus-visible{background:#fff;box-shadow:inset 0 0 0 2px var(--lime);z-index:2;}
.fc-k{font-size:12.5px;font-weight:600;color:#7b828a;line-height:1.2;margin-bottom:3px;cursor:pointer;}
.fc-v{font-size:17px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.fc.set .fc-v{color:var(--ink);}
.fc-row{display:flex;align-items:center;gap:6px;}
.fc input{flex:1;min-width:0;font:inherit;font-size:17px;font-weight:700;line-height:1.3;color:var(--ink);
  background:transparent;border:none;outline:none;padding:0;}
.fc input::placeholder{color:#9aa0a7;font-weight:600;}
.fc-x{flex:none;width:26px;height:26px;border-radius:50%;border:none;background:#e4e7ea;color:var(--ink);
  font:inherit;font-size:17px;line-height:1;cursor:pointer;}
.fc-x:hover{background:var(--ink);color:#fff;}
.f-go2{margin-left:10px;display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;
  background:var(--lime);color:var(--ink);border:none;border-radius:16px;padding:0 34px;
  font:inherit;font-size:17px;font-weight:800;cursor:pointer;
  transition:transform .12s ease,box-shadow .25s ease;box-shadow:0 0 0 0 rgba(196,251,47,0);}
.f-go2:hover{box-shadow:0 0 0 6px rgba(196,251,47,.16),0 14px 40px rgba(196,251,47,.28);}
.f-go2:active{transform:scale(.97);}
.f-go2 svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease;}
.f-go2:hover svg{transform:translateX(4px);}

/* плашка-промо над заголовком */
.promo{display:inline-flex;align-items:center;gap:10px;margin-bottom:22px;padding:6px 14px 6px 6px;border-radius:999px;
  background:#fff;color:var(--ink);text-decoration:none;font-size:14px;font-weight:700;
  box-shadow:0 8px 30px rgba(0,0,0,.3);animation:riseIn .7s cubic-bezier(.2,.8,.2,1) both;transition:transform .15s ease;}
.promo:hover{transform:translateY(-2px);}
.promo i{width:28px;height:28px;border-radius:50%;background:#ff5a1f;display:flex;align-items:center;justify-content:center;flex:none;}
.promo i svg,.fire svg{width:16px;height:16px;fill:#fff;animation:flick 1.6s ease-in-out infinite;transform-origin:50% 90%;}
@keyframes flick{0%,100%{transform:scale(1) rotate(-3deg);}50%{transform:scale(1.12) rotate(3deg);}}
.promo b{color:#ff5a1f;transition:transform .2s ease;}
.promo:hover b{transform:translateX(3px);}

/* быстрые кнопки под строкой */
.quick{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:1060px;margin:14px auto 0;
  animation:riseIn .7s .2s cubic-bezier(.2,.8,.2,1) both;}
.quick button{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:13.5px;font-weight:700;
  padding:9px 15px;border-radius:999px;cursor:pointer;transition:background .15s,border-color .15s,color .15s;}
.quick button:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.3);}
.quick button.on{background:var(--lime);border-color:var(--lime);color:var(--ink);}

/* строка доверия */
.trustline{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 26px;margin:22px auto 0;
  font-size:13.5px;color:#9aa0a7;animation:riseIn .7s .28s cubic-bezier(.2,.8,.2,1) both;}
.trustline li{display:block;}
.trustline li::before{content:"";display:inline-block;vertical-align:middle;margin:-2px 8px 0 0;width:6px;height:6px;border-radius:50%;background:var(--lime);}
.trustline b{color:#fff;font-weight:700;}

/* горящие */
.sec-hot{margin-bottom:30px;padding-bottom:28px;border-bottom:1px solid var(--line);}
.sec-hot h2{display:flex;align-items:center;gap:10px;}
.fire{width:30px;height:30px;border-radius:50%;background:#ff5a1f;display:inline-flex;align-items:center;justify-content:center;flex:none;}
.timer{display:inline-flex;flex-direction:column;align-items:flex-end;margin-right:8px;line-height:1.15;}
.timer span{font-size:11.5px;font-weight:600;color:var(--ink-soft);}
.timer b{font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;color:#e2480f;letter-spacing:-.01em;}
.tcard-pill.hot{background:#ff5a1f;}
.tcard-pill.hot i{background:#fff;}

.av-note{display:inline-flex;align-items:center;gap:10px;margin-top:20px;font-size:14px;font-weight:500;color:#aab0b6;
  animation:riseIn .7s .24s cubic-bezier(.2,.8,.2,1) both;}
.av-note b{color:#fff;font-weight:700;font-variant-numeric:tabular-nums;}

/* ---------- окошки полей ---------- */
.pop{position:absolute;top:calc(100% + 10px);left:0;z-index:40;display:none;cursor:default;text-align:left;
  background:#fff;color:var(--ink);border-radius:18px;padding:12px;box-shadow:0 26px 70px rgba(0,0,0,.4);}
.fc.open .pop{display:block;animation:popIn .18s ease-out;}
@keyframes popIn{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:none;}}
#popQ{width:700px;max-height:min(520px,70vh);overflow:auto;}
#popD{width:344px;}
#popP{width:310px;left:auto;right:0;padding:8px 18px 16px;}
.pop-ok{width:100%;margin-top:10px;padding:12px;border:none;border-radius:12px;background:var(--ink);color:#fff;
  font:inherit;font-size:15px;font-weight:700;cursor:pointer;}

.q-cols{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.q-h{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#9aa0a7;padding:8px 10px 6px;}
.qi{display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;border:none;border-radius:12px;background:none;
  font:inherit;color:inherit;text-align:left;text-decoration:none;cursor:pointer;transition:background .12s ease;}
.qi:hover,.qi:focus-visible{background:#F1F3F5;outline:none;}
.qi img,.qi > i{width:46px;height:46px;border-radius:11px;object-fit:cover;flex:none;background:#dde1e5;}
.qi span{min-width:0;}
.qi b{display:block;font-size:14.5px;font-weight:700;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.qi small{display:block;font-size:12.5px;color:#7b828a;line-height:1.3;margin-top:1px;}
.q-none{padding:14px 10px;font-size:14px;color:var(--ink-soft);}
.q-all{width:100%;margin-top:6px;padding:11px;border:none;border-radius:12px;background:#F1F3F5;font:inherit;font-size:14px;font-weight:700;cursor:pointer;}
.q-all:hover{background:var(--ink);color:#fff;}

/* календарь */
.mc-quick{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px;}
.qp{border:1px solid #dfe3e7;background:#fff;border-radius:999px;padding:7px 13px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;}
.qp:hover{border-color:var(--ink);}
.qp.on{background:var(--ink);color:#fff;border-color:var(--ink);}
.mc-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.mc-h b{font-size:15px;}
.mc-nav{width:34px;height:34px;border-radius:50%;border:1px solid #dfe3e7;background:#fff;font:inherit;font-size:20px;line-height:1;cursor:pointer;}
.mc-nav:hover:not(:disabled){border-color:var(--ink);}
.mc-nav:disabled{opacity:.3;cursor:default;}
.mc-g{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;}
.mc-w{font-size:11px;font-weight:700;color:#9aa0a7;text-align:center;padding:4px 0;text-transform:uppercase;}
.mc-d{aspect-ratio:1;border:none;border-radius:10px;background:none;font:inherit;font-size:14px;font-weight:700;color:var(--ink);cursor:pointer;
  position:relative;transition:background .12s ease;}
.mc-d:not(:disabled)::after{content:"";position:absolute;left:50%;bottom:5px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:#8bc90f;}
.mc-d:not(:disabled):hover{background:#eef1f3;}
.mc-d:disabled{color:#c6cbd0;font-weight:500;cursor:default;}
.mc-d.sel{background:var(--ink);color:var(--lime);}
.mc-d.sel::after{background:var(--lime);}
.mc-foot{display:flex;align-items:center;gap:7px;font-size:12px;color:#7b828a;margin-top:8px;}
.mc-foot i{width:6px;height:6px;border-radius:50%;background:#8bc90f;}

/* ---------- светлая панель с турами ---------- */
.sheet-sec{position:relative;z-index:3;margin-top:-122px;padding-bottom:40px;scroll-margin-top:70px;}
.sheet{background:var(--ground);border-radius:28px;padding:28px 28px 30px;box-shadow:0 30px 80px rgba(0,0,0,.16);
  animation:sheetUp .9s .3s cubic-bezier(.2,.8,.2,1) both;}
@keyframes sheetUp{from{opacity:0;transform:translateY(70px);}to{opacity:1;transform:none;}}
.sheet-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px;}
.sheet-head h2{font-size:24px;font-weight:800;line-height:1.15;letter-spacing:-.015em;}
.sheet-head p{font-size:13.5px;font-weight:500;color:var(--ink-soft);margin-top:4px;}
.tools{display:flex;align-items:center;gap:8px;}
.arw{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--ink);
  font:inherit;font-size:18px;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease;}
.arw:hover{background:var(--ink);border-color:var(--ink);color:#fff;}
.all-link{display:inline-flex;align-items:center;gap:8px;margin-left:6px;padding:11px 18px;border:none;border-radius:999px;
  background:var(--ink);color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer;}
.all-link span{color:var(--lime);transition:transform .2s ease;}
.all-link:hover span{transform:translateX(3px);}
.sortsel{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:0 6px 0 14px;
  font-size:13.5px;font-weight:600;color:var(--ink-soft);background:#F2F4F6;}
.sortsel select{font:inherit;font-weight:700;color:var(--ink);border:none;background:transparent;padding:10px 8px 10px 0;cursor:pointer;outline:none;}

.rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px) / 4);gap:16px;
  overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:2px 0 6px;}
.rail::-webkit-scrollbar{display:none;}
.rail .tcard{scroll-snap-align:start;}
.rail .sk-card{height:330px;}
.sheet .tgrid{grid-template-columns:repeat(4,minmax(0,1fr));padding-bottom:0;}
.sheet .empty-state{max-width:none;margin:10px 0 0;}

/* карточка — проще: фото, название, длительность, цена за всех */
.sheet .tcard{background:#F2F4F6;border-color:transparent;border-radius:18px;
  transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s ease;}
.sheet .tcard:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(20,20,20,.14);border-color:transparent;}
.sheet .tcard-ph{aspect-ratio:4/3;}
.sheet .tcard-ph.has-photo::after{background:linear-gradient(0deg,rgba(0,0,0,.32) 0%,rgba(0,0,0,0) 42%);}
.tcard-pill{position:absolute;left:10px;bottom:10px;z-index:1;display:inline-flex;align-items:center;gap:7px;max-width:calc(100% - 20px);
  background:rgba(20,20,20,.7);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;
  font-size:12px;font-weight:700;padding:6px 11px 6px 9px;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.tcard-pill i{width:7px;height:7px;border-radius:50%;background:var(--lime);flex:none;animation:pulse 1.8s ease-out infinite;}
.sheet .tcard-body{padding:14px 16px 16px;}
.sheet .tcard h3{font-family:"Inter",system-ui,sans-serif;font-size:16.5px;font-weight:800;line-height:1.22;letter-spacing:-.01em;margin-bottom:5px;}
.tcard-sub{font-size:12.5px;font-weight:500;color:var(--ink-soft);margin-bottom:14px;flex:1;}
.sheet .tcard-foot{padding-top:12px;border-top:1px solid #e1e5e9;align-items:center;}
.sheet .tcard-price b{font-family:"Inter",system-ui,sans-serif;font-size:20px;font-weight:800;letter-spacing:-.02em;}
.sheet .tcard-price b s{text-decoration:none;color:#9aa0a7;font-weight:600;margin-right:3px;font-size:16px;}
.sheet .tcard-price > span{display:block;font-size:12px;line-height:1.3;}
.sheet .tcard-price b span{display:inline;font-size:inherit;color:inherit;font-variant-numeric:tabular-nums;}
.sheet .tcard-go{width:36px;height:36px;}

.who{padding-top:22px;}

@media (max-width:1100px){
  .sheet .tgrid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .rail{grid-auto-columns:calc((100% - 32px) / 3);}
}
@media (max-width:860px){
  .sheet .tgrid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rail{grid-auto-columns:calc((100% - 16px) / 2.2);}
}
@media (max-width:760px){
  .av{padding:34px 0 112px;}
  .av-in{padding:0 16px;}
  .av h1{margin-bottom:24px;}
  .finder2{grid-template-columns:1fr 1fr;gap:2px;}
  .fc{position:static;min-height:62px;padding:10px 14px;}
  .fc:first-child{grid-column:1/-1;border-radius:16px 16px 0 0;}
  .fc:nth-child(2){border-radius:0 0 0 16px;}
  .fc:nth-child(3){border-radius:0 0 16px 0;}
  .fc-v,.fc input{font-size:16px;}
  .f-go2{grid-column:1/-1;margin:10px 0 0;min-height:56px;}
  .pop{left:0;right:0;width:auto !important;max-height:62vh;overflow:auto;}
  #popP{right:0;}
  .q-cols{grid-template-columns:1fr;}
  .promo{font-size:12.5px;margin-bottom:16px;}
  .quick{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:12px -16px 0;padding:0 16px;}
  .quick::-webkit-scrollbar{display:none;}
  .quick button{flex:none;font-size:13px;padding:8px 13px;}
  .trustline{justify-content:flex-start;gap:6px 16px;font-size:12.5px;margin-top:16px;text-align:left;}
  .top-ic span{display:none;}
  .top-right{gap:6px;}
  .sec-hot{margin-bottom:22px;padding-bottom:20px;}
  .sheet-head .tools{width:100%;justify-content:space-between;}
  .timer{flex-direction:row;align-items:baseline;gap:8px;margin:0;}
  .sheet-sec{margin-top:-80px;}
  .sheet{padding:18px 14px 18px;border-radius:22px;}
  .sheet-head h2{font-size:20px;}
  .arw{display:none;}
  .all-link{margin-left:0;padding:9px 14px;font-size:13px;}
  .rail{grid-auto-columns:80%;gap:12px;}
}
@media (max-width:600px){
  .sheet-head{align-items:flex-start;}
  /* выдача на телефоне — компактные строки: фото слева, текст справа */
  .sheet .tgrid{grid-template-columns:minmax(0,1fr);gap:10px;}
  .sheet .tgrid .tcard{flex-direction:row;border-radius:16px;}
  .sheet .tgrid .tcard-ph{width:118px;flex:none;aspect-ratio:auto;min-height:128px;}
  .sheet .tgrid .tcard-pill{display:none;}
  .sheet .tgrid .tcard-body{padding:12px 12px 12px 14px;min-width:0;}
  .sheet .tgrid .tcard h3{font-size:15px;}
  .sheet .tgrid .tcard-sub{margin-bottom:8px;font-size:12px;}
  .sheet .tgrid .tcard-foot{padding-top:8px;}
  .sheet .tgrid .tcard-price b{font-size:17px;}
  .sheet .tgrid .tcard-go{width:30px;height:30px;font-size:14px;}
}
/* ================= ТЕЛЕФОН — как приложение =================
   Одна строка поиска → поиск на весь экран; разделы рядом;
   туры списком строк; при прокрутке поиск уезжает в шапку. */
.m-search,.m-cats,.m-tsearch,.m-filt,.m-more,.tcard-m{display:none;}
.ms{display:none;}

@media (max-width:760px){
  body.home .promo,body.home .finder2,body.home .quick{display:none;}
  .av{padding:20px 0 22px;overflow:hidden;}            /* всплывающих окон в первом экране на телефоне нет — свечение можно обрезать */
  .av::after{opacity:.25;}
  .av-in{text-align:left;}
  .av h1{font-size:clamp(25px,7.4vw,30px);margin:0 0 16px;text-align:left;}

  /* строка поиска */
  .m-search{display:flex;align-items:center;gap:12px;width:100%;border:none;cursor:pointer;text-align:left;font:inherit;color:var(--ink);
    background:#fff;border-radius:18px;padding:13px 16px;box-shadow:0 10px 30px rgba(0,0,0,.35),inset 0 0 0 2px rgba(196,251,47,0);transition:box-shadow .2s;}
  .m-search:active{box-shadow:0 10px 30px rgba(0,0,0,.35),inset 0 0 0 2px var(--lime);}
  .m-search > svg{width:24px;height:24px;flex:none;fill:none;stroke:var(--ink);stroke-width:2.4;stroke-linecap:round;}
  .m-search span{min-width:0;}
  .m-search b{display:block;font-size:17px;font-weight:800;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .m-search small{display:block;font-size:13px;color:var(--ink-soft);font-weight:600;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

  /* разделы */
  .m-cats{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:16px -16px 0;padding:0 16px 2px;}
  .m-cats::-webkit-scrollbar{display:none;}
  .m-cats button{flex:none;width:72px;border:none;background:none;color:#fff;font:inherit;cursor:pointer;text-align:center;padding:0;}
  .m-cats i{display:block;width:60px;height:60px;margin:0 auto 6px;border-radius:50%;overflow:hidden;background:#2a2a2a;box-shadow:0 0 0 2px rgba(255,255,255,.14);transition:box-shadow .15s;}
  .m-cats button:active i{box-shadow:0 0 0 3px var(--lime);}
  .m-cats img{width:100%;height:100%;object-fit:cover;display:block;}
  .m-cats b{display:block;font-size:12.5px;font-weight:700;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .m-cats small{display:block;font-size:11px;color:#8d949b;font-weight:600;margin-top:1px;}

  .trustline{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;white-space:nowrap;margin:16px -16px 0;padding:0 16px;gap:16px;font-size:12px;}
  .trustline::-webkit-scrollbar{display:none;}

  /* шапка: при прокрутке — строка поиска вместо ₽/฿ и поддержки */
  .m-tsearch{display:none;flex:1;min-width:0;align-items:center;gap:8px;margin:0 8px 0 12px;border:1px solid rgba(255,255,255,.16);
    background:rgba(255,255,255,.1);color:#fff;border-radius:999px;padding:9px 14px;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;text-align:left;}
  .m-tsearch svg{width:16px;height:16px;flex:none;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;}
  .m-tsearch span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  body.m-scrolled .m-tsearch{display:flex;animation:popIn .2s ease-out;}
  body.m-scrolled .topbar .cur,body.m-scrolled .topbar #sup{display:none;}
  body.m-scrolled .topbar .top-right{margin-left:0;}

  /* светлая часть: без панели-рамки, туры списком строк */
  .sheet-sec{margin-top:0;padding:22px 0 26px;}
  .sheet{background:transparent;box-shadow:none;padding:0;border-radius:0;animation:none;}
  .sheet-head{margin-bottom:12px;}
  .sheet-head h2{font-size:20px;}
  .sheet-head p{font-size:12.5px;}
  #tools{display:none;}
  .sec-hot{border-bottom:none;padding-bottom:0;margin-bottom:28px;}
  .sec-hot .sheet-head{flex-direction:column;align-items:stretch;gap:6px;}
  .sec-hot .tools{width:100%;}
  .timer{flex-direction:row;align-items:baseline;gap:6px;margin:0;}
  .timer span{font-size:12.5px;}
  .timer b{font-size:16px;}
  #hotSub{display:none;}
  .rail,.sheet .tgrid{display:flex;flex-direction:column;gap:10px;overflow:visible;scroll-snap-type:none;padding:0;}
  .rail .sk-card{height:112px;}
  .sheet .tcard{flex-direction:row;border-radius:18px;background:#fff;border:none;box-shadow:0 1px 0 rgba(20,20,20,.04);}
  .sheet .tcard:hover{transform:none;box-shadow:0 1px 0 rgba(20,20,20,.04);}
  .sheet .tcard:active{transform:scale(.985);}
  .sheet .tcard-ph,.sheet .tgrid .tcard-ph{width:108px;flex:none;aspect-ratio:auto;min-height:116px;}
  .sheet .tcard-ph.has-photo::after{display:none;}
  .sheet .tcard-pill,.sheet .tcard-sub,.sheet .tcard-go{display:none;}
  .sheet .tcard-body,.sheet .tgrid .tcard-body{padding:12px 14px 12px 14px;min-width:0;}
  .sheet .tcard h3,.sheet .tgrid .tcard h3{font-size:15.5px;line-height:1.2;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .tcard-m{display:block;font-size:12.5px;font-weight:600;color:var(--ink-soft);margin-bottom:6px;}
  .tcard-m.hot{color:#e2480f;}
  .tcard-m.hot::first-letter{text-transform:uppercase;}
  .sheet .tcard-foot,.sheet .tgrid .tcard-foot{border-top:none;padding-top:0;margin-top:auto;}
  .sheet .tcard-price b,.sheet .tgrid .tcard-price b{font-size:18px;}
  .sheet .tcard-price > span{font-size:11.5px;}
  #hotRail:not(.open) .tcard:nth-child(n+6){display:none;}
  #rail .tcard:nth-child(n+7){display:none;}
  .m-more{display:block;width:100%;margin-top:10px;padding:14px;border-radius:14px;border:1px solid var(--line);background:transparent;
    font:inherit;font-size:14.5px;font-weight:800;color:var(--ink);cursor:pointer;}
  .m-more[hidden]{display:none;}
  #railMore{background:var(--ink);color:#fff;border-color:var(--ink);}

  /* выдача: прилипшая строка фильтров */
  .m-filt:not(.hide){display:flex;position:sticky;top:64px;z-index:20;gap:6px;overflow-x:auto;scrollbar-width:none;
    margin:-8px -16px 12px;padding:10px 16px;background:var(--ground);box-shadow:0 8px 14px -12px rgba(0,0,0,.25);}
  .m-filt::-webkit-scrollbar{display:none;}
  .mf{flex:none;display:inline-flex;align-items:center;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:999px;
    padding:9px 13px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;}
  .mf.on{background:var(--ink);color:#fff;border-color:var(--ink);}
  .mf-sort{padding:0 4px 0 10px;}
  .mf-sort select{border:none;background:transparent;font:inherit;font-weight:700;color:var(--ink);padding:9px 4px;outline:none;}
  .mf-x{width:38px;justify-content:center;padding:0;font-size:20px;font-weight:500;}

  /* поиск на весь экран */
  body.ms-open{overflow:hidden;}
  .ms{display:flex;flex-direction:column;position:fixed;inset:0;z-index:100;background:var(--ground);
    opacity:0;transform:translateY(18px);transition:opacity .2s ease,transform .22s ease;}
  .ms.open{opacity:1;transform:none;}
  .ms[hidden]{display:none;}
  .ms-top{display:flex;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 12px 8px;background:#141414;}
  .ms-x{flex:none;width:44px;height:44px;border-radius:50%;border:none;background:rgba(255,255,255,.1);cursor:pointer;display:flex;align-items:center;justify-content:center;}
  .ms-x svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
  .ms-field{flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:#fff;border-radius:14px;padding:0 8px 0 12px;height:48px;box-shadow:inset 0 0 0 2px var(--lime);}
  .ms-field > svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--ink-soft);stroke-width:2.4;stroke-linecap:round;}
  .ms-field input{flex:1;min-width:0;border:none;background:transparent;font:inherit;font-size:16px;font-weight:700;color:var(--ink);outline:none;-webkit-appearance:none;}
  .ms-field input::-webkit-search-cancel-button{display:none;}
  .ms-clr{flex:none;width:28px;height:28px;border-radius:50%;border:none;background:#e4e7ea;font-size:17px;line-height:1;cursor:pointer;color:var(--ink);}
  .ms-tabs{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:6px;padding:4px 12px 12px;background:#141414;}
  .ms-tabs button{min-width:0;text-align:left;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.07);color:#fff;border-radius:14px;
    padding:8px 11px;font:inherit;cursor:pointer;}
  .ms-tabs small{display:block;font-size:11px;font-weight:600;color:#8d949b;}
  .ms-tabs b{display:block;font-size:13.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px;}
  .ms-tabs button.on{background:#fff;color:var(--ink);border-color:#fff;}
  .ms-tabs button.on small{color:var(--ink-soft);}
  .ms-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:14px 12px 110px;}
  .ms-body .q-cols{grid-template-columns:1fr;gap:4px;}
  .ms-body .qi{padding:9px 6px;}
  .ms-body .qi img,.ms-body .qi > i{width:52px;height:52px;border-radius:13px;}
  .ms-body .qi b{font-size:15.5px;}
  .ms-body .q-h{padding:10px 6px 6px;}
  .ms-quick{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -12px 6px;padding:0 12px 2px;}
  .ms-quick::-webkit-scrollbar{display:none;}
  .ms-quick button{flex:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 14px;font:inherit;font-size:13.5px;font-weight:700;color:var(--ink);cursor:pointer;}
  .ms-quick button.on{background:var(--ink);border-color:var(--ink);color:var(--lime);}
  #msPD{background:#fff;border-radius:20px;padding:14px 12px;}
  #msPD .mc-d{font-size:16px;border-radius:12px;}
  #msPP{background:#fff;border-radius:20px;padding:6px 16px;}
  #msPP .cnt-row{padding:14px 0;}
  #msPP .cnt button{width:42px;height:42px;font-size:20px;}
  .ms-foot{position:absolute;left:0;right:0;bottom:0;padding:24px 12px calc(12px + env(safe-area-inset-bottom));
    background:linear-gradient(180deg,rgba(228,231,234,0) 0%,var(--ground) 38%);}
  #msGo{width:100%;height:56px;border:none;border-radius:16px;background:var(--lime);color:var(--ink);font:inherit;font-size:16.5px;font-weight:800;cursor:pointer;
    box-shadow:0 10px 24px rgba(20,20,20,.18);}
  #msGo:disabled{background:#d3d8dc;color:var(--ink-soft);box-shadow:none;}
}

@media (prefers-reduced-motion:reduce){
  .ms{transition:none;}
  .av::before,.tcard-pill i,.promo i svg,.fire svg{animation:none;}
  .promo,.quick,.trustline{animation:none;}
  .av h1,.finder2,.av-note,.sheet{animation:none;}
  .rot span{transition:none;}
}
