:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f6f8fc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f8fc;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.site-header nav a,
footer a {
  text-decoration: none;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: #172033;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 28px;
  color: #5b667c;
  font-size: 0.92rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.guide-hero {
  max-width: 850px;
  padding: 72px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.3rem;
}

.lead {
  max-width: 780px;
  margin-bottom: 0;
  color: #3d4960;
  font-size: 1.18rem;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 16px 0 76px;
}

.guide-card,
.related-card,
.article-aside {
  border: 1px solid #dce2ec;
  border-radius: 16px;
  background: #fff;
}

.guide-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 30px;
}

.guide-card p {
  color: #4c5870;
}

.guide-card-meta,
.article-meta {
  color: #667188;
  font-size: 0.9rem;
}

.guide-card-link {
  margin-top: auto;
  font-weight: 800;
  text-decoration: none;
}

.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 78px;
  padding: 34px;
  border-radius: 20px;
  background: #e9eef7;
}

.guide-cta h2,
.guide-cta p:last-child {
  margin-bottom: 0;
}

.guide-article {
  padding: 62px 0 32px;
}

.article-header {
  max-width: 900px;
  padding-bottom: 42px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 58px;
  align-items: start;
}

.article-content {
  max-width: 760px;
  font-size: 1.04rem;
}

.guide-section {
  padding: 4px 0 30px;
}

.guide-section p {
  margin: 0 0 18px;
}

.guide-section ul {
  margin: 4px 0 20px;
  padding-left: 24px;
}

.guide-section li + li {
  margin-top: 8px;
}

.article-aside {
  position: sticky;
  top: 24px;
  padding: 24px;
}

.article-aside p {
  color: #4c5870;
}

.article-aside .button {
  width: 100%;
  text-align: center;
}

.related-guides {
  padding: 62px 0 78px;
  border-top: 1px solid #dce2ec;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.related-card {
  padding: 22px;
}

.related-card a {
  font-weight: 800;
  text-decoration: none;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 46px;
  border-top: 1px solid #dce2ec;
}

@media (max-width: 840px) {
  .site-header,
  footer,
  .guide-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-list,
  .article-layout,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .guide-hero,
  .guide-article {
    padding-top: 44px;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header nav {
    gap: 12px;
  }

  .guide-card,
  .guide-cta {
    padding: 22px;
  }
}
