.l-container {
  max-width: var(--width-content-outer);
  margin-inline: auto;
  padding: 31px var(--width-content-padding) 40px;
  background: var(--color-bg);
}

@media (max-width: 767px) {
  .l-container {

    padding-inline: 20px;
  }
}

.l-container-wide {
  max-width: var(--width-content-outer);
  margin-inline: auto;
  background: var(--color-bg);
}

.c-header {

  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);

  --header-font-progress: clamp(0, calc((1192px - 100vw) / (1192px - 910px)), 1);
}

.c-header__inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: var(--width-header);

  height: calc(var(--header-height) - 1px);
  margin-inline: auto;
  padding-inline: 18px;
}

.c-header__brand {

  flex-shrink: 0;
  padding-top: 10px;
}

.c-header__eyebrow {
  margin-bottom: 9px;
  font-size: calc(11px - var(--header-font-progress) * 1px);
  line-height: 1.2;
  color: var(--color-text-sub);
  white-space: nowrap;
}

.c-header__logo img {

  width: calc(307px - var(--header-font-progress) * 97px);
  height: auto;
}

.c-header__utility {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.c-header__top {
  display: flex;

  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;

  gap: clamp(4px, calc((100vw - 1172px) / 5), 8px);
  min-height: 36px;
}

.c-header__tel {
  display: inline-flex;
  align-items: center;

  gap: calc(6px - var(--header-font-progress) * 3px);

  font-size: calc(22px - var(--header-font-progress) * 12px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-brand);
  white-space: nowrap;

  & svg {

    width: calc(22px - var(--header-font-progress) * 8px);
    height: calc(22px - var(--header-font-progress) * 8px);
  }
}

.c-header__hours {
  font-size: calc(11px - var(--header-font-progress) * 1px);
  line-height: 1.2;
  color: var(--color-text-sub);
}

.c-header__search-label {
  font-size: calc(12px - var(--header-font-progress) * 2px);
  line-height: 1.2;
  color: var(--color-brand);
  white-space: nowrap;
}

.c-header__search {

  width: 160px;
  height: 30px;
}

.c-header__login {
  padding: calc(8px - var(--header-font-progress) * 2px) calc(14px - var(--header-font-progress) * 4px);
  font-size: calc(12px - var(--header-font-progress) * 2px);
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  background: var(--color-brand);
  border-radius: 15px;
}

.c-header__portal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: calc(12px - var(--header-font-progress) * 2px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-brand);
  white-space: nowrap;
}

.c-header__portal-icon {
  width: 14px;
  height: 15px;
}

.c-header__menu-btn {
  display: none;
}

.c-gnav {
  min-height: 59px;

  padding: 18px 0 0;
}

.c-gnav__list {
  display: flex;

  flex-wrap: nowrap;
  justify-content: flex-end;

  gap: clamp(10px, calc((100vw - 1082px) / 7), 45px);

  & > li {
    display: block;
    line-height: 0;
  }
}

.c-gnav__link {
  display: inline-block;
  vertical-align: top;

  padding-bottom: 22px;

  font-size: calc(15px - var(--header-font-progress) * 4px);
  line-height: 1.2;

  color: var(--color-text-sub);
  white-space: nowrap;
  border-bottom: 1px solid transparent;

  &:hover {
    color: var(--color-brand);
  }

  &.is-current,
  &[aria-current="page"] {
    color: var(--color-brand);
    border-color: var(--color-brand);
  }
}

.c-menu-toggle {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 34px;
}

.c-menu-toggle__icon {
  position: relative;
  display: block;
}

.c-menu-toggle__label {
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
}

.c-menu-toggle__icon--menu {
  width: 30px;
  height: 4px;

  margin: 8.5px 0;
  background: var(--color-brand);
  border-radius: 2px;

  &::before,
  &::after {
    content: '';
    position: absolute;
    left: 0;
    width: 30px;
    height: 4px;
    background: var(--color-brand);
    border-radius: 2px;
  }

  &::before {
    top: -8.5px;
  }

  &::after {
    top: 8.5px;
  }
}

.c-menu-toggle__label--menu {
  color: var(--color-brand);
}

.c-menu-toggle__icon--close {
  width: 30px;
  height: 21px;

  &::before,
  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
  }

  &::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  &::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

