/* Shared dark storefront shell. This file is loaded only on customer pages. */
html.reference-shell-active {
  --reference-bg: #121016;
  --reference-head: #17151d;
  --reference-card: #1c1a23;
  --reference-line: #2a2733;
  --reference-field: #25222e;
  --reference-text: #f3f1f7;
  --reference-subtle: #b0a9c0;
  --reference-faint: #8e87a1;
  --reference-accent: #7c3aed;
  --site-header-height: 114px;
  color-scheme: dark;
  background-color: var(--reference-bg);
}

body.reference-shell {
  background-color: var(--reference-bg);
  color: var(--reference-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.reference-shell .site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--reference-line);
  background: var(--reference-head);
  color: var(--reference-text);
  box-shadow: none;
  font-size: 16px;
  line-height: normal;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.reference-shell .site-header .header-inner {
  display: grid !important;
  width: min(1188px, calc(100% - 48px));
  min-height: 0;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 64px 49px;
  align-items: center;
  column-gap: 14px;
  row-gap: 0;
  margin-inline: auto;
  padding: 0;
}

body.reference-shell .site-header .brand {
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  width: max-content;
  min-width: 160.3px;
  margin: 0;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  background-clip: text;
  color: transparent;
  font-size: 19px;
  font-weight: 900;
  line-height: normal;
  letter-spacing: -.02em;
}

body.reference-shell .site-header .brand span {
  color: inherit;
}

body.reference-shell .site-header .brand-mark {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  margin-right: 8px;
}

body.reference-shell .site-header .header-actions {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}

body.reference-shell .site-header .desktop-search {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--reference-field);
  color: var(--reference-subtle);
}

body.reference-shell .site-header .desktop-search:focus-within {
  border-color: #594078;
  background: #211c2a;
}

body.reference-shell .site-header .desktop-search-icon {
  width: 16.25px;
  height: 13px;
  flex: 0 0 16.25px;
  color: #fff9;
}
body.reference-shell .site-header .header-action svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: currentColor;
}

body.reference-shell .site-header .desktop-search input {
  min-width: 0;
  height: auto;
  padding: 0;
  color: var(--reference-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: inherit;
}

body.reference-shell .site-header .desktop-search input::placeholder {
  color: #aaa6b0;
  opacity: 1;
}

body.reference-shell .site-header .header-actions .header-action {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--reference-field);
  color: var(--reference-text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
}

body.reference-shell .site-header .header-actions [data-cart-link] { width: 104.125px; margin-left: 6px; }
body.reference-shell .site-header .header-actions .header-account-action { width: 87px; }

body.reference-shell .site-header .header-actions .header-action:hover {
  transform: none;
  border-color: #44394f;
  background: #30283a;
  color: #fff;
}

body.reference-shell .site-header .header-actions .header-account-action {
  border-color: transparent;
  background: var(--reference-accent);
  color: #fff;
}

body.reference-shell .site-header .header-actions .header-account-action:hover {
  border-color: transparent;
  background: #6d28d9;
  color: #fff;
}

body.reference-shell .site-header .header-actions [data-header-search] {
  display: none;
}

body.reference-shell .site-header .cart-count {
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border: 2px solid var(--reference-head);
  background: #ec4899;
  color: #fff;
  font-size: 10px;
}

body.reference-shell .site-header .desktop-nav {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  align-items: stretch;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 0;
  height: 49px;
  margin: 0;
  border-top: 1px solid var(--reference-line);
}

body.reference-shell .site-header .desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 48px;
  padding: 0 14px;
  color: var(--reference-subtle);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

body.reference-shell .site-header .desktop-nav a:hover {
  color: var(--reference-text);
}

body.reference-shell .site-header .desktop-nav a[aria-current="page"] {
  color: var(--reference-text);
  font-weight: 700;
}

body.reference-shell .site-header .desktop-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #ec4899;
  content: "";
}

body.reference-shell .site-header .desktop-nav .nav-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

