.site-footer {
  background: #101b31;
  color: #b7c5dd;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, .85fr)) minmax(250px, 1.15fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: var(--section-gap) var(--section-inset);
}

.footer-brand > a {
  display: block;
  width: min(100%, 178px);
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-brand p {
  max-width: 22ch;
  margin: 14px 0 0;
  color: #9eafcc;
}

.footer-group h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.footer-group ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-group li > a,
.footer-group li > button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  text-align: left;
}

.footer-group button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
}

.site-footer a:hover,
.footer-group li > button:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 8px;
}

.footer-cities button {
  min-height: 32px;
  font-size: 13px;
}

.footer-cities button:hover {
  color: #fff;
}

.footer-cities button[aria-current="true"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #8eb6ff;
}

.footer-contacts address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font-style: normal;
}

.footer-phone {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin-top: 12px;
}

.footer-actions button {
  min-height: 32px;
  font-size: 13px;
}

.footer-actions button:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-notice {
  margin: 0;
  padding-block: 18px;
  border-top: 1px solid #34425c;
  color: #b7c5dd;
  font-size: 12px;
  line-height: 1.65;
}

.footer-dialog-links {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.footer-dialog-links a,
.footer-store a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-store {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-store h3,
.footer-store p {
  margin: 0 0 5px;
}

.footer-location {
  display: grid;
  gap: 3px;
  margin-top: 6px;
}

.footer-location > span,
.footer-bottom {
  color: #9eafcc;
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #34425c;
  padding-block: 14px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }
}

@media (max-width: 520px) {
  .footer-brand,
  .footer-contacts {
    grid-column: 1 / -1;
  }

  .footer-brand > a {
    width: min(100%, 144px);
  }

  .footer-brand p {
    margin-top: 10px;
  }
}
