/* ==================== ОСНОВНЫЕ СТИЛИ ФУТЕРА ==================== */
footer {
  background: var(--Heading, #24272C);
  color: #cbd5e1;
  width: 100%;
  height: 136px; /*428px;*/
  margin-top: 100px;
  display: flex;
  justify-content: center;
}

.footer-logo a {
  color: white;
}


.footer-container {
  max-width: 1290px;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0 20px;
}

.footer-top-line {
  position: absolute;
  top: 40px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: rgba(256, 256, 256, 0.06);
}

.footer-content {
  position: absolute;
  top: 0;
  left: 0px;
  right: 0px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.footer-top {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  display: flex;
  gap: 60px;
}

.footer-column {
  flex: 1;
}

.footer-column-title {
  color: var(--White, #FFF);
  font-family: Onest;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 20px;
}

.footer-links-grid {
  display: flex;
  gap: 40px;
  opacity: 0.5;
}

.footer-links-left {
  flex: 1;
}

.footer-links-right {
  flex: 1;
}

.footer-link {
  color: var(--White, #FFF);
  font-family: Onest;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  text-decoration: none;
  line-height: 2.2;
  display: block;
}

.footer-link:hover {
  color: #fbbf24;
}

.footer-documents {
  list-style: none;
  padding: 0;
  opacity: 0.5;
  color: #FFF;
}

.footer-documents li {
  margin-bottom: 12px;
}

.footer-documents a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-documents a:hover {
  color: #fbbf24;
}

.footer-links-left a:hover {
  color: #fbbf24;
}
.footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-btn {
  display: flex;
  height: 50px;
  width: 100%;
  padding: 0 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-radius: 14px;
  background: var(--Main-color, #FC0);
  border: none;
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
}

.footer-btn img {
  width: 20px;
  height: 20px;
}

.footer-btn:hover {
  background: #f59e0b;
  transform: scale(1.02);
}

.footer-bottom-line {
  position: absolute;
  bottom: 132px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(256, 256, 256, 0.06);
}

.footer-bottom {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  color: #FFF;
  font-family: Onest;
  font-size: 23.111px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
  align-items: center;
  display: flex;
  gap: 10px;
}

.footer-copyright {
  color: var(--White, #FFF);
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-call-btn {
  display: flex;
  width: 173px;
  height: 50px;
  padding: 0 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: var(--Main-color, #FC0);
  border: none;
  color: var(--Heading, #24272C);
  font-family: Onest;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
}

.footer-call-btn:hover {
  background: #f59e0b;
  transform: scale(1.02);
}

.footer-social-icon {
  display: flex;
  width: 48px;
  height: 48px;
  justify-content: space-between;
  align-items: center;
  aspect-ratio: 1/1;
  border-radius: 50px;
  cursor: pointer;
}

.footer-social-icon:hover {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.footer-social-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* ==================== АДАПТИВНЫЕ СТИЛИ ФУТЕРА ==================== */

/* Для экранов 1400px - уменьшаем отступы */
@media (max-width: 1400px) {
  .footer-container {
    max-width: 1100px;
  }
  
  .footer-top {
    gap: 40px;
  }
}

/* Для экранов 1280px - корректируем расположение */
@media (max-width: 1280px) {
  footer {
    height: auto;
    min-height: auto;
    padding-bottom: 20px;
  }
  
  .footer-container {
    max-width: 1060px;
    height: auto;
    min-height: auto;
  }
  
  .footer-content {
    position: relative;
    height: auto;
    padding: 40px 0 20px;
  }
  
  .footer-top-line {
    position: relative;
    top: 0;
    margin-bottom: 40px;
  }
  
  .footer-top {
    position: relative;
    top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
  }
  
  .footer-column {
    flex: 1;
    min-width: 200px;
  }
  
  .footer-bottom-line {
    position: relative;
    bottom: 0;
    margin: 40px 0 30px;
  }
  
  .footer-bottom {
    position: relative;
    bottom: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 0;
  }
  
  .footer-bottom-left {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-bottom-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .footer-logo {
    font-size: 20px;
  }
  
  .footer-copyright {
    font-size: 12px;
  }
  
  .footer-call-btn {
    width: 150px;
    height: 45px;
    font-size: 14px;
  }
  
  .footer-social-icon {
    width: 40px;
    height: 40px;
  }
}

/* Для экранов 1024px - переходим на колонку */
@media (max-width: 1024px) {
  .footer-container {
    max-width: 95%;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
  }
  
  .footer-column {
    width: 100%;
  }
  
  /* Меняем порядок в footer-bottom - иконки и кнопка сверху, лого и копирайт снизу */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  /* Иконки и кнопка "Позвонить" идут первыми */
  .footer-bottom-right {
    order: 1;
    justify-content: flex-start;
    margin-bottom: 20px;
  }
  
  /* Логотип и копирайт идут после */
  .footer-bottom-left {
    order: 2;
  }
  
  .footer-buttons {
    margin-bottom: 20px;
  }
}

/* Для экранов до 768px - мобильные устройства */
@media (max-width: 768px) {
  footer {
    margin-top: 60px;
    height: auto;
    padding: 0 15px 30px;
    display: flex;
    justify-content: center;
  }
  
  .footer-container {
    max-width: 100%;
    width: 100%;
    height: auto;
    background: var(--Heading, #24272C);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    box-sizing: border-box;
  }
  
  .footer-content {
    position: relative;
    height: auto;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    left: 0px;
    right: 0px;
  }
  
  .footer-top-line {
    display: none;
  }
  
  /* Верхняя часть - колонки */
  .footer-top {
    position: relative;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
  }
  
  .footer-column {
    width: 100%;
    text-align: left;
  }
  
  .footer-column-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--White, #FFF);
  }
  
  /* Популярные авто - две колонки */
  .footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    width: 100%;
  }
  
  .footer-link {
    text-align: left;
    font-size: 16px;
    display: block;
    line-height: 140%;
    color: var(--White, #FFF);
    text-decoration: none;
  }
  
  .footer-link:hover {
    color: #fbbf24;
  }
  
  /* Пользователи */
  .footer-documents {
    text-align: left;
    padding: 0;
    list-style: none;
    margin: 0;
  }
  
  .footer-documents li {
    margin-bottom: 8px;
  }
  
  .footer-documents a {
    color: #e1dbcb;
    text-decoration: none;
    font-size: 16px;
  }
  
  .footer-documents a:hover {
    color: #fbbf24;
  }
  
  /* Кнопки */
  .footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
  }
  
  .phone-footer {
  order: 2;
      width: 100%;

  }
  
  .footer-btn {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    font-size: 14px;
    display: flex;
/*     justify-content: space-between; */
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background: var(--Main-color, #FC0);
    border: none;
    color: var(--Heading, #24272C);
    font-family: Onest;
    font-weight: 500;
    cursor: pointer;
    box-sizing: border-box;
  }
  
  .footer-btn:hover {
    background: #f59e0b;
    transform: scale(1.02);
  }
  
  /* Разделительная черта */
  .footer-bottom-line {
    margin: 30px 0 25px;
    height: 1px;
    background: rgba(256, 256, 256, 0.06);
    width: 100%;
    position: relative;
  }
  
  /* Иконки соцсетей */
  .footer-bottom-right {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    order: 1;
  }
  
  .footer-social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .footer-social-icon:hover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
  }
  
  .footer-social-icon img {
    width: 48px;
    height: 48px;
  }
  
  /* Кнопка "Позвонить" */
  .footer-call-btn {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    font-size: 14px;
    margin: 0 0 30px 0;
    display: flex;
/*     justify-content: space-between; */
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background: var(--Main-color, #FC0);
    border: none;
    color: var(--Heading, #24272C);
    font-family: Onest;
    font-weight: 500;
    cursor: pointer;
    box-sizing: border-box;
    order: 2;
  }
  
  .footer-call-btn:hover {
    background: #f59e0b;
    transform: scale(1.02);
  }
  
  /* Логотип и копирайт */
  .footer-bottom {
    position: relative;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 0;
  }
  
  .footer-bottom-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    order: 3;
  }
  
  .footer-logo {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFF;
  }
  
  .footer-logo img {
    width: 45px;
    height: 38px;
  }
  
  .footer-copyright {
    font-size: 12px;
    text-align: left;
    color: var(--White, #FFF);
  }
}