/*
 * Equine8 site styles shared by every page: the software pages (/) and the
 * EQ8 shop (/eq8). Tokens, fonts, and the header and footer generated by
 * tools/site/chrome.js (behaviour in /assets/site.js).
 */

:root {
  --e8-green: #1E5B37;
  --e8-green-deep: #174A2C;
  --e8-ink: #34322D;
  --e8-muted: #4A4842;
  --e8-cream: #F2EFE7;
  --e8-gold: #C9A85E;
  --e8-gold-light: #E4D3A8;
  --e8-divider: #DCD6C9;
  --e8-tint: #F9FAF9;
  --e8-font: 'Poppins', system-ui, sans-serif;
  --e8-font-ar: 'IBM Plex Sans Arabic', 'Poppins', system-ui, sans-serif;
  --e8-max: 1280px;
  --e8-gutter: clamp(16px, 4vw, 48px);
  --e8-head-h: 72px;
  --e8-r-sm: 8px;
  --e8-r-md: 16px;
  --e8-r-lg: 24px;
}

/* Fonts, self-hosted for every page: Poppins, and IBM Plex Sans Arabic for Arabic
   (SIL Open Font Licence, see /assets/fonts/LICENSE-*.txt). */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* Anchors land below the sticky header */
html {
  scroll-padding-top: calc(var(--e8-head-h) + 16px);
}

html.site-lock {
  overflow: hidden;
}

.site-head *,
.site-foot * {
  box-sizing: border-box;
}

/* ---------- Shared bits ---------- */
.site-sr {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 8px;
  z-index: 1000;
}

.site-skip:focus {
  inset-inline-start: 16px;
  padding: 8px 12px;
  border-radius: var(--e8-r-sm);
  background: #FFFFFF;
  color: var(--e8-green);
}

/* One button style for the chrome: rounded, sentence case */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--e8-green);
  border-radius: var(--e8-r-sm);
  background: var(--e8-green);
  color: var(--e8-cream);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}

.site-btn:hover {
  border-color: var(--e8-green-deep);
  background: var(--e8-green-deep);
  color: var(--e8-cream);
  text-decoration: none;
}

.site-btn--ghost {
  border-color: rgba(242, 239, 231, 0.6);
  background: transparent;
}

.site-head :focus-visible,
.site-foot :focus-visible {
  outline: 2px solid var(--e8-green);
  outline-offset: 3px;
}

.site-foot__panel :focus-visible,
.site-menu__feature--software:focus-visible {
  outline-color: var(--e8-gold-light);
}

/* ---------- Language switch ---------- */
.site-lang {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--e8-divider);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.site-lang__current,
.site-lang__other {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.site-lang__current {
  background: var(--e8-green);
  color: var(--e8-cream);
  font-weight: 600;
}

.site-lang__other {
  color: var(--e8-ink);
  text-decoration: none;
}

.site-lang__other:hover {
  background: var(--e8-cream);
  color: var(--e8-green);
}

.site-lang :lang(ar) {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 15px;
}

.site-lang :lang(en) {
  font-family: var(--e8-font);
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--e8-divider);
  font-family: var(--e8-font);
  color: var(--e8-ink);
}

.site-head:lang(ar),
.site-foot:lang(ar) {
  font-family: var(--e8-font-ar);
}

/* Same 1280 px content box on every page, so the logo never moves */
.site-head .site-head__bar {
  box-sizing: content-box;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--e8-max);
  height: 72px;
  margin: 0 auto;
  padding: 0 var(--e8-gutter);
}

.site-head__logo {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 44px;
  margin-inline-end: 28px;
}

.site-head__logo img {
  display: block;
  width: auto;
  height: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--e8-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: background-color .15s ease, color .15s ease;
}

.site-head:lang(ar) .site-nav__item {
  font-size: 16px;
}

summary.site-nav__item::-webkit-details-marker {
  display: none;
}

summary.site-nav__item::marker {
  content: '';
}

.site-nav__item:hover,
.site-nav__menu[open] > .site-nav__item {
  background: var(--e8-cream);
  color: var(--e8-green);
}

.site-nav__item[aria-current] {
  background: var(--e8-cream);
  color: var(--e8-green);
  font-weight: 600;
}

.site-nav__chev {
  transition: transform .15s ease;
}

.site-nav__menu[open] .site-nav__chev {
  transform: rotate(180deg);
}

.site-head .site-lang {
  margin-inline-start: auto;
}

.site-head__cta {
  margin-inline-start: 8px;
}

.site-head__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--e8-ink);
  cursor: pointer;
}

.site-head__toggle:hover {
  background: var(--e8-cream);
}

.site-head__toggle-close,
.site-head__toggle[aria-expanded="true"] .site-head__toggle-open {
  display: none;
}

.site-head__toggle[aria-expanded="true"] .site-head__toggle-close {
  display: inline;
}

