.ot-header {
  position: relative;
  z-index: 500;
  color: var(--ot-text);
  background: var(--ot-white);
  border-bottom: 1px solid var(--ot-border);
}

.ot-has-sticky-header .ot-header {
  position: sticky;
  top: 0;
}

.ot-header__desktop-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: 164px minmax(0, 1fr);
  grid-template-rows: 26px 52px 38px;
  column-gap: 20px;
}

.ot-logo {
  display: inline-flex;
  align-items: center;
}

.ot-logo--desktop {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}

.ot-logo--desktop img {
  width: min(100%, 152px);
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.ot-header__service {
  position: relative;
  z-index: 4;
  display: flex;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ot-text-muted);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.2;
}

.ot-header__service-left,
.ot-header__service-right {
  display: flex;
  min-width: 0;
  align-items: center;
}

.ot-header__service-left {
  gap: 20px;
}

.ot-header__stores {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ot-header__stores svg {
  width: 14px;
  height: 14px;
}

.ot-header__service-right {
  justify-content: flex-end;
  gap: 18px;
}

.ot-header__service a,
.ot-header__service button,
.ot-header__service summary {
  font-weight: 400;
}

.ot-header__service a:hover,
.ot-header__service button:hover,
.ot-header__service summary:hover {
  color: var(--ot-primary);
}

.ot-header__phone {
  color: var(--ot-text-muted);
  font-weight: 600 !important;
  white-space: nowrap;
}

.ot-header__chat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.ot-header__chat > span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--ot-success);
  border-radius: 50%;
}

.ot-city,
.rs-regional-selector {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.ot-city__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #687487;
  stroke-width: 1.7;
}

.rs-current-city {
  font-weight: 600;
}

.rs-city-select {
  width: auto;
  min-height: 28px;
  padding: 2px 24px 2px 4px;
  background-color: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.ot-service-menu {
  position: relative;
}

.ot-service-menu summary {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  list-style: none;
}

.ot-service-menu summary::-webkit-details-marker {
  display: none;
}

.ot-service-menu summary svg {
  width: 14px;
  height: 14px;
  transition: transform var(--ot-ease);
}

.ot-service-menu[open] summary svg {
  transform: rotate(180deg);
}

.ot-service-menu > div {
  position: absolute;
  z-index: 1100;
  top: calc(100% + 7px);
  right: -8px;
  display: grid;
  width: 254px;
  padding: 16px 20px 18px;
  color: var(--ot-text);
  background: var(--ot-white);
  border: 1px solid #edf0f3;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.13);
}

.ot-service-menu > div > span {
  margin: 10px 0 4px;
  color: var(--ot-text-soft);
  font-size: 12px;
  font-weight: 400;
}

.ot-service-menu > div > span:first-child {
  margin-top: 0;
}

.ot-service-menu > div a,
.ot-service-menu > div button {
  display: flex;
  min-height: 35px;
  align-items: center;
  padding: 5px 0;
  color: var(--ot-text);
  background: transparent;
  border: 0;
  font-size: 14px;
  text-align: left;
}

.ot-header__main {
  display: grid;
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: 148px 164px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.ot-catalog-button,
.ot-header__ideas {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}

.ot-catalog-button {
  color: var(--ot-white);
  background: var(--ot-primary);
  border: 1px solid var(--ot-primary);
}

.ot-catalog-button:hover {
  color: var(--ot-white);
  background: #292929;
}

.ot-catalog-button svg {
  width: 18px;
  height: 18px;
  color: var(--ot-accent);
}

.ot-catalog-button__close {
  display: none;
}

.ot-catalog-button[aria-expanded="true"] .ot-catalog-button__grid {
  display: none;
}

.ot-catalog-button[aria-expanded="true"] .ot-catalog-button__close {
  display: block;
}

.ot-header__ideas {
  justify-content: flex-start;
  color: var(--ot-primary);
  background: var(--ot-surface);
  border: 1px solid transparent;
}

.ot-header__ideas:hover {
  background: #e9edf1;
}

.ot-header__ideas svg {
  width: 19px;
  height: 19px;
  color: #596576;
  stroke-width: 1.65;
}

.ot-search {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr 42px;
  background: #f0f2f7;
  border: 1px solid transparent;
  border-radius: 9px;
  overflow: visible;
}

.ot-search:focus-within {
  border-color: #c9cfd7;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.22);
}

.ot-search input {
  min-width: 0;
  min-height: 40px;
  padding: 0 13px;
  background: transparent;
  border: 0;
  border-radius: 9px 0 0 9px;
  box-shadow: none;
  font-size: 13.5px;
  font-weight: 400;
}

.ot-search input::placeholder {
  color: #939ca9;
}

.ot-search input:focus {
  box-shadow: none;
}

.ot-search > button {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--ot-white);
  background: var(--ot-primary);
  border: 0;
  border-radius: 8px;
}

.ot-search > button svg {
  width: 19px;
  height: 19px;
  color: var(--ot-accent);
  stroke-width: 1.7;
}

.ot-search-results {
  position: absolute;
  z-index: 900;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: min(620px, calc(100vh - 160px));
  padding: 8px;
  overflow-y: auto;
  color: var(--ot-text);
  background: var(--ot-white);
  border: 1px solid var(--ot-border);
  border-radius: 10px;
  box-shadow: var(--ot-shadow-md);
}

.ot-search-result {
  display: grid;
  min-height: 72px;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 7px;
}

.ot-search-result:hover,
.ot-search-result.is-active {
  background: var(--ot-surface);
}

.ot-search-result img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: var(--ot-surface-alt);
  border-radius: 6px;
}

