/* ========================================
   FOOTER — ОСНОВНАЯ СТРУКТУРА
======================================== */

.site-footer {
  width: 100%;
  padding: 5rem 3.5rem;
}

.site-footer .container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 40rem;
}

/* Левая информационная часть + правая часть с меню */

.footer-columns {
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.footer-columns .footer-info {
  flex: 1;
}

.footer-columns-center {
  flex: 2;
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.footer-menu-column {
  min-width: 0;
  flex: 1;
}

.footer-menu {
  width: 100%;
  height: 100%;
}

@media (max-width: 1200px) {
  .site-footer {
    padding: 2.5rem 2rem;
  }
  .footer-info {
    order: -2;
    gap: 1.5rem;
  }
  .footer-contacts {
    flex-direction: row;
  }
  .footer-menu-column {
    order: -1;
  }
  .footer-columns {
    flex-direction: column;
    position: relative;
    padding-bottom: 100px;
  }

  .footer-columns-center,
  .footer-info {
    padding-bottom: 2rem;
    border-bottom: solid 2px #dbdbdb;
  }
}

/* Сбрасываем стандартные отступы списков */

.footer-menu-list,
.footer-menu-list ul {
  list-style: none;

  margin: 0;
  padding: 0;
}

/* Пункты меню */

.footer-menu-list li {
  margin: 0;
  padding: 0;
}

/* Заголовки верхнего уровня */

.footer-menu-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 3rem;
}

.footer-menu-list > li > a {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 19.2px;
  line-height: 24px;
}

.footer-menu-list > li > a,
.footer-copyright .footer-copyright__links a,
.footer-menu-list .sub-menu a,
.footer-contacts a {
  color: #000000;
  transition: color 0.2s ease;
}

.footer-menu-list > li > a:hover,
.footer-copyright .footer-copyright__links a:hover,
.footer-menu-list .sub-menu a:hover,
.footer-contacts a:hover {
  color: #fa5305;
}

/* Вложенные пункты */

.footer-menu-list .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-menu-list .sub-menu a {
  display: inline-block;

  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
}

/* Ссылки при наведении */

.footer-menu-list a {
  transition: color 0.2s ease;
}

/* ========================================
   ЛЕВАЯ ИНФОРМАЦИОННАЯ КОЛОНКА
======================================== */

.footer-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-logo img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

.footer-logo p {
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;

  color: #000000;
}

.footer-copyright,
.footer-contacts,
.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-copyright .footer-copyright__links a,
.footer-copyright p {
  display: block;

  font-weight: 400;
  font-size: 13px;
  line-height: 17px;

  color: #000000;
}

.footer-contacts {
  font-weight: 500;
  font-size: 19.2px;
  line-height: 24px;
}

.footer-menu-information .footer-menu-list {
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
}

.footer-menu-information .footer-menu-list > li > a {
  margin: 0;
}

.footer-made-by {
  text-align: right;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
}

.footer-made-by > a {
  font-size: 80%;
  height: 3rem;
  background: #000;
  border-radius: 30px;
  color: #fff;
  position: relative;
  padding: 0 4rem 0 1.5rem;
  width: 80%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-made-by > a span {
  white-space: wrap;
  text-align: center;
}

.footer-made-by em {
  color: yellow;
  font-style: normal;
}

.footer-made-by > a:after {
  content: "";
  position: absolute;
  background-image: url(https://fairp.ru/wp-content/uploads/d7b374_a456eef0931a4d80bca3c8bb3322e8c6mv2-4.gif);
  background-repeat: no-repeat;
  width: 2rem;
  height: 2rem;
  right: 1rem;
  background-size: 2rem 2rem;
}

@media (max-width: 1200px) {
  .footer-contacts {
    flex-direction: row;
  }

  .footer-menu-information .footer-menu-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
    padding: 20px 0;
    gap: 1rem;
  }

  .footer-menu-information .footer-menu-list a:nth-child(odd) {
    grid-column: 1;
  }

  .footer-menu-information .footer-menu-list a:nth-child(even) {
    grid-column: 2;
  }

  .footer-copyright,
  .footer-media {
    position: absolute;
    bottom: 0;
  }
  .footer-media {
    right: 0;
  }
}

/* ========================================
   АДАПТИВНОСТЬ
======================================== */

/* Планшеты */

@media (max-width: 1100px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .footer-navigation {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Небольшие планшеты */

@media (max-width: 768px) {
  .footer-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }
}

.footer-media {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #000000;
  transition: color 0.2s ease;
}
.footer-social-icon:hover {
  color: #fa5305;
}
.footer-social-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  max-width: 100%;
  flex-shrink: 0;
}

.footer-social-icon svg [fill="currentColor"] {
  fill: currentColor;
}

.footer-social-icon svg [stroke="currentColor"] {
  stroke: currentColor;
}

.breadcrumbs-section .container {
  padding: 1rem 0;
}
@media (max-width: 1024px) {
  .breadcrumbs-section .container {
    padding: 2rem;
  }
}
