:is(.faq-section, .footer) {
  --closing-ink: #282124;
  --closing-paper: #fff5ed;
  --closing-muted: #d8cbd0;
  --closing-line: #51464b;
  --closing-accent: #ffd9c2;
}

#faq.faq-section {
  --faq-inset: clamp(32px, 4vw, 49px);
  --faq-trailing: clamp(12px, 3vw, 30px);

  border-top: 0;
  color: var(--closing-paper);
  background: var(--closing-ink);
}

#faq .faq-layout {
  display: block;
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 6vw, 77px);
}

#faq .faq-layout h2 {
  margin-block: 0 clamp(25px, 3.4vw, 43px);
  font-size: clamp(33px, 3.55vw, 49px);
  letter-spacing: -.04em;
  text-align: center;
  text-wrap: balance;
}

#faq details,
#faq details:last-child {
  border-color: var(--closing-line);
}

#faq summary {
  position: relative;
  display: flex;
  min-block-size: clamp(72px, 5.5vw, 78px);
  align-items: center;
  padding-block: 14px;
  padding-inline: var(--faq-inset) var(--faq-trailing);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.4;
}

#faq details[open] > summary {
  color: var(--closing-accent);
}

@media (hover: hover) {
  #faq summary:hover {
    color: var(--closing-accent);
  }
}

#faq summary::before,
#faq summary::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: clamp(3px, 1.5vw, 15px);
  inline-size: 14px;
  block-size: 2px;
  border-radius: 1px;
  background: var(--closing-accent);
  transform: translateY(-50%);
  content: "";
}

#faq summary::after {
  transform: translateY(-50%) rotate(90deg);
}

#faq details[open] summary::after {
  opacity: 0;
  transform: translateY(-50%) rotate(0);
}

#faq details p {
  max-inline-size: 72ch;
  margin-block: 0;
  margin-inline: var(--faq-inset) var(--faq-trailing);
  padding-block-end: clamp(23px, 3vw, 29px);
  color: var(--closing-muted);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  #faq summary {
    transition: color 160ms ease-out;
  }

  #faq summary::after {
    transition: opacity 180ms ease-out, transform 180ms ease-out;
  }

  @supports selector(details::details-content) and (interpolate-size: allow-keywords) {
    #faq details::details-content {
      block-size: 0;
      overflow: clip;
      interpolate-size: allow-keywords;
      transition: block-size 200ms cubic-bezier(.25, .75, .3, 1),
        content-visibility 200ms allow-discrete;
    }

    #faq details[open]::details-content {
      block-size: auto;
    }
  }
}

#faq .faq-contact {
  margin-block-start: 22px;
  color: var(--closing-muted);
  font-size: 14px;
  text-align: center;
}

#faq .faq-contact a {
  display: inline-flex;
  min-block-size: 44px;
  align-items: center;
  margin-inline-start: 4px;
  color: var(--closing-accent);
}

#faq .faq-contact a:hover {
  color: var(--closing-paper);
}

#faq :is(summary, a):focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--closing-accent);
  outline-offset: 4px;
}

.footer {
  border-block-start: 1px solid var(--closing-line);
  color: var(--closing-paper);
  background: #211b1f;
}

.footer .footer-inner {
  grid-template-columns: minmax(130px, 1fr) minmax(140px, 1.18fr) repeat(2, minmax(110px, .93fr)) minmax(155px, 1.08fr);
  align-items: start;
  gap: clamp(26px, 3.6vw, 52px) clamp(16px, 2.45vw, 38px);
  padding-block: clamp(38px, 5.8vw, 80px) 20px;
}

.footer .footer-inner :is(.footer-identity, .footer-col, .footer-stores, .footer-legal) {
  min-inline-size: 0;
  font-size: 14px;
}

.footer .footer-identity {
  display: grid;
  gap: 14px;
}

.footer .footer-identity p {
  max-inline-size: 24ch;
  margin: 0;
  color: var(--closing-muted);
  line-height: 1.47;
}

.footer .footer-brand img {
  inline-size: auto;
  block-size: clamp(34px, 4vw, 42px);
  border-radius: 0;
}

.footer .footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 14px;
}

.footer .footer-col,
.footer .footer-stores {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.footer :is(.footer-col, .footer-stores) > :is(h3, b, strong) {
  margin: 0 0 9px;
  color: var(--closing-paper);
  font: 620 16px/1.25 var(--font-display);
}

.footer .footer-stores .store-badges {
  --badge-height: clamp(39px, 6vw, 43px);

  display: flex;
  justify-content: flex-start;
  inline-size: 100%;
}

.footer .footer-col a,
.footer .footer-socials a,
.footer .footer-legal a {
  display: inline-flex;
  min-block-size: 36px;
  align-items: center;
  color: var(--closing-muted);
  line-height: 1.4;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.footer .footer-socials a {
  gap: 7px;
  text-decoration-color: var(--closing-line);
}

.footer-socials a[href^="https://t.me/"] {
  --social-mark: url("assets/editorial/social-telegram.svg");
}

.footer-socials a[href^="https://vk.com/"] {
  --social-mark: url("assets/editorial/social-vk.svg");
}

.footer-socials a[href^="https://ok.ru/"] {
  --social-mark: url("assets/editorial/social-odnoklassniki.svg");
}

@supports (mask-image: url("")) {
  .footer-socials a::before {
    content: "";
    inline-size: 16px;
    block-size: 16px;
    flex: 0 0 16px;
    background: currentColor;
    mask: var(--social-mark, linear-gradient(transparent, transparent)) center / contain no-repeat;
  }
}

.footer :is(.footer-col, .footer-socials, .footer-legal) a:hover {
  color: var(--closing-paper);
  text-decoration-color: currentColor;
}

.footer .footer-legal {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3px 22px;
  padding-block-start: 16px;
  border-block-start: 1px solid var(--closing-line);
  color: var(--closing-muted);
  line-height: 1.4;
}

.footer .footer-legal > :is(div, nav) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
}

.footer .footer-legal :is(p, span) {
  margin: 0;
}

@media (max-width: 930px) {
  .footer .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 27px 21px;
  }

  .footer .footer-identity,
  .footer .footer-stores {
    grid-column: 1 / -1;
  }

  .footer .footer-stores .store-badges {
    --badge-height: clamp(37px, 7.4vw, 53px);

    gap: 6px clamp(10px, 6vw, 46px);
  }

  .footer .footer-col a,
  .footer .footer-socials a,
  .footer .footer-legal a {
    min-block-size: 44px;
  }
}

@media (max-width: 560px) {
  #faq .faq-layout {
    padding-block: 55px 62px;
  }

  .footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer .footer-col:has(+ .footer-stores) {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 21px;
  }

  .footer .footer-col:has(+ .footer-stores) h3 {
    grid-column: 1 / -1;
  }
}

