/* Site footer — metacloud soft-launch */

.site-footer {
  width: 100%;
  background-color: #051133;
  color: #ffffff;
}

.site-footer__inner {
  width: 100%;
  max-width: 1425px;
  margin-left: auto;
  margin-right: auto;
  padding: 80px 105px 60px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 3rem;
  align-items: start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  min-width: 0;
}

.site-footer__logo-link {
  display: inline-block;
  text-decoration: none;
}

.site-footer__logo {
  display: block;
  height: 2.25rem;
  width: auto;
}

.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-footer__label {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
}

.site-footer__text {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__link {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.site-footer__link:hover {
  color: #ff840b;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  color: #ffffff;
  text-decoration: none;
  transition: border-color 0.2s ease-in-out;
}

.site-footer__social-link:hover {
  border-color: #ff840b;
}

.site-footer__social-icon {
  display: block;
  width: 1rem;
  height: 1rem;
}

.site-footer__social-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.site-footer__column-title {
  margin: 0 0 0.75rem;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
}

.site-footer__column-link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.site-footer__column-link:hover {
  color: #ff840b;
}

.site-footer__divider {
  height: 2px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.15);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
}

.site-footer__copyright {
  margin: 0;
  line-height: 1.45;
  color: #ffffff;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.site-footer__legal-link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.site-footer__legal-link:hover {
  color: #ff840b;
}

@media screen and (max-width: 1200px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 2rem;
  }

  .site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1410px) {
  .site-footer__inner {
    padding: 60px 40px 48px;
    gap: 2.5rem;
  }
}

@media screen and (max-width: 1200px) and (min-width: 768px) {
  .site-footer__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 800px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .site-footer__nav {
    order: -1;
  }

  .site-footer__brand {
    order: 0;
  }

  .site-footer--flat .site-footer__top {
    gap: 2rem;
  }

  .site-footer--flat .site-footer__nav {
    order: 0;
  }

  .site-footer--flat .site-footer__flat-col--nav {
    order: unset;
  }
}

@media screen and (max-width: 767px) {
  .site-footer__inner {
    padding: 4rem var(--page-gutter) 3rem;
    gap: 2rem;
  }

  .site-footer__nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0;
  }

  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* soft-launch: плоский подвал (shell variant default) */
.site-footer--flat .site-footer__top {
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: 2.5rem;
  row-gap: 2rem;
  align-items: start;
}

.site-footer--flat .site-footer__flat-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-footer--flat .site-footer__flat-col--logo {
  gap: 2rem;
}

.site-footer--flat .site-footer__flat-col--nav,
.site-footer--flat .site-footer__flat-col--address,
.site-footer--flat .site-footer__flat-col--contact {
  gap: 0.75rem;
}

.site-footer--flat .site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  grid-template-columns: none;
  width: 100%;
}

@media screen and (min-width: 1201px) {
  .site-footer--flat .site-footer__flat-col--logo {
    padding-right: 10rem;
  }
}

@media screen and (max-width: 1200px) {
  .site-footer--flat .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
  }

  .site-footer--flat .site-footer__flat-col--logo {
    grid-column: 1;
  }

  .site-footer--flat .site-footer__flat-col--nav {
    grid-column: 2;
  }

  .site-footer--flat .site-footer__flat-col--address {
    grid-column: 1;
  }

  .site-footer--flat .site-footer__flat-col--contact {
    grid-column: 2;
  }
}

@media screen and (max-width: 767px) {
  .site-footer--flat .site-footer__top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .site-footer--flat .site-footer__flat-col--nav {
    order: 1;
  }

  .site-footer--flat .site-footer__flat-col--address {
    order: 2;
  }

  .site-footer--flat .site-footer__flat-col--contact {
    order: 3;
  }

  .site-footer--flat .site-footer__flat-col--logo {
    order: 4;
  }

  .site-footer--flat .site-footer__flat-col--logo,
  .site-footer--flat .site-footer__flat-col--nav,
  .site-footer--flat .site-footer__flat-col--address,
  .site-footer--flat .site-footer__flat-col--contact {
    grid-column: auto;
  }
}
