/* Контейнер */
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1062px;
  margin: 0 auto;
  padding: 110px 20px 40px;
}

/* Стили футера */
.site-footer {
  background-color: #fff;
}

/* Верхняя часть футера (Flexbox) */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

/* Стили колонок */
.footer-info-col,
.footer-nav-col,
.footer-cta-col {
  flex: 1;
  min-width: 250px;
}

.footer-info-col,
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Специальные стили текста */
.footer-text,
.footer-link {
  color: #87b2a3;
  font-size: 15px;
  font-weight: 400;
}

.footer-link {
  color: #87b2a3;
}

/* Навигационное меню */

.footer-menu a {
  font-size: 14px;
  font-weight: 400;
}

/* Ховер-эффект для ссылок */
.footer-link:hover {
  color: #84b1a7;
}

/* Колонка CTA */
.footer-cta-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Кнопка */
.footer-btn {
  display: inline-block;
  margin-bottom: 26px;
  padding: 16px 48px;
  border-radius: 12px;
  background-color: #87b2a3;
  /* Основной цвет кнопки */
  color: #fefefe;
  /* Скругленные углы */
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.3s ease;
}


.footer-btn:hover {
  background-color: #7a9c98;
  /* Темнее при наведении */
}

/* Соцсети */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  /* Выравнивание по правому краю */
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #84b1a7;
  /* Основной цвет иконок */
  color: #fff;
  /* Круглая форма */
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: #7a9c98;
  /* Темнее при наведении */
}

/* Иконки VK и Telegram - SVG */
.social-icon svg {
  display: block;
}

/* Нижняя часть футера */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-copyright {
  margin-bottom: 16px;
  color: #87b2a3;
  font-size: 16px;
  font-weight: 400;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-legal-links a {
  color: #87b2a3;
  font-size: 16px;
  font-weight: 400;
}

/* === Адаптивность для мобильных устройств (Media Queries) === */
@media (max-width: 768px) {
  .footer-container {
    gap: 20px;
    padding: 80px 20px 28px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .footer-info-col,
  .footer-nav-col,
  .footer-cta-col {
    min-width: 100%;
  }

  .footer-info-col {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  .footer-text,
  .footer-link {
    font-size: 14px;
  }

  .footer-cta-col {
    align-items: center;
    /* Центрируем кнопку и соцсети на мобильном */
  }

  .footer-btn {
    margin-bottom: 12px;
    padding: 8px 48px;
    font-size: 14px;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-copyright,
  .footer-legal-links a {
    font-size: 12px;
  }

  .footer-legal-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
}

/* ========================== */

/* ==========================================
   ПЛАШКА «ТЕСТ-ДРАЙВ» (ФИКСИРОВАННАЯ)
   ========================================== */
.td-badge {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
padding: 7px 14px;
height: auto;
min-height: 0;
  border-radius: 12px;
  background-color: #87b2a3; /* Твой зеленый акцент */
  color: var(--color-yellow);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.td-badge:hover {
  background-color: #6d9688;
  transform: translateY(-3px);
}

.td-badge__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-yellow);
  overflow: hidden;
}

.td-badge__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.td-badge__text {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

/* ==========================================
  ПОПАП «ТЕСТ-ДРАЙВ»
   ========================================== */
.td-popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
  display: block !important;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Задний фон-вуаль */
.td-popup__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 42, 41, 0.4);
  backdrop-filter: blur(2px);
}

/* Тело попапа (со второго скриншота) */
.td-popup__body {
  position: absolute;
  right: 30px;
  bottom: 90px; /* Позиционируем прямо над плашкой */
  z-index: 2;
  box-sizing: border-box;
  width: 360px;
  max-width: calc(100vw - 40px);
  padding: 30px 20px;
  border-radius: 14px;
  background-color: var(--color-yellow); /* Фирменный светлый фон */
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Состояние при открытии */
.td-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.td-popup.is-open .td-popup__body {
  transform: translateY(0);
}

/* Кнопка закрытия */
.td-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  color: #2b2a29;
  font-size: 24px;
  opacity: 0.5;
  transition: opacity 0.2s;
  cursor: pointer;
}

.td-popup__close:hover {
  opacity: 1;
}

/* Контент попапа */
.td-popup__title {
  margin: 0 0 35px 0;
  color: #2b2a29;
  font-size: 32px;
  font-weight: 700;
  line-height: 120%;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.td-popup__subtitle {
  margin-bottom: 20px;
  color: #87b2a3;
  font-size: 24px;
  font-weight: 700;
  line-height: 120%;
  text-align: center;
  text-transform: uppercase;
}

.td-popup__text {
  margin: 0 0 35px 0;
  color: #2b2a29;
  font-size: 18px;
  font-weight: 400;
  line-height: 130%;
  text-align: justify;
  letter-spacing: 0.16em;
}

/* Кнопки соцсетей */
.td-popup__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.td-popup__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  color: #fefefe;
  font-size: 18px;
  font-weight: 700;
  transition:
    background-color 0.2s,
    transform 0.1s;
  text-decoration: none;
}

.td-popup__btn:active {
  transform: scale(0.98);
}

.td-popup__btn-vk {
  background-color: #87b2a3;
  color: var(--color-yellow);
}

.td-popup__btn-vk:hover {
  background-color: #719c8e;
}

.td-popup__btn-tg {
  background-color: #87b2a3;
  color: var(--color-yellow);
}

.td-popup__btn-tg:hover {
  background-color: #719c8e;
}

/* Стили для мобильных */
@media (max-width: 768px) {
  .td-badge {
    right: 20px;
    bottom: 90px;
    padding: 6px 10px;
  }

  .td-badge__avatar {
    width: 28px;
    height: 28px;
  }

  .td-badge__text {
    font-size: 14px;
  }

  .td-popup__body {
    width: 320px;
padding-top:55px;
  }

  .td-popup__body {
    right: 20px;
    bottom: 80px;
  }

  .td-popup__title {
    margin: 0 0 18px 0;
    font-size: 22px;
  }

  .td-popup__subtitle {
    margin-bottom: 10px;
    font-size: 20px;
  }

  .td-popup__text {
    margin: 0 0 18px 0;
    font-size: 12px;
  }

  /* Кнопки соцсетей */
  .td-popup__buttons {
    gap: 5px;
  }

  .td-popup__btn {
    font-size: 14px;
  }
}
