@media (max-width: 999px) {
  #offcanvas.ct-panel.ct-header {
    --redtop-menu-bg: #1a1918;
    --redtop-menu-panel: #232220;
    --redtop-menu-text: #ffffff;
    --redtop-menu-muted: #aaa6a1;
    --redtop-menu-accent: #ff9200;
  }

  #offcanvas.ct-panel.ct-header .ct-panel-inner {
    width: min(88vw, 380px);
    max-width: 100%;
    background: var(--redtop-menu-bg);
    box-shadow: 18px 0 54px rgb(0 0 0 / 28%);
  }

  #offcanvas.ct-panel.ct-header .ct-panel-actions {
    min-height: 70px;
    padding: 17px 22px 8px;
    background: var(--redtop-menu-bg);
  }

  #offcanvas.ct-panel.ct-header .ct-toggle-close {
    color: var(--redtop-menu-text);
  }

  #offcanvas.ct-panel.ct-header .ct-panel-content[data-device="mobile"] {
    height: calc(100dvh - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--redtop-menu-bg);
  }

  #offcanvas .redtop-mobile-drawer-ready {
    display: block;
    padding: 0 0 max(22px, env(safe-area-inset-bottom));
  }

  #offcanvas .redtop-mobile-drawer-ready > nav.mobile-menu {
    display: none !important;
  }

  .redtop-mobile-drawer,
  .redtop-mobile-drawer ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .redtop-mobile-drawer {
    color: var(--redtop-menu-text);
    font-family: inherit;
  }

  .redtop-mobile-drawer__main {
    display: grid;
    gap: 2px;
    padding: 8px 22px 24px !important;
  }

  .redtop-mobile-drawer__main-link,
  .redtop-mobile-drawer__service-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    color: var(--redtop-menu-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms ease;
  }

  .redtop-mobile-drawer__main-link:hover,
  .redtop-mobile-drawer__main-link:focus-visible,
  .redtop-mobile-drawer__service-link:hover,
  .redtop-mobile-drawer__service-link:focus-visible,
  .redtop-mobile-drawer__main-link[aria-current="page"] {
    color: var(--redtop-menu-accent);
  }

  .redtop-mobile-drawer__main-link:active,
  .redtop-mobile-drawer__service-link:active {
    transform: translateX(2px);
  }

  .redtop-mobile-drawer__service {
    padding: 18px 22px 14px;
    border-top: 1px solid rgb(255 255 255 / 12%);
    background: var(--redtop-menu-panel);
  }

  .redtop-mobile-drawer__city {
    display: flex;
    width: 100%;
    gap: 13px;
    align-items: center;
    min-height: 48px;
    margin-bottom: 8px;
    padding: 2px 0 14px;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    border-top: 0;
    border-right: 0;
    border-left: 0;
    color: var(--redtop-menu-text);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 160ms ease;
  }

  .redtop-mobile-drawer__city:hover,
  .redtop-mobile-drawer__city:focus-visible {
    color: var(--redtop-menu-accent);
    outline: none;
  }

  .redtop-mobile-drawer__pin {
    display: grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    color: var(--redtop-menu-accent);
  }

  .redtop-mobile-drawer__pin svg {
    display: block;
    width: 22px;
    height: 22px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .redtop-mobile-drawer__city-copy {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }

  .redtop-mobile-drawer__city-copy strong {
    overflow: hidden;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .redtop-mobile-drawer__city-action {
    flex: 0 0 auto;
    color: var(--redtop-menu-accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
  }

  .redtop-mobile-drawer__service-links {
    display: grid;
    gap: 2px;
    padding-top: 4px;
  }

  .redtop-mobile-drawer__service-link {
    min-height: 44px;
    font-size: 16px;
    font-weight: 500;
  }

  .redtop-mobile-drawer__service-link--phone {
    margin-top: 4px;
    color: var(--redtop-menu-accent);
    font-size: 17px;
    font-weight: 650;
  }

  #offcanvas .ct-header-socials.redtop-mobile-drawer__socials {
    margin: 0;
    padding: 18px 22px 24px;
    border-top: 1px solid rgb(255 255 255 / 12%);
    background: var(--redtop-menu-panel);
  }

  #offcanvas .redtop-mobile-drawer__socials .ct-social-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  #offcanvas .redtop-mobile-drawer__socials a {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--redtop-menu-text);
    background: transparent;
    transition: transform 160ms ease;
  }

  #offcanvas .redtop-mobile-drawer__socials .redtop-social-vector {
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    place-items: center;
    border: 1.5px solid var(--redtop-menu-accent);
    border-radius: 50%;
    color: var(--redtop-menu-text) !important;
    background: radial-gradient(circle at 45% 35%, #292826 0, #171716 72%);
    box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
    transition: filter 160ms ease, transform 160ms ease;
  }

  #offcanvas .redtop-mobile-drawer__socials .redtop-social-vector svg {
    display: block;
    width: 21px !important;
    height: 21px !important;
    overflow: visible;
    color: var(--redtop-menu-text) !important;
    fill: currentColor !important;
  }

  #offcanvas .redtop-mobile-drawer__socials .redtop-social-vector svg path {
    fill: currentColor !important;
  }

  #offcanvas .redtop-mobile-drawer__socials .redtop-social-link--dzen svg {
    width: 23px !important;
    height: 23px !important;
  }

  #offcanvas .redtop-mobile-drawer__socials .redtop-social-link--ok svg {
    width: 18px !important;
    height: 22px !important;
  }

  #offcanvas .redtop-mobile-drawer__socials .redtop-social-link--rutube svg {
    width: 26px !important;
    height: 26px !important;
  }

  #offcanvas .redtop-mobile-drawer__socials a:hover,
  #offcanvas .redtop-mobile-drawer__socials a:focus-visible {
    background: transparent;
    outline: none;
    transform: translateY(-2px);
  }

  #offcanvas .redtop-mobile-drawer__socials a:hover .redtop-social-vector,
  #offcanvas .redtop-mobile-drawer__socials a:focus-visible .redtop-social-vector {
    filter: brightness(1.08) drop-shadow(0 6px 14px rgb(255 146 0 / 22%));
    transform: scale(1.04);
  }
}

