:root {
  --color-ink: #0e1608;
  --color-pine: #152111;
  --color-moss: #3b4126;
  --color-paper: #f7f7f5;
  --color-panel: #d9d9d9;
  --color-white: #ffffff;
  --shadow-panel: 7px 10px 4px 2px #d1d1d1;
  --container: 1810px;
  --header-height: 72px;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-display: "Instrument Sans", "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-moss);
  font-family: var(--font-body);
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.section-space {
  padding-block: 54px;
}

.section-line {
  display: block;
  width: 150px;
  height: 2px;
  margin: 16px auto 22px;
  background: var(--color-moss);
}

.section-line--left {
  margin-left: 68px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: #17220f;
  box-shadow: 0 12px 22px rgba(18, 27, 14, 0.22);
  transform: translateY(-2px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 112px 1fr 180px;
  align-items: center;
  gap: 20px;
  padding: 0 54px;
  color: var(--color-white);
  background:
    linear-gradient(90deg, rgba(19, 27, 15, 0.98), rgba(67, 82, 56, 0.96)),
    var(--color-pine);
  box-shadow: 0 8px 22px rgba(9, 14, 7, 0.24);
}

.site-header__brand {
  width: 82px;
}

.site-header__brand img {
  width: 100%;
  height: 42px;
  object-fit: contain;
}

.site-header__nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(28px, 6vw, 112px);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header__nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.94);
}

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

.site-header__nav a:hover::after,
.site-header__nav a:focus-visible::after,
.site-header__nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn--header {
  width: 180px;
  min-height: 42px;
  justify-self: end;
  padding-inline: 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.site-header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  cursor: pointer;
}

.site-header__toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.site-footer {
  min-height: 420px;
  padding: 70px 6% 68px;
  border-top-right-radius: 92px;
  background: var(--color-panel);
}

.site-footer__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: start;
  gap: 48px;
}

.site-footer h2 {
  margin: 0 0 42px;
  color: var(--color-moss);
  font-size: 35px;
  font-weight: 500;
  line-height: 50.8px;
}

.site-footer__list {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 0;
  color: var(--color-moss);
  font-size: 20px;
  line-height: 29px;
  list-style: none;
}

.site-footer__list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.site-footer__list span,
.site-footer__list a {
  display: block;
  color: var(--color-moss);
}

.site-footer__list a {
  overflow-wrap: anywhere;
}

.site-footer__icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-footer__logo {
  display: block;
  width: min(100%, 330px);
  height: auto;
  justify-self: end;
  margin-top: 42px;
  object-fit: contain;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 96px 1fr 152px;
    padding-inline: 34px;
  }

  .btn--header {
    width: 152px;
    min-height: 40px;
    font-size: 0.75rem;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 64px;
  }

  .container {
    width: min(100% - 40px, var(--container));
  }

  .site-header {
    grid-template-columns: auto auto;
    min-height: var(--header-height);
    padding: 10px 20px;
  }

  .site-header__brand {
    width: 74px;
  }

  .site-header__brand img {
    height: 38px;
  }

  .site-header__toggle {
    display: block;
    justify-self: end;
  }

  .site-header__nav,
  .btn--header {
    display: none;
  }

  .site-header.is-open .site-header__nav {
    grid-column: 1 / -1;
    display: grid;
    justify-self: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .site-header.is-open .site-header__nav a {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .section-space {
    padding-block: 36px;
  }

  .site-footer {
    min-height: 0;
    padding: 64px 24px;
    border-top-right-radius: 52px;
  }

  .site-footer__content {
    grid-template-columns: 1fr;
  }

  .site-footer__list {
    font-size: 1rem;
  }

  .site-footer__logo {
    margin-top: 14px;
  }
}
