.home-footer {
  max-width: 1280px;
  margin-inline: auto;
  padding: 40px;
  background: #0b152a;
  color: #fff;
}
.home-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-areas:
    "requisites requisites . contact legal"
    "nav policies policies brand brand"
    "bottom bottom bottom bottom bottom";
  gap: 32px 24px;
  font-size: 14px;
  line-height: 1.2;
}
.home-footer-brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  text-align: right;
}
.home-footer-brand p, .home-footer-grid h2, .home-footer-contact address {
  font: 400 20px/.98 Faberge, "PT Serif", Georgia, serif;
}
.home-footer-grid h2 { margin-bottom: 20px; }
.home-footer-contact { grid-area: contact; }
.home-footer-contact address {
  display: grid;
  justify-items: start;
  gap: 6px;
  margin-top: 20px;
  font-size: 18px;
}
.home-footer-contact address a { color: #a8bfff; }
.home-footer-contact a:hover, .home-footer-bottom a:hover { text-decoration: underline; }
.home-footer-legal { grid-area: legal; }
.home-footer-requisites { grid-area: requisites; max-width: 304px; }
.home-footer-requisites > summary { display: none; }
.home-footer-requisites p + p { margin-top: 10px; }
.home-footer-nav, .home-footer-policies { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.home-footer-nav { grid-area: nav; }
.home-footer-policies { grid-area: policies; }
.home-footer-nav a, .home-footer-policies a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 12px;
  border: 2px solid #f6f6f6;
  border-radius: 40px;
}
.home-footer-nav a:hover, .home-footer-policies a:hover { background: #ffffff1a; }
.home-footer-bottom {
  grid-area: bottom;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  font-size: 13px;
}
.home-footer-bottom small { font-size: inherit; }
.home-footer-bottom a { color: #c3cde0; }
.home-footer :is(a,summary):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 1050px) and (min-width: 741px) {
  .home-footer { padding-inline: 24px; }
  .home-footer-grid { grid-template-areas: "requisites requisites contact legal legal" "nav policies policies brand brand" "bottom bottom bottom bottom bottom"; }
}
@media (max-width: 740px) {
  .home-footer { padding: 16px; }
  .home-footer-grid { display: flex; flex-direction: column; gap: 40px; }
  .home-footer-brand { flex-direction: row; align-items: start; gap: 16px; }
  .home-footer-brand img { flex: 0 0 auto; }
  .home-footer-brand-desktop { display: none; }
  .home-footer-nav { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .home-footer-nav a, .home-footer-policies a { min-height: 40px; padding: 8px 10px; }
  .home-footer-contact { align-self: end; text-align: right; }
  .home-footer-contact h2, .home-footer-legal h2 { margin-bottom: 12px; }
  .home-footer-contact p { max-width: 235px; margin-left: auto; }
  .home-footer-contact address { justify-items: end; gap: 5px; }
  .home-footer-legal p { max-width: 245px; }
  .home-footer-policies { align-items: flex-end; gap: 12px; }
  .home-footer-requisites { max-width: none; }
  .home-footer-requisites > summary { display: list-item; padding: 6px 0; cursor: pointer; }
  .home-footer-requisites > div { padding-top: 12px; }
  .home-footer-requisites h2 { font-size: 17px; line-height: 1.15; margin-bottom: 12px; }
  .home-footer-bottom { display: flex; margin-top: -18px; font-size: 12px; }
}

@media (max-width: 740px) and (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .home-footer-requisites { interpolate-size: allow-keywords; }
    .home-footer-requisites::details-content {
      block-size: 0;
      overflow: hidden;
      transition: block-size 240ms ease, content-visibility 240ms allow-discrete;
    }
    .home-footer-requisites[open]::details-content { block-size: auto; }
  }
}

.cases-footer {
  background: #09152d;
  min-height: 476px;
}
.cases-footer .home-footer-grid {
  grid-template-areas: "requisites requisites . contact legal" "nav policies policies brand brand";
  row-gap: 40px;
  letter-spacing: -.02em;
  font-weight: 300;
}
.cases-footer .home-footer-brand {
  position: relative;
  inset-block-start: -30px;
  min-height: 110px;
}
.cases-footer .home-footer-brand p { font-size: 22px; margin-bottom: 4px; }
.cases-footer .home-footer-grid h2 { margin-bottom: 24px; text-wrap: wrap; }
.cases-footer .home-footer-requisites h2 { max-width: 273px; }
.cases-footer .home-footer-contact address { gap: 4px; margin-top: 24px; }
.cases-footer .home-footer-contact address a { color: #7597ff; }
.cases-footer .home-footer-bottom { display: none; }

@media (min-width: 741px) and (max-width: 1050px) {
  .cases-footer .home-footer-grid {
    grid-template-areas: "requisites requisites contact legal legal" "nav policies policies brand brand";
  }
}
@media (max-width: 740px) {
  .cases-footer { min-height: 0; }
  .cases-footer .home-footer-brand { position: static; min-height: 0; }
  .cases-footer .home-footer-brand p { margin-bottom: 0; font-size: 20px; line-height: .9; }
  .cases-footer .home-footer-grid h2 { margin-bottom: 12px; }
  .cases-footer .home-footer-contact p { max-width: 251px; }
  .cases-footer .home-footer-contact address a { color: inherit; }
  .cases-footer .home-footer-requisites, .cases-footer .home-footer-citation { display: none; }
  .cases-footer .home-footer-bottom { display: block; margin-top: 0; font-size: 10px; }
}