/* Page behind an open menu */
.site-head::after {
  content: '';
  position: fixed;
  inset: 73px 0 0;
  z-index: -1;
  background: rgba(52, 50, 45, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease;
}

.site-head:has(.site-nav__menu[open])::after {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- Menus ---------- */
.site-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline: 0;
  display: grid;
  gap: 32px 48px;
  width: min(calc(var(--e8-max) + 96px), calc(100% - 32px));
  max-height: calc(100vh - 100px);
  margin-inline: auto;
  padding: 32px 48px 36px;
  overflow-y: auto;
  border: 1px solid var(--e8-divider);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 24px 48px rgba(52, 50, 45, 0.16);
  font-size: 15px;
  line-height: 1.45;
}

.site-menu--software {
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
}

.site-menu--shop {
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.25fr);
  gap: 32px;
}

.site-menu__title {
  margin: 0 0 12px;
  color: var(--e8-green);
  font-size: 14px;
  font-weight: 600;
}

.site-menu__modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.site-menu__module {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--e8-tint);
  color: var(--e8-muted);
  text-decoration: none;
}

.site-menu__module:hover {
  background: var(--e8-cream);
  color: var(--e8-muted);
}

.site-menu__name {
  align-self: flex-start;
  color: var(--e8-green);
  font-family: var(--e8-font);
  font-size: 18px;
  font-weight: 600;
}

.site-menu__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 20px;
}

.site-menu__link {
  color: var(--e8-green);
  font-weight: 500;
}

.site-menu__feature--software {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: var(--e8-r-md);
  background: var(--e8-green);
  color: var(--e8-cream);
  text-decoration: none;
  transition: background-color .15s ease;
}

.site-menu__feature--software:hover {
  background: var(--e8-green-deep);
  color: var(--e8-cream);
}

.site-menu__feature--software img {
  flex-shrink: 0;
  width: auto;
  height: 220px;
}

.site-menu__feature-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.site-menu__eyebrow {
  color: var(--e8-gold-light);
  font-size: 14px;
  font-weight: 600;
}

.site-menu__feature-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.site-menu__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0 24px;
}

.site-menu__product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  color: var(--e8-ink);
  text-decoration: none;
}

.site-menu__product:hover {
  color: var(--e8-ink);
}

.site-menu__product:hover .site-menu__product-name {
  color: var(--e8-green);
  text-decoration: underline;
}

.site-menu__thumb {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 80px;
  border-radius: 12px;
  background: var(--e8-cream);
}

.site-menu__thumb img {
  width: auto;
  height: auto;
  max-width: 52px;
  max-height: 68px;
}

.site-menu__product-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.site-menu__brand {
  align-self: flex-start;
  color: var(--e8-green);
  font-family: var(--e8-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-menu__product-name {
  font-weight: 600;
  line-height: 1.35;
}

.site-menu__size {
  color: var(--e8-muted);
  font-size: 13px;
}

.site-menu__range {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--e8-tint);
  color: var(--e8-green);
  font-weight: 600;
  text-decoration: none;
}

.site-menu__range:hover {
  background: var(--e8-cream);
  color: var(--e8-green);
}

.site-menu__list {
  display: flex;
  flex-direction: column;
}

.site-menu__list a {
  padding: 5px 0;
  color: var(--e8-ink);
  font-size: 14px;
  text-decoration: none;
}

.site-menu__list a:hover {
  color: var(--e8-green);
  text-decoration: underline;
}

.site-menu__feature--shop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--e8-r-md);
  background: var(--e8-cream);
}

.site-menu__eq8 {
  width: auto;
  height: 30px;
}

.site-menu__range-img {
  width: 100%;
  height: auto;
}

.site-menu__feature--shop .site-menu__feature-title {
  color: var(--e8-ink);
  font-size: 19px;
  line-height: 1.4;
}

