/* Календарь «Туда — обратно» (tripcal.js) — подключается скриптом сам */
.tc-back{position:fixed;inset:0;z-index:1000;background:rgba(14,18,32,.32);animation:tc-fade .24s ease both}
.tc-back.tc-pop{background:transparent}
.tc{position:fixed;z-index:1001;background:#fff;color:#0E1220;font:400 16px/24px "Onest",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 2px 4px rgba(14,18,32,.06),0 24px 48px rgba(14,18,32,.14);-webkit-font-smoothing:antialiased;box-sizing:border-box}
.tc *{box-sizing:border-box}
.tc :where(button){font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tc.tc-pop{max-height:calc(100vh - 16px);overflow:auto;border-radius:24px;padding:20px 24px 20px;width:680px;max-width:calc(100vw - 32px);animation:tc-in .2s cubic-bezier(.2,.8,.2,1) both}
.tc.tc-sheet{left:0;right:0;bottom:0;border-radius:24px 24px 0 0;padding:8px 16px calc(16px + env(safe-area-inset-bottom,0px));max-height:92vh;overflow:auto;animation:tc-up .32s cubic-bezier(.22,1,.36,1) both;will-change:transform}
.tc-grab{width:40px;height:4px;border-radius:2px;background:#E3E6ED;margin:0 auto 12px}
.tc-sum{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}
.tc-f{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 14px;border-radius:16px;box-shadow:inset 0 0 0 1px #E3E6ED;text-align:left;transition:box-shadow .12s,background .12s}
.tc-f span{font-size:13px;line-height:18px;color:#5A6175}
.tc-f b{font-weight:600;font-size:16px;line-height:22px;white-space:nowrap}
.tc-f b.tc-ph{font-weight:400;color:#8C92A3}
.tc-f.on{box-shadow:inset 0 0 0 2px #2F5BFF;background:#F2F5FF}
.tc-months{display:grid;grid-template-columns:1fr;gap:32px;position:relative}
.tc-pop .tc-months{grid-template-columns:1fr 1fr}
.tc-head{display:flex;align-items:center;justify-content:center;height:40px;margin-bottom:8px;font-weight:600;font-size:17px;letter-spacing:-.01em}
.tc-nav{position:absolute;top:0;width:40px;height:40px;border-radius:12px;background:#F5F6F9;display:flex;align-items:center;justify-content:center;transition:background .12s}
.tc-nav:hover:not(:disabled){background:#E6ECFF}
.tc-nav:disabled{opacity:.35;cursor:default}
.tc-nav svg{width:18px;height:18px}
.tc-nav.l{left:0}
.tc-nav.r{right:0}
.tc-grid{display:grid;grid-template-columns:repeat(7,1fr);row-gap:4px}
.tc-wd{text-align:center;font:500 12px/16px "JetBrains Mono",ui-monospace,monospace;text-transform:uppercase;letter-spacing:.04em;color:#5A6175;padding:4px 0 8px}
.tc-wd.we{color:#8C92A3}
.tc-d{position:relative;height:44px;display:flex;align-items:center;justify-content:center}
.tc-d button{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;text-align:center;width:100%;max-width:44px;height:44px;border-radius:12px;font-weight:500;font-variant-numeric:tabular-nums;transition:background .1s,color .1s}
@media (hover:hover){.tc-d button:hover:not(:disabled){background:#E6ECFF}
.tc-d.s button:hover,.tc-d.e:not(.prev) button:hover{background:#1F45D6}}
.tc-d button:disabled{color:#C5CAD6;cursor:default}
.tc-d.today button::after{content:"";position:absolute;left:50%;bottom:6px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:#FF7A45}
.tc-d.in::before{content:"";position:absolute;inset:0;background:#F2F5FF}
.tc-d.s::before{content:"";position:absolute;top:0;bottom:0;left:50%;right:0;background:#F2F5FF}
.tc-d.e::before{content:"";position:absolute;top:0;bottom:0;left:0;right:50%;background:#F2F5FF}
.tc-d.s.e::before{display:none}
.tc-d.s button,.tc-d.e button{background:#2F5BFF;color:#fff}
.tc-d.prev button,.tc-d.prev button:hover{background:#E6ECFF !important;color:#1F45D6;box-shadow:inset 0 0 0 2px #2F5BFF}
.tc-d.today.s button::after,.tc-d.today.e button::after{background:#fff}
.tc-plan{display:flex;align-items:center;gap:8px;margin-top:12px;padding:10px 14px;border-radius:14px;background:#F5F6F9;font-size:14px;line-height:20px;width:100%;text-align:left;transition:background .12s}
.tc-plan:hover{background:#E6ECFF}
.tc-plan i{font-style:normal;color:#2F5BFF;font-weight:600;margin-left:auto;white-space:nowrap}
.tc-foot{display:flex;align-items:center;gap:12px;margin-top:16px}
.tc-len{flex:1;font-size:14px;line-height:20px;color:#5A6175}
.tc-clear{height:48px;padding:0 16px;border-radius:14px;font-weight:500;color:#5A6175}
.tc-clear:hover{background:#F5F6F9;color:#0E1220}
.tc-ok{height:48px;padding:0 28px;border-radius:14px;background:#2F5BFF;color:#fff !important;font-weight:600;transition:background .12s}
.tc-ok:hover{background:#1F45D6}
.tc-ok:disabled{background:#C5CAD6;cursor:default}
.tc-sheet .tc-foot{flex-wrap:wrap}
.tc-sheet .tc-len{flex-basis:100%}
.tc-sheet .tc-ok{flex:1}
@keyframes tc-fade{from{opacity:0}
}
@keyframes tc-in{from{opacity:0;transform:translateY(-6px)}
}
@keyframes tc-up{from{transform:translateY(100%)}
}
/* Закрытие: шторка уезжает вниз, окно гаснет, фон растворяется */
.tc-back.tc-out{animation:tc-fade-out .24s ease both}
.tc.tc-sheet.tc-out{animation:tc-down .26s cubic-bezier(.4,0,1,1) both}
.tc.tc-pop.tc-out{animation:tc-pop-out .16s ease both}
@keyframes tc-fade-out{to{opacity:0}}
@keyframes tc-down{to{transform:translateY(100%)}}
@keyframes tc-pop-out{to{opacity:0;transform:translateY(-6px)}}
@media (prefers-reduced-motion:reduce){.tc,.tc-back{animation-duration:.01s !important}}
