.fq-hero .page-hero__img { object-position: 50% 62%; }
.fq-hero .page-hero__sub { text-wrap: pretty; }

.fq-layout { align-items: start; }
.fq-side { position: sticky; top: 96px; }

.fq-nav__label { margin: 0 0 12px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.fq-nav__list { list-style: none; border-top: 1px solid var(--line); }
.fq-nav__list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0 11px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--base);
  transition: color .15s;
}
.fq-nav__name { font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.fq-nav__count { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.fq-nav__list a:hover { color: var(--accent-dark); }
.fq-nav__list a:hover .fq-nav__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.fq-call { margin-top: 44px; padding: 26px 24px 24px; background: var(--paper); border-radius: 2px; }
.fq-call__title { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; color: var(--base); }
.fq-call__text { margin: 0 0 16px; font-size: 16px; line-height: 1.5; color: var(--text); }
.fq-call__phone { font-size: 26px; font-weight: 600; color: var(--base); }
.fq-call__phone .ico { width: 22px; height: 22px; }
.fq-call__sms { margin: 12px 0 0; }
.fq-call__sms a { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.fq-call__sms a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.fq-call__sms .ico { width: 18px; height: 18px; color: var(--base); }
.fq-call__hours { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }

.fq-group + .fq-group { margin-top: 80px; }
.fq-group__head { margin-bottom: 22px; }
.fq-group__head .sh__bar { margin-bottom: 18px; }
.fq-group__head .sh__title { font-size: 42px; line-height: .95; }

.fq-next { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.fq-next--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; }
.fq-next--1 { grid-template-columns: minmax(0, 420px); }
.fq-next__item { padding-top: 18px; border-top: 1px solid var(--line); }
.fq-next__link {
  display: inline; color: var(--base); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase;
}
.fq-next__link .ico { display: inline-block; width: 18px; height: 18px; vertical-align: -1px; color: var(--accent-dark); }
.fq-next__link:hover .fq-next__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.fq-next__note { margin: 8px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 36ch; text-wrap: pretty; }

@media (max-width: 1023px) {
  .fq-side { display: contents; }
  .fq-nav, .fq-groups, .fq-call { grid-column: 1 / -1; min-width: 0; }
  .fq-nav { order: 1; }
  .fq-groups { order: 2; }
  .fq-call { order: 3; margin-top: 0; max-width: 560px; }
  .fq-nav__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .fq-next { grid-template-columns: 1fr; gap: 0; }
  .fq-next__item { padding: 18px 0 20px; }
}

@media (max-width: 767px) {
  .fq-nav__name { font-size: 19px; }
  .fq-nav__list a { padding: 11px 0 10px; }
  .fq-group + .fq-group { margin-top: 56px; }
  .fq-group__head { margin-bottom: 16px; }
  .fq-group__head .sh__title { font-size: 32px; }
  .fq-call { padding: 22px 18px 20px; }
  .fq-call__title { font-size: 24px; }
  .fq-next__link { font-size: 23px; }
}
