:root {
  --shared-footer-light: #f5f5f7;
  --shared-footer-ink: #1d1d1f;
  --shared-footer-muted: #6e6e73;
  --shared-footer-line: #d2d2d7;
  --shared-footer-blue: #0066cc;
  --shared-footer-content: 1260px;
  --shared-footer-inner: 980px;
  --shared-footer-gutter: clamp(22px, 4vw, 42px);
}

.section-index.theme-light {
  background: var(--shared-footer-light);
  color: var(--shared-footer-ink);
}

.section-index {
  min-height: 869px;
  padding: 150px var(--shared-footer-gutter);
}

.section-index h2 {
  width: min(var(--shared-footer-content), 100%);
  margin: 0 auto 54px;
  color: var(--shared-footer-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(44px, 4.6vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0;
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px 62px;
  width: min(var(--shared-footer-content), 100%);
  margin: 0 auto;
}

.index-columns nav {
  display: grid;
  align-content: start;
  gap: 12px;
}

.index-columns p {
  margin: 0 0 8px;
  color: var(--shared-footer-muted);
  font-size: 17px;
  line-height: 1.18;
  font-weight: 650;
}

.index-columns a {
  color: var(--shared-footer-ink);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.18;
  font-weight: 600;
  text-decoration: none;
}

.index-columns a:hover {
  color: var(--shared-footer-blue);
}

.site-footer {
  padding: 0 var(--shared-footer-gutter) 34px;
  background: var(--shared-footer-light);
  color: var(--shared-footer-muted);
  font-size: 12px;
  line-height: 1.34;
}

.footer-inner {
  width: min(var(--shared-footer-inner), 100%);
  margin: 0 auto;
  border-top: 1px solid var(--shared-footer-line);
}

.footer-notes {
  margin: 0;
  padding: 18px 0 16px 18px;
  border-bottom: 1px solid var(--shared-footer-line);
}

.footer-notes li {
  margin-bottom: 9px;
  padding-left: 4px;
}

.footer-directory {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--shared-footer-line);
}

.footer-directory nav,
.footer-legal nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-directory h3 {
  margin: 0 0 2px;
  color: var(--shared-footer-ink);
  font-size: 12px;
  line-height: 1.34;
}

.footer-directory a,
.footer-legal a {
  color: #424245;
  text-decoration: none;
}

.footer-directory a:hover,
.footer-legal a:hover {
  color: var(--shared-footer-blue);
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
}

.footer-legal p {
  margin: 0;
}

.footer-legal nav {
  grid-auto-flow: column;
  gap: 16px;
}

@media (max-width: 900px) {
  .section-index {
    min-height: auto;
    padding: 92px 22px;
  }

  .section-index h2 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .index-columns,
  .footer-directory {
    grid-template-columns: 1fr;
  }

  .footer-legal,
  .footer-legal nav {
    display: grid;
    grid-auto-flow: row;
  }
}