body.reference-shell .site-header .nav-icon-home { color: #a78bfa; }
body.reference-shell .site-header .nav-icon-reviews { color: #facc15; }
body.reference-shell .site-header .nav-icon-support { color: #34d399; }
body.reference-shell .site-header .nav-icon-avito { color: #f472b6; }
body.reference-shell .site-header .nav-icon-telegram { color: #38bdf8; }
body.reference-shell .site-header .nav-icon-blog { color: #f472b6; }

body.reference-shell .site-header .mobile-menu {
  display: none;
}

body.reference-shell .reference-menu-trigger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--reference-field);
  color: var(--reference-text);
  font-size: 17px;
  line-height: 1;
}

body.reference-shell .reference-menu-trigger:hover {
  background: #30283a;
}

body.reference-shell .site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--reference-line);
  background: var(--reference-head);
  color: var(--reference-subtle);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: normal;
}

body.reference-shell .reference-footer-top,
body.reference-shell .reference-footer-catalog,
body.reference-shell .site-footer .footer-inner {
  width: min(1000px, calc(100% - 40px));
  margin-inline: auto;
}

body.reference-shell .reference-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

body.reference-shell .reference-footer-nav,
body.reference-shell .reference-footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

body.reference-shell .reference-footer-nav a {
  color: #ffffffc7;
  font-size: 12.5px;
  font-weight: 700;
}
body.reference-shell .reference-footer-nav a:hover,
body.reference-shell .reference-footer-catalog a:hover { color: #c4b5fd; }

body.reference-shell .reference-footer-social { flex: none; gap: 10px; }
body.reference-shell .reference-footer-social a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  background: #ffffff0d;
  color: #c4b5fd;
}
body.reference-shell .reference-footer-social a:hover { background: #30283a; color: #fff; }
body.reference-shell .reference-footer-social svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
body.reference-shell .reference-footer-social .nav-icon-telegram { fill: currentColor; stroke: none; }
body.reference-shell .reference-footer-catalog {
  padding: 12px 20px 18px;
  border-bottom: 1px solid #ffffff0f;
  color: #ffffffa6;
}
body.reference-shell .reference-footer-catalog strong {
  display: block;
  margin-bottom: 6px;
  color: #ffffff80;
  text-transform: uppercase;
}
body.reference-shell .reference-footer-catalog div { display: flex; flex-wrap: wrap; gap: 4px 20px; }
body.reference-shell .reference-footer-catalog a { font-size: 13px; }
body.reference-shell .site-footer .footer-inner {
  display: block;
  padding: 13px 0 32px;
  color: #ffffff8c;
}
body.reference-shell .site-footer .footer-inner > div:not(:first-child) { display: none; }
body.reference-shell .site-footer .footer-inner .brand { color: inherit; font-size: 12.5px; letter-spacing: 0; }
body.reference-shell .site-footer .footer-inner .brand span { color: inherit; }
body.reference-shell .site-footer .footer-inner p { max-width: none; margin: 4px 0 0; color: inherit; font-size: 12.5px; }
body.reference-shell .site-footer .footer-inner small { display: inline-block; margin-top: 5px; color: inherit; }

body.reference-shell .reference-catalog-dialog {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(420px, 90vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  border-right: 1px solid var(--reference-line);
  background: var(--reference-head);
  color: var(--reference-text);
  box-shadow: 20px 0 55px rgba(0,0,0,.35);
}

body.reference-shell .reference-catalog-dialog::backdrop {
  background: rgba(4,3,8,.68);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

body.reference-shell .reference-drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--reference-line);
  background: var(--reference-head);
}

body.reference-shell .reference-drawer-head h2 {
  margin: 0;
  color: var(--reference-text);
  font-family: inherit;
  font-size: 17px;
  letter-spacing: -.02em;
}

body.reference-shell .reference-drawer-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--reference-line);
  border-radius: 10px;
  background: var(--reference-field);
  color: var(--reference-text);
  font-size: 22px;
  line-height: 1;
}

body.reference-shell .reference-drawer-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 16px 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--reference-field);
  color: var(--reference-subtle);
  font-size: 14px;
}
body.reference-shell .reference-drawer-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

body.reference-shell .reference-drawer-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--reference-line);
}

body.reference-shell .reference-drawer-shortcuts a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--reference-line);
  border-radius: 10px;
  background: var(--reference-field);
  color: var(--reference-text);
  font-size: 13px;
  font-weight: 700;
}

body.reference-shell .reference-drawer-shortcuts a:hover {
  border-color: #594078;
  background: #30283a;
}

body.reference-shell .reference-drawer-shortcuts svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.reference-shell .reference-drawer-label {
  margin: 0;
  padding: 17px 16px 9px;
  color: var(--reference-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body.reference-shell .reference-drawer-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 0 12px 20px;
}

body.reference-shell .reference-drawer-service {
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--reference-subtle);
  font-size: 12px;
  font-weight: 650;
}

