/* ===== Футер (footer.php) ===== */

:root {
  --ft-bg: #3d3d3d;
  --ft-text: #ededed;
  --ft-muted: #c6c6c6;
  --ft-orange: #f58220;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
.hero-info {
  flex-shrink: 0;
  width: 100%;
}

.page-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.page-home .container {
  width: 100%;
}
.sfoot {
  flex-shrink: 0;
  width: 100%;
  position: relative;
}
.wrapper {
  flex: 1 0 auto;
}

.sfoot,
.sfoot * {
  box-sizing: border-box;
  margin: 0;
}

/* фон — на всю ширину окна */
.sfoot {
  max-width: 100%;
  margin: 0 auto;
  background: var(--ft-bg);
  color: var(--ft-text);
}

/* контент — 1440 по центру */
.sfoot__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 0 72px;
  position: relative;
}

/* ---- верхний ряд ---- */
.sfoot__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.sfoot__logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.sfoot__logo img {
  display: block;
  width: 215px;
  height: auto;
}

/* ---- колонка правовых ссылок ---- */
.sfoot__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 0 1 auto;
  max-width: 430px;
  padding-top: 4px;
  margin-top: 14px;
}

.sfoot__links a {
  font-size: 14px;
  line-height: 1.35;
  color: var(--ft-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.sfoot__links a:hover {
  color: var(--ft-orange);
}

.sfoot__contacts {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding-top: 6px;
}

/* ---- соцсети ---- */
.sfoot__soc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}

.sfoot__soc-link {
  display: block;
  line-height: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.sfoot__soc-link:hover {
  opacity: 1;
}

.sfoot__soc-link img {
  display: block;
  width: 22px;
  height: 22px;
}

/* ---- телефон и почта ---- */
.sfoot__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.sfoot__phone {
  font-size: 22px;
  line-height: 1.1;
  color: var(--ft-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.sfoot__phone:hover {
  color: var(--ft-orange);
}

.sfoot__mail {
  font-size: 20px;
  color: var(--ft-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.sfoot__mail:hover {
  color: var(--ft-orange);
}

/* ---- копирайт ---- */
.sfoot__legal {
  margin-top: 46px;
}

.sfoot__legal p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ft-muted);
}

.sfoot__legal p:last-child {
  margin-bottom: 0;
}
.logo-adress {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.adress {
  margin-top: 20px;
  max-width: 240px;
}
.adress p {
  font-size: 14px;
  color: #c6c6c6;
}
.link-wings {
  width: 240px;
  height: 40px;
  position: absolute;
  bottom: 20px;
  right: 0;
}
.logo-wings {
  background-image: url(../img/page.svg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 240px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  font-weight: 400;
  padding-left: 30px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.logo-wings:hover {
  color: #3d3d3d;
}

/* ---- адаптив ----
   1920 → фон на всю ширину, контент 1440 по центру
   1440 → контенту добавляются отступы 40px
    960 → колонки в столбик
    680 → отступы 20px
    480 → отступы 10px                       */

@media (max-width: 1440px) {
  .sfoot__inner {
    padding: 60px 40px 72px;
  }
}

@media (max-width: 960px) {
  .sfoot__inner {
    padding: 48px 40px 56px;
  }
  .sfoot__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .sfoot__links {
    max-width: none;
    padding-top: 0;
  }
  .sfoot__contacts {
    padding-top: 0;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
  }
  .sfoot__phones {
    align-items: flex-start;
  }
  .sfoot__legal {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 680px) {
  .sfoot__inner {
    padding: 40px 20px 48px;
  }
  .sfoot__contacts {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .sfoot__logo img {
    width: 180px;
  }
  .sfoot__links {
    gap: 8px;
  }
  .sfoot__links a {
    font-size: 13px;
  }
  .sfoot__phone {
    font-size: 20px;
  }
  .sfoot__legal {
    margin-top: 30px;
  }
  .sfoot__legal p {
    font-size: 13px;
  }
  .link-wings {
    bottom: 10px;
    right: 0;
  }
}

@media (max-width: 480px) {
  .sfoot__inner {
    padding: 32px 10px 40px;
  }
  .sfoot__logo img {
    width: 160px;
  }
  .sfoot__links a {
    font-size: 12px;
  }
  .sfoot__phone {
    font-size: 19px;
  }
  .sfoot__legal p {
    font-size: 12px;
    line-height: 1.55;
  }
  .sfoot__top {
    gap: 10px;
  }
  .sfoot__legal {
    margin-top: 10px;
    margin-bottom: 20px;
  }
}
