@font-face {
  font-family: 'Contact Open Sans';
  src: url('../../fonts/OpenSans-cyrillic.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: 'Contact Open Sans';
  src: url('../../fonts/OpenSans-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

.contact-widget {
  --contact-ink: #241c13;
  --contact-muted: #6b625a;
  --contact-shadow: 0 8px 24px rgba(36, 28, 19, .18);
  position: relative;
  float: left;
  z-index: 15;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 8px;
  font-family: 'Contact Open Sans', sans-serif;
}

.contact-widget [hidden], .contact-widget__close {
  display: none;
}

.contact-widget button {
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  cursor: pointer;
}

.contact-widget__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 178px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-bottom: 3px solid var(--contact-ink);
  border-radius: 4px;
  background: #9c1006;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  text-align: left;
  white-space: nowrap;
}

.contact-widget__trigger::before, .contact-widget__trigger::after,
.contact-widget__close::after {
  content: '';
  width: 12px;
  height: 12px;
  flex: none;
  background: url('../../img/contact-widget/question.svg') center / contain no-repeat;
}

.contact-widget__trigger::after {
  margin-left: auto;
  background-image: url('../../img/contact-widget/chevron.svg');
  transform: rotate(180deg);
}

.contact-widget__trigger:active {
  background-color: #85100a;
}

.contact-widget__trigger[aria-expanded="true"] {
  border-bottom: 0;
  background-color: #7d0d05;
}

.contact-widget__trigger[aria-expanded="true"]::after, .contact-widget__close::after {
  transform: none;
  background-image: url('../../img/contact-widget/close.svg');
}

.contact-widget__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 8px;
  width: 256px;
  box-shadow: var(--contact-shadow);
  border-radius: 4px 4px 0 0;
}

.contact-widget__panel::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 8px;
}

.contact-widget__menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px 6px;
  border-radius: 4px 4px 0 0;
  background: #fff;
}

.contact-widget__caption {
  padding: 12px 10px 6px;
  margin: 0;
  color: var(--contact-muted);
  font: 400 13px/18px 'Contact Open Sans', sans-serif;
}

.contact-widget__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 4px 10px;
  border-radius: 3px;
  color: #231f20;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
}

.contact-widget__item img {
  flex: none;
  width: 32px;
  height: 32px;
}

.contact-widget__item small {
  display: block;
  margin-top: 1px;
  color: var(--contact-muted);
  font-size: 13px;
  line-height: 18px;
}

.contact-widget__item:active {
  background-color: #f0efee;
  color: #231f20;
  text-decoration: none;
}

@media (hover: hover) {
  .contact-widget__trigger[aria-expanded="false"]:hover { background-color: #85100a; }

  .contact-widget__item:hover {
    background-color: #f0efee;
    color: #231f20;
    text-decoration: none;
  }
}

.contact-widget :focus-visible {
  outline: 2px solid #0a649d;
  outline-offset: 2px;
}

.contact-widget__item:focus-visible {
  outline-offset: -2px;
  background-color: #fff;
  color: #231f20;
}

@media (min-width: 1280px) {
  .contact-widget__trigger { box-shadow: var(--contact-shadow); }
  .contact-widget__panel::before { height: 20px; }

  #header:has(.contact-widget) #header-fixed .top-line {
    display: flex;
    align-items: center;
  }

  #header:has(.contact-widget) #header-fixed .top-line > nav ul {
    display: flex;
    padding: 0;
  }

  #header:has(.contact-widget) #header-fixed .top-line > nav li a {
    padding: 0 20px;
    white-space: nowrap;
  }

  #header:has(.contact-widget) #header-fixed.show .top-line > nav li a { padding: 0 12px; }

  #header:has(.contact-widget) #header-fixed .top-line > .top-line-right {
    flex: none;
    margin-left: auto;
  }
}