@media (max-width: 1200px) {
  .site-menu--shop {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .site-menu__feature--shop {
    display: none;
  }

  .site-menu--software {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  }

  .site-menu__feature--software img {
    display: none;
  }
}

/* ---------- Phones and tablets: one bar, the menu behind a button ---------- */
@media (max-width: 1100px) {
  :root {
    --e8-head-h: 60px;
  }

  .site-head .site-head__bar {
    gap: 8px;
    height: 60px;
    padding-inline-end: max(8px, calc(var(--e8-gutter) - 8px));
  }

  .site-head__logo {
    margin-inline-end: auto;
  }

  .site-head__logo img {
    height: 24px;
  }

  .site-head__cta,
  .site-head::after {
    display: none;
  }

  .site-js .site-head__toggle {
    display: inline-flex;
  }

  /* Without JavaScript the menu sits in the page under the logo */
  html:not(.site-js) .site-head .site-head__bar {
    flex-wrap: wrap;
    height: auto;
    padding-block: 8px;
  }

  html:not(.site-js) .site-nav {
    order: 5;
    flex-wrap: wrap;
    width: 100%;
  }

  .site-js .site-nav {
    display: none;
  }

  .site-js .site-head[data-drawer-open] .site-nav {
    position: fixed;
    inset: 61px 0 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 40px;
    overflow-y: auto;
    background: #FFFFFF;
  }

  .site-js .site-nav .site-nav__item {
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid var(--e8-divider);
    border-radius: 0;
    background: none;
    font-size: 18px;
    font-weight: 600;
  }

  .site-js .site-nav .site-nav__item[aria-current],
  .site-js .site-nav__menu[open] > .site-nav__item {
    color: var(--e8-green);
  }

  .site-menu {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 12px 20px 24px;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--e8-divider);
    border-radius: 0;
    box-shadow: none;
  }

  .site-menu__modules,
  .site-menu__products {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-menu__module {
    padding: 8px 0;
    background: none;
  }

  .site-menu__feature--software {
    display: none;
  }

  .site-menu__feature--shop {
    display: flex;
    padding: 0;
    background: none;
  }

  .site-menu__feature--shop > :not(.site-btn) {
    display: none;
  }

  .site-menu .site-btn {
    width: 100%;
    min-height: 52px;
  }

  .site-menu__actions {
    flex-direction: column-reverse;
    align-items: stretch;
    margin-top: 12px;
  }
}

@media (max-width: 420px) {
  .site-head .site-lang {
    padding: 0;
    border: 0;
  }

  .site-head .site-lang__current {
    display: none;
  }

  .site-head .site-lang__other {
    padding: 0 10px;
  }
}

/* ---------- Footer ---------- */
.site-foot {
  padding: clamp(32px, 5vw, 56px) clamp(12px, 2.2vw, 32px) clamp(12px, 2.2vw, 32px);
  background: #FFFFFF;
  color: var(--e8-ink);
  font-family: var(--e8-font);
  font-size: 14px;
  line-height: 1.45;
  text-align: start;
}

.site-foot__doors,
.site-foot__panel {
  max-width: calc(var(--e8-max) + 96px);
  margin: 0 auto;
}

.site-foot__doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.site-foot__door {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 32px clamp(24px, 3.4vw, 48px);
  border-radius: var(--e8-r-lg);
  background: var(--e8-cream);
}

.site-foot__door-title {
  display: flex;
  align-items: center;
  min-height: 30px;
  margin: 0;
  color: var(--e8-green);
  font-size: 17px;
  font-weight: 600;
}

.site-foot__door-title img {
  display: block;
  width: auto;
  height: 30px;
}

.site-foot__door p {
  max-width: 520px;
  margin: 0;
  color: var(--e8-muted);
  font-size: 16px;
  line-height: 1.5;
}

.site-foot__panel {
  overflow: hidden;
  border-radius: var(--e8-r-lg);
  background: var(--e8-green);
  color: var(--e8-cream);
}

.site-foot__main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px 56px;
  padding: 48px clamp(24px, 3.4vw, 48px) 40px;
}

.site-foot__brand img {
  display: block;
  width: auto;
  height: 32px;
}

.site-foot__brand p {
  margin: 16px 0 0;
  color: var(--e8-gold-light);
}

.site-foot__dir {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.35fr 1.2fr 1fr;
  gap: 32px;
}

.site-foot__dir > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.site-foot__dir h2 {
  margin: 0 0 6px;
  color: var(--e8-gold-light);
  font-size: 15px;
  font-weight: 600;
}

.site-foot__dir a {
  color: var(--e8-cream);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-foot__dir a:hover,
.site-foot__legal a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.site-foot__dir a[aria-current] {
  color: #FFFFFF;
  font-weight: 600;
}

.site-foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  min-height: 68px;
  padding: 14px clamp(24px, 3.4vw, 48px);
  background: var(--e8-green-deep);
  font-size: 13px;
}

.site-foot__bar p {
  margin: 0;
}

.site-foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-foot__legal a {
  color: var(--e8-cream);
}

.site-lang--foot {
  margin-inline-start: auto;
  border-color: rgba(242, 239, 231, 0.35);
}

.site-lang--foot .site-lang__current,
.site-lang--foot .site-lang__other {
  min-height: 34px;
}

.site-lang--foot .site-lang__current {
  background: var(--e8-cream);
  color: var(--e8-green);
}

.site-lang--foot .site-lang__other {
  color: var(--e8-cream);
}

.site-lang--foot .site-lang__other:hover {
  background: rgba(242, 239, 231, 0.14);
  color: #FFFFFF;
}

@media (max-width: 1100px) {
  .site-foot__dir {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-foot__doors,
  .site-foot__main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .site-foot__dir {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-lang--foot {
    margin-inline-start: 0;
  }
}

@media (max-width: 380px) {
  .site-foot__dir {
    grid-template-columns: minmax(0, 1fr);
  }
}
