.container {
  width: min(100% - 120px, var(--container));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 120px, var(--container-wide));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-7);
}

.site-header {
  height: var(--header-height);
  min-height: var(--header-height);
  background: var(--color-primary);
  color: var(--color-white);
}

.site-header__inner {
  height: var(--header-height);
  min-height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: min(100% - 64px, var(--container-wide));
}

.site-header__brand {
  margin-top: 0;
}

.site-header__logo {
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-header__nav {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  gap: 22px;
  font-size: 1rem;
}

.site-header__nav a {
  position: relative;
  padding: 8px 0;
  transition: color 180ms ease, transform 180ms ease;
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  opacity: 0.72;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header__nav a:hover {
  color: rgb(255 255 255 / 86%);
  transform: translateY(-1px);
}

.site-header__nav a:hover::after {
  transform: scaleX(1);
}

.site-header__nav a:focus-visible, .site-header__menu-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.site-header__menu-toggle {
  display: none;
}

.site-footer {
  margin-top: 0;
  padding: 92px 0 28px;
  background: var(--color-primary);
  color: var(--color-white);
}

.site-footer__inner {
  position: relative;
  margin-inline: auto;
  display: grid;
  align-items: center;
  width: min(100% - 64px, var(--container-wide));
  grid-template-columns: 596px minmax(0, 1fr);
  column-gap: clamp(76px, 6vw, 96px);
}

.quote-box {
  position: relative;
  background: var(--color-background);
  color: var(--color-primary);
  box-shadow: 0 24px 50px rgb(0 0 0 / 18%);
  width: 430px;
  height: 248px;
  margin-left: 166px;
  min-height: 0;
  padding: 76px 38px 0 36px;
}

.quote-box::before {
  content: "";
  position: absolute;
  left: -166px;
  top: 36px;
  width: 176px;
  height: 168px;
  background: rgb(255 255 255 / 18%);
  border: 0;
  box-shadow: none;
  z-index: 0;
}

.quote-box::after {
  content: "";
  position: absolute;
  left: -166px;
  top: 36px;
  width: 108px;
  height: 168px;
  border: 10px solid var(--color-white);
  border-right: 0;
  pointer-events: none;
  z-index: 0;
}

.quote-box__logo {
  position: absolute;
  left: -134px;
  top: 72px;
  width: 122px;
  height: 96px;
  margin: 0;
  filter: brightness(0) invert(1);
  object-fit: contain;
  z-index: 1;
}

.quote-box p {
  position: relative;
  z-index: 1;
  width: 344px;
  max-width: none;
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  line-height: 2.05;
}

.quote-box__mark {
  position: absolute;
  right: 20px;
  bottom: -4px;
  color: rgb(12 46 73 / 20%);
  font-size: 9.077rem;
  font-weight: 700;
  line-height: 1;
}

.site-footer__contact-grid {
  display: grid;
  row-gap: 0;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(34px, 4vw, 54px);
}

.footer-contact {
  border-top: var(--line-thin) solid rgb(255 255 255 / 42%);
  padding-top: 22px;
}

.footer-contact h2 {
  margin-bottom: 30px;
  font-size: 1.231rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer-contact p, .site-footer__copyright {
  font-size: 0.923rem;
  font-weight: 700;
}

.footer-contact p {
  line-height: 2.15;
  text-transform: none;
  color: rgb(255 255 255 / 72%);
}

.footer-contact__email {
  overflow-wrap: anywhere;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--color-white);
}

.site-footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-top: 58px;
  border-top: var(--line-thin) solid rgb(255 255 255 / 24%);
  padding-top: 28px;
}

.site-footer__copyright {
  margin: 0;
  text-align: left;
  color: rgb(255 255 255 / 62%);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(255 255 255 / 32%);
  color: rgb(255 255 255 / 85%);
  background: transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-footer__social-btn:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

@media (max-width: 1100px) {
  .site-header__logo {
    width: 160px;
  }
  .site-header__inner {
    width: calc(100% - 40px);
  }
  .site-header__menu-toggle {
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgb(255 255 255 / 50%);
    background: transparent;
    color: var(--color-white);
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  }
  .site-header__menu-toggle:hover {
    border-color: var(--color-white);
    background: rgb(255 255 255 / 10%);
    transform: translateY(-1px);
  }
  .site-header__menu-toggle span:not(.site-header__menu-label) {
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }
  .site-header.is-menu-open .site-header__menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.is-menu-open .site-header__menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.is-menu-open .site-header__menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .site-header__menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .site-header__nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: var(--header-height);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 0;
    background: var(--color-primary);
    box-shadow: 0 18px 30px rgb(0 0 0 / 18%);
    font-size: 1rem;
  }
  .site-header.is-menu-open .site-header__nav {
    display: flex;
  }
  .site-header__nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding-inline: 24px;
  }
  .site-header__nav a::after {
    left: 24px;
    right: 24px;
  }
  .site-header__nav a:hover {
    background: rgb(255 255 255 / 7%);
    transform: none;
  }
  .site-footer {
    padding-top: 70px;
    padding-bottom: 20px;
  }
  .site-footer__inner {
    width: var(--container-tablet);
    display: block;
  }
  .quote-box {
    margin-left: 166px;
  }
  .site-footer__contact-grid {
    margin-top: 72px;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(28px, 5vw, 42px);
  }
  .site-footer__copyright {
    margin-top: 62px;
    width: min(100%, 728px);
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 76px;
  }
  .site-header__inner {
    width: var(--container-mobile);
  }
  .site-header__logo {
    width: 140px;
  }
  .site-header__nav {
    top: var(--header-height);
    left: 16px;
    right: 16px;
  }
  .site-footer {
    padding: 58px 0 20px;
  }
  .site-footer__inner {
    width: var(--container-mobile);
  }
  .quote-box {
    width: calc(100% - 28px);
    height: auto;
    min-height: 210px;
    margin-left: 28px;
    padding: 40px 46px 34px 28px;
  }
  .quote-box::before {
    left: -28px;
    top: 0;
    width: 28px;
    height: 128px;
    box-shadow: none;
  }
  .quote-box::after {
    left: -28px;
    top: 0;
    width: 28px;
    height: 128px;
    border-width: 7px;
  }
  .quote-box__logo {
    left: -16px;
    top: 34px;
    width: 42px;
  }
  .quote-box p {
    width: auto;
    font-size: 1.154rem;
    line-height: 1.85;
  }
  .quote-box__mark {
    right: 12px;
    bottom: 0;
    font-size: 7.077rem;
  }
  .site-footer__contact-grid {
    grid-template-columns: 1fr;
    row-gap: 34px;
    column-gap: 0;
  }
  .site-footer__bottom {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin-top: 42px;
    padding-top: 22px;
  }
  .site-footer__copyright {
    text-align: center;
  }
}