@media (min-width: 731px) and (max-width: 1279px) {
  #header:has(.contact-widget) #header-fixed .header-left .logo {
    width: clamp(180px, calc(100vw - 506px), 322px);
  }

  #header:has(.contact-widget) #header-fixed:not(.menu-open) .top-line nav { flex-basis: 58px; width: 58px; }
  #header:has(.contact-widget) #header-fixed:not(.menu-open) .mobile-toggler { width: 100%; }

  #header:has(.contact-widget) #header-fixed .wishlist {
    width: 60px;
    padding: 0;
  }

  #header:has(.contact-widget) #header-fixed .wishlist .text {
    display: none !important;
  }

  .contact-widget {
    padding: 0 4px;
  }

  .contact-widget__trigger {
    gap: 6px;
    width: 188px;
    height: 40px;
    font-weight: 700;
  }

  .contact-widget__trigger::before { width: 18px; height: 18px; }
  .contact-widget__trigger::after { width: 14px; height: 14px; }

  .contact-widget__trigger[aria-expanded="true"] {
    border-bottom: 3px solid var(--contact-ink);
    border-radius: 0 0 4px 4px;
    background-color: #6b0b04;
  }

  .contact-widget__panel { left: 4px; }

  .contact-widget__backdrop {
    position: fixed;
    inset: 60px 0 0;
    z-index: -1;
  }
}

@media (min-width: 731px) and (max-width: 1279px) and (orientation: landscape) {
  .contact-widget { order: 1; }
  #header:has(.contact-widget) #header-fixed .header-left .logo { width: clamp(180px, calc(100vw - 544px), 322px); }
  #header:has(.contact-widget) #header-fixed:not(.menu-open) .top-line nav { flex-basis: 60px; width: 60px; }
  #header:has(.contact-widget) #header-fixed .wishlist { order: 2; width: 96px; }
  .contact-widget__panel { left: auto; right: 4px; }
}

@media (max-width: 730px) {
  #header:has(.contact-widget) #header-fixed .top-line-right { flex: 1; min-width: 0; }
  #header:has(.contact-widget) #header-fixed .wishlist {
    flex: 0 0 46px;
    min-width: 0;
    padding: 0;
  }
  #header:has(.contact-widget) #header-fixed .wishlist .text { display: none !important; }
  #header:has(.contact-widget) #header-fixed .wishlist .icon { left: 5px; }

  .contact-widget {
    flex: 1;
    min-width: 0;
    padding: 0 7px 0 8px;
    z-index: auto;
  }

  .contact-widget__trigger {
    justify-content: center;
    width: 135px;
    max-width: 100%;
    height: 40px;
    padding: 0 4px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
  }

  .contact-widget__trigger[aria-expanded="true"] {
    border-bottom: 3px solid var(--contact-ink);
    background-color: #9c1006;
  }

  .contact-widget__trigger::before, .contact-widget__trigger::after,
  .contact-widget__panel::before { display: none; }

  body.contact-sheet-open { overflow: hidden; }

  .contact-widget__backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .55);
  }

  .contact-widget__panel {
    position: fixed;
    inset: auto 0 0;
    z-index: 101;
    width: auto;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--contact-ink);
    padding-bottom: max(34px, env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 24px rgba(36, 28, 19, .22);
  }

  .contact-widget__menu { padding: 4px 8px 8px; }
  .contact-widget__item { min-height: 56px; }

  .contact-widget__close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 0;
    color: #fff;
    background: var(--contact-ink);
    font-size: 15px;
    font-weight: 700;
  }
  .contact-widget__close::after { width: 18px; height: 18px; }
  .contact-widget__close:focus-visible { outline-offset: -4px; }
}

@media (max-width: 374px) {
  #header:has(.contact-widget) #header-fixed .lang { flex-basis: 48px; width: 48px; }
  #header:has(.contact-widget) #header-fixed .block_search,
  #header:has(.contact-widget) #header-fixed .account { flex-basis: 38px; width: 38px; }
  .contact-widget { padding-right: 3px; padding-left: 4px; }
}

@media (max-width: 350px) {
  .contact-widget__trigger {
    white-space: normal;
    line-height: 16px;
  }
}
