:root {
  --footer: #2b384a;
}
/* Основные стили */
.footer {
  background: var(--footer);
  color: #f2f5fa;
}
.footer-links {
  margin: auto;
  padding: 50px 0 48px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.footer-links h3 {
  font-size: 12px;
  margin: 0 0 12px;
  font-weight: 800;
}
.footer-links a {
  display: block;
  font-size: 11px;
  color: #e2e7ed;
  margin: 0 0 11px;
  line-height: 1.2;
}
.footer-links hr {
  border: 0;
  border-top: 1px solid #627082;
  margin: 18px 0;
}
.footer-bottom {
  border-top: 1px solid #445164;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  position: relative;
}
.footer-brand .brand-copy {
  color: #fff;
}
.footer-brand .brand-copy strong {
  font-size: 14px;
}
.footer-bottom p,
.footer-bottom a,
.footer-bottom small {
  font-size: 11px;
}
.footer-bottom p {
  color: #e3e7ed;
  line-height: 1.3;
}
.footer-bottom > div > a:not(.brand) {
  text-decoration: underline;
}
.footer-phone,
.footer-address {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.footer-phone > a,
.footer-address > a {
  font-weight: 800;
  font-size: 18px;
}
.footer-phone small {
  color: #d2d7df;
}
.footer-address p {
  margin: 7px 0 0;
}
.to-top {
  border: 0;
  background: #46556a;
  color: #fff;
  border-radius: 5px;
  width: 55px;
  height: 54px;
  font-size: 18px;
}
.to-top small {
  display: block;
  font-size: 9px;
}
/* Планшеты */
@media (max-width: 1100px) and (min-width: 701px) {
  .footer-links {

    grid-template-columns: repeat(3, 1fr);
  }
}
/* Мобильные */
@media (max-width: 700px) {
  .footer-links {
    display: none;
  }
  .footer-bottom {
    padding: 36px 24px 40px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 23px;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-brand .brand-mark {
    width: 53px;
    height: 36px;
    transform: scale(1.16);
  }
  .footer-brand .brand-copy {
    text-align: left;
  }
  .footer-brand .brand-copy strong {
    font-size: 23px;
  }
  .footer-brand .brand-copy small {
    font-size: 9px;
  }
  .footer-bottom p,
  .footer-bottom a,
  .footer-bottom small {
    font-size: 14px;
  }
  .footer-bottom > div:first-child p {
    font-size: 17px;
    line-height: 1.55;
    margin: 21px 0 18px;
  }
  .footer-bottom > div:first-child > a:not(.brand) {
    font-size: 16px;
  }
  .footer-phone,
  .footer-address {
    padding-top: 15px;
    border-top: 1px solid #758092;
    width: min(100%, 300px);
    margin: 0 auto;
  }
  .footer-phone > a,
  .footer-address > a {
    font-size: 21px;
    line-height: 1.25;
  }
  .footer-phone small {
    font-size: 16px;
  }
  .footer-address > a:nth-child(3) {
    font-weight: 400;
    text-decoration: underline;
    margin-top: 8px;
  }
  .footer-address p {
    font-size: 16px;
    line-height: 1.35;
    margin-top: 6px;
  }
  .to-top {
    position: fixed;
    z-index: 8;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
  .to-top small {
    font-size: 8px;
  }
}
/* Поздние уточнения из исходного CSS */
.footer-brand .brand-name {
  filter: brightness(0) invert(1);
}

#footer-cookies{
    background: #668ba7;
    font-size: 11px;
    padding: 20px;
}

#footer-cookies .cookies-content{
    display: flex;
    align-items:center;
    gap:0 15px;
}
.page-container {
    max-width: calc(1240px + 4.8rem);
    margin: 0 auto;
    padding: 0 2.4rem;
}
@media (max-width: 700px) {
  .footer-brand .brand-mark {
    width: 55px;
    height: 36px;
  }
  .footer-brand .brand-f {
    width: 48px;
    height: 36px;
  }
  .footer-brand .brand-s {
    width: 25px;
    height: 14px;
  }
  .footer-brand .brand-name {
    width: 138px;
  }
  .footer-brand .brand-copy small {
    font-size: 9px;
  }
}
@media (min-width: 1101px) {
  .footer-links h3 {
    font-size: 15px;
  }
  .footer-links a {
    font-size: 15px;
  }
}

@media screen and (max-width: 475px){
    #footer-cookies{
        padding: 5px;
    }
    #footer-cookies .cookies-content {

        gap: 5px 0;
        flex-direction: column;
    }
    #footer-cookies .page-container{
       padding: 0;
       } 
   #footer-cookies .cookies-content .button{
        padding: 7px 5px;
        font-size: 10px;
    }
}