
/* ==========================================
   SBORKA — FOOTER
   ========================================== */

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

.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 36px clamp(24px, 3.5vw, 64px) 30px;
  background: #182638;
  color: #ffffff;
}

/* Main full-width container */

.site-footer__inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

/* ==========================================
   1. TOP — BRAND AND TAGLINE
   ========================================== */

.site-footer__masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 0 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.site-footer__brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 190px;
  max-height: 54px;
  object-fit: contain;
}

.site-footer__tagline {
  color: #b8c6d8;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
}

/* ==========================================
   2. MIDDLE — NAVIGATION AND CONTACTS
   ========================================== */

.site-footer__top {
  display: grid;
  grid-template-columns: 45% minmax(0, 1fr);
  gap: 0;
  width: 100%;
  padding: 48px 0 52px;
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 14px;
}

.site-footer__column h2 {
  margin: 0 0 12px;
  padding: 0;
  color: #ffffff;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}

.site-footer__column > a {
  display: inline-block;
  max-width: 100%;
  color: #b8c6d8;
  text-decoration: none;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.site-footer__column > a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Contact messenger links */

.site-footer__chats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.site-footer__column .site-footer__chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: background-color 0.2s ease,
              border-color 0.2s ease;
}

.site-footer__column .site-footer__chat:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #c2ccda;
  text-decoration: none;
}

/* Social links */

.site-footer__socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}

.site-footer__column .site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.site-footer__social:hover {
  transform: translateY(-2px);
}

.site-footer__social img {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.site-footer__social:hover img {
  opacity: 1;
}

/* ==========================================
   3. BOTTOM — COPYRIGHT AND PRIVACY
   ========================================== */

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #9fb0c5;
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 400;
  line-height: 1.6;
}

.site-footer__bottom a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Disable inherited animations */

.site-footer h2,
.site-footer span,
.site-footer img {
  opacity: 1;
  animation: none;
}

/* ==========================================
   NAVIGATION VISIBILITY
   ========================================== */

.site-nav.is-footer-visible {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.site-nav {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    visibility 0.3s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* ==========================================
   TABLET — UP TO 768px
   ========================================== */

@media (max-width: 768px) {
  .site-footer {
    padding: 32px 28px 26px;
  }

  .site-footer__masthead {
    padding-bottom: 28px;
  }

  .site-footer__top {
    padding: 36px 0 40px;
  }

  .site-footer__column {
    gap: 12px;
  }

  .site-footer__column h2 {
    font-size: 21px;
    margin-bottom: 8px;
  }

  .site-footer__column > a {
    font-size: 16px;
  }

  .site-footer__bottom {
    font-size: 14px;
  }
}

/* ==========================================
   MOBILE — UP TO 600px
   ========================================== */

@media (max-width: 600px) {
  .site-footer {
    padding: 30px 22px 24px;
  }

  .site-footer__masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 26px;
  }

  .site-footer__brand {
    font-size: 30px;
  }

  .site-footer__brand img {
    max-width: 170px;
    max-height: 48px;
  }

  .site-footer__tagline {
    font-size: 14px;
    text-align: left;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 34px 0 38px;
  }

  .site-footer__column {
    gap: 11px;
  }

  .site-footer__column h2 {
    margin-bottom: 8px;
    font-size: 21px;
  }

  .site-footer__column > a {
    font-size: 16px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 24px;
    font-size: 14px;
  }
}

/* ==========================================
   SMALL MOBILE — UP TO 360px
   ========================================== */

@media (max-width: 360px) {
  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-footer__brand {
    font-size: 27px;
  }

  .site-footer__column h2 {
    font-size: 19px;
  }

  .site-footer__column > a {
    font-size: 15px;
  }

  .site-footer__chats {
    gap: 8px;
  }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .site-footer__social,
  .site-footer__chat,
  .site-footer__column > a,
  .site-footer__bottom a {
    transition: none;
  }
}
