.cs-site-footer-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 56px auto 0;
}

.cs-site-footer {
  display: flex;
  flex-direction: column;
  padding: 48px 44px 54px;
  background: #f5f5f7;
  border-radius: 24px 24px 0 0;
}

.cs-site-footer-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.cs-site-footer-brand-block {
  display: grid;
  gap: 14px;
  align-content: start;
}

.cs-site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: #1d1d1f;
  text-decoration: none;
}

.cs-site-footer-logo {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.cs-site-footer-brand-name {
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cs-site-footer-text,
.cs-site-footer-meta {
  margin: 0;
  color: #6e6e73;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.cs-site-footer-meta {
  font-size: 14px;
}

.cs-site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 40px;
}

.cs-site-footer-column h2 {
  margin: 0 0 10px;
  color: #6e6e73;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.cs-site-footer-links {
  display: grid;
  gap: 10px;
}

.cs-site-footer-links a {
  color: #1d1d1f;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.cs-site-footer-links a:hover,
.cs-site-footer-brand:hover .cs-site-footer-brand-name {
  color: #2c7afe;
}

@media (max-width: 860px) {
  .cs-site-footer-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 640px) {
  .cs-site-footer-shell {
    width: min(100% - 20px, 1120px);
    margin-top: 40px;
  }

  .cs-site-footer {
    padding: 32px 24px 30px;
  }

  .cs-site-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    order: 3;
    width: 100%;
  }

  .cs-site-footer-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
  }

  .cs-site-footer-brand-block {
    display: contents;
  }

  .cs-site-footer-brand {
    order: 1;
  }

  .cs-site-footer-text {
    order: 2;
  }

  .cs-site-footer-meta {
    order: 4;
    padding-top: 8px;
  }

  .cs-site-footer-column {
    display: grid;
    gap: 12px;
  }

  .cs-site-footer-links {
    gap: 8px;
  }

  .cs-site-footer-brand-block,
  .cs-site-footer-column,
  .cs-site-footer-links {
    justify-items: center;
    text-align: center;
  }
}
