.shop-support {
  padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 88px);
  color: var(--shop-ink);
  font: 400 17px/1.55 TildaSans, Arial, sans-serif;
}

.shop-support h1 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.shop-support h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.shop-support p { margin: 0; }
.shop-support p + p { margin-top: .8em; }
.shop-support :is(p, li, dd) { overflow-wrap: anywhere; }
#allrecords .shop-support a,
.shop-support a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.shop-support :focus-visible { outline: 2px solid var(--shop-ink); outline-offset: 4px; }

.shop-support__intro {
  max-width: 55ch;
  margin-top: 16px !important;
  color: var(--shop-muted);
  font-size: clamp(17px, 2vw, 21px);
}

.shop-support__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px clamp(28px, 6vw, 84px);
  margin-top: clamp(24px, 4vw, 44px);
}

.shop-support__section {
  padding-block: 20px;
  border-top: 1px solid var(--shop-line);
}

.shop-support__section p { max-width: 60ch; }
.shop-support__note { color: var(--shop-muted); font-size: 14px; }
.shop-support__print-brand { display: none; }

.shop-support__aside {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 12px;
  background: var(--shop-image);
}

.shop-support__aside h2 { margin: 0; }

#allrecords .shop-support .shop-support__button,
.shop-support .shop-support__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--shop-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

#allrecords .shop-support .shop-support__button:hover,
.shop-support .shop-support__button:hover { background: #363633; }

.shop-support__faq { border-bottom: 1px solid var(--shop-line); }
.shop-support__faq details { border-top: 1px solid var(--shop-line); }
.shop-support__faq summary,
.shop-document__contents summary {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding-block: 12px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.shop-support__faq summary::-webkit-details-marker,
.shop-document__contents summary::-webkit-details-marker { display: none; }

.shop-support__faq summary::after,
.shop-document__contents summary::after {
  content: '';
  flex: 0 0 7px;
  height: 7px;
  margin-inline-end: 4px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: translateY(-2px) rotate(45deg);
}

.shop-support details[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.shop-support__faq details p { padding: 0 22px 18px 0; color: var(--shop-muted); }

.shop-support__requisites { max-width: 760px; margin: clamp(24px, 4vw, 44px) 0 0; }
.shop-support__requisites > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 4px 24px;
  padding-block: 11px;
  border-top: 1px solid var(--shop-line);
}
.shop-support__requisites dt { color: var(--shop-muted); }
.shop-support__requisites dd { margin: 0; font-variant-numeric: tabular-nums; }

.shop-document__layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 700px);
  align-items: start;
  gap: 24px clamp(28px, 5vw, 72px);
  margin-top: clamp(24px, 4vw, 44px);
}

.shop-document h1 { font-size: clamp(34px, 4.5vw, 56px); }

.shop-document__contents {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 106px);
  overflow: auto;
  padding-inline: 16px;
  border-radius: 12px;
  background: var(--shop-image);
}

.shop-document__contents nav { display: grid; padding-bottom: 10px; }
.shop-document__contents a { padding-block: 8px; font-size: 15px; line-height: 1.35; }
.shop-document__contents a:focus-visible { outline-offset: -2px; }
.shop-document__copy { min-width: 0; }
.shop-document__copy section { scroll-margin-top: 88px; }
.shop-document__copy section + section,
.shop-document__copy > p + section { margin-top: 30px; }
.shop-document__copy ul { margin: .5em 0 .8em; padding-left: 24px; }

.shop-support__standalone { margin: 0; min-height: 100vh; }
.shop-support__standalone-header {
  border-bottom: 1px solid var(--shop-line);
  color: var(--shop-ink);
  font: 400 16px/1.55 TildaSans, Arial, sans-serif;
}
.shop-support__standalone-header .shop-brand {
  display: inline-flex;
  min-height: 68px;
  color: inherit;
  text-decoration: none;
}
.shop-support__standalone-header a:focus-visible { outline: 2px solid; outline-offset: 3px; }
.shop-support__standalone .shop-support__button { margin-top: 24px; }

.shop-help-delivery .shop-nav a[href="/delivery"],
.shop-help-contacts .shop-nav a[href="/contacts"],
.shop-help-faq .shop-footer a[href="/faq"],
.shop-help-offer .shop-footer a[href="/offer"],
.shop-help-privacy .shop-footer a[href="/obrabotka"],
.shop-help-requisites .shop-footer a[href="/requisites"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .shop-support__layout, .shop-document__layout { grid-template-columns: minmax(0, 1fr); }
  .shop-document__contents { position: static; max-height: none; }
  .shop-document__copy section { scroll-margin-top: 120px; }
}

@media (max-width: 440px) {
  .shop-support__requisites > div { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .shop-help-offer:has(#section-5:target) #allrecords {
    display: block;
    min-height: 0;
  }

  .shop-help-offer:has(#section-5:target) #allrecords > :not(main),
  .shop-help-offer:has(#section-5:target) main > h1,
  .shop-help-offer:has(#section-5:target) .shop-document__contents,
  .shop-help-offer:has(#section-5:target) .shop-document__copy > :not(#section-5) {
    display: none !important;
  }

  .shop-help-offer:has(#section-5:target) main { width: 100%; padding: 0; }
  .shop-help-offer:has(#section-5:target) .shop-document__layout { display: block; margin: 0; }
  .shop-help-offer #section-5:target { margin: 0; }
  .shop-help-offer #section-5:target .shop-support__print-brand { display: block; margin: 0 0 12px; }
}
