/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: var(--spacing-5xl) 0 var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-4xl);
  margin-bottom: var(--spacing-4xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-l);
}

.footer-logo {
  font-size: var(--font-text-xl-size);
  font-weight: 600;
}

.footer-description {
  color: var(--color-dark-gray);
  max-width: 320px;
}

.footer-column h3 {
  font-size: var(--font-text-l-size);
  font-weight: 500;
  margin-bottom: var(--spacing-l);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
}

.footer-links a {
  color: var(--color-dark-gray);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-dark-gray);
  font-size: var(--font-text-s-size);
}

.footer-social {
  display: flex;
  gap: var(--spacing-m);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ==================== NEW FOOTER ==================== */
.footer-new {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 80px 0 40px;
}

.footer-main-content {
  display: flex;
  gap: 287px;
  align-items: flex-start;
  justify-content: space-between;
}

/* Левая часть: Присоединяйся к нам */
.footer-join-us {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 337px;
  flex-shrink: 0;
}

.footer-join-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-join-title {
  font-family: 'Onest', sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
  letter-spacing: -0.64px;
  margin: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-join-subtitle {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.28px;
  color: #7E7E7E;
  margin: 0;
}

.footer-join-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-btn-primary {
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 8px 16px 8px 16px;
  border-radius: 32px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.28px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 36px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-btn-primary:hover {
  opacity: 0.9;
}

.footer-btn-icon {
  width: 24px;
  height: 24px;
  background-color: var(--color-black);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  padding: 0 16px;
  border: 1px solid #7E7E7E;
  border-radius: 32px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-btn-secondary:hover {
  opacity: 0.7;
}

/* Правая часть: Ресурсы */
.footer-resources {
  display: flex;
  flex-direction: column;
  gap: 120px;
  width: 592px;
  flex-shrink: 0;
}

.footer-sections {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 176px;
  flex-shrink: 0;
}

.footer-section-title {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: -0.32px;
  color: #7E7E7E;
  margin: 0;
  height: 22px;
}

.footer-section .footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-section .footer-links a {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.28px;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s ease;
  height: 22px;
  display: block;
}

.footer-section .footer-links a:hover {
  opacity: 0.7;
}

/* Нижняя часть футера */
.footer-bottom-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: #DDDDDD;
  opacity: 0.2;
}

.footer-bottom-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-logo-lang {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 165.436px;
  flex-shrink: 0;
}

.footer-logo-container {
  width: 165.436px;
  height: 24px;
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 24px;
  width: auto;
  display: block;
}

.footer-lang-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  height: 36px;
  border: 1px solid #7E7E7E;
  border-radius: 32px;
}

.footer-lang-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-lang-text {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.28px;
  color: var(--color-white);
}

.footer-lang-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 230px;
  flex-shrink: 0;
}

.footer-copyright-text {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.24px;
  color: var(--color-white);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-legal-links a {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.24px;
  color: #7E7E7E;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
  opacity: 0.7;
}

/* ==================== RESPONSIVE: TABLET (768px - 1024px) ==================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .footer-main-content {
    flex-direction: column;
    gap: 48px;
  }

  .footer-join-us {
    width: 100%;
  }

  .footer-join-title {
    font-size: 28px;
    line-height: 36px;
  }

  .footer-resources {
    width: 100%;
    gap: 48px;
  }

  .footer-sections {
    gap: 24px;
  }

  .footer-section {
    width: auto;
    flex: 1;
  }
}

/* ==================== RESPONSIVE: MOBILE (<768px) ==================== */
@media (max-width: 768px) {
  .footer-new {
    padding: 48px 0 32px;
  }

  .footer-main-content {
    flex-direction: column;
    gap: 48px;
  }

  .footer-join-us {
    width: 100%;
  }

  .footer-resources {
    width: 100%;
    gap: 60px;
  }

  .footer-sections {
    flex-direction: column;
    gap: 32px;
  }

  .footer-section {
    width: 100%;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 32px;
  }

  .footer-logo-lang,
  .footer-copyright {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-l);
    text-align: center;
  }
}