.ot-search-result > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.ot-search-result strong {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
}

.ot-search-result small {
  color: var(--ot-text-muted);
  font-size: 12px;
}

.ot-search-result small.is-available {
  grid-column: 3;
  color: var(--ot-success);
}

.ot-search-result__price {
  display: grid;
  justify-items: end;
  font-weight: 700;
  white-space: nowrap;
}

.ot-search-result__price del {
  color: var(--ot-text-soft);
  font-size: 12px;
  font-weight: 400;
}

.ot-header-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.ot-header-action {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #596576;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
}

.ot-header-action:hover {
  color: var(--ot-primary);
  background: #eef1f4;
}

.ot-header-action svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.65;
}

.ot-header-action--account {
  width: auto;
  min-width: 108px;
  max-width: 144px;
  flex: 0 1 auto;
  gap: 7px;
  padding: 0 11px;
  color: var(--ot-primary);
  background: var(--ot-surface);
  font-size: 12.5px;
  font-weight: 600;
}

.ot-header-action--account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ot-header-action .ot-badge {
  top: -5px;
  right: -5px;
}

.ot-header__nav {
  display: flex;
  min-width: 0;
  grid-column: 2;
  grid-row: 3;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 400;
  white-space: nowrap;
}

.ot-header__nav a {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  flex: 0 0 auto;
}

.ot-header__nav a:hover::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--ot-accent);
  content: "";
}

.ot-header__nav-sale {
  gap: 7px;
}

.ot-header__nav-sale svg {
  width: 16px;
  height: 16px;
  color: #ce9700;
}

.ot-header__mobile {
  display: none;
}

.ot-drawer {
  position: fixed;
  z-index: 900;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.ot-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.ot-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(17, 17, 17, 0.38);
  border: 0;
  opacity: 0;
  transition: opacity var(--ot-ease);
}

.ot-drawer.is-open .ot-drawer__backdrop {
  opacity: 1;
}

.ot-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(420px, calc(100vw - 24px));
  height: 100%;
  padding: 14px;
  overflow-y: auto;
  background: var(--ot-white);
  box-shadow: var(--ot-shadow-lg);
  transform: translateX(-102%);
  transition: transform var(--ot-ease);
}

.ot-drawer.is-open .ot-drawer__panel {
  transform: translateX(0);
}

.ot-drawer__header {
  position: sticky;
  z-index: 3;
  top: -14px;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -14px -14px 0;
  padding: 7px 14px;
  background: var(--ot-white);
  border-bottom: 1px solid var(--ot-border);
  font-size: 17px;
  font-weight: 600;
}

.ot-catalog-menu {
  min-width: 0;
}