.c-menu-toggle__label--close {
  color: #fff;
}

@media (max-width: 917px) {
  .c-header__inner {
    align-items: center;
    height: auto;

    min-height: 0;
    min-width: 0;

    padding: 9px 10px 7px;
  }

  .c-header__brand {
    padding-top: 0;
  }

  .c-header__eyebrow {

    margin-left: 3px;

    margin-bottom: 5px;
    font-size: 8px;
  }

  .c-header__logo img {

    width: 236px;
  }

  .c-header__utility {
    display: none;
  }

  .c-header__menu-btn {
    display: flex;
  }
}

.c-mobile-nav {
  &[hidden] {
    display: none;
  }
}

.c-mobile-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .7);
}

.c-mobile-nav__panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2001;
  max-height: 100%;
  overflow-y: auto;
  background: var(--color-brand);
}

.c-mobile-nav__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-brand);
}

.c-mobile-nav__search {
  flex: 1;
  min-width: 0;
}

.c-mobile-nav__close {
  display: flex;
}

.c-mobile-nav__list {
  & li {
    border-bottom: 1px solid rgba(255, 255, 255, .5);
  }

  & li:first-child {
    border-top: 1px solid rgba(255, 255, 255, .5);
  }

  & a {
    position: relative;
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
    color: #fff;

    &::after {
      content: '';
      position: absolute;
      right: 20px;
      top: 50%;
      width: 0;
      height: 0;
      border-top: 5px solid transparent;
      border-bottom: 5px solid transparent;
      border-left: 7px solid #fff;
      transform: translateY(-50%);
    }
  }
}

.c-mobile-nav__login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 63px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;

  background: var(--color-brand);
}

.c-mobile-nav__contact {
  padding: 16px 12px 24px;
  text-align: center;
  background: var(--color-bg);
}

.c-mobile-nav__tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-brand);

  & svg {
    width: 16px;
    height: 16px;
  }
}

.c-mobile-nav__hours {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-sub);
}

.c-side-nav {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
}

.c-side-nav__item {
  display: block;
  line-height: 0;
}

.c-side-nav__item img {
  display: block;
  width: 50px;
  height: auto;
}

@media (max-width: 767px) {
  .c-side-nav__item img {
    width: 30px;
  }
}

.c-footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 33px 24px 20px;
  color: #fff;
  background: linear-gradient(90deg, #209cff, #68e0cf);
}

.c-footer__tel {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
}

.c-footer__tel-icon {
  width: 25px;
  height: 36px;
}

.c-footer__tel-number {
  font-size: 24px;
  font-weight: 700;
}

.c-footer__hours {
  margin: 0;
  padding: 14px;
  font-size: 14px;
  text-align: center;
  border: 1px solid #fff;
  border-radius: 10px;
}

.c-footer__links {
  padding: 40px 24px 20px;
  background: var(--color-brand);

  & ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  & li {
    padding-inline: 16px;
    border-left: 1px solid rgba(255, 255, 255, .5);
  }

  & li:first-child {
    border-left: none;
  }

  & a {
    font-size: 16px;
    color: #fff;
  }
}

.c-footer__copyright {
  margin: 20px 0 0;
  font-size: 12px;
  color: #fff;
  text-align: center;
}

.c-back-to-top {
  position: fixed;
  right: 137px;
  bottom: 50px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease-out;

  & img {
    width: 100%;
    height: 100%;
  }

  &.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 767px) {
  .c-footer__cta {
    gap: 15px;
    padding: 30px;

    background: linear-gradient(180deg, #209cff, #68e0cf);
  }

  .c-footer__tel-icon {
    width: 23px;
    height: 33px;
  }

  .c-footer__tel-number {
    font-size: 21px;
  }

  .c-footer__hours {
    padding: 15px;
  }

  .c-footer__links {
    padding: 50px 12px 12px;

    & li {

      padding-inline: 15px;
      margin-bottom: 38px;
      border-left: none;
      border-right: 1px solid #fff;
    }

    & li:last-child {
      border-right: none;
    }

    & a {
      font-size: 14px;
    }
  }

  .c-back-to-top {
    right: 10px;
    bottom: 20px;
    width: 38px;
    height: 38px;
  }
}
