.main-nav { gap: 18px; }
.main-nav a { font-size: 12px; }

.topic-section { background: #eef4ef; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.topic-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topic-card > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 13px;
  background: var(--sage-2);
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
}
.topic-card > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}
.topic-card p { color: var(--muted); font-size: 14px; }
.topic-card small { margin-top: auto; color: var(--forest); font-weight: 900; }

.seo-hero {
  padding: 34px 0 88px;
  background:
    radial-gradient(circle at 86% 20%, rgba(219,232,223,.96), transparent 34%),
    linear-gradient(180deg, #fdfbf7 0%, #fbf8f2 100%);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 54px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb a { color: var(--forest); text-decoration: none; font-weight: 800; }
.seo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 70px;
  align-items: center;
}
.seo-hero h1 { max-width: 820px; }
.seo-hero .lead { max-width: 790px; }
.seo-hero-card {
  padding: 30px;
  border: 1px solid rgba(16,42,45,.10);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow);
}
.seo-hero-card .portrait-mini {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 22px;
}
.seo-hero-card .portrait-mini img {
  width: 100%;
  max-height: 330px;
  aspect-ratio: 4 / 4.3;
  object-fit: cover;
  object-position: center 25%;
}
.seo-hero-card > strong { display: block; font-size: 15px; }
.seo-hero-card > span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.seo-hero-card .button { width: 100%; margin-top: 20px; }
.mood-photo img { aspect-ratio: 4 / 3.2; object-position: center; }
.portrait-shell { position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  display: inline-flex;
  margin-top: 4px;
  color: var(--forest);
  font-weight: 900;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.quick-section { position: relative; z-index: 4; margin-top: -38px; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}
.quick-card {
  min-height: 148px;
  padding: 24px;
  border-right: 1px solid var(--line);
}
.quick-card:last-child { border-right: 0; }
.quick-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--forest);
  background: var(--sage-2);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}
.quick-card:nth-child(2) .quick-icon { color: #76535f; background: #f5e9ed; }
.quick-card:nth-child(3) .quick-icon { color: #385c73; background: #e8f0f5; }
.quick-card:nth-child(4) .quick-icon { color: #8a6238; background: #f8eee2; }
.quick-card strong { display: block; color: var(--ink); font-size: 14px; }
.quick-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.seo-body { padding: 84px 0 96px; }
.seo-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 74px;
  align-items: start;
}
.seo-content section + section { margin-top: 62px; }
.seo-content h2 { font-size: clamp(32px, 4vw, 47px); }
.seo-content h3 {
  margin: 30px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}
.seo-content p, .seo-content li { color: var(--ink-2); font-size: 17px; }
.seo-content ul { padding-left: 22px; }
.seo-content li + li { margin-top: 10px; }
.seo-content .content-note {
  margin-top: 26px;
  padding: 22px 24px;
  border-left: 4px solid var(--forest);
  border-radius: 0 16px 16px 0;
  background: var(--sage-2);
  color: var(--ink-2);
}
.seo-aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.aside-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-soft);
}
.aside-card h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}
.aside-card p { margin: 0; color: var(--muted); font-size: 14px; }
.aside-card .button { width: 100%; margin-top: 18px; }
.aside-links { display: grid; gap: 8px; }
.aside-links a {
  padding: 11px 0;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}
.aside-links a:last-child { border-bottom: 0; }
.aside-links a:hover { color: var(--forest); }
.aside-links span {
  padding: 10px 0;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}
.aside-links span:last-child { border-bottom: 0; }

.related-section { padding: 76px 0; background: #f5f0e8; }
.related-section h2 { max-width: 720px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  display: grid;
  min-height: 170px;
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(16,42,45,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.related-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.related-card span { align-self: end; color: var(--forest); font-size: 12px; font-weight: 900; }

.preview-notice {
  margin: 0 0 30px;
  padding: 14px 18px;
  color: var(--ink-2);
  border: 1px solid #c8d9d0;
  border-radius: 14px;
  background: var(--sage-2);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 11px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .main-nav a { font-size: 13px; }
  .seo-hero-grid, .seo-content-layout { grid-template-columns: 1fr; }
  .seo-hero-grid { gap: 38px; }
  .seo-hero-card { max-width: 520px; }
  .seo-aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-card:nth-child(2) { border-right: 0; }
  .quick-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .topic-grid, .seo-aside { grid-template-columns: 1fr; }
  .topic-card { min-height: 220px; }
  .seo-hero { padding: 22px 0 62px; }
  .breadcrumb { margin-bottom: 38px; }
  .seo-hero-card { padding: 20px; }
  .hero-actions .button { width: 100%; }
  .quick-section { margin-top: -24px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-card:last-child { border-bottom: 0; }
  .seo-body { padding: 64px 0 74px; }
  .seo-content section + section { margin-top: 48px; }
  .seo-content p, .seo-content li { font-size: 16px; }
}
