/* =========================================================
   VIMARO · Mobile/Tablet Header + Offcanvas (Compact Premium)
   + FILTER UI (Dropdown panel)
   ========================================================= */

@media (min-width:1025px){
  .vx-mh-wrap{ display:none !important; }
}

.vx-mh-wrap{
  --vx-navy0:#020617;
  --vx-navy1:#050816;

  --vx-glass: rgba(15,23,42,.86);
  --vx-glass2: rgba(2,6,23,.60);

  --vx-border: rgba(148,163,184,.40);
  --vx-border2: rgba(148,163,184,.22);

  --vx-text:#e5e7eb;
  --vx-muted:#9ca3af;

  --vx-gold:#f4c65a;
  --vx-cyan:#38bdf8;

  --vx-h: 52px;
  --vx-pad: 12px;

  --vx-radius: 18px;
  --vx-radius-sm: 14px;

  --vx-panel-w: 85vw;
  --vx-panel-min: 320px;
  --vx-panel-max: 85vw;

  position:sticky;
  top:0;
  z-index:99999;
}

@media (prefers-reduced-motion: reduce){
  .vx-mh-wrap *{ transition:none !important; animation:none !important; }
}

.vx-mh{
  position:relative;
  padding:1px;
  background:
    radial-gradient(900px 220px at 18% -10%, rgba(244,198,90,.33), transparent 60%),
    radial-gradient(700px 220px at 88% 110%, rgba(56,189,248,.20), transparent 58%),
    linear-gradient(135deg, var(--vx-navy0), var(--vx-navy0));
  box-shadow: 0 14px 38px rgba(0,0,0,.55);
  overflow:visible;
}



.vx-mh__inner{
  position:relative;
  width:100%;
  margin:0;
  padding: 4px var(--vx-pad);
  box-sizing:border-box;
  background:
    radial-gradient(700px 240px at 0% 0%, rgba(244,198,90,.10), transparent 60%),
    radial-gradient(700px 240px at 100% 100%, rgba(56,189,248,.08), transparent 60%),
    linear-gradient(145deg, rgba(2,6,23,.92), rgba(5,8,22,.92));
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  border-bottom:1px solid rgba(148,163,184,.14);
}

.vx-mh__row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  min-height: var(--vx-h);
  width:100%;
}

/* LEFT GROUP: LOGO + CITY CHIP */
.vx-mh__left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}


.vx-mh__logo{
  display:flex;
  align-items:center;
  text-decoration:none;
  min-width:120px;
}
.vx-mh__logo img{
  display:block;
  height: 30px;
  width:auto;
  max-width:220px;
  object-fit:contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.58));
}

.vx-btn{
  appearance:none;
  border:1px solid rgba(148,163,184,.34);
  background:
    radial-gradient(circle at 22% 18%, rgba(244,198,90,.14), transparent 60%),
    radial-gradient(circle at 78% 82%, rgba(56,189,248,.09), transparent 62%),
    rgba(15,23,42,.92);
  color: var(--vx-text);
  height: 38px;
  width: 38px;
  border-radius: var(--vx-radius-sm);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:
    0 14px 30px rgba(0,0,0,.56),
    0 0 0 1px rgba(244,198,90,.07);
  transition:
    transform .14s cubic-bezier(.2,.8,.2,1),
    box-shadow .22s ease,
    border-color .22s ease,
    filter .22s ease;
}
.vx-btn:hover{
  border-color: rgba(244,198,90,.70);
  filter: brightness(1.05);
  box-shadow:
    0 18px 40px rgba(0,0,0,.64),
    0 0 0 1px rgba(244,198,90,.12),
    0 0 0 4px rgba(244,198,90,.07);
  transform: translateY(-1px);
}
.vx-btn:active{
  transform: translateY(1px) scale(.98);
  box-shadow: 0 12px 26px rgba(0,0,0,.52);
}
.vx-btn svg{ width:19px; height:19px; }

/* OFFCANVAS */
.vx-oc{
  position:fixed;
  inset:0;
  z-index:999999;
  pointer-events:none;
}
.vx-oc.is-open{ pointer-events:auto; }

