/* ============================================================
   Footer — Figma node 2130:6048 (1440×455, pad 30/60/40/60)
   bg #3E3E3E
   ============================================================ */
.site-footer {
  width: 100%;
  background: #3E3E3E;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

/* ── Content wrapper (max 1440, pad 30/60/40) ── */
.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 60px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
  z-index: 2;
}

/* ── Pattern (Figma 718×96, top -33, right 0 relative to 1440 inner) ── */
.site-footer__pattern {
  position: absolute;
  top: -33px;
  right: 0;
  width: 718px;
  height: 96px;
  pointer-events: none;
  z-index: 1;
}
.site-footer__pattern--png {
  background-image: url('../../img/footer-pattern.png');
  background-size: 718px 96px;
  background-repeat: no-repeat;
}

/* ── Top row (1320×252, space-between, align flex-start) ── */
.site-footer__top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

/* ── Left: Logo + description (312×252, VERTICAL, left-aligned, gap 0) ── */
.site-footer__brand {
  flex: 0 0 312px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  width: 203px;
  height: 100px;
  align-self: flex-start;
}
.site-footer__logo img {
  width: 203px;
  height: 100px;
  object-fit: contain;
  object-position: left center;
  display: block;
  filter: brightness(0) invert(1);
}

.site-footer__desc {
  align-self: stretch;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  color: var(--color-white);
  margin: 0;
  box-sizing: border-box;
}

/* ── Right side (fills remaining space) ── */
.site-footer__right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 56px;
  margin-top: 124px;
}

/* ── Menu row (872×68, HORIZONTAL gap 24, align center) ── */
.site-footer__top {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ── Nav (683×68, HORIZONTAL no gap, align center) ── */
.site-footer__nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 0;
}
.site-footer__nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .72);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  padding: 12px 20px;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-footer__nav-item:hover { color: var(--color-white); }
.site-footer__nav-item.is-active {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}
.site-footer__nav-item--multi {
  white-space: normal;
  text-align: center;
}

/* ── Nav separator ── */
.site-footer__nav-sep {
  display: block;
  width: 1px;
  height: 48px;
  background: #878787;
  margin: 10px 24px;
  flex-shrink: 0;
}

/* ── CTA button (165×48, pad 12/20, r12, #C8502A) ── */
.site-footer__cta {
  background: var(--color-orange-500);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(48, 40, 31, 0.02), 0 4px 4px rgba(22, 12, 1, 0.04);
  text-decoration: none;
  transition: background-color var(--transition-base);
}
.site-footer__cta:hover { background: var(--color-orange-400); }

/* ── Contacts (872×24, HORIZONTAL gap 24, space-between, center) ── */
.site-footer__contacts {
  align-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  padding-bottom: 24px;
}
.site-footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  text-decoration: none;
}
.site-footer__contact img {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
span.site-footer__contact {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Bottom (full-width separator via negative margins) ── */
.site-footer__bottom {
  margin-left: -60px;
  margin-right: -60px;
  padding: 24px 60px 0;
  border-top: 1px solid #878787;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}
.site-footer__copy {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
  color: #B7B7B7;
}
.site-footer__lang {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
}
.site-footer__lang-txt { display: inline-block; }
.site-footer__lang-arrow { width: 16px; height: 16px; display: block; flex-shrink: 0; }

/* Mobile-only elements — hidden by default */
.site-footer__pattern-mob { display: none; }
.site-footer__logo-icon { display: none; }
.site-footer__logo img.site-footer__logo-mob { display: none; }
.site-footer__logo-full { display: block; }

/* 1024–1279: desktop horizontal layout, just compressed */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-footer__inner { padding: 30px 32px 40px; }
  .site-footer__pattern { display: block; }
  .site-footer__right { margin-top: 80px; gap: 40px; align-items: flex-end; }
  .site-footer__nav { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 0; }
  .site-footer__nav-item--multi { width: 130px; padding: 10px; white-space: normal; text-align: center; line-height: 22px; }
  .site-footer__nav-item:not(.site-footer__nav-item--multi) { padding: 10px; }
  .site-footer__nav-sep { display: block; width: 1px; height: 48px; background: #878787; margin: 0 16px; align-self: center; flex-shrink: 0; }
  .site-footer__top { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 16px; }
  .site-footer__cta { flex-shrink: 0; align-self: center; }
  .site-footer__contacts { flex-wrap: nowrap; gap: 16px; }
}

/* 768–1023: tablet column layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-footer__inner { padding: 0 0 32px; gap: 0; }
  .site-footer__top-row { gap: 16px; flex-direction: column; padding: 16px 20px 0; }
  .site-footer__pattern { display: none; }
  .site-footer__pattern-mob {
    display: block;
    width: 100%;
    height: 96px;
    object-fit: none;
    object-position: right top;
    opacity: 0.65;
    flex-shrink: 0;
  }
  .site-footer__right { margin-top: 0; flex: none; width: 100%; align-items: flex-start; gap: 20px; }
  .site-footer__brand { flex: none; width: 100%; align-items: flex-start; gap: 12px; max-width: 440px; }
  .site-footer__logo { width: auto; height: auto; overflow: visible; justify-content: flex-start; display: inline-flex; }
  .site-footer__logo img.site-footer__logo-full {
    display: block;
    width: 280px;
    height: auto;
    object-position: left center;
    filter: brightness(0) invert(1);
  }
  .site-footer__desc {
    align-self: auto;
    text-align: left;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 15px;
    line-height: 24px;
  }
  .site-footer__top { gap: 16px; flex-direction: column; align-items: stretch; width: 100%; }
  .site-footer__nav {
    display: grid !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    grid-template-columns: 1fr 1px 1fr;
    align-items: start;
    gap: 0;
    width: 100%;
  }
  .site-footer__nav-item {
    padding: 12px 0;
    text-align: left;
    font-size: 15px;
    color: var(--color-grey-300);
    width: auto;
    display: block;
    justify-content: unset;
    box-shadow: none;
  }
  .site-footer__nav-item.is-active { color: var(--color-orange-500); }
  .site-footer__nav-item--multi { grid-column: 1; line-height: 24px; padding-right: 8px; }
  .site-footer__nav-item:not(.site-footer__nav-item--multi) { grid-column: 3; padding-left: 24px; }
  .site-footer__nav > a:nth-child(5) { grid-row: 1; }
  .site-footer__nav > a:nth-child(6) { grid-row: 2; }
  .site-footer__nav-sep {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 1px;
    height: auto;
    margin: 0;
    background: #878787;
    justify-self: center;
    align-self: stretch;
  }
  .site-footer__cta { align-self: stretch; text-align: center; justify-content: center; display: flex; }
  .site-footer__contacts { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 16px; padding-bottom: 0; }
  .site-footer__contact { font-size: 15px; }
  .site-footer__bottom {
    padding: 20px 20px 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    border-top: 1px solid var(--color-grey-800);
    margin: 0 0 40px;
  }
  .site-footer__copy { font-size: 13px; line-height: 20px; color: var(--color-grey-300); flex: 1; min-width: 0; }
  .site-footer__lang { padding: 0; align-self: flex-start; flex-shrink: 0; white-space: nowrap; }
}

/* <768: mobile */
@media (max-width: 767px) {
  .site-footer__logo { width: auto; height: auto; overflow: visible; justify-content: flex-start; display: inline-flex; }
  .site-footer__logo img.site-footer__logo-full {
    display: block;
    width: 220px;
    height: auto;
    object-position: left center;
    filter: brightness(0) invert(1);
  }
  .site-footer__brand { align-items: flex-start; }
}