body.reference-shell .reference-drawer-service:hover {
  border-color: var(--reference-line);
  background: var(--reference-field);
  color: var(--reference-text);
}

body.reference-shell .reference-drawer-service img {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  border-radius: 9px;
  background: #fff;
}

body.reference-shell .reference-drawer-service span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 920px) {
  html.reference-shell-active { --site-header-height: 104px; }
  body.reference-shell .site-header { font-size: 14px; line-height: 1.5; }
  body.reference-shell .site-footer { font-size: 13px; line-height: 1.5; }

  body.reference-shell .site-header .header-inner {
    width: calc(100% - 24px);
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-rows: 56px 47px;
    column-gap: 10px;
  }

  body.reference-shell .reference-menu-trigger {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
  }

  body.reference-shell .site-header .brand {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    height: 40px;
    font-size: 18px;
    line-height: 1.5;
  }

  body.reference-shell .site-header .brand-mark {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    margin-right: 8px;
  }

  body.reference-shell .site-header .header-actions {
    grid-column: 3;
    grid-row: 1;
    gap: 4px;
    width: auto;
  }

  body.reference-shell .site-header :is(.desktop-nav, .desktop-search) {
    display: none;
  }

  body.reference-shell .site-header .header-actions [data-header-search],
  body.reference-shell .site-header .header-actions .header-action {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
  }

  body.reference-shell .site-header .header-actions [data-header-search] {
    display: none;
  }

  body.reference-shell .site-header .header-actions [data-cart-link] { height: 42px; margin-left: 0; }
  body.reference-shell .site-header .header-actions .header-account-action { width: 38px; min-width: 38px; }
  body.reference-shell .site-header .header-action svg { width: 16px; height: 16px; flex-basis: 16px; }

  body.reference-shell .site-header .header-action-label {
    display: none;
  }

  body.reference-shell .site-header .mobile-menu {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: stretch;
    gap: 0;
    width: calc(100% + 24px);
    min-width: 0;
    height: 47px;
    margin: 0 -12px;
    padding: 0 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid var(--reference-line);
    background: transparent;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.reference-shell .site-header .mobile-menu::-webkit-scrollbar {
    display: none;
  }

  body.reference-shell .site-header .mobile-menu a {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    height: 46px;
    min-height: 46px;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--reference-subtle);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  body.reference-shell .site-header .mobile-menu a::before {
    display: none;
  }

  body.reference-shell .site-header .mobile-menu a[aria-current="page"] {
    border: 0;
    background: transparent;
    color: var(--reference-text);
    font-weight: 700;
  }

  body.reference-shell .site-header .mobile-menu a[aria-current="page"]::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: #ec4899;
    content: "";
  }

  body.reference-shell .site-header .reference-nav-icon {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

}

@media (max-width: 600px) {
  body.reference-shell .reference-footer-top {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 0 16px;
  }

  body.reference-shell .reference-footer-nav {
    justify-content: center;
    gap: 4px 14px;
  }

  body.reference-shell .reference-footer-nav a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 6px;
    font-size: 13px;
  }

  body.reference-shell .reference-footer-social {
    justify-content: center;
  }

  body.reference-shell .reference-footer-social a {
    width: 40px;
    height: 40px;
  }

  body.reference-shell .site-footer .footer-inner {
    width: calc(100% - 32px);
    padding: 21px 0 24px;
  }

}

@media (max-width: 360px) {
  body.reference-shell .site-header .brand {
    font-size: 15px;
  }

  body.reference-shell .site-header .header-actions {
    gap: 3px;
  }

  body.reference-shell .site-header .header-actions [data-header-search],
  body.reference-shell .site-header .header-actions .header-action {
    width: 36px;
    min-width: 36px;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.reference-shell .reference-menu-trigger,
  body.reference-shell .site-header .desktop-nav a,
  body.reference-shell .site-header .header-action {
    transition: none;
  }
}


body.reference-shell .reference-nav-badge {
  margin-left: 7px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #31204c;
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
}
@media (max-width: 600px) {
  body.reference-shell .reference-footer-top,
  body.reference-shell .reference-footer-catalog { width: calc(100% - 32px); }
  body.reference-shell .reference-footer-catalog { padding: 18px 20px 4px; }
  body.reference-shell .reference-footer-catalog div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
}
