.guides {
  position: relative;
  padding: clamp(4.5rem, 8vw, 8rem) var(--page-pad);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 18%, rgba(212, 182, 109, 0.12), transparent 24rem),
    var(--green-950);
}

.guides::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(135deg, transparent 48%, rgba(255,255,255,.025) 49%, rgba(255,255,255,.025) 51%, transparent 52%);
  background-size: 4.5rem 4.5rem;
  mask-image: linear-gradient(to left, #000, transparent 62%);
}

.guides__heading,
.guides__grid {
  position: relative;
  z-index: 1;
  width: min(100%, 1500px);
  margin-inline: auto;
}

.guides__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .8fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line-dark);
}

.guides__heading h2 {
  max-width: 12ch;
  margin: .65rem 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 5.4vw, 6.5rem);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.045em;
}

.guides__heading h2 em {
  color: var(--gold);
  font-weight: 400;
}

.guides__intro {
  max-width: 38rem;
  color: rgba(255,253,248,.7);
}

.guides__intro p {
  margin: 0 0 1.4rem;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.guides__all {
  display: inline-flex;
  gap: .8rem;
  align-items: center;
  padding-bottom: .35rem;
  color: var(--gold-light);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212,182,109,.55);
}

.guides__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.guide-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 8.5rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: color 220ms ease, background 220ms ease, transform 220ms var(--ease);
}

.guide-card > span {
  color: var(--gold);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.guide-card strong {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2vw, 2.25rem);
  font-weight: 400;
}

.guide-card small {
  color: rgba(255,253,248,.45);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.guide-card:hover,
.guide-card:focus-visible {
  color: var(--green-950);
  background: var(--gold-light);
  transform: translateY(-2px);
}

.guide-card:hover > span,
.guide-card:hover small,
.guide-card:focus-visible > span,
.guide-card:focus-visible small {
  color: var(--green-800);
}

.mobile-menu > a .mobile-menu__icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(212,182,109,.42);
  border-radius: 50%;
}

.mobile-menu__icon svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

[dir="rtl"] .guides__heading h2 {
  max-width: 14ch;
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

[dir="rtl"] .guide-card strong {
  font-family: Tahoma, Arial, sans-serif;
}

.seo-body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
}

.seo-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  padding: .8rem var(--page-pad);
  color: var(--white);
  background: rgba(7,30,25,.96);
  border-bottom: 1px solid rgba(212,182,109,.24);
  backdrop-filter: blur(14px);
}

.seo-brand {
  display: flex;
  gap: .75rem;
  align-items: center;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .06em;
}

.seo-brand__logo {
  display: block;
  width: 9rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.18));
}

.seo-brand::before {
  display: none;
}

.seo-language {
  display: flex;
  gap: .4rem;
  align-items: center;
  color: rgba(255,253,248,.56);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.seo-language a[aria-current="page"],
.seo-language a:hover {
  color: var(--gold-light);
}

.seo-main {
  width: min(100% - 2.5rem, 1180px);
  margin-inline: auto;
  padding: clamp(2.2rem, 6vw, 6.5rem) 0 clamp(5rem, 9vw, 9rem);
}

.seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 2.2rem;
  color: #5d6b66;
  font-size: .75rem;
  font-weight: 700;
}

.seo-hero {
  position: relative;
  padding: clamp(2.25rem, 5vw, 5rem);
  overflow: hidden;
  color: var(--white);
  background: var(--green-900);
  border-radius: 0 5rem 0 0;
}

.seo-hero::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 24rem;
  height: 24rem;
  content: "";
  border: 1px solid rgba(212,182,109,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(212,182,109,.045), 0 0 0 8rem rgba(212,182,109,.025);
}

.seo-hero .eyebrow {
  color: var(--gold-light);
}

.seo-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 14ch;
  margin: .85rem 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(2.65rem, 6vw, 6.1rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.045em;
}

.seo-hero > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0;
  color: rgba(255,253,248,.76);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: clamp(2.5rem, 7vw, 7rem);
  margin-top: clamp(3rem, 7vw, 6rem);
}

.seo-article {
  max-width: 48rem;
}

.seo-article h2 {
  margin: 2.8rem 0 .75rem;
  color: var(--green-900);
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.025em;
}

.seo-article p,
.seo-article li {
  color: #45524e;
  font-size: 1.06rem;
  line-height: 1.85;
}

.seo-article ul {
  padding-inline-start: 1.2rem;
}

.seo-aside {
  align-self: start;
  padding: 1.5rem;
  color: var(--white);
  background: var(--green-800);
  border-top: 3px solid var(--gold);
}

.seo-aside strong {
  display: block;
  margin-bottom: .65rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
}

.seo-aside p {
  color: rgba(255,253,248,.7);
  font-size: .9rem;
}

.seo-aside a {
  display: inline-flex;
  margin-top: .6rem;
  padding: .75rem 1rem;
  color: var(--green-950);
  background: var(--gold-light);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 3rem;
  overflow: hidden;
  background: rgba(13,23,20,.14);
  border: 1px solid rgba(13,23,20,.14);
}

.seo-list-card {
  min-height: 13rem;
  padding: 1.65rem;
  background: var(--paper);
  transition: background 180ms ease, color 180ms ease;
}

.seo-list-card span {
  color: var(--red);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.seo-list-card h2 {
  margin: .8rem 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
}

.seo-list-card p {
  margin: 0;
  color: #66716d;
  font-size: .9rem;
}

.seo-list-card:hover,
.seo-list-card:focus-visible {
  color: var(--white);
  background: var(--green-800);
}

.seo-list-card:hover p,
.seo-list-card:focus-visible p {
  color: rgba(255,253,248,.68);
}

.seo-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  padding: 1.4rem var(--page-pad);
  color: rgba(255,253,248,.62);
  background: var(--green-950);
  border-top: 3px solid var(--gold);
  font-size: .75rem;
}

[dir="rtl"] .seo-brand,
[dir="rtl"] .seo-hero h1,
[dir="rtl"] .seo-article h2,
[dir="rtl"] .seo-aside strong,
[dir="rtl"] .seo-list-card h2 {
  font-family: Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

[dir="rtl"] .seo-hero {
  border-radius: 5rem 0 0 0;
}

@media (max-width: 920px) {
  .guides__heading,
  .seo-layout {
    grid-template-columns: 1fr;
  }

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

  .seo-aside {
    max-width: 34rem;
  }
}

@media (max-width: 520px) {
  .seo-brand__logo {
    width: 7.2rem;
  }
}

@media (max-width: 620px) {
  .guides__grid,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 6.75rem;
  }

  .seo-header {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
  }

  .seo-language {
    flex-wrap: wrap;
  }

  .seo-hero {
    border-radius: 0 2.5rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card {
    transition: none;
  }
}