.redtop-city-dialog-open {
  overflow: hidden !important;
}

.redtop-city-dialog-backdrop {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: grid;
  padding: 16px;
  place-items: center;
  background: rgb(0 0 0 / 62%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.redtop-city-dialog-backdrop.is-visible {
  opacity: 1;
}

.redtop-city-dialog {
  width: min(420px, 100%);
  max-height: min(720px, calc(100dvh - 32px));
  overflow-y: auto;
  padding: 24px;
  border-radius: 22px;
  color: #171717;
  background: #fff;
  box-shadow: 0 24px 80px rgb(0 0 0 / 32%);
  transform: translateY(12px) scale(.98);
  transition: transform 160ms ease;
}

.redtop-city-dialog-backdrop.is-visible .redtop-city-dialog {
  transform: none;
}

.redtop-city-dialog__header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.redtop-city-dialog__header h2 {
  margin: 0;
  color: #171717;
  font-family: inherit;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.redtop-city-dialog__close {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #e3e2df;
  border-radius: 50%;
  color: #171717;
  background: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.redtop-city-dialog__description {
  margin: 12px 0 18px;
  color: #6d6a66;
  font-size: 15px;
  line-height: 1.45;
}

.redtop-city-dialog__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.redtop-city-dialog__option {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #e3e2df;
  border-radius: 12px;
  color: #171717;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.redtop-city-dialog__option:hover,
.redtop-city-dialog__option:focus-visible,
.redtop-city-dialog__option[aria-pressed="true"] {
  border-color: #ff9200;
  outline: none;
  background: #fff5e6;
}

.redtop-city-dialog__form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ecebe8;
}

.redtop-city-dialog__form label {
  color: #171717;
  font-size: 14px;
  font-weight: 600;
}

.redtop-city-dialog__form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d9d7d3;
  border-radius: 12px;
  color: #171717;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.redtop-city-dialog__form input:focus {
  border-color: #ff9200;
  outline: 2px solid rgb(255 146 0 / 20%);
}

.redtop-city-dialog__status {
  min-height: 18px;
  color: #b73c1c;
  font-size: 12px;
}

.redtop-city-dialog__save {
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  color: #111;
  background: #ff9200;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.redtop-city-dialog__save:hover,
.redtop-city-dialog__save:focus-visible {
  background: #ff9e1a;
  outline: 2px solid rgb(255 146 0 / 26%);
}

@media (max-width: 359px) {
  .redtop-city-dialog {
    padding: 20px;
  }

  .redtop-city-dialog__options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .redtop-mobile-drawer a,
  .redtop-mobile-drawer button,
  .redtop-city-dialog,
  .redtop-city-dialog-backdrop {
    transition: none !important;
  }
}
