:root {
  --forest: #123f35;
  --forest-deep: #0f342c;
  --forest-soft: #1b584b;
  --ink: #1c2f2a;
  --muted: #61716a;
  --gold: #d7b46d;
  --gold-soft: #f0dfb8;
  --cream: #fbf8f1;
  --paper: #fffdf8;
  --sage: #eef3ed;
  --line: #dce4dc;
  --shadow: 0 14px 34px rgba(18, 63, 53, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

.seo-shell {
  min-height: 100vh;
  width: 100%;
}

.seo-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px max(22px, calc((100% - 1180px) / 2));
  background: rgba(251, 248, 241, .96);
  border-bottom: 1px solid rgba(18, 63, 53, .10);
  backdrop-filter: blur(14px);
}

.seo-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
}

.seo-brand img {
  width: 44px;
  height: 50px;
  object-fit: contain;
}

.seo-brand b {
  color: var(--forest);
  font: 700 25px/1 Georgia, "Times New Roman", serif;
  letter-spacing: .055em;
}

.seo-nav > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.seo-nav > div a {
  padding: 9px 10px;
  border-radius: 9px;
  color: #42534e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.seo-nav > div a:hover,
.seo-nav > div a:focus-visible {
  background: var(--sage);
  color: var(--forest);
}

.seo-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 22px max(22px, calc((100% - 1124px) / 2)) 0;
  padding: 9px 14px;
  border: 1px solid #d6dfd7;
  border-radius: 999px;
  background: var(--paper);
  color: var(--forest);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(18, 63, 53, .04);
}

.seo-back:hover,
.seo-back:focus-visible {
  border-color: #b9c9be;
  background: var(--sage);
}

.seo-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 7px max(22px, calc((100% - 1124px) / 2)) 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.seo-breadcrumbs a {
  color: var(--forest);
  font-weight: 750;
  text-decoration: none;
}

.seo-breadcrumbs strong {
  color: #53645d;
  font-weight: 700;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 72px;
}

.seo-hero {
  margin-top: 18px;
  padding: 58px clamp(24px, 5vw, 58px) 46px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 14%, rgba(215, 180, 109, .24), transparent 25%),
    linear-gradient(145deg, #fffdf8, #eef4ee);
  box-shadow: var(--shadow);
}

.seo-kicker {
  color: #6d7b70;
  font-size: 11px;
  letter-spacing: .16em;
  font-weight: 850;
  text-transform: uppercase;
}

.seo-hero h1 {
  max-width: 880px;
  margin: 12px 0 18px;
  color: var(--forest);
  font: 500 clamp(40px, 5.6vw, 64px)/1.04 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}

.seo-hero p,
.seo-section p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.72;
}

.seo-hero p {
  margin-bottom: 0;
  font-size: 17px;
}

.seo-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 12px 19px;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 9px 24px rgba(18, 63, 53, .16);
}

.seo-cta:hover,
.seo-cta:focus-visible {
  background: var(--forest-soft);
}

.seo-hero .seo-cta,
.seo-section .seo-cta {
  color: #fff !important;
}

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

.seo-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 3px solid #b89a5f;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 7px 22px rgba(18, 63, 53, .04);
}

.seo-card h2,
.seo-card h3,
.seo-section h2 {
  margin: 0 0 12px;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.18;
}

.seo-card h2,
.seo-card h3 {
  font-size: 24px;
}

.seo-card p,
.seo-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.seo-card ul {
  padding-left: 20px;
}

.seo-card a,
.seo-section a,
.seo-note a {
  color: var(--forest);
  font-weight: 750;
}

.seo-section {
  margin: 34px 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .9);
}

.seo-section h2 {
  margin-top: 7px;
  font-size: clamp(28px, 3.8vw, 40px);
}

.seo-section p {
  font-size: 16px;
}

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

.seo-subject-link {
  display: grid;
  gap: 5px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.seo-subject-link:hover,
.seo-subject-link:focus-visible {
  transform: translateY(-1px);
  border-color: #adc1b3;
  background: #f7faf7;
}

.seo-subject-link b {
  color: var(--forest);
}

.seo-subject-link span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.seo-compare {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.seo-compare > div {
  display: grid;
  grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.seo-compare b {
  color: var(--forest);
}

.seo-compare span {
  color: var(--muted);
  line-height: 1.65;
}

.seo-tool {
  margin: 30px 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.seo-tool h2 {
  margin: 7px 0 8px;
  color: var(--forest);
  font: 600 clamp(29px, 4vw, 40px)/1.15 Georgia, "Times New Roman", serif;
}

.seo-tool p {
  color: var(--muted);
  line-height: 1.65;
}

.seo-tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.seo-tool-form label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

.seo-tool-form select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cfd9d1;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.seo-tool-form .seo-cta {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 2px;
  border: 0;
  cursor: pointer;
}

.seo-tool-result {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #d8e2da;
  border-radius: 15px;
  background: linear-gradient(145deg, #f7faf7, #fffaf0);
}

.seo-tool-result h2 {
  margin-top: 8px;
}

.seo-tool-result small {
  color: #6f7c76;
}

.seo-tool-warning {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: #fffaf1;
}

.seo-note {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: #fffaf0;
  color: var(--muted);
  line-height: 1.65;
}

.seo-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.seo-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d9e1da;
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.seo-links a:hover,
.seo-links a:focus-visible {
  background: var(--sage);
}

footer {
  margin-top: 48px;
  padding: 26px 28px;
  border-top: 1px solid #47604f;
  background: var(--forest-deep);
  color: #dce7df;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .seo-nav {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 9px;
    padding: 10px 16px 9px;
  }

  .seo-brand img {
    width: 40px;
    height: 45px;
  }

  .seo-brand b {
    font-size: 23px;
  }

  .seo-nav > div {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    padding-top: 7px;
    border-top: 1px solid rgba(18, 63, 53, .08);
    scrollbar-width: none;
  }

  .seo-nav > div::-webkit-scrollbar {
    display: none;
  }

  .seo-nav > div a {
    flex: 0 0 auto;
    padding: 7px 9px;
    font-size: 12px;
  }

  .seo-back {
    margin: 16px 18px 0;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .seo-breadcrumbs {
    margin: 7px 18px 0;
    font-size: 11.5px;
  }

  main {
    padding: 0 18px 54px;
  }

  .seo-hero {
    margin-top: 14px;
    padding: 34px 22px 30px;
    border-radius: 17px;
  }

  .seo-hero h1 {
    max-width: 100%;
    font-size: clamp(37px, 11.2vw, 48px);
    line-height: 1.06;
  }

  .seo-hero p {
    font-size: 16px;
  }

  .seo-grid,
  .seo-subject-grid,
  .seo-tool-form {
    grid-template-columns: 1fr;
  }

  .seo-tool-form .seo-cta {
    grid-column: auto;
  }

  .seo-card {
    padding: 22px;
  }

  .seo-section {
    padding: 22px;
  }

  .seo-section h2 {
    font-size: 30px;
  }

  .seo-compare > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .seo-links a {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    justify-content: flex-start;
    border-radius: 12px;
    line-height: 1.3;
  }

  footer {
    margin-top: 34px;
    padding: 24px 18px;
    text-align: left;
  }
}

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

  .seo-nav > div a {
    font-size: 11.5px;
  }

  .seo-hero h1 {
    font-size: 39px;
  }

  .seo-card h2,
  .seo-card h3 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