.vx-oc__backdrop{
  position:absolute;
  inset:0;

  /* Многослойная глубина + виньетка */
  background:
    radial-gradient(
      1200px 900px at 18% 6%,
      rgba(244,198,90,.18),
      transparent 55%
    ),
    radial-gradient(
      1000px 800px at 92% 78%,
      rgba(56,189,248,.14),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(2,6,23,.72),
      rgba(1,6,20,.88)
    );

  /* Затемнение фона */
  backdrop-filter: blur(2px) saturate(1.05);
  -webkit-backdrop-filter: blur(2px) saturate(1.05);

  opacity:0;
  transition:
    opacity .34s cubic-bezier(.2,.8,.2,1);
}

/* Активное состояние */
.vx-oc.is-open .vx-oc__backdrop{
  opacity:1;
}

.vx-oc.is-open .vx-oc__backdrop{ opacity:1; }

.vx-oc__panel{
  position:absolute;
  top:0;
  right:0;
  height:100%;

  /* === ШИРИНА ПАНЕЛИ === */
  width: 85vw;
  min-width: 320px;
  max-width: 85vw;

  padding:1px;
  border-radius: 0 0 0 22px;

  background:
    radial-gradient(circle at 0 0, rgba(244,198,90,.28), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56,189,248,.16), transparent 55%),
    linear-gradient(135deg, var(--vx-navy0), var(--vx-navy0));

  box-shadow:-26px 0 80px rgba(0,0,0,.75);

  /* === АНИМАЦИЯ ВЫЕЗДА === */
  transform: translateX(100%);
  opacity:.98;
  transition: transform .54s cubic-bezier(.10,.98,.18,1);
  will-change: transform;

  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.vx-oc.is-open .vx-oc__panel{ transform: translateX(0); }

.vx-oc__panel-in{
  height:100%;
  display:flex;
  flex-direction:column;
  background:
    radial-gradient(900px 700px at 0% 0%, rgba(244,198,90,.09), transparent 60%),
    radial-gradient(700px 600px at 100% 100%, rgba(56,189,248,.07), transparent 62%),
    linear-gradient(145deg, rgba(2,6,23,.96), rgba(5,8,22,.94));
  border-left:1px solid rgba(148,163,184,.20);
}

.vx-oc__head{
  padding: 12px 12px 10px;
  border-bottom:1px solid rgba(148,163,184,.16);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  position:relative;
}
.vx-oc__head::after{
  content:"";
  position:absolute;
  left:12px; right:12px; bottom:-1px;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(244,198,90,.40), rgba(56,189,248,.24), transparent);
  opacity:.85;
  pointer-events:none;
}

.vx-oc__title b{
  font-size:13px;
  font-weight:900;
  letter-spacing:.02em;
  color: rgba(241,245,249,.96);
  line-height:1.1;
}
.vx-oc__close{ height:38px; width:38px; }

.vx-oc__body{
  padding: 12px 12px 16px;
  overflow:auto;
}
.vx-oc__body::-webkit-scrollbar{ width:10px; }
.vx-oc__body::-webkit-scrollbar-thumb{
  background: rgba(148,163,184,.20);
  border-radius: 12px;
  border: 2px solid rgba(2,6,23,.75);
}
.vx-oc__body::-webkit-scrollbar-thumb:hover{
  background: rgba(244,198,90,.26);
}

.vx-sec{
  margin-bottom:10px;
  padding:1px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(244,198,90,.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56,189,248,.09), transparent 60%),
    linear-gradient(135deg, rgba(2,6,23,1), rgba(2,6,23,1));
  box-shadow: 0 16px 36px rgba(0,0,0,.24);
}
.vx-sec__in{
  border-radius: 17px;
  background:
    radial-gradient(800px 320px at 20% 0%, rgba(244,198,90,.05), transparent 62%),
    rgba(15,23,42,.90);
  border:1px solid rgba(148,163,184,.30);
  padding: 10px;
}
.vx-sec__label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color: rgba(156,163,175,.94);
  margin-bottom:8px;
}
.vx-sec__label .vx-pill{
  font-size:9px;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding: 5px 9px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.24);
  background: rgba(2,6,23,.55);
  color: rgba(203,213,225,.88);
}

