.seo-guides {
  background: #f4f1e9;
}

.seo-guides h2,
.seo-page h1,
.seo-page h2 {
  max-width: 850px;
}

.seo-guides-intro,
.seo-page-lead {
  max-width: 760px;
  color: #354a59;
  font-size: 1.08rem;
  line-height: 1.75;
}

.seo-page-lead {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.66);
}

.seo-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.seo-guide-grid article,
.seo-page-card {
  padding: 28px;
  border: 1px solid rgba(10, 61, 94, 0.16);
  border-radius: 12px;
  background: #fff;
}

.seo-guide-grid h3 {
  margin: 8px 0 12px;
}

.seo-page {
  padding: 96px 0 80px;
  background: #f8f6f0;
}

.seo-page-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.seo-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
  counter-reset: seo-card;
}

.seo-page-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.seo-page-overview a {
  position: relative;
  display: grid;
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(10, 61, 94, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  align-content: space-between;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.seo-page-overview a:hover,
.seo-page-overview a:focus-visible {
  border-color: var(--azure);
  background: #fff;
  transform: translateY(-2px);
}

.seo-page-overview span {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--azure);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.seo-page-overview svg {
  width: 30px;
  height: 30px;
  color: var(--night);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: color 160ms ease, transform 160ms ease;
}

.seo-page-overview a:hover svg,
.seo-page-overview a:focus-visible svg {
  color: var(--azure);
  transform: scale(1.06);
}

.seo-page-overview strong {
  max-width: 18ch;
  font-size: 0.92rem;
  line-height: 1.3;
}

.seo-page-card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--gold);
  box-shadow: 0 14px 36px rgba(7, 58, 103, 0.06);
  counter-increment: seo-card;
}

.seo-page-card::before {
  position: absolute;
  top: 10px;
  right: 18px;
  color: rgba(11, 111, 189, 0.07);
  content: counter(seo-card, decimal-leading-zero);
  font-family: "IBM Plex Mono", monospace;
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 1;
}

.seo-page-card > * {
  position: relative;
  z-index: 1;
}

.seo-page-card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  padding-right: 56px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.seo-page-card p,
.seo-page-card li {
  color: #354a59;
  line-height: 1.7;
}

.seo-page-card ul {
  display: grid;
  gap: 0;
  list-style: none;
}

.seo-page-card li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(10, 61, 94, 0.1);
}

.seo-page-card li::before {
  width: 7px;
  height: 7px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.seo-page-next {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(10, 61, 94, 0.18);
}

.seo-page-next a {
  padding: 10px 14px;
  border: 1px solid rgba(10, 61, 94, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--night);
  font-size: 0.88rem;
  font-weight: 650;
}

@media (max-width: 700px) {
  .seo-guide-grid {
    grid-template-columns: 1fr;
  }

  .seo-page {
    padding-top: 64px;
  }

  .seo-page-grid {
    grid-template-columns: 1fr;
  }

  .seo-page-card {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .seo-page-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-page-overview a {
    min-height: 96px;
    padding: 14px;
  }

  .seo-page-overview span {
    top: 12px;
    right: 12px;
  }

  .seo-page-overview svg {
    width: 26px;
    height: 26px;
  }

  .seo-page-overview strong {
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 12px;
  }

  .site-header .brand {
    width: 132px;
    min-width: 132px;
  }

  .site-header .button-small {
    padding-inline: 12px;
    font-size: 0.75rem;
    line-height: 1.25;
  }
}
