/* ==================== 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;
  position: relative;
  overflow: clip;
}

/* Свечение слева снизу */
.footer-glow {
  position: absolute;
  left: -10%;
  bottom: -100%;
  /* transform: translateX(-50%); */
  width: 538px;
  height: 538px;
  border-radius: 538px;
  background: #FFF;
  opacity: 0.1;
  filter: blur(200px);
  pointer-events: none;
  z-index: 0;
}

.footer-glow img {
  width: 100%;
  height: auto;
  opacity: 0.8;
}

/* Логотип (4 круга) - 45% за экраном */
.footer-logo-circles {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translateY(320px);
  width: 400px;
  pointer-events: none;
  z-index: 1;
  /* opacity: 0.2; */
}

.footer-logo-circles img {
  width: 100%;
  height: auto;
}

.footer-new .container {
  position: relative;
  z-index: 2;
}

.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;
  position: relative;
}

.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;
  color: transparent; /* Firefox fix */
}

.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 удалены - используются унифицированные .btn классы из common.css */

/* Правая часть: Ресурсы */
.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;
  position: relative;
  cursor: pointer;
  overflow: visible;
}

.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 - 1279px) ==================== */
@media (min-width: 768px) and (max-width: 1279px) {
  .footer-logo-circles {
    display: none;
  }

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

  /* Верхняя строка: текст + кнопки */
  .footer-join-us {
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }

  .footer-join-text {
    flex: 1;
  }

  .footer-join-title {
    font-size: 32px;
    line-height: 40px;
  }

  .footer-join-buttons {
    flex-shrink: 0;
  }

  /* Ресурсы на всю ширину */
  .footer-resources {
    width: 100%;
    max-width: 100%;
    gap: 80px;
  }

  /* Секции в ряд */
  .footer-sections {
    width: 100%;
    gap: 32px;
    flex-direction: row;
  }

  .footer-section {
    width: 176px;
    flex-shrink: 0;
  }

	.footer-bottom-wrapper {
		margin-bottom: 24px;
	}
}

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

  .footer-logo-circles {
		display: none;
    /* left: 16px; */
    /* width: 180px; */
  }

  .footer-glow {
    left: -50%;
    bottom: -40%;
  }

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

  .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;
  }
}