/* CITY */
.vx-city{ display:flex; flex-direction:column; gap:8px; }
.vx-city__trigger{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 10px;
  border-radius: 14px;
  border:1px solid rgba(148,163,184,.30);
  background:
    radial-gradient(circle at 12% 18%, rgba(244,198,90,.07), transparent 55%),
    rgba(2,6,23,.70);
  color: var(--vx-text);
  cursor:pointer;
  user-select:none;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  transition: border-color .18s ease, box-shadow .18s ease, transform .14s ease, filter .18s ease;
}
.vx-city__trigger:hover{
  border-color: rgba(244,198,90,.66);
  box-shadow: 0 14px 34px rgba(0,0,0,.30), 0 0 0 4px rgba(244,198,90,.07);
  transform: translateY(-1px);
}
.vx-city__trigger:active{ transform: translateY(1px); }

.vx-city__left{ display:flex; flex-direction:column; min-width:0; }
.vx-city__left b{
  color: rgba(245,247,250,.98);
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 280px;
}
.vx-city__chev{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  border:1px solid rgba(148,163,184,.24);
  background: rgba(2,6,23,.70);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, filter .18s ease;
}
.vx-city.is-open .vx-city__chev{
  transform: rotate(180deg);
  border-color: rgba(244,198,90,.66);
  background: rgba(2,6,23,.86);
  filter: brightness(1.04);
}
.vx-city__list{
  display:none;
  border-radius: 14px;
  border:1px solid rgba(148,163,184,.26);
  background: rgba(2,6,23,.78);
  overflow:hidden;
}
.vx-city.is-open .vx-city__list{ display:block; }
.vx-city__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 10px;
  text-decoration:none;
  color: rgba(238,241,246,.96);
  font-size:13px;
  border-top:1px solid rgba(148,163,184,.14);
  transition: background .16s ease, transform .12s ease;
}
.vx-city__item:first-child{ border-top:0; }
.vx-city__item:hover{
  background: rgba(148,163,184,.09);
  transform: translateX(1px);
}
.vx-city__item.is-active{ background: rgba(244,198,90,.12); }
.vx-city__item.is-active:after{
  content:"✓";
  color: var(--vx-gold);
  font-weight:900;
}

/* NAV */
.vx-nav{ display:flex; flex-direction:column; gap:8px; }
.vx-link{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-decoration:none;
  padding: 10px 10px;
  border-radius: 14px;
  border:1px solid rgba(148,163,184,.26);
  background:
    radial-gradient(circle at 16% 18%, rgba(56,189,248,.05), transparent 55%),
    rgba(2,6,23,.70);
  transition: transform .14s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.vx-link::before{
  content:"";
  position:absolute;
  left:10px;
  top:10px;
  bottom:10px;
  width:2px;
  border-radius:2px;
  background: linear-gradient(180deg, rgba(244,198,90,.78), rgba(56,189,248,.52));
  opacity:0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.vx-link:hover{
  transform: translateY(-1px);
  border-color: rgba(148,163,184,.48);
  box-shadow: 0 14px 34px rgba(0,0,0,.33);
  background: rgba(2,6,23,.82);
}
.vx-link:hover::before{
  opacity:.9;
  transform: translateX(0);
}
.vx-link span{
  font-size:13px;
  color: rgba(241,243,247,.96);
  font-weight:740;
}
.vx-link small{
  font-size:11px;
  color: rgba(156,163,175,.95);
}

/* CTA */
.vx-cta{ margin-top: 8px; display:flex; flex-direction:column; gap:8px; }
.vx-cta a{
  position:relative;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  height:42px;
  border-radius:14px;
  padding: 0 12px;
  border:1px solid rgba(230,183,109,.48);
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(135deg, rgba(230,183,109,.90) 0%, rgba(242,209,145,.86) 100%);
  color:#111827;
  font-weight: 950;
  letter-spacing:.055em;
  text-transform: uppercase;
  font-size:11px;
  box-shadow:
    0 12px 28px rgba(250,204,21,.16),
    0 18px 46px rgba(0,0,0,.38);
  transition:
    transform .16s cubic-bezier(.2,.9,.2,1),
    filter .18s ease,
    box-shadow .18s ease;
}
.vx-cta a:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 16px 36px rgba(250,204,21,.18),
    0 24px 58px rgba(0,0,0,.44);
}
.vx-cta a:active{ transform: translateY(1px) scale(.995); }

/* FILTER */
.vx-filter-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 10px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.30);
  background:
    radial-gradient(circle at 16% 18%, rgba(244,198,90,.10), transparent 55%),
    rgba(2,6,23,.72);
  cursor:pointer;
  user-select:none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .14s ease;
}
.vx-filter-toggle:hover{
  border-color: rgba(244,198,90,.65);
  box-shadow: 0 14px 32px rgba(0,0,0,.30);
  transform: translateY(-1px);
}
.vx-filter-toggle__left{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.vx-filter-toggle__left span{
  font-size:13px;
  font-weight:850;
  color: rgba(241,243,247,.96);
  line-height:1.1;
}
.vx-filter-toggle__left small{
  font-size:11px;
  color: rgba(156,163,175,.95);
  line-height:1.1;
}
.vx-filter-toggle__chev{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:13px;
  border:1px solid rgba(148,163,184,.24);
  background: rgba(2,6,23,.70);
  transition: transform .18s ease, border-color .18s ease, filter .18s ease;
  color: rgba(241,243,247,.92);
  font-size:14px;
  line-height:1;
}
.vx-filter-wrap.is-open .vx-filter-toggle__chev{
  transform: rotate(180deg);
  border-color: rgba(244,198,90,.66);
  filter: brightness(1.04);
}
.vx-filter{
  display:none;
  margin-top:10px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.26);
  background:
    radial-gradient(circle at 18% 18%, rgba(56,189,248,.06), transparent 55%),
    rgba(2,6,23,.78);
}
.vx-filter-wrap.is-open .vx-filter{ display:block; }

