/* Страница зон доставки (карта на весь экран под общей шапкой сайта). Перенесено из index.html 14.11.2026. */

    

    
    

    #map { position: absolute; inset: 0; }




    .panel {
      position: fixed;
      z-index: 1200;
      left: 18px;
      bottom: max(18px, env(safe-area-inset-bottom));
      width: min(332px, calc(100% - 36px));
      padding: 14px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 22px;
      background: #0c0c0e;
      box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
      backdrop-filter: blur(18px);
    }

    .zones { display: grid; gap: 7px; margin-bottom: 12px; }
    .zone-button {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border: 1px solid transparent;
      border-radius: 16px;
      color: #f4f4f5;
      background: rgba(24, 24, 27, .88);
      font: inherit;
      text-align: left;
      cursor: pointer;
      transition: .18s ease;
    }
    .zone-button:hover,
    .zone-button.active { border-color: var(--zone-color); background: rgba(39, 39, 42, .96); transform: translateY(-1px); }
    .zone-swatch { width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--zone-color); }
    .zone-copy { min-width: 0; display: grid; gap: 2px; }
    .zone-name { font-size: 13px; font-weight: 900; letter-spacing: -.02em; }
    .zone-meta { overflow: hidden; color: #a1a1aa; font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
    .zone-hint { margin-left: auto; color: #a1a1aa; font-size: 11px; }

    .delivery-popup { min-width: 210px; color: #27201b; line-height: 1.45; }
    .delivery-popup strong { display: block; margin-bottom: 5px; font-size: 14px; }
    .delivery-popup .delivery-condition { font-weight: 650; }
    .delivery-popup .delivery-pending { color: #8a5b38; }

    .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
    .actions .wide { grid-column: 1 / -1; }
    button.action {
      min-height: 39px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 12px;
      color: #f4f4f5;
      background: rgba(255, 255, 255, .06);
      font: 650 12px/1.1 inherit;
      cursor: pointer;
    }
    button.action:hover { background: rgba(255, 255, 255, .11); }
    button.action.primary { border-color: rgba(242, 106, 46, .42); background: rgba(242, 106, 46, .18); }
    button.action.active { background: #ea580c; color: #1a0d07; }
    button.action[hidden] { display: none; }
    button.action:disabled { cursor: not-allowed; opacity: .42; }

    .help { margin: 11px 2px 0; color: #a1a1aa; font-size: 11px; line-height: 1.45; }
    .status { color: #ffd8c5; }

    .address-checker {
      position: fixed;
      z-index: 1200;
      top: max(18px, env(safe-area-inset-top));
      right: 18px;
      width: min(590px, calc(100% - 414px));
      padding: 14px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 20px;
      background: #0c0c0e;
      box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
      backdrop-filter: blur(18px);
    }
    .checker-title { margin: 0 0 2px; font-size: 14px; }
    .checker-subtitle { margin: 0 0 9px; color: #a1a1aa; font-size: 10px; }
    .checker-form { display: grid; grid-template-columns: minmax(0, 1fr) 124px; gap: 7px; }
    .checker-field {
      min-width: 0;
      height: 41px;
      padding: 0 11px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 12px;
      outline: none;
      color: #f4f4f5;
      background: rgba(255, 255, 255, .075);
      font: 600 12px/1 inherit;
    }
    .checker-field:focus { border-color: rgba(242, 106, 46, .72); }
    .checker-address { grid-column: auto; }
    .checker-submit {
      height: 41px;
      border: 1px solid rgba(242, 106, 46, .5);
      border-radius: 12px;
      color: #fff7f1;
      background: rgba(242, 106, 46, .24);
      font: 750 12px/1 inherit;
      cursor: pointer;
    }
    .checker-submit:disabled { cursor: wait; opacity: .6; }
    .address-correction, .address-suggestions { display: none; grid-column: 1 / -1; }
    .address-correction.visible, .address-suggestions.visible { display: block; }
    .address-correction {
      margin-top: 7px;
      padding: 8px 10px;
      border: 1px solid rgba(242, 106, 46, .3);
      border-radius: 11px;
      color: #ffd8c5;
      background: rgba(242, 106, 46, .1);
      font-size: 10px;
      cursor: pointer;
    }
    .suggestions-title { margin: 0 0 7px; color: #fff4ec; font-size: 11px; font-weight: 750; }
    .suggestion-note { margin: 0; color: #a1a1aa; font-size: 10px; line-height: 1.4; }
    .suggestions-list { display: grid; gap: 6px; }
    .address-suggestion, .manual-pin-button {
      width: 100%;
      padding: 8px 10px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 11px;
      color: #f4f4f5;
      background: rgba(255, 255, 255, .065);
      font: 650 11px/1.25 inherit;
      text-align: left;
      cursor: pointer;
    }
    .address-suggestion:hover, .manual-pin-button:hover { background: rgba(255, 255, 255, .12); }
    .suggestion-meta { display: block; margin-top: 2px; color: #a1a1aa; font-size: 9px; font-weight: 500; }
    .manual-pin-button { margin-top: 7px; border-color: rgba(242, 106, 46, .4); color: #ffd8c5; text-align: center; }
    .pin-mode { cursor: crosshair !important; }
    ymaps[class*="suggest"] { z-index: 2000 !important; }
    .checker-result { display: none; margin-top: 9px; padding: 10px 11px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
    .checker-result.visible { display: block; animation: result-in .38s cubic-bezier(.2, .8, .2, 1) both; }
    .checker-result.success { border: 1px solid rgba(95, 225, 114, .34); }
    .checker-result.error { border: 1px solid rgba(237, 69, 67, .45); }
    .result-zone { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
    .result-price { margin: 0 0 4px; color: #ffe1cf; font-size: 13px; font-weight: 750; }
    .result-condition, .result-address { margin: 0; color: #a1a1aa; font-size: 11px; line-height: 1.4; }
    .result-address { overflow: hidden; margin-top: 4px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

    .bottom-actions {
      position: fixed;
      z-index: 1280;
      left: 50%;
      bottom: max(16px, env(safe-area-inset-bottom));
      width: min(560px, calc(100% - 32px));
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      padding: 8px;
      transform: translateX(-50%);
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 9999px;
      background: rgba(10, 10, 10, .92);
      box-shadow: 0 18px 50px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255,255,255,.04);
      backdrop-filter: blur(24px);
    }
    .bottom-action {
      min-width: 0;
      height: 47px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 9999px;
      color: #f4f4f5;
      background: rgba(255, 255, 255, .05);
      font: italic 800 12px/1 "Montserrat", sans-serif;
      text-transform: uppercase;
      letter-spacing: -.015em;
      cursor: pointer;
      transition: transform .2s ease, border-color .2s ease, background .2s ease;
    }
    .bottom-action:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); }
    .bottom-action.primary { border-color: transparent; background: linear-gradient(135deg, #ea580c, #c2410c); box-shadow: 0 10px 30px rgba(234,88,12,.32); }
    .bottom-action.active { border-color: #ea580c; background: linear-gradient(135deg, #ea580c, #c2410c); box-shadow: 0 10px 30px rgba(234,88,12,.32); }
    .bottom-action-icon { color: #fff; font-size: 15px; line-height: 1; }

    .bottom-sheet {
      position: fixed;
      z-index: 1260;
      left: 50%;
      bottom: max(86px, calc(env(safe-area-inset-bottom) + 70px));
      width: min(680px, calc(100% - 32px));
      max-height: min(66vh, 560px);
      overflow: auto;
      padding: 11px 16px 16px;
      transform: translate(-50%, calc(100% + 120px));
      opacity: 0;
      pointer-events: none;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 30px;
      background: linear-gradient(145deg, rgba(20,20,22,.98), rgba(7,7,8,.98));
      box-shadow: 0 -18px 60px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255,255,255,.05);
      backdrop-filter: blur(26px);
      transition: transform .46s cubic-bezier(.2, .82, .2, 1), opacity .28s ease;
      overscroll-behavior: contain;
    }
    .bottom-sheet.open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
    .sheet-handle { width: 44px; height: 4px; margin: 0 auto 10px; border-radius: 999px; background: linear-gradient(90deg, #ea580c, #f97316); }
    .sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
    .sheet-eyebrow { margin: 0 0 3px; color: #f97316; font-size: 9px; font-style: italic; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
    .sheet-title { margin: 0; font-size: 19px; line-height: 1.1; font-style: italic; font-weight: 900; letter-spacing: -.045em; text-transform: uppercase; }
    .sheet-description { margin: 0 0 10px; color: #a1a1aa; font-size: 11px; line-height: 1.4; }
    .sheet-close { width: 36px; height: 36px; flex: none; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; color: #f4f4f5; background: rgba(255, 255, 255, .06); font: 700 14px/1 "Montserrat",sans-serif; cursor: pointer; transition: .2s ease; }
    .sheet-close:hover { color: #fff; border-color: #ea580c; background: #ea580c; transform: rotate(8deg); }
    .sheet-view[hidden] { display: none; }
    .sheet-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
    .sheet-zones .zone-hint { font-size: 10px; }
    .bottom-sheet .address-checker {
      position: static;
      width: auto;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      backdrop-filter: none;
    }
    .bottom-sheet .checker-title { display: none; }
    .bottom-sheet.pinning .checker-subtitle,
    .bottom-sheet.pinning .checker-form,
    .bottom-sheet.pinning .address-correction,
    .bottom-sheet.pinning .address-suggestions { display: none !important; }
    .bottom-sheet.pinning { max-height: 230px; }

    .leaflet-interactive { transition: fill-opacity .35s ease, stroke-width .35s ease; }
    .delivery-marker { background: transparent; border: 0; }
    .delivery-marker-dot {
      position: absolute;
      inset: 5px;
      border: 3px solid #fff;
      border-radius: 50%;
      background: #ea580c;
      box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
    }
    .delivery-marker-dot::before {
      content: '';
      position: absolute;
      inset: -9px;
      border: 2px solid rgba(242, 106, 46, .72);
      border-radius: 50%;
      animation: marker-pulse 1.8s ease-out infinite;
    }

    @keyframes result-in {
      from { opacity: 0; transform: translateY(-7px) scale(.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes marker-pulse {
      0% { opacity: .9; transform: scale(.55); }
      75%, 100% { opacity: 0; transform: scale(1.8); }
    }

    .map-error {
      position: fixed;
      z-index: 1400;
      inset: 50% auto auto 50%;
      width: min(440px, calc(100% - 40px));
      transform: translate(-50%, -50%);
      display: none;
      padding: 20px;
      border: 1px solid rgba(242, 106, 46, .45);
      border-radius: 18px;
      background: #211813;
      text-align: center;
    }

    @media (max-width: 900px) {
      .bottom-sheet .address-checker { position: static; width: auto; padding: 0; }
      .checker-subtitle { display: none; }
      .checker-form { grid-template-columns: 1fr; }
      .checker-address { grid-column: 1 / -1; }
      .result-address { display: none; }
    }

    @media (max-width: 680px) {
      .bottom-actions { bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100% - 20px); padding: 7px; }
      .bottom-action { height: 45px; gap: 6px; font-size: 11px; }
      .bottom-action-icon { font-size: 16px; }
      .bottom-sheet { bottom: max(72px, calc(env(safe-area-inset-bottom) + 62px)); width: calc(100% - 20px); max-height: 68vh; padding: 9px 11px 12px; border-radius: 20px; }
      .sheet-zones { grid-template-columns: 1fr 1fr; }
      .zone-button { padding: 9px; gap: 7px; }
      .zone-hint { display: none; }
      .zone-name { font-size: 11px; }
      .zone-meta { font-size: 9px; }
      .help { display: none; }
    }
  

    /* ===== Стиль Рони (04.11.2026): плотные панели с белым сиянием, 3D-клавиши с нажатием ===== */
    
    a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }


    

    /* Нижняя панель: тёмная и оранжевая клавиши */
    .bottom-actions {
      gap: 10px;
      padding: 9px 9px 13px;
      border-radius: 1.5rem;
      border-color: rgba(255,255,255,.3);
      background: #0c0c0e;
      box-shadow: 0 0 16px rgba(255,255,255,.12), 0 18px 50px rgba(0,0,0,.45);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
    .bottom-action, .bottom-action:hover {
      height: 50px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 1.05rem;
      background: #141418;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 0 #050506;
      transform: none;
      transition: transform .12s ease, box-shadow .12s ease, border-color .2s;
    }
    .bottom-action-icon { color: #fb923c; }
    .bottom-action.primary, .bottom-action.primary:hover,
    .bottom-action.active, .bottom-action.active:hover {
      border: 0;
      background: linear-gradient(180deg, #fb923c 0%, #ea580c 55%, #dc4f0a 100%);
      background-origin: border-box;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 0 #9a3412;
    }
    .bottom-action.primary .bottom-action-icon, .bottom-action.active .bottom-action-icon { color: #fff; }
    /* Когда одна панель открыта, оранжевой остаётся только она */
    .bottom-actions:has(.bottom-action.active) .bottom-action.primary:not(.active) {
      border: 1px solid rgba(255,255,255,.12);
      background: #141418;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 0 #050506;
    }
    .bottom-actions:has(.bottom-action.active) .bottom-action.primary:not(.active) .bottom-action-icon { color: #fb923c; }
    @media (hover: hover) {
      .bottom-action:hover { border-color: rgba(234,88,12,.5); transform: translateY(-1px); }
      .bottom-action.primary:hover, .bottom-action.active:hover { filter: brightness(1.06); }
    }
    .bottom-action:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 0 #050506; transition-duration: .06s; }
    .bottom-action.primary:active, .bottom-action.active:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 0 #9a3412; }

    /* Шторка: плотная, белое сияние сверху, серая «ручка» */
    .bottom-sheet {
      border-color: rgba(255,255,255,.3);
      border-radius: 1.6rem;
      background: #0c0c0e;
      box-shadow: 0 0 16px rgba(255,255,255,.1), 0 -18px 60px rgba(0,0,0,.55);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
    .sheet-handle { background: #3f3f46; }
    .sheet-close { background: #18181b; }
    .sheet-close:hover { background: #18181b; border-color: rgba(234,88,12,.6); transform: none; }
    .sheet-close:active { transform: scale(.92); }

    /* Зоны — карточки, выбранная подсвечена цветом зоны */
    .zone-button { border: 1px solid rgba(255,255,255,.07); border-radius: 1rem; background: #141418; transition: transform .12s ease, border-color .2s ease; }
    .zone-button:hover, .zone-button.active { background: #18181d; transform: none; }
    .zone-button:active { transform: scale(.97); }

    /* Проверка адреса: поле как поиск в меню, «Найти адрес» — 3D-клавиша */
    .checker-field { height: 46px; border-radius: 1rem; background: #141418; border-color: rgba(255,255,255,.08); font-size: 14px; }
    .checker-field:focus { border-color: rgba(234,88,12,.7); box-shadow: 0 0 0 4px rgba(234,88,12,.15); }
    .checker-submit {
      height: 46px;
      border: 0;
      border-radius: 1rem;
      background: linear-gradient(180deg, #fb923c 0%, #ea580c 55%, #dc4f0a 100%);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 0 #9a3412;
      color: #fff;
      font: italic 900 12px/1 "Montserrat", sans-serif;
      text-transform: uppercase;
      transition: transform .12s ease, box-shadow .12s ease;
    }
    .checker-submit:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 0 #9a3412; }
    .address-suggestion, .manual-pin-button { border-radius: .9rem; background: #141418; transition: transform .12s ease; }
    .address-suggestion:active, .manual-pin-button:active { transform: scale(.97); }
    .checker-result { border-radius: 1rem; background: #141418; }
    @media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; } }
  

/* ===== Общая шапка сайта поверх карты ===== */
html:has(.zones-page), body:has(.zones-page) { height: 100%; overflow: hidden; overscroll-behavior: none; }
body:has(.zones-page) .footer { display: none; }
.zones-page #map { position: fixed; inset: 0; z-index: 1; background: #0a0a0a; }
.zones-page .leaflet-top { top: 92px; }
@media (max-width: 768px) { .zones-page .leaflet-control-zoom { display: none; } }
.zones-page .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; background: #141418; color: #fff; border-color: rgba(255,255,255,.08); }
.zones-page .leaflet-control-zoom { border: 1px solid rgba(255,255,255,.12); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 0 #050506; }
.zones-page .leaflet-control-attribution { background: rgba(10,10,10,.6); color: #71717a; font-size: 9px; }
.zones-page .leaflet-control-attribution a { color: #a1a1aa; }
/* Когда в корзине что-то есть, нижняя панель корзины сайта видна — поднимаем кнопки карты над ней */
body.has-cart-bar .zones-page .bottom-actions { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px); }
body.has-cart-bar .zones-page .bottom-sheet { bottom: calc(max(86px, env(safe-area-inset-bottom) + 70px) + 76px); }
/* КР1 (выбор Вадима 14.11.2026): тёмная карта — приглушаем обычную подложку OpenStreetMap, зоны остаются яркими */
.zones-page .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) saturate(.5) contrast(.9); }
