/* Travel61 — styles */
:root{
  --ink:#0c1424; --ink-2:#455271; --ink-3:#7484a3; --ink-4:#8f9cb8;
  --line:#e5e9f3; --line-2:#eef1f8;
  --bg:#f5f7fc; --card:#ffffff;
  --blue:#1046f0; --blue-d:#0a2fa8; --violet:#6a4cff;
  --green:#0fa958; --orange:#ff6a2b; --orange-d:#eb5517;
  --grad:linear-gradient(120deg,#0e3ff2 0%,#2a6bff 52%,#6a4cff 100%);
  --sh-1:0 1px 2px rgba(12,20,36,.06),0 8px 24px rgba(12,20,36,.06);
  --sh-2:0 2px 6px rgba(12,20,36,.06),0 18px 50px rgba(12,20,36,.12);
  --r:18px;
}
*{box-sizing:border-box}
[hidden]{display:none !important}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Inter","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button{font:inherit; color:inherit; cursor:pointer; border:0; background:none}
input,select{font:inherit; color:inherit}
h1,h2,h3{margin:0; letter-spacing:-.02em; line-height:1.12}
p{margin:0}
.wrap{width:100%; max-width:1360px; margin:0 auto; padding:0 22px}

/* ------------------------------- header ------------------------------- */
.hdr{position:fixed; inset:0 0 auto; z-index:60; transition:background .25s,box-shadow .25s,backdrop-filter .25s}
.hdr-in{display:flex; align-items:center; gap:26px; height:74px}
.hdr .nav{display:flex; gap:24px; margin-left:8px}
.hdr .nav a{color:rgba(255,255,255,.86); font-size:15px; font-weight:500; transition:color .2s}
.hdr .nav a:hover{color:#fff}
.hdr-phone{display:flex; align-items:center; gap:8px; margin-left:auto; color:rgba(255,255,255,.9); font-size:15px; font-weight:500}
.hdr-phone svg{width:18px;height:18px}
.hdr.is-solid{background:rgba(255,255,255,.94); backdrop-filter:blur(14px) saturate(150%); box-shadow:0 1px 0 var(--line)}
.hdr.is-solid .nav a{color:var(--ink-2)}
.hdr.is-solid .nav a:hover{color:var(--ink)}
.hdr.is-solid .hdr-phone{color:var(--ink-2)}

.logo{display:flex; align-items:center; gap:10px; font-weight:800; font-size:20px; letter-spacing:-.03em; color:#fff}
.logo-mark{display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:var(--grad); color:#fff; box-shadow:0 6px 16px rgba(20,70,240,.35)}
.logo-mark svg{width:20px;height:20px}
.logo-txt b{color:#8fb2ff}
.hdr.is-solid .logo{color:var(--ink)}
.hdr.is-solid .logo-txt b{color:var(--blue)}
.logo--light,.logo--light.logo{border:0}
.ftr .logo-txt b{color:#8fb2ff}

/* -------------------------------- hero -------------------------------- */
.hero{position:relative; z-index:1; padding:104px 0 0; isolation:isolate}
.hero-bg{position:absolute; inset:0; z-index:-2; overflow:hidden}
.hero-bg img{width:100%; height:100%; object-fit:cover; object-position:50% 45%}
.hero-veil{position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(85% 90% at 8% 18%,rgba(6,14,38,.82) 0%,rgba(6,14,38,.55) 45%,rgba(6,14,38,0) 72%),
    linear-gradient(180deg,rgba(6,13,32,.72) 0%,rgba(6,13,32,.42) 45%,rgba(6,13,32,.3) 66%,rgba(245,247,252,.97) 100%);
}
.hero-in{padding-bottom:18px}
.hero-h1{font-size:clamp(30px,4.3vw,50px); font-weight:800; color:#fff; max-width:16ch; text-wrap:balance; text-shadow:0 2px 24px rgba(4,10,28,.35)}
.hero-sub{margin-top:14px; max-width:52ch; font-size:clamp(14.5px,1.5vw,17px); color:rgba(255,255,255,.9); text-shadow:0 1px 12px rgba(4,10,28,.3)}
.hero-badges{display:flex; flex-wrap:wrap; gap:7px 18px; margin:18px 0 0; padding:0; list-style:none}
.hero-badges li{display:flex; align-items:center; gap:7px; font-size:14px; color:rgba(255,255,255,.9)}
.hero-badges svg{width:17px;height:17px; color:#7ef0b2}

/* ------------------------------ search form ---------------------------- */
.sf{position:relative; background:var(--card); border-radius:20px; box-shadow:var(--sh-2); padding:14px 14px 15px; margin:22px 0 -96px; z-index:5}
.sf-tabs{display:flex; gap:4px; margin:0 0 10px}
.sf-tab{padding:8px 14px; border-radius:10px; font-size:14.5px; font-weight:600; color:#5a6885; transition:.16s}
.sf-tab:hover{background:var(--line-2); color:var(--ink)}
.sf-tab.is-on{background:#eef3ff; color:var(--blue-d)}
.sf-row{display:grid; grid-template-columns:minmax(0,1.1fr) 36px minmax(0,1.1fr) minmax(0,.78fr) minmax(0,.78fr) minmax(0,1.02fr) auto; gap:8px; align-items:stretch}
.sf-cell{position:relative; background:#f4f6fb; border:1.5px solid transparent; border-radius:12px; padding:7px 12px 8px; min-width:0; display:flex; flex-direction:column; justify-content:center; transition:background .16s,border-color .16s,box-shadow .16s}
.sf-cell:hover{background:#eff2f9}
.sf-cell:focus-within,.sf-cell.is-focus{background:#fff; border-color:var(--blue); box-shadow:0 0 0 3.5px rgba(16,70,240,.12)}
.sf-cell > label{font-size:10.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:#67758f; pointer-events:none}
.sf-cell input.sf-in{width:100%; min-width:0; border:0; outline:0; background:transparent; font-size:15.5px; font-weight:650; line-height:1.35; padding:2px 0 0; color:var(--ink)}
.sf-cell input.sf-in::placeholder{color:#8b9ab6; font-weight:500}
.sf-cell--date{cursor:pointer}
.sf-date-val{font-size:15.5px; font-weight:650; padding-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.sf-date-val.is-empty{color:#9dabc6; font-weight:500}
.sf-date-in{position:absolute; inset:0; width:100%; height:100%; opacity:0; border:0; padding:0; margin:0; cursor:pointer; z-index:2}
.sf-swap{align-self:center; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:#fff; border:1px solid #eaeef8; box-shadow:0 2px 10px rgba(12,20,36,.12); color:var(--ink-2); z-index:3; transition:.18s}
.sf-swap:hover{color:var(--blue); transform:rotate(180deg)}
.sf-swap svg{width:18px;height:18px}
.sf-submit{display:flex; align-items:center; justify-content:center; gap:8px; padding:0 22px; min-height:56px; align-self:stretch; white-space:nowrap; border-radius:12px; background:var(--orange); color:#fff; font-weight:700; font-size:16px; box-shadow:0 10px 22px rgba(255,106,43,.3); transition:transform .16s, box-shadow .16s, background .16s}
.sf-submit:hover{background:var(--orange-d); transform:translateY(-1px); box-shadow:0 13px 26px rgba(255,106,43,.34)}
.sf-submit:active{transform:translateY(0)}
.sf-submit[disabled]{opacity:.7; cursor:progress; transform:none}
.sf-submit svg{width:18px;height:18px}
.sf-foot{display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin:11px 2px 1px}
.sf-direct{display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:600; color:var(--ink-2); cursor:pointer; white-space:nowrap}
.sf-direct input{position:absolute; opacity:0; width:0; height:0}
.sf-sw{width:34px;height:20px;border-radius:999px;background:#dbe2f0; position:relative; transition:.18s; flex:none}
.sf-sw::after{content:""; position:absolute; top:2px; left:2px; width:16px;height:16px;border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(12,20,36,.25); transition:.18s}
.sf-direct input:checked + .sf-sw{background:var(--blue)}
.sf-direct input:checked + .sf-sw::after{transform:translateX(14px)}
.sf-quick{display:flex; align-items:center; gap:7px; flex-wrap:wrap; font-size:13px; color:var(--ink-3); margin-left:auto}
.chip{border-radius:999px; background:var(--line-2); padding:6px 12px; font-size:12.5px; font-weight:600; color:var(--ink-2); transition:.16s}
.chip:hover{background:#e4ecff; color:var(--blue-d)}

/* passengers popover */
.pax-open{display:flex; align-items:baseline; gap:6px; padding:2px 0 0; text-align:left}
.pax-txt{font-size:15px; font-weight:650; white-space:nowrap}
.pax-cls{font-size:11.5px; color:#6c7c9c; font-weight:500}
.pax-pop{position:absolute; z-index:90; top:calc(100% + 8px); right:0; width:262px; background:#fff; border-radius:14px; box-shadow:var(--sh-2); padding:14px}
.pax-row{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:4px 0 10px}
.pax-row b{font-size:14.5px; font-weight:650}
.pax-row span{font-size:12px; color:var(--ink-3); display:block}
.pax-num{display:flex; align-items:center; gap:6px}
.pax-btn{width:30px;height:30px;border-radius:8px; border:1px solid var(--line); display:grid;place-items:center; font-size:18px; font-weight:600; color:var(--ink-2); line-height:1}
.pax-btn:hover:not([disabled]){border-color:var(--blue); color:var(--blue)}
.pax-btn[disabled]{opacity:.4; cursor:not-allowed}
.pax-val{min-width:20px; text-align:center; font-weight:700}
.pax-note{font-size:11.5px; color:var(--ink-4); border-top:1px solid var(--line-2); padding-top:10px}

/* autocomplete */
.sug{position:absolute; z-index:95; left:-1.5px; right:-1.5px; top:calc(100% + 8px); background:#fff; border-radius:14px; box-shadow:var(--sh-2); padding:6px; max-height:340px; overflow:auto}
.sf-cell--place input.sf-in{padding-right:30px}
.sf-clear{position:absolute; right:9px; top:50%; transform:translateY(-50%); width:24px; height:24px; border-radius:50%; border:0; padding:0; display:grid; place-items:center; background:#e4e9f4; color:#5b6a88; cursor:pointer; z-index:4; transition:background .15s,color .15s}
.sf-clear:hover{background:#d4dcec; color:var(--ink)}
.sf-clear svg{width:13px; height:13px}
.sf-clear[hidden]{display:none}
.sug-item{display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:9px 11px; border-radius:10px; transition:.13s}
.sug-item:hover,.sug-item.is-active{background:#f1f5ff}
.sug-code{flex:none; width:42px; text-align:center; font-size:12px; font-weight:800; letter-spacing:.03em; color:var(--blue-d); background:#e8efff; border-radius:8px; padding:6px 0}
.sug-txt{min-width:0}
.sug-name{font-weight:600; font-size:14.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block}
.sug-sub{font-size:12.5px; color:var(--ink-3)}
.sug-empty{padding:14px 12px; color:var(--ink-3); font-size:14px}

/* ------------------------------- results ------------------------------- */
.results{padding:18px 0 56px; min-height:60vh}

/* ---------------- цены на соседние даты (полоска над выдачей) ---------------- */
.calbar{margin:0 0 14px}
/* Компактная строка: всегда одна строка, полный блок — по клику */
.calbar-head{display:flex; align-items:center; gap:9px; width:100%; text-align:left; padding:8px 12px;
  min-height:42px; background:#fff; border:1px solid var(--line); border-radius:12px;
  box-shadow:0 1px 2px rgba(12,20,36,.05); transition:border-color .15s, box-shadow .15s, background .15s}
.calbar-head:hover{border-color:#c9d8ff; background:#fbfcff; box-shadow:0 3px 14px rgba(16,70,240,.1)}
.calbar-head:focus-visible{outline:2px solid var(--blue); outline-offset:2px}
.calbar-ic{flex:none; display:flex; color:var(--blue)}
.calbar-ic svg{width:16px; height:16px}
.calbar-t{flex:none; font-size:13px; font-weight:800; letter-spacing:-.01em; white-space:nowrap}
.calbar-sum{flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12.5px;
  color:var(--ink-2); font-weight:600; padding-left:9px; border-left:1px solid var(--line)}
.calbar-sum b{color:var(--ink); font-weight:800}
.calbar-sum .cs-cheap{color:var(--green); font-weight:800}
.calbar-sum .cs-dim{color:var(--ink-3); font-weight:500}
.calbar-hint{margin-left:auto; flex:none; font-size:11.5px; color:var(--ink-3); white-space:nowrap}
.calbar-cta{flex:none; font-size:12px; font-weight:700; color:var(--blue); white-space:nowrap}
.calbar-chev{flex:none; display:flex; color:var(--ink-3); transition:transform .18s}
.calbar-chev svg{width:16px; height:16px}
.calbar-head:hover .calbar-chev{color:var(--blue)}
.calbar.is-open .calbar-chev{transform:rotate(180deg)}
.calbar-body{display:none; padding-top:8px}
.calbar.is-open .calbar-body{display:block}
@media (max-width:1080px){ .calbar-hint{display:none} }
@media (max-width:900px){ .calbar-sum .cs-more{display:none} }
.calbar-scroll{overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch;
  scrollbar-width:none; -ms-overflow-style:none; margin:0 -3px; padding:3px 3px 4px}
.calbar-scroll::-webkit-scrollbar{display:none}
.calbar-row{display:block}
.calbar-row + .calbar-row{margin-top:5px}
.calbar-row[hidden]{display:none}
.calbar-lbl{font-size:10.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink-3); padding-left:2px; white-space:nowrap}
.calbar-days{display:flex; gap:7px; min-width:max-content}
.cal-day{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
  min-width:96px; padding:8px 10px 9px; background:#fff; border:1px solid var(--line); border-radius:12px;
  box-shadow:0 1px 2px rgba(12,20,36,.04); transition:.15s; scroll-snap-align:center}
.cal-day:hover{border-color:#c9d8ff; background:#f8faff}
.cal-d1{font-size:12.5px; font-weight:700; color:var(--ink); letter-spacing:-.01em; white-space:nowrap}
.cal-d2{font-size:13px; font-weight:800; color:var(--ink-2); white-space:nowrap; display:flex; align-items:center; gap:4px}
.cal-d2 svg{width:13px; height:13px; color:var(--ink-4)}
.cal-day.is-cheap .cal-d2{color:var(--green)}
.cal-day.is-on{background:var(--blue); border-color:var(--blue); box-shadow:0 6px 18px rgba(16,70,240,.28)}
.cal-day.is-on .cal-d1,.cal-day.is-on .cal-d2{color:#fff}
.cal-day.is-on .cal-d2 svg{color:rgba(255,255,255,.85)}
.cal-day.is-on:hover{background:var(--blue); border-color:var(--blue)}
.cal-day.is-past{opacity:.55}
@media (max-width:760px){
  .calbar{margin-bottom:10px}
  .calbar-head{padding:7px 10px; gap:7px; min-height:38px; border-radius:11px}
  .calbar-ic svg{width:15px; height:15px}
  .calbar-t{display:none}
  .calbar-sum{font-size:11.5px; padding-left:0; border-left:none}
  .calbar-cta{display:none}
  .calbar-sum .cs-more{display:none}
  .calbar-row{grid-template-columns:minmax(0,1fr); gap:3px}
  .calbar-lbl{font-size:10px; letter-spacing:.05em}
  .calbar-days{gap:6px; scroll-snap-type:x proximity}
  .cal-day{min-width:82px; padding:7px 8px 8px; border-radius:11px}
  .cal-d1{font-size:11.5px}
  .cal-d2{font-size:12px}
}
/* ---------------- сетка «цены на соседние даты»: туда сверху, обратно слева ---------------- */
.calgrid{background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 1px 2px rgba(12,20,36,.04); overflow:hidden}
.calgrid[hidden]{display:none}
.calgrid-scroll{overflow-x:auto; overflow-y:hidden; -webkit-overflow-scrolling:touch; scrollbar-width:thin; scrollbar-color:#cfd8ea transparent}
.calgrid-scroll::-webkit-scrollbar{height:7px}
.calgrid-scroll::-webkit-scrollbar-thumb{background:#cfd8ea; border-radius:4px}
.calgrid-tbl{border-collapse:separate; border-spacing:0; width:100%; min-width:660px}
.calgrid-cap{font-size:11.5px; font-weight:700; color:var(--ink-3); padding:10px 12px 8px; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis}
.cg-corner{position:sticky; left:0; z-index:3; background:#f5f8fe; border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  width:96px; min-width:96px; padding:6px 9px; text-align:left; font-size:9.5px; font-weight:800; letter-spacing:.05em;
  text-transform:uppercase; color:var(--ink-4); line-height:1.3}
.cg-corner-r,.cg-corner-d{display:block}
.cg-col{background:#f5f8fe; border-bottom:1px solid var(--line); padding:0; white-space:nowrap}
.cg-col.is-on{background:#e8f0ff}
.cg-col.is-past{opacity:.5}
.cg-hbtn{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; width:100%; padding:7px 5px; white-space:nowrap}
.cg-hbtn:hover .cg-h1{color:var(--blue)}
.cg-h1{font-size:12px; font-weight:800; color:var(--ink); letter-spacing:-.01em}
.cg-h2{font-size:10.5px; font-weight:600; color:var(--ink-3)}
.cg-row{position:sticky; left:0; z-index:2; background:#f5f8fe; border-right:1px solid var(--line); border-bottom:1px solid #eef2fa;
  padding:0; text-align:left; white-space:nowrap}
.cg-row.is-on{background:#e8f0ff}
.cg-row .cg-hbtn{align-items:flex-start; padding:6px 10px}
.cg-td{padding:3px; border-bottom:1px solid #eef2fa; text-align:center}
.cg-cell{display:block; width:100%; min-width:74px; padding:7px 4px; border-radius:9px; font-size:12.5px; font-weight:800;
  color:var(--ink-2); white-space:nowrap; transition:.13s; font-variant-numeric:tabular-nums}
.cg-cell svg{width:13px; height:13px; display:inline-block; vertical-align:-2px; color:var(--ink-4)}
.cg-cell:hover{background:#f1f5ff; color:var(--blue)}
.cg-cell.is-cheap{color:var(--green)}
.cg-cell.is-empty{color:var(--ink-4); font-weight:600}
.cg-cell.is-on,.cg-cell.is-on:hover{background:var(--blue); color:#fff; box-shadow:0 4px 12px rgba(16,70,240,.28)}
.cg-cell.is-on svg{color:rgba(255,255,255,.9)}
.cg-cell.is-off{color:#c7d0e0; cursor:default; font-weight:600}
.calgrid-foot{display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:8px; padding:9px 12px;
  background:#f4f8ff; border:1px solid #dbe6ff; border-radius:11px; font-size:13px; color:var(--ink-2)}
.calgrid-foot[hidden]{display:none}
.cgf-k{font-size:10.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--ink-3)}
.cgf-p{color:var(--ink); font-weight:800}

/* скелетон, пока считаются цены */
.cal-sk1,.cal-sk2,.cg-sk,.cg-cell.is-sk{background:linear-gradient(90deg,#eef2fa 0%,#e2e9f7 50%,#eef2fa 100%);
  background-size:200% 100%; animation:cgsheen 1.25s linear infinite; border-radius:5px}
.cal-day.is-sk{pointer-events:none; border-style:dashed; box-shadow:none}
.cal-sk1{width:54px; height:9px; margin-bottom:6px}
.cal-sk2{width:40px; height:11px}
.cg-col.is-sk,.cg-row.is-sk{pointer-events:none}
.cg-sk{display:inline-block; width:52px; height:10px}
.cg-cell.is-sk{display:block; min-height:30px; border-radius:9px}
@keyframes cgsheen{0%{background-position:0 0}100%{background-position:-200% 0}}
@media (max-width:760px){
  .calgrid-cap{font-size:10.5px; padding:8px 10px 6px; white-space:normal}
  .calgrid-tbl{min-width:600px}
  .cg-corner{width:80px; min-width:80px; font-size:9px; padding:5px 7px}
  .cg-row .cg-hbtn{padding:5px 8px}
  .cg-h1{font-size:11.5px}
  .cg-h2{font-size:10px}
  .cg-cell{min-width:66px; font-size:12px; padding:6px 3px}
  .calgrid-foot{font-size:12.5px; padding:8px 10px}
}
.rtop{display:flex; align-items:center; gap:16px; background:#fff; border-radius:14px; padding:13px 18px; box-shadow:var(--sh-1); margin-bottom:16px}
.rtop-h{font-size:clamp(17px,2.2vw,21px); font-weight:800}
.rtop-meta{font-size:13.5px; color:var(--ink-3); margin-top:2px}
.rtop-edit{margin-left:auto; display:inline-flex; align-items:center; justify-content:center; line-height:1; gap:7px; border:1px solid #d9e2f4; border-radius:10px; padding:9px 14px; font-size:13.5px; font-weight:650; color:var(--blue); white-space:nowrap}
.rtop-edit:hover{background:#f2f6ff}
.rtop-edit svg{width:15px;height:15px; flex:none}

.rlayout{display:grid; grid-template-columns:300px minmax(0,1fr); gap:22px; align-items:start}
.rf{background:#fff; border-radius:16px; padding:16px; box-shadow:var(--sh-1)}/* без внутреннего скролла: панель целиком в потоке страницы */
.rf::-webkit-scrollbar{width:6px}
.rf::-webkit-scrollbar-thumb{background:#cfd8ea; border-radius:3px}
.rf::-webkit-scrollbar-track{background:transparent}
.rf-head{display:flex; align-items:center; gap:10px; font-size:15px; font-weight:800; margin-bottom:2px}
.rf-close{display:none; margin-left:auto; width:28px;height:28px; border-radius:8px; background:#f1f4fb; color:var(--ink-2); font-size:18px; line-height:1; place-items:center}
.rf-foot{display:none}
.rf-reset{font-size:12.5px; font-weight:650; color:var(--blue); margin-left:auto}
.rf-head .rf-close{margin-left:8px}
.rf-g{padding:13px 0; border-top:1px solid var(--line-2)}
.rf-g:first-child{border-top:0}
.rf-t{font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-3); margin-bottom:6px}
.ck-logo{position:relative; flex:none; width:20px;height:20px;border-radius:5px; display:grid; place-items:center; font-size:7px; font-weight:800; overflow:hidden}
.ck-logo img{position:absolute; inset:0; width:100%;height:100%; object-fit:contain; background:#fff; padding:1px}
.ck{display:flex; align-items:center; gap:9px; padding:5px 0; font-size:13.8px; color:#26324b; cursor:pointer; user-select:none}
.ck input{position:absolute; opacity:0; width:0; height:0}
.ck-b{width:18px;height:18px;border-radius:5px;border:1.6px solid #ccd6ea; background:#fff; display:grid; place-items:center; flex:none; transition:.14s}
.ck-b.is-radio{border-radius:50%}
.ck input:checked + .ck-b{background:var(--blue); border-color:var(--blue)}
.ck input:checked + .ck-b::after{content:""; width:9px;height:5px; border:2px solid #fff; border-top:0; border-right:0; transform:rotate(-45deg) translateY(-1px)}
.ck input:checked + .ck-b.is-radio::after{width:6px;height:6px;border:0;border-radius:50%;background:#fff;transform:none}
.ck input:focus-visible + .ck-b{box-shadow:0 0 0 4px rgba(16,70,240,.16)}
.ck-l{flex:1; min-width:0; line-height:1.25; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.ck-c{font-size:12px; color:var(--ink-4); font-variant-numeric:tabular-nums}
.ck-p{font-size:11.5px; color:var(--blue-d); font-weight:700; margin-left:auto; white-space:nowrap; font-variant-numeric:tabular-nums}
.ck[data-off="1"]{opacity:.42; pointer-events:none}
.rf-price{margin-top:2px}
.rf-price input[type=range]{width:100%; accent-color:var(--blue); margin:6px 0 2px}
.rf-price-v{display:flex; justify-content:space-between; font-size:12px; color:var(--ink-3); font-variant-numeric:tabular-nums}
.rf-dual{position:relative; height:20px}
.rf-dual input[type=range]{position:absolute; left:0; right:0; width:100%; margin:4px 0 2px; pointer-events:none; background:transparent}
.rf-dual input[type=range]::-webkit-slider-thumb{pointer-events:auto}
.rf-dual input[type=range]::-moz-range-thumb{pointer-events:auto}
.rf-toggle{display:block; cursor:pointer}
.rf-toggle .rf-t{display:block}
.rf-tg-row{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:2px}
.rf-tg-l{font-size:13.8px; color:#26324b}
.rf-g-h{display:flex; align-items:center; gap:6px; width:100%; padding:0; background:none; border:0; font-size:11px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-3); cursor:pointer; text-align:left; margin:0}
.rf-g-h svg{width:14px;height:14px; flex:none; transition:transform .18s}
.rf-g.is-collapsed .rf-g-h svg{transform:rotate(-90deg)}
.rf-g-body{display:block; margin-top:6px}
.rf-g.is-collapsed .rf-g-body{display:none}
.rf-toggle input{position:absolute; opacity:0; width:0; height:0}
.rf-toggle input:checked + .sf-sw{background:var(--blue)}
.rf-toggle input:checked + .sf-sw::after{transform:translateX(14px)}

.rbar{display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:12px}
.rsort{display:inline-flex; background:#eaeef8; border-radius:12px; padding:3px; gap:2px}
.rsort button{padding:7px 15px; border-radius:9px; font-size:13.5px; font-weight:650; color:#5a6885; transition:.15s; white-space:nowrap}
.rsort button:hover{color:var(--ink)}
.rsort button.is-on{background:#fff; color:var(--blue-d); box-shadow:0 1px 3px rgba(12,20,36,.14)}
.rcount{font-size:13.5px; color:var(--ink-2); font-weight:600}
.rcount b{font-weight:800; color:var(--ink)}
.rf-open{display:none; align-items:center; gap:7px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:8px 12px; font-size:13.5px; font-weight:650; color:var(--ink-2)}
.rf-open svg{width:16px;height:16px}
.rf-open.is-on{border-color:var(--blue); color:var(--blue); background:#f2f6ff}

.rlist{display:flex; flex-direction:column; gap:10px}
.tcard{display:grid; grid-template-columns:minmax(0,1fr) 178px; background:#fff; border-radius:14px; box-shadow:0 1px 2px rgba(12,20,36,.05),0 5px 16px rgba(12,20,36,.05); border:1px solid transparent; transition:box-shadow .18s,border-color .18s}
.tcard:hover{box-shadow:0 8px 26px rgba(12,20,36,.12); border-color:#dde6f8}
.tcard-main{padding:13px 16px; min-width:0}
.tcard-air{display:flex; align-items:center; gap:8px; margin-bottom:9px; min-width:0}
.alogo{position:relative; flex:none; width:28px;height:28px;border-radius:8px; display:grid; place-items:center; font-size:11px; font-weight:800; letter-spacing:.01em; overflow:hidden; box-shadow:inset 0 0 0 1px rgba(12,20,36,.06)}
.alogo img{position:absolute; inset:0; width:100%;height:100%; object-fit:contain; background:#fff; padding:2px}
.aname{font-size:13px; font-weight:600; color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.alow{flex:none; font-size:10.5px; font-weight:700; line-height:1.5; color:#a25a05; background:#fff3e2; border-radius:4px; padding:0 5px; align-self:center}
.afl{font-size:12px; color:var(--ink-4); white-space:nowrap}

.tleg{display:grid; grid-template-columns:100px minmax(0,1fr) 100px; gap:12px; align-items:center}
.tleg-block + .tleg-block{margin-top:10px; padding-top:10px; border-top:1px dashed #dbe4f5}
.tleg-side{min-width:0}
.tleg-date{font-size:11px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:#6c7c9c; margin-bottom:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.tleg-time{font-size:20px; font-weight:800; letter-spacing:-.02em; line-height:1.15; white-space:nowrap; display:flex; align-items:baseline; gap:2px}
.tleg-time sup{font-size:10.5px; font-weight:700; color:var(--orange); vertical-align:super}
.tleg-sub{font-size:11.8px; line-height:1.25; color:#5d6d8f; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.tleg--r{text-align:right}
.tleg--r .tleg-time{justify-content:flex-end}
.tleg--r .tleg-sub{text-align:right}
.tpath{display:flex; flex-direction:column; align-items:center; gap:4px; min-width:0}
.tpath-dur{font-size:11.5px; font-weight:600; color:var(--ink-3); white-space:nowrap}
.tpath-line{position:relative; width:100%; height:16px; display:flex; align-items:center}
.tpath-line::before{content:""; position:absolute; left:0; right:0; top:50%; height:2px; background:#dfe6f4; border-radius:2px}
.tpath-line i{position:absolute; width:6px;height:6px;border-radius:50%; background:#fff; border:2px solid #c5d2ea; top:50%; transform:translateY(-50%)}
.tpath-line i.l{left:0}
.tpath-line i.r{right:0}
.tpath-line svg{position:relative; margin:0 auto; width:15px;height:15px; color:var(--blue); background:#fff; padding:0 2px}
.tpath-stop{font-size:11.5px; font-weight:600; color:#0b7a45; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%}
.tpath-stop.is-tr{color:#a2620a}
.tcard-foot{display:flex; align-items:center; gap:14px; margin-top:9px; padding-top:8px; border-top:1px solid #f4f6fb; font-size:11.5px; color:var(--ink-3); flex-wrap:wrap}
.tbf{display:inline-flex; align-items:center; gap:5px}
.tbf svg{width:13px;height:13px; color:#8494b0}
.tbf.is-no{color:#8f5348}
.tbf.is-no svg{color:#b98a80}

.tcard-buy{position:relative; border-left:1px dashed var(--line); padding:13px 16px; display:flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:5px; background:#fcfdff; border-radius:0 14px 14px 0}
.tprice{font-size:22px; font-weight:800; letter-spacing:-.02em; white-space:nowrap}
.tsub{font-size:11.5px; color:#6c7c9c; margin-top:-2px}
.tbuy{margin-top:5px; background:var(--orange); color:#fff; font-weight:700; font-size:13.5px; padding:9px 18px; border-radius:10px; box-shadow:0 6px 14px rgba(255,106,43,.28); transition:.16s; text-align:center}
.tbuy:hover{background:var(--orange-d); box-shadow:0 9px 18px rgba(255,106,43,.32)}

/* выбор агентства в карточке */
.tpick{font-size:11px; color:var(--ink-3); text-align:right; margin-top:2px}
.tag{margin-top:10px; padding-top:9px; border-top:1px solid #f4f6fb}
.tag-head{display:flex; align-items:center; gap:8px; width:100%; padding:7px 10px; border:1px solid var(--line); border-radius:10px; background:#f8faff; font-size:12.5px; color:var(--ink-2); text-align:left; transition:.15s}
.tag-head:hover{border-color:#c9d8f8; background:#f1f6ff}
.tag-ic{display:flex; color:var(--blue)}
.tag-t{font-weight:600; color:var(--ink); min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.tag-go{margin-left:auto; color:var(--blue); font-weight:600; font-size:12px; white-space:nowrap}
.tag-body{margin-top:8px; display:grid; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff}
.agr{position:relative; display:flex; align-items:center; gap:9px; padding:9px 11px; cursor:pointer; border-bottom:1px solid var(--line-2); transition:background .12s}
.agr:last-of-type{border-bottom:0}
.agr:hover{background:#f7faff}
.agr.is-pick{background:#f2f7ff}
.agr input{position:absolute; opacity:0; width:1px; height:1px; pointer-events:none}
.agr-b{flex:0 0 auto; width:15px; height:15px; border-radius:50%; border:2px solid #c3cfe4; position:relative}
.agr input:checked + .agr-b{border-color:var(--blue)}
.agr input:checked + .agr-b:after{content:""; position:absolute; inset:2px; border-radius:50%; background:var(--blue)}
.agr input:focus-visible + .agr-b{outline:2px solid #b9cdfb; outline-offset:2px}
.agr-main{display:flex; flex-direction:column; gap:2px; min-width:0}
.agr-n{display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:13px; font-weight:600; color:var(--ink)}
.agr-best{font-style:normal; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#0f8f4d; background:#e8f8ee; padding:1px 6px; border-radius:20px}
.agr-pick{font-style:normal; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#fff; background:var(--blue); padding:1px 6px; border-radius:20px}
.agr-sub{font-size:11.5px; color:var(--ink-2)}
.agr-p{margin-left:auto; font-weight:700; font-size:13.5px; white-space:nowrap}
/* логотипы агентств */
.lg{overflow:hidden}
.lg--img{background:#fff; border:1px solid var(--line); padding:3px}
.lg--img img{display:block; width:100%; height:100%; object-fit:contain}
.agr-l{flex:0 0 auto; display:grid; place-items:center; width:24px; height:24px; border-radius:7px; font-size:10px; font-weight:800}
.tag-note{margin:8px 11px 10px; font-size:11px; line-height:1.4; color:var(--ink-4)}
.tbf.is-unknown{color:var(--ink-4)}
.tbf.is-plus{color:#0f8f4d; font-weight:600}
@media (max-width:760px){
  .tag-head{font-size:12px; padding:8px 9px}
  .tag-t{white-space:normal; overflow:visible; text-overflow:clip; line-height:1.25}
  .tag-go{padding-left:6px}
  .agr{padding:9px 10px; gap:8px}
  .agr-n{font-size:12.5px}
  .agr-p{font-size:13px}
  .tpick{text-align:center}
}

.tseats{font-size:10.5px; color:#b45309; font-weight:650}

/* states */
.res-state{background:#fff; border-radius:16px; box-shadow:var(--sh-1); padding:34px 26px; text-align:center}
.res-state h3{font-size:19px; margin-bottom:8px}
.res-state p{color:var(--ink-2); font-size:14.5px; max-width:56ch; margin:0 auto 18px}
.res-state .btn-primary{margin-top:4px}
.res-state .st-ai{display:inline-block; margin-top:10px; font-size:14px; font-weight:600; color:var(--green); text-decoration:underline; text-underline-offset:3px; cursor:pointer}
.st-ic{width:54px;height:54px;border-radius:16px; display:grid; place-items:center; margin:0 auto 14px; background:#eef3ff; color:var(--blue)}
.st-ic svg{width:26px;height:26px}
.sk-card{height:112px;border-radius:14px; background:linear-gradient(100deg,#eef1f8 20%,#f7f9ff 40%,#eef1f8 60%); background-size:200% 100%; animation:sk 1.2s infinite}
@keyframes sk{0%{background-position:120% 0}100%{background-position:-20% 0}}
.btn-primary{display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--orange); color:#fff; font-weight:700; font-size:15px; padding:12px 20px; border-radius:11px; box-shadow:0 8px 18px rgba(255,106,43,.26); transition:transform .16s, box-shadow .16s}
.btn-primary:hover{transform:translateY(-1px); box-shadow:0 12px 24px rgba(255,106,43,.32)}
.res-note{font-size:12.5px; color:var(--ink-3); margin-top:16px; line-height:1.55; max-width:82ch}
.btn-more{margin-top:6px; width:100%; padding:14px; border-radius:12px; background:#fff; border:1px solid var(--line); font-size:14px; font-weight:650; color:var(--blue); transition:.16s}
.btn-more:hover{border-color:var(--blue); background:#f4f7ff}
.res-cta{margin-top:16px; display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; background:linear-gradient(120deg,#0b1533,#152a63); color:#fff; border-radius:16px; padding:20px 22px}
.res-cta-txt strong{display:block; font-size:16.5px; margin-bottom:3px}
.res-cta-txt span{font-size:13.5px; color:rgba(255,255,255,.72)}

body.is-results .hdr,body.is-results .hdr.is-solid{background:#fff; backdrop-filter:none; box-shadow:0 1px 0 var(--line)}
body.is-results .hero{display:none}
body.is-results .dest,body.is-results .how,body.is-results .why,body.is-results .faq{display:none}
body.is-results .results{padding-top:88px}
body.is-results .ftr{margin-top:40px}
body.is-edit .hero{display:block}
body.is-edit .hero-bg,body.is-edit .hero-veil,body.is-edit .hero-in{display:none}
body.is-edit .hero{padding:88px 0 0; background:#fff; border-bottom:1px solid var(--line-2)}
body.is-edit .sf{margin:0 0 14px; box-shadow:var(--sh-1)}
body.is-edit .results{padding-top:18px}
body.is-edit .rtop{display:none}

/* ------------------------------ sections ------------------------------ */
.sec{padding:116px 0 0}
.dest{padding-top:150px}
.sec-head{max-width:640px; margin-bottom:26px}
.sec-head h2{font-size:clamp(24px,3.4vw,38px); font-weight:800}
.sec-head p{margin-top:10px; color:var(--ink-2); font-size:16px}
.dest-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.dcard{position:relative; height:230px; border-radius:20px; overflow:hidden; text-align:left; box-shadow:var(--sh-1); isolation:isolate}
.dcard-bg{position:absolute; inset:0; background-image:var(--img); background-size:cover; background-position:center; transform:scale(1.02); transition:transform .5s ease; z-index:-2}
.dcard::after{content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(6,14,34,0) 30%,rgba(6,14,34,.78) 100%)}
.dcard:hover .dcard-bg{transform:scale(1.09)}
.dcard-in{position:absolute; inset:auto 0 0; padding:18px 20px; display:flex; flex-direction:column; gap:2px; color:#fff}
.dcard-name{font-size:20px; font-weight:800}
.dcard-sub{font-size:13px; color:rgba(255,255,255,.78)}
.dcard-price{margin-top:8px; align-self:flex-start; font-size:13px; font-weight:700; background:rgba(255,255,255,.94); color:var(--ink); border-radius:999px; padding:6px 12px}
.dcard-price:empty{display:none}
/* Карточка направления — ссылка на поиск: работает и без JS, и в новой вкладке */
a.dcard{display:block; text-decoration:none; color:inherit}
/* У города нет фото — не белая дырка, а спокойная заливка в цветах сайта */
.dcard.is-noimg .dcard-bg{background-image:none; background:linear-gradient(140deg,#16334c 0%,#2a5b80 58%,#3d7f87 100%)}
.dcard.is-noimg::before{content:""; position:absolute; inset:0; z-index:-2; background:
  radial-gradient(circle at 76% 24%, rgba(255,255,255,.18), transparent 46%),
  repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px)}


.how-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.how-card{background:#fff; border-radius:var(--r); box-shadow:var(--sh-1); padding:24px}
.how-num{font-size:13px; font-weight:800; color:var(--blue); letter-spacing:.08em}
.how-card h3{margin:12px 0 8px; font-size:19px}
.how-card p{color:var(--ink-2); font-size:14.5px}

.why{padding-top:110px}
.why-in{display:grid; grid-template-columns:1.25fr .75fr; gap:44px; align-items:center}
.why-list{list-style:none; margin:26px 0 0; padding:0; display:flex; flex-direction:column; gap:20px}
.why-list li{display:flex; gap:16px}
.why-ic{flex:none; width:44px;height:44px;border-radius:13px; display:grid; place-items:center; background:#fff; box-shadow:var(--sh-1); color:var(--blue)}
.why-ic svg{width:22px;height:22px}
.why-list strong{font-size:16px}
.why-list p{color:var(--ink-2); font-size:14.5px; margin-top:3px}
.why-visual{position:relative; height:300px}
.wv-card{position:absolute; background:#fff; border-radius:16px; box-shadow:var(--sh-2); padding:14px 18px; display:flex; align-items:center; gap:10px; font-weight:700; font-size:14px}
.wv-card svg{width:18px;height:18px; color:var(--blue)}
.wv-a{top:26px; left:6%; background:var(--grad); color:#fff}
.wv-a svg{color:rgba(255,255,255,.85)}
.wv-b{top:106px; right:0; flex-direction:column; align-items:flex-start; gap:2px}
.wv-b em,.wv-c em{font-style:normal; font-size:12px; color:var(--ink-3); font-weight:600; letter-spacing:.06em; text-transform:uppercase}
.wv-b strong,.wv-c strong{font-size:19px}
.wv-c{bottom:34px; left:2%; flex-direction:column; align-items:flex-start; gap:2px}

.faq{padding-top:100px}
.faq-list{max-width:820px; display:flex; flex-direction:column; gap:10px}
.faq-item{background:#fff; border-radius:14px; box-shadow:var(--sh-1); padding:2px 4px}
.faq-item summary{cursor:pointer; list-style:none; padding:17px 18px; font-weight:600; font-size:16px; display:flex; justify-content:space-between; gap:14px; align-items:center}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+"; font-size:22px; font-weight:400; color:var(--ink-3); line-height:1}
.faq-item[open] summary::after{content:"–"}
.faq-body{padding:0 18px 18px; color:var(--ink-2); font-size:14.5px; line-height:1.6; max-width:74ch}

/* ------------------------------- footer ------------------------------- */
.ftr{margin-top:110px; background:#080f22; color:rgba(255,255,255,.72); padding:44px 0 22px}
.ftr-in{display:flex; gap:40px; justify-content:space-between; flex-wrap:wrap; padding-bottom:28px; border-bottom:1px solid rgba(255,255,255,.09)}
.ftr-brand{max-width:360px}
.ftr-brand p{margin-top:14px; font-size:14px; line-height:1.6}
.ftr-nav{display:flex; flex-direction:column; gap:10px; font-size:14.5px}
.ftr-nav a:hover{color:#fff}
.ftr-legal{padding-top:18px; font-size:12.5px; line-height:1.6; color:rgba(255,255,255,.42); max-width:900px}

/* ------------------------------ responsive ----------------------------- */
@media (max-width:1080px){
  .sf-row{grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr) minmax(0,.9fr) minmax(0,.9fr)}
  .sf-cell--pax{grid-column:1 / span 2}
  .sf-submit{grid-column:3 / -1; min-height:52px}
  .sf-quick{margin-left:0}
  .rlayout{grid-template-columns:1fr}
  .rf{position:static; max-height:none}
  .rf-open{display:inline-flex}
  .dest-grid{grid-template-columns:repeat(2,1fr)}
  .how-grid{grid-template-columns:1fr}
  .why-in{grid-template-columns:1fr; gap:20px}
  .why-visual{display:none}
}
@media (max-width:900px){
  .rf{display:none; position:fixed; z-index:120; inset:auto 0 0 0; max-height:84vh; border-radius:16px 16px 0 0; box-shadow:0 -8px 40px rgba(8,14,30,.28); padding:16px 16px 22px; overflow:auto}
  .rf.is-open{display:block; padding-bottom:0}
  .rf-close{display:grid}
  .rf-foot{display:block; position:sticky; bottom:-24px; margin:0 -16px; padding:12px 16px calc(14px + env(safe-area-inset-bottom)); background:#fff; box-shadow:0 -10px 24px rgba(12,20,36,.08); border-top:1px solid var(--line-2)}
  .rf-apply{width:100%; padding:13px; border-radius:11px; background:var(--orange); color:#fff; font-weight:700; font-size:15px}
  #rf-groups{padding-bottom:6px}
  .rf-backdrop{position:fixed; inset:0; z-index:110; background:rgba(8,14,30,.45); backdrop-filter:blur(2px)}
}
@media (max-width:760px){
  .hdr-in{height:64px; gap:12px}
  .hdr .nav{display:none}
  .hdr-phone span{display:none}
  .hero{padding-top:92px}
  .hero-sub{font-size:15px}
  .sf{margin-bottom:-72px; padding:12px; border-radius:18px}
  .sf-row{grid-template-columns:1fr 1fr; gap:7px}
  .sf-cell--place{grid-column:1 / -1}
  .sf-swap{position:absolute; right:14px; top:96px; width:34px; height:34px; background:#fff; z-index:6}
  .sf-cell--place[data-pick="origin"] input.sf-in{padding-right:76px}
  /* × в «Откуда» сдвинут левее круглой кнопки «⇄», иначе она перекрывает его (z-index 6 > 4) */
  .sf-cell--place[data-pick="origin"] .sf-clear{right:48px; z-index:7}
  .sf-cell--pax{grid-column:1 / -1}
  .sf-submit{grid-column:1 / -1; min-height:50px; font-size:15.5px}
  .sf-tabs{overflow:auto}
  .sf-tab{padding:7px 12px; font-size:13.5px}
  .sf-foot{gap:10px; margin-top:10px}
  .sf-quick{display:none}
  .dest{padding-top:118px}
  .dest-grid{grid-template-columns:1fr; gap:12px}
  .dcard{height:180px}
  .results{padding-top:16px}
  body.is-results .results{padding-top:78px}
  .rtop{padding:12px 14px; gap:10px; align-items:flex-start}
  .rtop-edit{margin-left:0; padding:8px 11px; font-size:13px}
  .rtop-h{font-size:17px}
  .rbar{gap:8px}
  .rsort{flex:1; overflow:auto}
  .rsort button{padding:6px 9px; font-size:12px}
  .rf-open{padding:7px 10px; font-size:12.5px}
  .rcount{order:3; width:100%; font-size:13px}
  .tcard{grid-template-columns:1fr}
  .tcard-buy{flex-direction:row; align-items:center; justify-content:space-between; border-left:0; border-top:1px dashed var(--line); padding:11px 14px; border-radius:0 0 14px 14px}
  .tprice{font-size:20px}
  .tsub{display:none}
  .tbuy{margin-top:0; padding:9px 16px}
  .tleg{grid-template-columns:80px minmax(0,1fr) 80px; gap:8px}
  .tleg-sub{font-size:11px}
  .tleg-date{font-size:10.5px}
  .tleg-time{font-size:18px}
  .tleg-sub{font-size:11px}
  .tcard-foot{gap:10px; font-size:11px}
  .ftr{margin-top:70px}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001s !important; transition-duration:.001s !important}
}

/* ===== Страница поиска /flights ===== */
.hero--page{padding-top:100px; padding-bottom:40px}
.hero--page .hero-in{padding-bottom:0}
.hero--page .hero-h1{max-width:26ch}
.hero--page .sf{margin:20px 0 0}
@media (max-width:760px){ .hero--page{padding-top:84px; padding-bottom:30px} }

/* ===== White Label Travelpayouts (опционально) ===== */
.tpwl-container{position:relative; z-index:5; background:var(--card); border-radius:20px; box-shadow:var(--sh-2); padding:14px 16px; min-height:104px}
.wl-results{padding:22px 0 6px; min-height:120px}
body.is-wl #own-search, body.is-wl #results{display:none}
body.is-wl .hero--page{padding-bottom:18px}
body.is-wl .how{padding-top:40px}
.wl-note{margin:0 0 14px; padding:12px 16px; border-radius:14px; background:#fff7e6; border:1px solid #f3d59b; color:#7a5a12; font-size:14.5px; line-height:1.45}

/* ------------------- окно выбора агентства (по клику «Купить») ------------------- */
body.bm-open{overflow:hidden}
.bm{position:fixed; inset:0; z-index:200}
.bm-bd{position:absolute; inset:0; background:rgba(8,14,30,.52); backdrop-filter:blur(2px)}
.bm-sheet{position:relative; z-index:1; width:min(1000px,calc(100% - 32px)); margin:3vh auto; max-height:94vh; overflow:auto; background:var(--card); border-radius:20px; box-shadow:var(--sh-2); -webkit-overflow-scrolling:touch}
.bm-top{position:sticky; top:0; z-index:3; display:flex; align-items:flex-start; gap:14px; padding:16px 20px 13px; background:#fff; border-bottom:1px solid var(--line); border-radius:20px 20px 0 0}
.bm-route b{display:block; font-size:17px; letter-spacing:-.02em}
.bm-route span{display:block; margin-top:2px; font-size:12.5px; color:var(--ink-3)}
.bm-acts{margin-left:auto; display:flex; align-items:center; gap:4px; flex:none}
.bm-share{color:var(--blue); font-size:12.5px; font-weight:600; padding:7px 9px; border-radius:9px}
.bm-share:hover{background:#f1f6ff}
.bm-x{display:flex; align-items:center; gap:5px; color:#d92b2b; font-size:12.5px; font-weight:600; padding:7px 9px; border-radius:9px}
.bm-x:hover{background:#fdf0f0}
.bm-cols{display:grid; grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr); align-items:stretch}
.bm-col{padding:15px 18px 18px; min-width:0}
.bm-col--l{border-right:1px solid var(--line)}
.bm-air{display:flex; align-items:center; gap:9px}
.bm-air .alogo{width:34px; height:34px; border-radius:9px; font-size:12px}
.bm-air-t b{display:block; font-size:14px}
.bm-air-t span{font-size:11.5px; color:var(--ink-3)}
.bm-tariffs{display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 0}
.bmt{display:flex; flex-direction:column; gap:1px; padding:7px 11px; border:1px solid var(--line); border-radius:11px; background:#fff; text-align:left; transition:.15s}
.bmt span{font-size:12px; font-weight:600; color:var(--ink-2); white-space:nowrap}
.bmt b{font-size:12.5px; color:var(--ink)}
.bmt:hover{border-color:#c9d8f8; background:#f8faff}
.bmt.is-on{border-color:var(--blue); background:#f2f7ff; box-shadow:inset 0 0 0 1px rgba(16,70,240,.18)}
.bmt.is-on span,.bmt.is-on b{color:var(--blue-d)}
.bmf{margin-top:11px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fcfdff}
.bmf-h{display:flex; align-items:center; gap:10px; padding:10px 13px; background:#f4f7fd; border-bottom:1px solid var(--line)}
.bmf-t{font-size:13px; font-weight:700}
.bmf-p{margin-left:auto; font-size:13.5px; font-weight:800}
.bmf-l{list-style:none; margin:0; padding:9px 13px}
.bmf-l li{display:flex; align-items:flex-start; gap:8px; padding:4px 0; font-size:12.5px; color:var(--ink); line-height:1.35}
.bmf-l li b{margin-left:auto; font-size:11px; font-weight:600; color:var(--ink-2); white-space:nowrap}
.bmf-l li i{flex:none; display:grid; place-items:center; width:15px; height:15px; margin-top:1px; border-radius:50%; font-style:normal; font-size:9px; font-weight:800; line-height:1}
.bmf-l .is-ok i{background:#e8f8ee; color:#0f8f4d}
.bmf-l .is-no i{background:#fdecec; color:#d15353}
.bmf-l .is-q i{background:#fff4e5; color:#b45309}
.bmf-seats{padding:0 13px 10px; font-size:11.5px; font-weight:600; color:#b45309}
.bm-segs{margin-top:11px; display:grid; gap:9px}
.bms{border:1px solid var(--line); border-radius:14px; padding:10px 13px 11px; background:#fff}
.bms-d{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-4); margin-bottom:7px}
.bms-row{display:flex; align-items:center; gap:8px}
.bms-side{flex:0 0 auto; min-width:64px}
.bms-side b{display:block; font-size:18px; font-weight:800; letter-spacing:-.02em; line-height:1.1}
.bms-side b sup{font-size:10px; font-weight:700; vertical-align:super; color:var(--ink-3)}
.bms-side span{font-size:10.5px; color:var(--ink-3); white-space:nowrap}
.bms-side.is-r{text-align:right}
.bms-mid{flex:1 1 auto; display:flex; flex-direction:column; align-items:center; gap:2px; min-width:0}
.bms-dur{font-size:11px; font-weight:600; color:var(--ink-2); white-space:nowrap}
.bms-line{display:flex; align-items:center; gap:4px; width:100%; color:#b9c8e6}
.bms-line svg{width:12px; height:12px; flex:none; transform:rotate(90deg); color:var(--ink-4)}
.bms-line i{flex:1 1 auto; height:1px; background:currentColor}
.bms-fl{font-size:10.5px; color:var(--ink-4); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%}
.bms-ap{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-top:7px; padding-top:7px; border-top:1px dashed var(--line-2)}
.bms-ap span{display:flex; align-items:baseline; gap:5px; min-width:0}
.bms-ap b{font-size:12px; font-weight:650; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.bms-ap i{font-style:normal; font-size:10.5px; color:var(--ink-4); flex:none}
.bms-ap .is-r{text-align:right; justify-content:flex-end}
.bmc-h{display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; margin-bottom:9px}
.bmc-h b{font-size:15px}
.bmc-h span{font-size:11.5px; color:var(--ink-3)}
.bmc-t{display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; min-width:0}
.bm-sort{display:inline-flex; gap:2px; margin-left:auto; padding:2px; background:#eef2fa; border-radius:9px; flex:none}
.bm-sort-b{font-family:inherit; border:0; background:transparent; cursor:pointer; font-size:11px; font-weight:650; color:var(--ink-3); padding:5px 9px; border-radius:7px; white-space:nowrap; transition:.14s}
.bm-sort-b:hover{color:var(--blue)}
.bm-sort-b.is-on{background:#fff; color:var(--ink); box-shadow:0 1px 3px rgba(16,40,90,.14)}
.bma-tr{font-style:normal; font-size:9.5px; font-weight:700; letter-spacing:.01em; color:#0f6b3d; background:#eefaf2; padding:1px 6px; border-radius:20px; white-space:nowrap}
.bma-list{display:grid; gap:7px}
.bma{display:flex; align-items:center; gap:10px; padding:9px 11px; border:1px solid var(--line); border-radius:12px; background:#fff; transition:.15s}
.bma:hover{border-color:#c9d8f8; box-shadow:0 6px 16px rgba(16,70,240,.07)}
.bma.is-best{border-color:#cfe6d8; background:#fbfefc}
.bma-main{display:flex; align-items:center; gap:9px; min-width:0; flex:1 1 auto}
.bma-l{flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:9px; font-size:12px; font-weight:800; letter-spacing:.01em}
.bma-txt{min-width:0; display:flex; flex-direction:column; gap:1px}
.bma-txt b{display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:13px; font-weight:650}
.bma-best{font-style:normal; font-size:9.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#0f8f4d; background:#e8f8ee; padding:1px 6px; border-radius:20px}
.bma-txt span{font-size:11px; color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.bma-pay{color:var(--ink-3) !important}
.bma-act{margin-left:auto; display:flex; align-items:center; gap:9px; flex:none}
.bma-price{font-size:14px; font-weight:800; white-space:nowrap}
.bma-buy{background:var(--orange); color:#fff; font-weight:700; font-size:12.5px; padding:8px 15px; border-radius:9px; box-shadow:0 6px 14px rgba(255,106,43,.26); transition:.16s; white-space:nowrap}
.bma-buy:hover{background:var(--orange-d)}
.bm-more{margin-top:8px; width:100%; padding:9px; border:1px solid var(--line); border-radius:11px; background:#f8faff; font-size:12.5px; font-weight:600; color:var(--blue)}
.bm-more:hover{background:#f1f6ff}
.bm-note{margin-top:10px; font-size:11px; line-height:1.45; color:var(--ink-3)}
.bm-empty{padding:26px; text-align:center; color:var(--ink-3)}
.tbuy{font-family:inherit; border:0; cursor:pointer}

@media (max-width:860px){
  .bm-sheet{width:100%; max-height:100%; height:100%; margin:0; border-radius:0; display:flex; flex-direction:column}
  .bm-in{display:flex; flex-direction:column; min-height:0; flex:1 1 auto}
  .bm-top{border-radius:0; padding:12px 14px 10px; flex:none}
  .bm-route b{font-size:15.5px}
  .bm-route span{font-size:11.5px}
  .bm-x span{display:none}
  .bm-cols{grid-template-columns:minmax(0,1fr); flex:1 1 auto}
  .bm-col{padding:12px 14px 16px}
  .bm-col--r{order:-1; border-bottom:1px solid var(--line); background:#fbfcff}
  .bm-col--l{border-right:0}
  .bm-share{font-size:12px}
  .bma{padding:9px 10px; gap:8px}
  .bma-l{width:30px; height:30px; font-size:11.5px}
  .bma-txt b{font-size:12.5px}
  .bma-tr{font-size:9px; padding:1px 5px}
  .bm-sort-b{font-size:10.5px; padding:5px 7px}
  .bma-txt span{font-size:10.5px}
  .bma-price{font-size:13.5px}
  .bma-buy{padding:8px 13px; font-size:12px}
  .bms-side b{font-size:17px}
  .bmf-l li{font-size:12px}
}
@media (max-width:420px){
  .bma-txt span.bma-pay{display:none}
  .bma-act{gap:7px}
}
.bm-sheet{scrollbar-width:thin; scrollbar-color:#c7d3e8 transparent}
.bm-sheet::-webkit-scrollbar{width:8px}
.bm-sheet::-webkit-scrollbar-thumb{background:#d3ddec; border-radius:8px}
.bm-sheet::-webkit-scrollbar-thumb:hover{background:#bccbe3}
.bm-sheet::-webkit-scrollbar-track{background:transparent}

/* ------------------- сложный маршрут и состав пассажиров ------------------- */
.pax-pop{width:292px}
.pax-sep{height:1px; background:var(--line-2); margin:6px 0 10px}
.pax-title{font-size:10.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:#67758f; margin:0 0 4px}
.pax-cls-row{display:flex; align-items:center; gap:9px; padding:6px 0; font-size:14.5px; font-weight:600; color:var(--ink); cursor:pointer}
.pax-cls-row input{width:16px; height:16px; accent-color:var(--orange); cursor:pointer; flex:none}

.sf-multi{display:grid; gap:8px; margin:0 0 9px}
.sf-mrow{display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,.8fr) 36px; gap:8px; align-items:stretch}
.sf-mrow .sf-cell{padding:7px 12px 8px}
.sf-mrow .sf-cell--date{position:relative}
.sf-mdate{display:block; padding-top:2px; font-size:15px; font-weight:650; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.sf-mdate.is-empty{color:#9dabc6; font-weight:500}
.sf-mrow-x{align-self:center; width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:#fff; border:1px solid #eaeef8; box-shadow:0 2px 10px rgba(12,20,36,.08); color:#8595b3; transition:.16s}
.sf-mrow-x:hover:not([disabled]){color:#e0402e; border-color:#f2cbc4}
.sf-mrow-x[disabled]{opacity:.35; cursor:not-allowed}
.sf-mrow-x svg{width:15px; height:15px}
.sf-multi-foot{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 10px}
.sf-addrow{display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:700; color:var(--blue); padding:5px 2px}
.sf-addrow:hover{color:var(--blue-d)}
.sf-addrow[disabled]{opacity:.45; cursor:not-allowed}
.sf-addrow svg{width:15px; height:15px}
.sf-multi-note{font-size:12.5px; color:var(--ink-4)}
#sform.is-multi #simple-row{grid-template-columns:minmax(0,240px) auto; justify-content:end}
#sform.is-multi #simple-row .sf-cell--place,
#sform.is-multi #simple-row .sf-swap,
#sform.is-multi #simple-row .sf-cell--date{display:none}

/* метка перелёта в выдаче для сложного маршрута */
.tleg-num{display:inline-flex; align-items:center; gap:6px}
.tleg-num i{font-style:normal; font-size:10.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--blue-d); background:#e8efff; border-radius:6px; padding:2px 6px}

@media (max-width:1080px){
  #sform.is-multi #simple-row{grid-template-columns:minmax(0,240px) auto}
}
@media (max-width:760px){
  .sf-mrow{grid-template-columns:1fr 34px; gap:7px}
  .sf-mrow > .sf-cell{grid-column:1}
  .sf-mrow > .sf-mrow-x{grid-column:2; grid-row:1; width:34px; height:34px}
  .pax-pop{width:min(292px,calc(100vw - 44px))}
  #sform.is-multi #simple-row{grid-template-columns:1fr}
}

/* пассажиры: сводка в две строки без переносов */
.pax-open{display:flex; flex-direction:column; align-items:flex-start; gap:1px; padding:2px 0 0; text-align:left; min-width:0; width:100%}
.pax-txt{max-width:100%; overflow:hidden; text-overflow:ellipsis}
.pax-cls{max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block}
.sf-cell--pax{min-width:0}

/* на мобильном пассажиры открываются снизу — иначе попап уходит за край экрана */
@media (max-width:760px){
  .pax-pop{position:fixed; left:12px; right:12px; bottom:12px; top:auto; width:auto; z-index:150;
    box-shadow:0 -8px 40px rgba(8,14,30,.28); border-radius:16px; padding:16px 16px calc(16px + env(safe-area-inset-bottom))}
}

/* попап пассажиров: вверх, если снизу не помещается */
.pax-pop.is-up{top:auto; bottom:calc(100% + 8px)}
.pax-pop{max-height:calc(100vh - 40px); overflow:auto; scrollbar-width:thin}

/* сложный маршрут: длинная метка перелёта переносится, а не обрезается */
.tleg-date{white-space:normal; overflow:visible; text-overflow:clip; line-height:1.4}
@media (max-width:760px){
  .tleg-date{font-size:10px; line-height:1.45}
}

/* ======================= ЖД-билеты (Сапсан и поезда) ======================= */
.alogo--rail{background:#0f3d6e; color:#fff}
.alogo--rail svg{position:relative; width:17px; height:17px}
.atr{flex:none; display:inline-flex; align-items:center; gap:4px; font-size:10.5px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; line-height:1.65; border-radius:5px; padding:0 6px; align-self:center; white-space:nowrap}
.atr svg{width:11px; height:11px}
.atr--train{color:#0b3f7d; background:#e7f0ff; box-shadow:inset 0 0 0 1px #c6dbfe}
.atr--mixed{color:#7a3d00; background:#fff2df; box-shadow:inset 0 0 0 1px #ffd9a8}
.afl--rail{display:inline-flex; align-items:center; gap:4px; color:#0f3d6e; font-weight:600}
.afl--rail svg{width:12px; height:12px}
.tcard.is-train{border-color:#d5e2f8; box-shadow:inset 3px 0 0 #0f3d6e, 0 1px 2px rgba(12,20,36,.05), 0 5px 16px rgba(12,20,36,.05)}
.tcard.is-train .tcard-buy{background:#f8fbff}
.tpath-line.is-rail::before{height:3px; background:repeating-linear-gradient(90deg,#b9cbe8 0 7px,transparent 7px 11px)}
.tpath-line.is-rail svg{color:#0f3d6e}
.tpath-line.is-rail i{border-color:#a9bfe3}
.tleg-block.is-rail .tleg-date{color:#2a5b95}

/* переключатель «Все / Самолёты / Поезда» */
.trbar{display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:0 0 12px}
.trbar[hidden]{display:none}
.trb-t{font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#7b89a6; margin-right:3px}
.trb{display:inline-flex; align-items:center; gap:6px; border:1px solid #dbe4f5; background:#fff; border-radius:999px; padding:6px 11px; font-size:12.5px; font-weight:600; color:var(--ink-2); cursor:pointer; transition:background .15s,border-color .15s,color .15s}
.trb svg{width:13px; height:13px; color:#8090ad}
.trb b{font-size:11px; font-weight:700; color:#8b98b2}
.trb:hover{border-color:#c2d3ee}
.trb.is-on{background:#0f3d6e; border-color:#0f3d6e; color:#fff}
.trb.is-on svg,.trb.is-on b{color:#d7e5fa}
.trb[data-tr="train"].is-on{background:#0b3f7d}

/* поезд в фильтрах и в попапе покупки */
.ck-logo.is-rail{background:#e7f0ff; color:#0f3d6e}
.ck-logo.is-rail svg{width:13px; height:13px}
.bms.is-rail .bms-line svg{transform:none; color:#0f3d6e}
.bms.is-rail .bms-line i{background:repeating-linear-gradient(90deg,#b9cbe8 0 6px,transparent 6px 9px)}
.bms-tag{font-style:normal; font-size:9.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:#0b3f7d; background:#e7f0ff; border-radius:4px; padding:1px 5px; margin-left:4px; vertical-align:middle}
.bm-note b{color:#0f3d6e}
@media (max-width:760px){
  .trbar{gap:4px}
  .trb{padding:6px 9px; font-size:12px}
  .trb-t{display:none}
  .atr{font-size:10px; padding:0 5px}
  .tcard.is-train{box-shadow:inset 3px 0 0 #0f3d6e, 0 1px 2px rgba(12,20,36,.05)}
}

/* длинные названия вокзалов не должны вылезать за колонку */
.tleg-sub, .bms-ap b{overflow-wrap:anywhere; word-break:break-word}
@media (max-width:760px){
  .trbar{flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; margin:0 -14px 10px; padding:0 14px 2px}
  .trbar::-webkit-scrollbar{display:none}
  .trb{flex:none; white-space:nowrap}
  .tleg-sub{font-size:10.6px}
}
@media (max-width:760px){
  .tleg{grid-template-columns:94px minmax(0,1fr) 94px; gap:6px}
  .tleg-sub{font-size:10.2px; overflow-wrap:normal; word-break:normal}
}

/* ===================== Плашка «Установить приложение» (PWA) ===================== */
.pwa-i{
  position:fixed; left:14px; right:14px; bottom:14px; z-index:9000;
  display:flex; align-items:center; gap:12px;
  padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));
  background:var(--card,#fff); border:1px solid var(--line,#e5e9f3);
  border-radius:16px; box-shadow:0 18px 44px rgba(12,20,40,.20);
  transform:translateY(130%); opacity:0;
  transition:transform .3s cubic-bezier(.2,.8,.25,1), opacity .2s ease;
  max-width:520px; margin:0 auto;
  font-family:inherit;
}
.pwa-i.is-on{ transform:translateY(0); opacity:1 }
.pwa-i-ico{ flex:0 0 auto; width:44px; height:44px; border-radius:11px; display:block }
.pwa-i-txt{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; color:var(--ink,#0c1424) }
.pwa-i-txt b{ font-size:14.5px; font-weight:700; line-height:1.25; letter-spacing:-.01em }
.pwa-i-txt span{ font-size:12.5px; line-height:1.35; color:var(--ink-3,#7484a3) }
.pwa-i-go{
  flex:0 0 auto; border:0; cursor:pointer; border-radius:10px; padding:10px 16px;
  font:inherit; font-size:14px; font-weight:700; color:#fff;
  background:var(--grad,linear-gradient(135deg,#0e3ff2,#3b5bff));
  box-shadow:0 6px 16px rgba(16,60,240,.24); transition:filter .15s ease, transform .1s ease;
  white-space:nowrap;
}
.pwa-i-go:hover{ filter:brightness(1.06) }
.pwa-i-go:active{ transform:translateY(1px) }
.pwa-i-x{
  position:absolute; top:-9px; right:-7px; width:26px; height:26px; border-radius:50%;
  border:1px solid var(--line,#e5e9f3); background:var(--card,#fff); color:var(--ink-3,#7484a3);
  font-size:16px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 8px rgba(12,20,40,.12); padding:0;
}
.pwa-i-x:hover{ color:var(--ink,#0c1424) }
@media (min-width:760px){
  .pwa-i{ left:auto; right:22px; bottom:22px; margin:0; width:404px; }
}
@media (max-width:430px){
  .pwa-i{ gap:10px; padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px)) }
  .pwa-i-ico{ width:38px; height:38px }
  .pwa-i-txt b{ font-size:13.5px }
  .pwa-i-txt span{ font-size:11.5px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
  .pwa-i-go{ padding:9px 13px; font-size:13px }
}
@media (max-width:340px){
  .pwa-i-txt span{ display:none }
}
@media print{ .pwa-i{ display:none !important } }

/* плашка не должна закрывать кнопку поиска — пока она видна, оставляем место под неё */
body.pwa-on{ padding-bottom:92px }
@media (min-width:760px){ body.pwa-on{ padding-bottom:0 } }

/* --- AI-поиск: на телефоне меню скрыто, поэтому отдельная кнопка в шапке --- */
.hdr .hdr-ai{ display:none }
.hdr .hdr-ai-mini{ display:none }
@media (max-width:760px){
  .hdr-in{ gap:8px }
  .hdr .hdr-ai{
    display:inline-flex; align-items:center; gap:5px; margin-left:auto; flex:none;
    padding:7px 10px; border-radius:999px; font-size:12.5px; font-weight:600; letter-spacing:.01em;
    color:#0b6a48; background:#fff; border:1px solid rgba(255,255,255,.85);
    box-shadow:0 4px 14px rgba(6,38,27,.22);
    -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); white-space:nowrap;
    transition:background .18s, border-color .18s;
  }
  .hdr .hdr-ai svg{ width:14px; height:14px; flex:0 0 auto }
  .hdr .hdr-ai:hover{ background:rgba(255,255,255,.28) }
  .hdr .hdr-ai-txt{ display:none }
  .hdr .hdr-ai-mini{ display:inline }
  .hdr.is-solid .hdr-ai{ color:var(--green); background:rgba(15,169,88,.10); border-color:rgba(15,169,88,.26) }
  .hdr.is-solid .hdr-ai:hover{ background:rgba(15,169,88,.16) }
  .hdr .hdr-phone{ margin-left:0 }
}
/* совсем узкие экраны: жертвуем кнопкой «Помощь», но не AI-поиском */
@media (max-width:380px){
  .hdr .hdr-ai ~ .hdr-phone{ display:none }
  .lang-sw button{ padding:6px 7px }
}
@media (max-width:350px){
  .hdr .hdr-ai-mini{ display:none }
  .hdr .hdr-ai{ padding:8px }
}

/* --- мобильное меню (бургер) ---------------------------------------------
   ≤760px: строка разделов в шапке скрыта, её заменяет бургер и панель под
   шапкой. Переключатель RU/EN на телефоне переезжает в панель (см. nav.js).
   Панель не перекрывает контент насовсем: закрывается кликом мимо, Esc и
   переходом по ссылке. ---------------------------------------------------- */
.hdr-burger{ display:none }
.hdr-burger-ic{ display:block; width:18px; height:14px; position:relative }
.hdr-burger-ic i{
  position:absolute; left:0; right:0; height:2px; border-radius:2px;
  background:currentColor; transition:transform .2s ease, opacity .16s ease;
}
.hdr-burger-ic i:nth-child(1){ top:0 }
.hdr-burger-ic i:nth-child(2){ top:6px }
.hdr-burger-ic i:nth-child(3){ top:12px }
.hdr.is-menu .hdr-burger-ic i:nth-child(1){ transform:translateY(6px) rotate(45deg) }
.hdr.is-menu .hdr-burger-ic i:nth-child(2){ opacity:0 }
.hdr.is-menu .hdr-burger-ic i:nth-child(3){ transform:translateY(-6px) rotate(-45deg) }

.hdr-menu{ display:none }

@media (max-width:760px){
  .hdr-burger{
    display:inline-flex; align-items:center; justify-content:center;
    width:40px; height:40px; flex:none; margin-left:8px; border-radius:12px;
    color:#fff; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.34);
    box-shadow:0 4px 14px rgba(6,38,27,.18);
    transition:background .18s, border-color .18s, color .18s;
  }
  .hdr.is-solid .hdr-burger{
    color:var(--ink); background:rgba(12,29,23,.05);
    border-color:rgba(12,29,23,.10); box-shadow:none;
  }
  .hdr-burger:active{ background:rgba(255,255,255,.30) }
  .hdr.is-solid .hdr-burger:active{ background:rgba(12,29,23,.10) }
  /* переключатель языка живёт в панели → в шапке его нет */
  .hdr-in .lang-sw{ display:none }

  .hdr-menu{
    position:absolute; left:0; right:0; top:100%;
    display:block; padding:10px 12px 14px;
    background:rgba(255,255,255,.985);
    border-top:1px solid var(--line, #e6ece8);
    box-shadow:0 20px 44px rgba(6,38,27,.18);
    opacity:0; visibility:hidden; transform:translateY(-10px);
    transition:opacity .18s ease, transform .18s ease, visibility .18s;
    max-height:calc(100dvh - 76px); overflow:auto; overscroll-behavior:contain;
  }
  .hdr.is-menu .hdr-menu{ opacity:1; visibility:visible; transform:none }

  .hdr-menu-list{ display:block }
  .hdr-menu-list a{
    display:flex; align-items:center; min-height:46px; padding:0 12px;
    border-radius:12px; font-size:15.5px; font-weight:600;
    color:var(--ink, #12211c); letter-spacing:-.005em;
  }
  .hdr-menu-list a + a{ margin-top:2px }
  .hdr-menu-list a:active{ background:rgba(12,29,23,.06) }
  .hdr-menu-list a[aria-current="page"],.hdr-menu-list a.is-cur{
    color:var(--green, #117a52); background:rgba(15,169,88,.10);
  }
  .hdr-menu-sep{ height:1px; margin:10px 6px; background:var(--line, #e6ece8) }
  .hdr-menu-lang{ display:none; align-items:center; justify-content:space-between; padding:2px 12px 4px }
  .hdr-menu-lang.is-ready{ display:flex }
  .hdr-menu-lang-lbl{
    font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
    color:var(--ink-2, #4a5b53);
  }
  .hdr-menu .lang-sw{ display:flex; margin-left:0 }
}

/* ---- история поиска ---- */
.sf-history{display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin:10px 2px 0; font-size:13px}
.sf-history[hidden]{display:none}
.sfh-cap{color:var(--ink-3)}
.sfh-chip{background:rgba(127,127,127,.10); color:var(--ink); border:1px solid rgba(127,127,127,.22); border-radius:999px; padding:5px 12px; text-decoration:none; white-space:nowrap; transition:background .15s ease}
.sfh-chip:hover{background:rgba(127,127,127,.20)}
.sfh-clear{background:none; border:none; padding:5px 4px; font:inherit; font-size:12px; color:var(--ink-3); cursor:pointer; text-decoration:underline; text-underline-offset:2px}
.sfh-clear:hover{color:var(--ink)}

/* ---- cookie-баннер ---- */
.ck-banner{position:fixed; left:0; right:0; bottom:0; z-index:80; background:var(--card, #fff); border-top:1px solid rgba(127,127,127,.25); box-shadow:0 -8px 24px rgba(0,0,0,.10)}
.ck-banner[hidden]{display:none}
.ck-in{display:flex; align-items:center; gap:18px; padding:14px 2px}
.ck-txt{margin:0; font-size:13.5px; line-height:1.5; color:var(--ink-2, var(--ink, #333))}
.ck-ok{flex:none; margin-left:auto}
@media (max-width:640px){
  .ck-in{flex-direction:column; align-items:stretch; gap:10px; padding:12px 2px}
  .ck-ok{margin-left:0; width:100%}
}
.ck-link{flex:none; font-size:13.5px; color:var(--blue); text-decoration:underline; white-space:nowrap}

/* ---- текстовая страница (cookie-политика) ---- */
.doc-hero{padding:118px 0 20px; background:linear-gradient(180deg,#eef2fb,var(--bg))}
.doc-h1{font-size:clamp(26px,4vw,38px)}
.doc-upd{margin-top:10px; color:var(--ink-3); font-size:14px}
.doc{padding:8px 0 90px}
.doc-in{max-width:860px}
.doc h2{margin:34px 0 12px; font-size:20px}
.doc p{margin:0 0 12px; color:var(--ink-2); line-height:1.65}
.doc-tbl{width:100%; border-collapse:collapse; margin:14px 0 8px; font-size:14.5px; background:var(--card); border-radius:12px; overflow:hidden; box-shadow:var(--sh-1)}
.doc-tbl th{text-align:left; padding:10px 14px; background:var(--line-2); color:var(--ink); font-size:12.5px; text-transform:uppercase; letter-spacing:.04em}
.doc-tbl td{padding:10px 14px; border-top:1px solid var(--line); color:var(--ink-2); vertical-align:top}
.doc-tbl td:first-child{color:var(--ink)}
@media (max-width:640px){
  .doc-tbl{font-size:13.5px}
  .doc-tbl th,.doc-tbl td{padding:8px 10px}
}

/* ---- вход (AI-поиск только для авторизованных) ---- */
.auth-wrap{max-width:460px}
.auth-card{background:var(--card); border-radius:var(--r); box-shadow:var(--sh-2); padding:26px 24px; margin-top:6px}
.auth-lbl{display:block; margin:14px 0 6px; font-size:13px; font-weight:600; color:var(--ink-2); text-transform:uppercase; letter-spacing:.04em}
.auth-lbl:first-child{margin-top:0}
.auth-inp{width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:12px; font:inherit; color:var(--ink); background:#fff}
.auth-inp:focus{outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(16,70,240,.12)}
.auth-err{margin:12px 0 0; color:#c81e1e; font-size:14px}
.auth-btn{width:100%; margin-top:16px; padding:13px 18px; font-size:16px}
.auth-note{margin:16px 0 0; font-size:13.5px; color:var(--ink-3); line-height:1.55}
.auth-back{margin:14px 0 0; font-size:14px}
.auth-back a{color:var(--blue); text-decoration:underline}
.hdr-exit{background:none; border:1.5px solid var(--line); border-radius:999px; padding:6px 14px; font:inherit; font-size:14px; color:var(--ink-2); cursor:pointer}
.hdr-exit:hover{border-color:var(--ink-3); color:var(--ink)}
.hdr-exit--menu{margin-top:6px; justify-self:start}