.vx-filter-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width:360px){
  .vx-filter-grid{ grid-template-columns: 1fr; }
}
.vx-fg{ display:flex; flex-direction:column; gap:6px; }
.vx-fg__label{
  font-size:10px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(156,163,175,.90);
}
.vx-fg__row{ display:flex; gap:8px; }
.vx-fg__row input{
  flex:1;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.26);
  background: rgba(15,23,42,.88);
  color:#e5e7eb;
  font-size:12px;
  padding:0 8px;
  outline:none;
}
.vx-fg__row input:focus{
  border-color: rgba(244,198,90,.65);
  box-shadow: 0 0 0 3px rgba(244,198,90,.10);
}
.vx-fg--full{ grid-column: 1 / -1; }

.vx-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.vx-chip{
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  border:1px solid rgba(148,163,184,.26);
  background: rgba(2,6,23,.65);
  color:#e5e7eb;
  cursor:pointer;
  transition: border-color .14s ease, background .14s ease, transform .12s ease, filter .14s ease;
}
.vx-chip:hover{
  border-color: rgba(244,198,90,.55);
  filter: brightness(1.03);
}
.vx-chip:active{ transform: translateY(1px); }
.vx-chip.is-active{
  background: rgba(244,198,90,.20);
  border-color: rgba(244,198,90,.75);
  color:#fef3c7;
}

.vx-filter-actions{
  display:flex;
  gap:8px;
  margin-top:10px;
}
.vx-filter-actions button{
  flex:1;
  height:38px;
  border-radius:12px;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.05em;
  cursor:pointer;
}
.vx-filter-reset{
  border:1px solid rgba(148,163,184,.32);
  background: rgba(15,23,42,.92);
  color:#e5e7eb;
}
.vx-filter-apply{
  border:1px solid rgba(230,183,109,.55);
  background: linear-gradient(135deg, rgba(230,183,109,.90), rgba(242,209,145,.86));
  color:#111827;
}
.vx-filter-hint{
  margin-top:8px;
  font-size:11px;
  color: rgba(156,163,175,.92);
  line-height:1.25;
}

@media (min-width:768px) and (max-width:1024px){
  .vx-mh-wrap{
    --vx-h: 56px;
    --vx-pad: 16px;
    --vx-panel-max: 560px;
  }
  .vx-mh__logo img{ height:32px; }
  .vx-btn{ height:40px; width:40px; }
}

