:root {
  --seo-ink: #1d1002;
  --seo-muted: #625d57;
  --seo-line: #ddd8d2;
  --seo-paper: #f7f5f2;
  --seo-white: #fffdf9;
  --seo-accent: #9a6a1e;
  --seo-accent-light: #ffbd53;
}

.page-seo {
  background: #e8e6e5;
}

.page-seo #page-wrap {
  max-width: 1440px;
  min-height: calc(100vh - 64px);
  margin: 32px auto;
  overflow: clip;
  border-radius: 24px;
  background: var(--seo-paper);
  box-shadow: 0 24px 80px rgba(19, 32, 51, .18), 0 4px 24px rgba(19, 32, 51, .08);
}

.seo-hero {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--seo-ink);
}

.seo-hero__image,
.seo-hero__shade {
  position: absolute;
  inset: 0;
}

.seo-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: saturate(.82) contrast(.96);
}

.seo-hero__shade {
  background:
    linear-gradient(90deg, rgba(29, 16, 2, .88) 0%, rgba(29, 16, 2, .68) 52%, rgba(29, 16, 2, .35) 100%),
    linear-gradient(180deg, rgba(29, 16, 2, .16), rgba(29, 16, 2, .72));
}

.seo-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 88px;
  padding-bottom: 88px;
}

.seo-hero h1 {
  max-width: 900px;
  color: #fff;
  text-shadow: 0 14px 34px rgba(29, 16, 2, .34);
}

.seo-hero__lead {
  max-width: 720px;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 10px 24px rgba(29, 16, 2, .32);
}

.seo-definition {
  max-width: 800px;
  color: var(--seo-muted);
  font-size: 1.125rem;
  line-height: 1.75;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--seo-line);
  border-radius: 30px;
  background: var(--seo-white);
  box-shadow: 0 18px 50px rgba(29, 16, 2, .065);
}

.seo-card {
  min-width: 0;
  padding: 32px;
  border-left: 1px solid var(--seo-line);
}

.seo-card:first-child {
  border-left: 0;
}

.seo-card__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(154, 106, 30, .2);
  border-radius: 999px;
  background: rgba(154, 106, 30, .08);
  color: var(--seo-accent);
}

.seo-card h3 {
  margin: 0 0 10px;
  color: var(--seo-ink);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.seo-card p {
  margin: 0;
  color: var(--seo-muted);
  font-size: .95rem;
  line-height: 1.6;
}

.seo-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: seo-step;
}

.seo-process__item {
  counter-increment: seo-step;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--seo-line);
  border-radius: 22px;
  background: #fff;
}

.seo-process__item::before {
  content: counter(seo-step, decimal-leading-zero);
  display: block;
  margin-bottom: 28px;
  color: var(--seo-accent);
  font-family: Manrope, sans-serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.seo-process__item h3 {
  margin: 0 0 9px;
  color: var(--seo-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.seo-process__item p {
  margin: 0;
  color: var(--seo-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.seo-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.seo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seo-list__item {
  padding: 20px;
  border: 1px solid var(--seo-line);
  border-radius: 18px;
  background: #fff;
}

.seo-list__item strong {
  display: block;
  margin-bottom: 7px;
  color: var(--seo-ink);
}

.seo-list__item span {
  color: var(--seo-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.seo-evidence {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 36px;
  align-items: center;
  padding: 38px;
  border: 1px solid rgba(255, 189, 83, .22);
  border-radius: 28px;
  background: #1d1002;
  color: #fff;
}

.seo-evidence p {
  color: rgba(255, 255, 255, .72);
}

.seo-related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seo-related a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid var(--seo-line);
  border-radius: 12px;
  background: #fff;
  color: var(--seo-ink);
  font-size: .9rem;
  font-weight: 700;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.seo-related a:hover {
  border-color: var(--seo-accent);
  color: var(--seo-accent);
  transform: translateY(-1px);
}

.seo-faq {
  max-width: 820px;
  margin-inline: auto;
  padding: 10px;
  border: 1px solid var(--seo-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(31, 20, 13, .06);
}

.seo-faq details + details {
  border-top: 1px solid var(--seo-line);
}

.seo-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  color: var(--seo-ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.seo-faq summary::-webkit-details-marker {
  display: none;
}

.seo-faq summary::after {
  content: "+";
  color: var(--seo-accent);
  font-size: 1.4rem;
  font-weight: 500;
}

.seo-faq details[open] summary::after {
  content: "-";
}

.seo-faq__answer {
  padding: 0 18px 20px;
  color: var(--seo-muted);
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  .seo-related a {
    transition: none;
  }
}

@media (max-width: 1023px) {
  .page-seo #page-wrap {
    margin: 0;
    border-radius: 0;
  }

  .seo-hero {
    min-height: 540px;
  }

  .seo-card-grid,
  .seo-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-card:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--seo-line);
    border-left: 0;
  }

  .seo-split,
  .seo-evidence {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .seo-hero {
    min-height: 0;
  }

  .seo-hero__content {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .seo-card-grid,
  .seo-process,
  .seo-list {
    grid-template-columns: 1fr;
  }

  .seo-card,
  .seo-card:nth-child(3) {
    grid-column: auto;
    padding: 26px 24px;
    border-top: 1px solid var(--seo-line);
    border-left: 0;
  }

  .seo-card:first-child {
    border-top: 0;
  }

  .seo-evidence {
    padding: 28px 24px;
  }
}
