/* ===== ARBI Days · десктоп (от 1024 px): выбор города, каталог, события на карте, мои билеты, электронный билет, избранное.
   Макетов десктопа для этих экранов в Figma нет — раскладки спроектированы в демо по аналогии с мобильными экранами.
   Новые классы — с префиксом dw-. Каркас (шапка, контейнер, окна) — в css/desktop.css. ===== */
@media (min-width:1024px){

/* ---------- Выбор города: окно по центру, страны колонками ---------- */
.screen.ct-city.as-dialog{width:min(660px,calc(100vw - 48px))}
.ct-city-h{padding:28px 28px 12px;gap:18px}
.ct-city-nav{height:40px}
.ct-city-nav .h-m{font-size:28px;line-height:34px}
.ct-x{width:40px;height:40px;margin-right:-6px;cursor:pointer;transition:transform .18s var(--ease),background .2s}
.ct-x:hover{background:rgba(25,26,32,.07)}
.ct-city-s{height:52px;padding:0 16px;gap:12px;border-radius:14px}
.ct-city-s img{width:20px;height:20px}
.ct-city-s input{font-size:16px;line-height:24px}
.ct-city-l{flex:0 1 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 12px;align-content:start;min-height:248px;padding:8px 16px 28px}
.dw-cg{display:flex;flex-direction:column;gap:2px;min-width:0}
.ct-country{padding:12px 12px 8px;font-size:12px;line-height:15px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.ct-opt{min-height:56px;padding:9px 12px;border-radius:14px;cursor:pointer;text-align:left}
.ct-opt:hover{background:#ebe9f0}
.ct-opt span{display:flex;flex-direction:column;gap:2px;min-width:0}
.ct-opt small{font-size:12px;line-height:15px;font-weight:500;color:var(--text-3)}
.ct-opt img{margin:0;flex:none}
.ct-opt.on{background:#f1e9ff}
.ct-opt.on small{color:#8f5fe0}
.ct-none{grid-column:1/-1;padding:56px 12px;font-size:16px;line-height:22px}

/* ---------- Каталог: вкладки и фильтры в одну строку, сетка в 4 колонки ---------- */
.ct-body{width:var(--cw);margin:0 auto;padding:8px 0 0;gap:36px}
.ct-head{position:relative;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px 40px;align-items:end}
.ct-ttl{grid-column:1/-1;justify-content:flex-start;align-items:baseline;gap:16px}
.ct-ttl .h-l{font-size:42px;line-height:48px;letter-spacing:-.01em}
.ct-ttl .cnt{font-size:18px;line-height:24px}
.ct-head .tabs-wrap{grid-column:1;min-width:0}
.ct-filters{grid-column:2;align-items:center;gap:10px;padding-bottom:8px}
.ct-f{flex:0 0 auto!important;height:44px;padding:0 16px;gap:8px;font-size:15px;line-height:20px;cursor:pointer;box-shadow:0 0 0 1px rgba(25,26,32,.06);transition:background .25s,color .25s,box-shadow .2s,transform .18s var(--ease)}
.ct-f:hover{box-shadow:0 0 0 1px var(--brand-line),0 6px 16px -10px rgba(132,59,245,.5)}
.ct-f .cr{transition:transform .3s var(--ease)}
.ct-f.open{box-shadow:0 0 0 2px var(--brand-line)}
.ct-f.open .cr{transform:rotate(180deg)}
.ct-f.on{box-shadow:none}
.ct-f:focus-visible,.dw-opt:focus-visible,.dw-reset:focus-visible{outline:2px solid var(--brand-1);outline-offset:2px}
.dw-reset{display:inline-flex;align-items:center;height:44px;padding:0 6px;font-size:15px;line-height:20px;font-weight:600;color:var(--text-2);cursor:pointer;transition:color .2s}
.dw-reset:hover{color:var(--text-brand)}
.dw-reset[hidden]{display:none!important}
.dw-menu{position:absolute;z-index:30;min-width:280px;padding:8px;border-radius:20px;background:#fff;box-shadow:0 28px 60px -22px rgba(20,10,50,.4),0 0 0 1px rgba(25,26,32,.06);opacity:0;transform:translateY(-8px) scale(.97);transform-origin:100% 0;pointer-events:none;transition:opacity .18s,transform .28s var(--ease)}
.dw-menu.show{opacity:1;transform:none;pointer-events:auto}
.dw-menu-t{padding:10px 12px 8px;font-size:12px;line-height:15px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--text-3)}
.dw-opt{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border-radius:12px;font-size:16px;line-height:20px;font-weight:600;text-align:left;cursor:pointer;transition:background .15s,color .15s}
.dw-opt span{flex:1;white-space:nowrap}
.dw-opt small{font-size:13px;line-height:16px;font-weight:500;color:var(--text-3);white-space:nowrap}
.dw-opt img{flex:none;width:20px;height:20px;opacity:0;transform:scale(.6);transition:opacity .15s,transform .25s var(--ease-spring)}
.dw-opt:hover{background:#f7f6f9}
.dw-opt.on{color:var(--text-brand)}
.dw-opt.on img{opacity:1;transform:none}
.ct-list{gap:40px;min-height:460px}
.ct-list .empty{padding:72px 24px;border-radius:24px;font-size:17px;line-height:26px}
.ct-more{height:52px;padding:0 28px;gap:6px;border-radius:14px;background:#fff;box-shadow:0 0 0 1px rgba(25,26,32,.06);cursor:pointer;transition:box-shadow .2s,transform .18s var(--ease)}
.ct-more:hover{box-shadow:0 0 0 1px var(--brand-line),0 10px 24px -14px rgba(132,59,245,.6)}
.ct-more:active{transform:scale(.97)}
.ct-more img{transform:rotate(90deg)}
.ct-more:hover img{transform:rotate(90deg) translateX(3px)}

/* ---------- События на карте: панель со списком слева, карта справа ---------- */
.dw-mv{background:var(--bg)}
.dw-mv .topbar{flex:none}
.dw-mv-main{flex:1;min-height:0;display:grid;grid-template-columns:calc(var(--gut) + 428px) minmax(0,1fr)}
.dw-mv-side{display:flex;flex-direction:column;min-height:0;padding:0 28px 0 var(--gut)}
.dw-mv-side .d-back{margin:0 0 10px;align-self:flex-start}
.dw-mv-side .d-title{font-size:34px;line-height:40px}
.dw-mv-sub{margin-top:8px;font-size:16px;line-height:22px}
.dw-mv .mv-chips{flex:none;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:22px 0 0;padding:0;background:none;overflow:visible}
.dw-mv .chip{height:46px;padding:0 14px;justify-content:space-between;gap:8px;border-radius:14px;font-size:15px;line-height:20px;cursor:pointer;box-shadow:0 0 0 1px rgba(25,26,32,.05)}
.dw-mv .chip:hover{background:#f7f3ff}
.dw-mv .chip.on{background:#ebdeff;box-shadow:none}
.dw-mv .chip .n{padding:3px 6px;font-size:13px;line-height:16px}
.dw-mv-lh{flex:none;display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:28px;padding-bottom:14px;border-bottom:1px solid var(--border-1)}
.dw-mv-lh .b-m{white-space:nowrap}
.dw-mv-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d6d3de transparent;display:flex;flex-direction:column;gap:2px;margin:0 -12px;padding:10px 0 28px}
.dw-ev{flex:none;display:flex;align-items:center;gap:14px;padding:10px 12px;border-radius:18px;text-align:left;cursor:pointer;transition:background .2s,transform .18s var(--ease);animation:rise .4s var(--ease) both;animation-delay:calc(var(--i,0)*45ms)}
.dw-ev:hover{background:#fff}
.dw-ev:active{transform:scale(.99)}
.dw-ev:focus-visible{outline:2px solid var(--brand-1);outline-offset:-2px}
.dw-ev>img{flex:none;width:88px;height:96px;border-radius:14px;object-fit:cover;background:#dcdde1}
.dw-ev-i{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.dw-ev-i .h-xs{font-size:17px;line-height:22px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .2s}
.dw-ev:hover .dw-ev-i .h-xs{color:var(--text-brand)}
.dw-ev-i .b-s{font-size:14px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dw-ev-p{font-size:14px;line-height:18px;font-weight:700}
.dw-ev-fav{flex:none;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(25,26,32,.06);cursor:pointer}
.dw-ev-fav:hover{background:rgba(25,26,32,.12)}
.dw-ev-fav img{width:18px;height:18px}
.dw-ev-fav:not(.on) img{filter:brightness(.3)}
.dw-ev-fav.on img{width:18px;height:16px}
.dw-mv .mv-map{border-radius:28px 0 0 0;background:#c6d6db;box-shadow:inset 0 0 0 1px rgba(25,26,32,.04)}
.dw-mv .mv-layer{left:0;top:0;transform-origin:0 0}
/* подложка из макета — 366×221: слегка размываем блоки сжатия и приглушаем цвет, сверху — точечная сетка и мягкая виньетка */
.dw-mv .mv-layer>img{filter:blur(1.4px) saturate(.8) contrast(.96);transform:scale(1.012)}
.dw-mv .mv-layer::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(rgba(255,255,255,.55) .7px,transparent 1.1px) 0 0/7px 7px}
.dw-mv .mv-cls{position:absolute;inset:0;z-index:1}
.dw-mv .mv-map::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 90px rgba(70,95,125,.22),inset 0 0 0 1px rgba(25,26,32,.05)}
.dw-mv .mv-cl{width:46px;height:46px;margin:-23px 0 0 -23px;cursor:pointer}
.dw-mv .mv-cl b{font-size:15px;line-height:20px}
.dw-mv .mv-cl:hover{background:#5d1fc4}
.dw-mv .mv-cl i{width:74px;height:74px;margin:-37px 0 0 -37px}
.dw-mv .mv-cl.on{width:56px;height:56px;margin:-28px 0 0 -28px;background:#15101f}
.dw-mv .mv-zoom{right:28px;top:50%;margin-top:-80px;z-index:2}
.dw-mv .mv-loc{right:28px;top:50%;margin-top:40px;z-index:2}
.dw-mv .mv-b{width:46px;height:46px;border-radius:14px;cursor:pointer;box-shadow:0 6px 18px -8px rgba(31,26,41,.35)}
.dw-mv .mv-b:hover{transform:scale(1.06)}
.dw-mv .mv-b img{width:22px;height:22px}

/* ---------- Мои билеты и избранное: общий контейнер ---------- */
.tk-body{width:var(--cw);margin:0 auto;padding:0;gap:28px}
.tk-body .d-back{margin:16px 0 -12px;align-self:flex-start}
.tk-body .footer{margin-top:56px}
.tk-body>.h-l,.dw-head .h-l{font-size:42px;line-height:48px;letter-spacing:-.01em}
.dw-head{display:flex;align-items:center;justify-content:space-between;gap:32px}
.tk-seg{flex:none;width:360px}
.tk-seg button{padding:12px;font-size:15px;line-height:20px;cursor:pointer}
.tk-seg button:not(.on):hover{color:var(--text-1)}
.tk-seg button:focus-visible{outline:2px solid var(--brand-1);outline-offset:-2px}
.tk-pane{min-height:340px}
.tk-msg{padding:96px 16px 64px;gap:22px}
.tk-msg .h-m{font-size:28px;line-height:34px}
.tk-msg .b-m{max-width:420px;font-size:17px;line-height:24px}
.tk-msg .btn{width:auto;min-width:240px;height:56px;padding:0 32px}

/* карточки заказов — сеткой в 3 колонки */
.tk-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.tk-card,.tk-card.st{min-height:300px;padding:20px;border-radius:24px;cursor:pointer;transition:transform .3s var(--ease),box-shadow .3s}
.tk-card.past{min-height:236px}
.tk-card:hover{transform:translateY(-4px);box-shadow:0 26px 44px -26px rgba(20,10,50,.6)}
.tk-card:hover>img{transform:scale(1.05)}
.tk-card:active{transform:translateY(-2px) scale(.99)}
.tk-card:focus-visible{outline:3px solid var(--brand-1);outline-offset:3px}
.tk-bdg{height:32px;padding:6px 10px;gap:6px;border-radius:10px;font-size:14px;line-height:18px}
.tk-bdg img{width:18px;height:18px}
.tk-det{gap:6px;font-size:15px;line-height:20px;padding-right:52px}
.tk-det b{font-size:24px;line-height:30px}
.dw-open{position:absolute;right:20px;bottom:20px;width:42px;height:42px;border-radius:50%;background:#fff;display:grid;place-items:center;opacity:0;transform:translateX(-8px);transition:opacity .25s,transform .35s var(--ease)}
.dw-open img{width:20px;height:20px;transform:rotate(180deg)}
.tk-card:hover .dw-open,.tk-card:focus-visible .dw-open{opacity:1;transform:none}

/* ---------- Электронный билет: билет слева (закреплён), сведения и действия справа ---------- */
.dw-tk{display:grid;grid-template-columns:420px minmax(0,1fr);column-gap:72px;align-items:start;margin-top:12px}
.dw-tk-l{display:block;position:sticky;top:calc(var(--hh) + 12px);min-width:0}
.dw-tk-car{display:block}
.tk-cards{margin:0;padding:0;gap:16px;border-radius:24px}
.tk-tix{border-radius:24px;padding-bottom:30px}
.tk-glow{height:240px}
.tk-cover{height:240px;border-radius:24px}
.tk-cover .b-s{left:24px;top:auto;bottom:64px;font-size:14px;line-height:18px}
.tk-cover .h-l{left:24px;right:24px;top:auto;bottom:22px;font-size:30px;line-height:36px}
.tk-cover .tk-bdg{left:18px;top:18px}
.tk-meta{padding:28px 24px 0}
.tk-meta .b-s{font-size:14px;line-height:18px}
.tk-state{font-size:14px;line-height:14px}
.tk-flds,.tk-flds.n2{padding:22px 24px 0;grid-template-columns:repeat(3,minmax(0,1fr))}
.tk-flds.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tk-flds .b-s{font-size:14px;line-height:18px}
.tk-flds b{font-size:26px;line-height:32px}
.tk-cut{margin-top:30px;background-size:calc(100% - 26px) 2px}
.tk-code{height:112px;margin:30px 28px 0}
.tk-bar{height:112px;margin:-56px 0 0}
.tk-qrc{width:176px;height:176px;margin:-88px 0 0 -88px}
.tk-cards.qr .tk-code{height:176px}
.tk-tix .tk-qrbtn{display:none}
/* стрелки листания — по краям строки с точками, под билетом */
.dw-ar{position:absolute;bottom:2px;z-index:3;width:46px;height:46px;border-radius:50%;background:#fff;box-shadow:0 6px 18px -8px rgba(25,26,32,.35),0 0 0 .5px rgba(25,26,32,.06);display:grid;place-items:center;cursor:pointer;transition:opacity .25s,transform .2s var(--ease)}
.dw-ar.prev{left:0}
.dw-ar.next{right:0}
.dw-ar img{width:20px;height:20px;filter:brightness(.2)}
.dw-ar.next img{transform:scaleX(-1)}
.dw-ar:hover{transform:scale(1.08)}
.dw-ar[disabled]{opacity:.4;pointer-events:none;box-shadow:none}
.tk-pag{height:auto;gap:12px;padding-top:18px}
.tk-dots i:hover{background:rgba(0,0,0,.36)}
.tk-pos{font-size:14px;line-height:18px}
.dw-tk-r{display:flex;flex-direction:column;gap:24px;min-width:0;padding-top:4px}
.dw-tk-head{display:flex;flex-direction:column;gap:10px}
.dw-tk-head .b-m{font-size:16px;line-height:22px}
.dw-tk-head .d-title{font-size:52px;line-height:58px;letter-spacing:-.01em;font-weight:700}
.dw-tk-st{display:flex;align-items:center;gap:12px;margin-top:4px}
.dw-tk-st .tk-state{height:32px;padding:0 12px;border-radius:10px;background:rgba(23,132,90,.1);font-size:14px;line-height:14px}
.dw-tk-st .tk-state.cancelled{background:rgba(232,62,80,.1)}
.dw-tk-st .tk-state.done{background:var(--surface-3)}
.tk-venue{margin:0;padding:24px 28px;border-radius:24px;background:#fff;animation:none}
.tk-vrow{gap:14px;font-size:19px;line-height:26px}
.tk-vrow img{width:24px;height:24px}
.tk-vrow+.tk-vrow,.tk-vsub+.tk-vrow{margin-top:18px}
.tk-vsub{margin:2px 0 0 38px;font-size:15px;line-height:20px}
.tk-vsub.in{margin-top:6px}
.tk-venue .tk-hr,.tk-venue .tk-refund{display:none}
.dw-order{display:flex;flex-direction:column;padding:22px 20px 12px;border-radius:24px;background:#fff}
.dw-order-h{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:0 8px 14px}
.dw-order-h .h-s{font-size:19px;line-height:26px}
.dw-order-h .b-m{font-size:15px;line-height:20px;white-space:nowrap}
.dw-trow{display:flex;align-items:center;gap:14px;padding:12px 8px;border-top:1px solid var(--border-5);border-radius:0;text-align:left;cursor:pointer;transition:background .2s}
.dw-trow:hover{background:#f7f6f9;border-radius:14px;border-top-color:transparent}
.dw-trow:hover+.dw-trow{border-top-color:transparent}
.dw-trow:focus-visible{outline:2px solid var(--brand-1);outline-offset:-2px;border-radius:14px}
.dw-tn{flex:none;width:34px;height:34px;border-radius:10px;background:var(--surface-3);display:grid;place-items:center;font-size:15px;line-height:1;font-weight:700;color:var(--text-2);transition:background .25s,color .25s}
.dw-trow.on .dw-tn{background:var(--brand-1);color:#fff}
.dw-ti{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.dw-ti b{font-size:16px;line-height:22px;font-weight:700}
.dw-ti .b-s{font-size:13px;line-height:16px}
.dw-tp{flex:none;font-size:15px;line-height:20px;font-weight:700;white-space:nowrap}
.dw-acts{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.dw-acts .btn{height:56px;padding:0 28px;gap:10px;cursor:pointer}
.dw-acts .btn img{width:22px;height:22px}
.dw-qrbtn{min-width:220px}
.dw-refund{margin-left:auto;display:inline-flex;align-items:center;gap:10px;height:56px;padding:0 18px;border-radius:14px;font-size:15px;line-height:20px;font-weight:600;color:var(--text-2);cursor:pointer;transition:background .2s,color .2s}
.dw-refund img{width:20px;height:20px}
.dw-refund:hover{background:rgba(232,62,80,.08);color:#c93842}
.dw-refund:focus-visible{outline:2px solid var(--brand-1);outline-offset:2px}
.tk-ticket .tk-body .footer{margin-top:72px}

/* ---------- Избранное: вкладки жанров и переключатель в одну строку ---------- */
.dw-frow{display:flex;align-items:flex-end;gap:40px}
.dw-frow .tabs-wrap{flex:1;min-width:0}
.dw-frow .tk-seg{width:300px;margin-left:auto}
.tk-seg.soft{border-radius:14px}
.tk-seg.soft i,.tk-seg.soft button{border-radius:10px}
.tk-fgrid .empty{padding:72px 24px;border-radius:24px;font-size:17px;line-height:26px}
}

/* узкий десктоп: фильтры каталога уходят на свою строку, билет и поля поуже */
@media (min-width:1024px) and (max-width:1240px){
.ct-head{grid-template-columns:minmax(0,1fr)}
.ct-filters{grid-column:1;padding-bottom:0}
.dw-tk{grid-template-columns:380px minmax(0,1fr);column-gap:48px}
.dw-tk-head .d-title{font-size:44px;line-height:50px}
}

/* Обёртки, добавленные ради десктопной раскладки: на мобильном они «прозрачны» и вид экранов не меняют. */
@media (max-width:1023.98px){
.dw-cg,.dw-head,.dw-frow,.dw-tk-l,.dw-tk-r,.dw-tk-car{display:contents}
}