/* ================= CITY CHIP (HEADER) ================= */

.vx-city-chip-wrap{
  position:relative;
}

.vx-city-chip{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.35);
  background:rgba(2,6,23,.65);
  color:#e5e7eb;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,.35);
}

.vx-city-chip__icon{
  width:14px;
  height:14px;
  opacity:.9;
}

.vx-city-chip__chev{
  font-size:10px;
  opacity:.8;
}

.vx-city-chip-dropdown{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  min-width:160px;
  background:rgba(2,6,23,.92);
  border:1px solid rgba(148,163,184,.25);
  border-radius:14px;
  padding:6px;
  display:none;
  z-index:9999;
}

.vx-city-chip-wrap.is-open .vx-city-chip-dropdown{
  display:block;
}

.vx-city-chip-item{
  display:block;
  padding:8px 10px;
  border-radius:10px;
  font-size:12px;
  color:#e5e7eb;
  text-decoration:none;
}

.vx-city-chip-item:hover{
  background:rgba(148,163,184,.12);
}

.vx-city-chip-item.is-active{
  background:rgba(244,198,90,.18);
  color:#fef3c7;
}

.vx-link__status.is-ok{
  color:#22c55e;
  font-weight:800;
}



/* PORTAL dropdown (в body) */
#vxCityChipDropdown.vx-portal{
  position: fixed !important;
  z-index: 2147483647 !important;
  display: block !important;          /* ключ: иначе он так и останется display:none */
  max-height: min(60vh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ================================================================
   VIMARO · Brand page notice: choose city before filtering
   ================================================================ */

.vx-filter-citynotice{
  margin-top:12px;
  padding:12px 12px 11px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.40);
  background:rgba(15,23,42,.92);
  box-shadow:0 18px 40px rgba(0,0,0,.22);
}

.vx-filter-citynotice__title{
  font-weight:800;
  font-size:13px;
  color:#e5e7eb;
  letter-spacing:.2px;
}

.vx-filter-citynotice__text{
  margin-top:4px;
  font-size:12px;
  color:rgba(226,232,240,.78);
  line-height:1.35;
}

/* Небольшой "shake" для блока выбора города */
#vxCitySelect.is-shake{
  animation:vxCityShake .38s ease-in-out 1;
  outline:1px solid rgba(250,204,21,.35);
  border-radius:16px;
}

@keyframes vxCityShake{
  0%{ transform:translateX(0); }
  18%{ transform:translateX(-6px); }
  36%{ transform:translateX(6px); }
  54%{ transform:translateX(-4px); }
  72%{ transform:translateX(4px); }
  100%{ transform:translateX(0); }
}

/* ===== iOS Safari FIX: rgba alpha must be 0..1 (otherwise Safari may drop backgrounds) ===== */
@supports (-webkit-touch-callout: none) {

  /* Offcanvas root always above everything */
  .vx-oc{
    z-index: 2147483647;
  }

  /* Backdrop */
  .vx-oc__backdrop{
    background:
      radial-gradient(1200px 900px at 18% 6%, rgba(244,198,90,0.18), transparent 55%),
      radial-gradient(1000px 800px at 92% 78%, rgba(56,189,248,0.14), transparent 60%),
      linear-gradient(180deg, rgba(2,6,23,0.72), rgba(1,6,20,0.88));
  }

  /* Panel shell */
  .vx-oc__panel{
    background:
      radial-gradient(circle at 0 0, rgba(244,198,90,0.28), transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(56,189,248,0.16), transparent 55%),
      linear-gradient(135deg, rgba(2,6,23,0.98), rgba(2,6,23,0.98));

    box-shadow: -26px 0 80px rgba(0,0,0,0.75);
  }

  /* Panel inner */
  .vx-oc__panel-in{
    background:
      radial-gradient(900px 700px at 0% 0%, rgba(244,198,90,0.09), transparent 60%),
      radial-gradient(700px 600px at 100% 100%, rgba(56,189,248,0.07), transparent 62%),
      linear-gradient(145deg, rgba(2,6,23,0.96), rgba(5,8,22,0.94));
  }

  /* Better scroll on iOS */
  .vx-oc__body{
    -webkit-overflow-scrolling: touch;
  }
}