.ot-catalog-menu__roots {
  display: flex;
  gap: 7px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.ot-catalog-menu__roots :is(a, button) {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: var(--ot-text);
  background: var(--ot-surface);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

.ot-catalog-menu__roots :is(a, button).is-active {
  background: var(--ot-accent-soft);
  border-color: #f1d66f;
}

.ot-catalog-menu__arrow {
  display: none;
}

.ot-catalog-menu__panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ot-catalog-menu__panel h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.ot-catalog-menu__panel > header > a {
  min-height: 40px;
  padding: 9px 11px;
  color: var(--ot-text-muted);
  border: 1px solid var(--ot-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.ot-catalog-menu__children {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}

.ot-catalog-menu__related-title {
  margin: 22px 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.ot-catalog-menu__children--related .ot-catalog-menu__media {
  min-height: 72px;
}

.ot-catalog-menu__children--related .ot-catalog-menu__media img {
  height: 72px;
}

.ot-catalog-menu__children > a {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.28;
}

.ot-catalog-menu__media {
  display: flex;
  width: 100%;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ot-text-soft);
  background: var(--ot-surface-alt);
  border-radius: 8px;
  font-size: 26px;
}

.ot-catalog-menu__media img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.ot-catalog-menu__empty {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 14px;
  color: var(--ot-white);
  background: var(--ot-primary);
  border-radius: 8px;
}

.ot-drawer__contacts {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding: 14px;
  color: var(--ot-text-muted);
  background: var(--ot-surface);
  border-radius: 9px;
  font-size: 13px;
}

.ot-drawer__contacts a {
  color: var(--ot-primary);
  font-weight: 600;
}

.ot-mobile-nav {
  display: none;
}

@media (min-width: 1024px) {
  .ot-drawer {
    top: var(--ot-drawer-top, 116px);
  }

  .ot-drawer__backdrop {
    background: rgba(17, 17, 17, 0.12);
  }

  .ot-drawer__panel {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: min(670px, calc(100vh - var(--ot-drawer-top, 116px)));
    padding: 0;
    overflow: hidden;
    border-top: 1px solid var(--ot-border);
    border-bottom: 1px solid var(--ot-border);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--ot-ease), transform var(--ot-ease);
  }

  .ot-drawer.is-open .ot-drawer__panel {
    opacity: 1;
    transform: translateY(0);
  }

  .ot-drawer__header {
    display: none;
  }

  .ot-catalog-menu {
    display: grid;
    height: 100%;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }

  .ot-catalog-menu__roots {
    display: block;
    padding: 14px 14px 24px max(24px, calc((100vw - var(--ot-container)) / 2));
    overflow-y: auto;
    background: #f2f4f8;
  }

  .ot-catalog-menu__roots :is(a, button) {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    margin: 0 0 2px;
    padding: 7px 10px 7px 12px;
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 13.5px;
    font-weight: 400;
  }

  .ot-catalog-menu__roots :is(a, button).is-active {
    background: var(--ot-white);
    box-shadow: inset 3px 0 0 var(--ot-accent), 0 2px 10px rgba(17, 24, 39, 0.04);
  }

  .ot-catalog-menu__arrow {
    display: block;
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--ot-text-soft);
  }

  .ot-catalog-menu__panels {
    min-width: 0;
    padding: 26px max(24px, calc((100vw - var(--ot-container)) / 2)) 34px 28px;
    overflow-y: auto;
  }

  .ot-catalog-menu__panel h2 {
    font-size: 22px;
  }

  .ot-catalog-menu__panel > header > a {
    color: var(--ot-primary);
  }

  .ot-catalog-menu__children {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px 20px;
  }

  .ot-catalog-menu__children > a {
    font-size: 13.5px;
  }

  .ot-catalog-menu__media {
    min-height: 112px;
    background: var(--ot-white);
  }

  .ot-catalog-menu__media img {
    height: 112px;
  }

  .ot-catalog-menu__children--related {
    grid-template-columns: repeat(5, minmax(0, 180px));
  }

  .ot-catalog-menu__children--related .ot-catalog-menu__media {
    min-height: 76px;
  }

  .ot-catalog-menu__children--related .ot-catalog-menu__media img {
    height: 76px;
  }

  .ot-drawer__contacts {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .ot-header__desktop-grid {
    grid-template-columns: 146px minmax(0, 1fr);
    column-gap: 14px;
  }

  .ot-logo--desktop img {
    width: 138px;
  }

  .ot-header__main {
    grid-template-columns: 140px minmax(250px, 1fr) auto;
  }

  .ot-header__ideas {
    display: none;
  }

  .ot-header-action--account {
    min-width: 42px;
    max-width: 42px;
    padding: 0;
  }

  .ot-header-action--account span {
    display: none;
  }

  .ot-header__service-left,
  .ot-header__service-right {
    gap: 14px;
  }

  .ot-header__nav {
    gap: 18px;
    overflow-x: auto;
  }

  .ot-catalog-menu {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .ot-catalog-menu__children {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .ot-header__desktop {
    display: none;
  }
}

@media (max-width: 767px) {
  .ot-search-results {
    position: fixed;
    top: 68px;
    right: 12px;
    left: 12px;
    max-height: calc(100vh - 150px);
  }

  .ot-search-result {
    grid-template-columns: 60px minmax(0, 1fr) auto;
  }

  .ot-search-result small.is-available {
    display: none;
  }
}
