/* mobile: owned by one worker, 2026-11-20 */

/* ---------- custom dropdown (select.js keeps the native <select> hidden in the DOM) ---------- */
.sel.cs-on::after{display:none}
.cs-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;overflow:hidden;clip:rect(0 0 0 0)}
.cs-btn{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;border:1.5px solid rgba(21,23,27,.14);border-radius:14px;padding:12px 14px 12px 16px;background:#fff;font:inherit;font-size:.95rem;font-weight:600;line-height:1.3;color:var(--ink);text-align:left;cursor:pointer;transition:border-color .2s,box-shadow .2s}
.cs-btn:hover{border-color:rgba(21,23,27,.3)}
.cs-btn:focus-visible{outline:0;border-color:var(--ink);box-shadow:0 0 0 4px rgba(21,23,27,.07)}
.cs-open .cs-btn{border-color:var(--ink)}
.cs-val{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-btn.cs-ph .cs-val{color:var(--mute);font-weight:500}
.cs-chev{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s var(--ease)}
.cs-open .cs-chev{transform:rotate(180deg)}
.cs-pop{position:fixed;z-index:200;box-sizing:border-box;background:#fff;border:1px solid var(--line2);border-radius:16px;box-shadow:var(--sh-2);padding:6px;opacity:0;transform:translateY(-6px);transition:opacity .16s ease,transform .22s var(--ease-out)}
.cs-pop.cs-up{transform:translateY(6px)}
.cs-pop.in{opacity:1;transform:none}
.cs-pop[hidden],.cs-backdrop[hidden]{display:none}
.cs-head{display:none}
.cs-list{list-style:none;margin:0;padding:0;max-height:360px;overflow:auto;overscroll-behavior:contain;outline:0;scrollbar-width:thin}
.cs-opt{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px 10px 14px;border-radius:11px;font-size:.94rem;font-weight:550;line-height:1.3;color:var(--ink2);cursor:pointer;-webkit-tap-highlight-color:transparent}
@media (hover:hover){.cs-opt.cs-act{background:var(--mist);color:var(--ink)}}
.cs-list:focus-visible .cs-opt.cs-act{background:var(--mist);color:var(--ink)}
.cs-list:focus-visible .cs-opt.cs-act{box-shadow:inset 0 0 0 1.5px rgba(21,23,27,.2)}
.cs-opt[aria-selected="true"]{background:var(--red-soft);color:var(--red-deep);font-weight:650}
.cs-opt[aria-selected="true"],.cs-list:focus-visible .cs-opt[aria-selected="true"].cs-act{background:var(--red-soft);color:var(--red-deep)}
@media (hover:hover){.cs-opt[aria-selected="true"].cs-act{background:#FBDCE2;color:var(--red-deep)}}
.cs-opt[aria-disabled="true"]{opacity:.45;cursor:default}
.cs-name{flex:1;min-width:0}
.cs-n{flex:none;min-width:28px;padding:2px 8px;border-radius:999px;background:var(--mist);font-size:.78rem;font-weight:650;text-align:center;color:var(--mute)}
.cs-opt.cs-act .cs-n{background:#fff}
.cs-opt[aria-selected="true"] .cs-n{background:#fff;color:var(--red-deep)}
.cs-check{flex:none;width:18px;height:18px;fill:none;stroke:var(--red);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.cs-opt[aria-selected="true"] .cs-check{opacity:1}
.cs-backdrop{position:fixed;inset:0;z-index:199;background:rgba(21,23,27,.4);opacity:0;transition:opacity .25s ease;touch-action:none}
.cs-backdrop.in{opacity:1}
.tocSel .cs-btn{max-width:420px}
@media (max-width:640px){
  .selects .cs-btn{min-height:46px;padding:10px 10px 10px 12px;font-size:.88rem;gap:6px}
  .selects .cs-chev{width:16px;height:16px}
}
@media (max-width:560px){
  .cs-pop.cs-sheet{left:0;right:0;top:auto;bottom:0;width:auto;max-width:none;border:0;border-radius:22px 22px 0 0;padding:4px 10px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -18px 50px -18px rgba(21,23,27,.35);opacity:1;transform:translateY(100%);transition:transform .32s var(--ease-out)}
  .cs-pop.cs-sheet.in{transform:none}
  .cs-sheet .cs-head{display:block;padding:8px 8px 12px;text-align:center}
  .cs-grab{display:block;width:40px;height:4px;margin:0 auto 12px;border-radius:4px;background:rgba(21,23,27,.16)}
  .cs-title{display:block;font-family:var(--display);font-size:1.08rem;font-weight:600;color:var(--ink)}
  .cs-sheet .cs-list{max-height:min(64vh,520px)}
  .cs-sheet .cs-opt{min-height:52px;padding:12px 16px;font-size:1rem}
}
@media (prefers-reduced-motion:reduce){.cs-pop,.cs-pop.cs-sheet,.cs-backdrop,.cs-chev{transition:none}}

/* ---------- Protokoli: protocol switcher as one segmented row ---------- */
#protocolJump{display:inline-flex;flex-wrap:nowrap;gap:4px;max-width:100%;margin-top:4px;padding:5px;background:var(--mist);border:1px solid var(--line2);border-radius:999px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;scroll-padding-inline:5px;overscroll-behavior-x:contain}
#protocolJump::-webkit-scrollbar{display:none}
#protocolJump a{position:relative;flex:0 0 auto;border:0;border-radius:999px;background:transparent;padding:11px 20px 12px;font-size:.92rem;font-weight:650;white-space:nowrap;color:var(--ink2);scroll-snap-align:center;transition:background-color .2s,color .2s,box-shadow .25s}
#protocolJump a:hover{background:rgba(255,255,255,.65);color:var(--ink);border-color:transparent}
#protocolJump a::after{content:"";position:absolute;left:50%;bottom:5px;width:18px;height:2.5px;margin-left:-9px;border-radius:2px;background:var(--red);transform:scaleX(0);transition:transform .25s var(--ease)}
#protocolJump a.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(21,23,27,.06),0 8px 18px -10px rgba(21,23,27,.3)}
#protocolJump a.on::after{transform:scaleX(1)}
#protocolJump a:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
@media (max-width:560px){
  #protocolJump{display:flex;width:100%;border-radius:18px;padding:4px}
  #protocolJump a{padding:11px 15px 12px;font-size:.88rem}
}

/* ---------- footer on phone: compact groups + contact card ---------- */
@media (max-width:560px){
  footer{padding:36px 0 18px}
  footer .cols{grid-template-columns:1fr 1fr;gap:26px 18px}
  footer .cols>:first-child{grid-column:1/-1}
  footer .logo img{height:20px;width:auto}
  footer .note{margin-top:10px;font-size:.82rem;line-height:1.5}
  footer .fh{margin:0 0 6px;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
  footer nav{gap:0}
  footer .cols>:nth-child(2) nav a,footer .cols>:nth-child(3) nav a{display:block;padding:7px 0;font-size:.92rem;font-weight:600;line-height:1.3}
  footer .cols>:nth-child(4){grid-column:1/-1}
  footer .cols>:nth-child(4) nav{padding:2px 14px;background:#fff;border:1px solid var(--line2);border-radius:16px;box-shadow:var(--sh-1)}
  footer .cols>:nth-child(4) nav a{display:grid;grid-template-columns:34px minmax(0,1fr) 16px;align-items:center;gap:12px;min-height:56px;padding:10px 0;border-top:1px solid var(--line2);font-size:.94rem;font-weight:600}
  footer .cols>:nth-child(4) nav a:first-child{border-top:0}
  footer .cols>:nth-child(4) nav a::before{content:"";width:34px;height:34px;border-radius:11px;background:var(--red-soft) center/18px 18px no-repeat}
  footer .cols>:nth-child(4) nav a::after{content:"";width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636B75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/16px no-repeat}
  footer .cols>:nth-child(4) nav a[href^="tel:"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5112D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E")}
  footer .cols>:nth-child(4) nav a[href^="mailto:"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5112D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E")}
  footer .cols>:nth-child(4) nav a:not([href^="tel:"]):not([href^="mailto:"])::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5112D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")}
  footer .bottom{flex-direction:column;gap:4px;margin-top:24px;padding-top:16px;font-size:.76rem;line-height:1.5}
}
