/* SEO-хабы ОГЭ: /oge/razbalka/, /oge/kumir/, /oge/probniki/ */

.page--oge-seo-hub .oge-seo-hub {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.5rem;
}

.page--oge-seo-hub.page--home {
  padding-bottom: var(--home-bottom-fixed-height);
}

.ege-seo-breadcrumbs {
  margin: 0 0 1.15rem;
  text-align: left;
}

.ege-seo-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ege-seo-breadcrumbs__link {
  color: var(--primary-color, #6ee7b7);
  text-decoration: none;
  opacity: 0.92;
}

.ege-seo-breadcrumbs__link:hover {
  text-decoration: underline;
  opacity: 1;
}

.ege-seo-breadcrumbs__current {
  color: var(--text-muted, rgba(226, 232, 240, 0.78));
  font-weight: 500;
}

.ege-seo-breadcrumbs__sep {
  margin-left: 0.35rem;
  opacity: 0.45;
  user-select: none;
}

[data-theme="light"] .ege-seo-breadcrumbs__link {
  color: #047857;
}

[data-theme="light"] .ege-seo-breadcrumbs__current {
  color: rgba(51, 65, 85, 0.82);
}

.page--oge-seo-hub .ege-seo-breadcrumbs {
  max-width: 81rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.15rem;
}

.oge-seo-hub__hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.oge-seo-hub__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.oge-seo-hub__lead {
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted, rgba(226, 232, 240, 0.82));
}

[data-theme="light"] .oge-seo-hub__lead {
  color: rgba(51, 65, 85, 0.88);
}

.oge-seo-hub__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(118deg, #059669, #047857);
  color: #fff;
  transition: opacity 0.2s ease;
}

.oge-seo-hub__cta:hover {
  opacity: 0.92;
}

.oge-seo-hub__hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
}

.oge-seo-hub__cta--secondary {
  background: transparent;
  border: 1px solid rgba(5, 150, 105, 0.55);
  color: var(--primary-color, #34d399);
}

[data-theme="light"] .oge-seo-hub__cta--secondary {
  color: #047857;
}

.oge-seo-hub__variants {
  margin-top: 0.25rem;
  text-align: left;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.oge-seo-hub__variants-lead {
  margin: 0 0 0.85rem;
  font-weight: 600;
  text-align: center;
}

.oge-seo-hub__variants-group {
  margin-bottom: 0.85rem;
}

.oge-seo-hub__variants-kind {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}

.oge-seo-hub__variants-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.oge-seo-hub__variant-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.35));
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.oge-seo-hub__variant-chip:hover {
  border-color: rgba(5, 184, 125, 0.65);
  background: rgba(5, 184, 125, 0.08);
}

.oge-seo-hub__variant-chip--author {
  border-style: dashed;
}

.oge-seo-hub__variants-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.oge-seo-hub__variants-all {
  font-size: 0.9rem;
  color: var(--primary-color, #34d399);
  text-decoration: none;
}

.oge-seo-hub__variants-all:hover {
  text-decoration: underline;
}

.oge-seo-hub__section {
  margin-bottom: 2rem;
}

.oge-seo-hub__section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.oge-seo-hub__section-body {
  margin: 0;
  line-height: 1.65;
  color: var(--text-muted, rgba(226, 232, 240, 0.85));
}

[data-theme="light"] .oge-seo-hub__section-body {
  color: rgba(51, 65, 85, 0.9);
}

.oge-seo-hub__table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.oge-seo-hub__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.oge-seo-hub__table th,
.oge-seo-hub__table td {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.25));
  text-align: left;
}

.oge-seo-hub__table th {
  font-weight: 600;
  background: rgba(5, 184, 125, 0.08);
}

.oge-seo-hub__grades {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.oge-seo-hub__note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  opacity: 0.75;
}

.oge-seo-hub__task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.oge-seo-hub__task-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color, rgba(148, 163, 184, 0.25));
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.oge-seo-hub__task-link:hover {
  border-color: rgba(5, 184, 125, 0.55);
  background: rgba(5, 184, 125, 0.06);
}

.oge-seo-hub__task-num {
  font-weight: 700;
  font-size: 1rem;
}

.oge-seo-hub__task-hint {
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.8;
}

.oge-seo-hub__related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.oge-seo-hub__related-list a {
  color: var(--primary-color, #34d399);
  text-decoration: none;
}

.oge-seo-hub__related-list a:hover {
  text-decoration: underline;
}

.oge-seo-hub__faq-list {
  margin: 0;
}

.oge-seo-hub__faq-item {
  margin-bottom: 1.25rem;
}

.oge-seo-hub__faq-q {
  font-weight: 600;
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.oge-seo-hub__faq-a {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted, rgba(226, 232, 240, 0.85));
}

[data-theme="light"] .oge-seo-hub__faq-a {
  color: rgba(51, 65, 85, 0.9);
}

.oge-seo-hub__types-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.oge-seo-hub__types-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.oge-seo-hub__types-body {
  margin: 0;
  line-height: 1.55;
  color: var(--text-muted, rgba(226, 232, 240, 0.85));
}

.oge-seo-hub__types-link {
  text-align: center;
  margin: -0.5rem 0 1.5rem;
}

.oge-seo-hub__types-link a {
  color: var(--primary-color, #34d399);
  font-weight: 500;
  text-decoration: none;
}

.oge-seo-hub__types-link a:hover {
  text-decoration: underline;
}

.oge-seo-hub__table--compare th:first-child {
  width: 28%;
}

.oge-seo-hub--razbalka .oge-seo-hub__title.hero__title-main {
  display: inline-block;
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  letter-spacing: -0.032em;
  padding-bottom: 0.35rem;
}

.oge-seo-hub--razbalka .oge-seo-hub__title.hero__title-main::after {
  width: min(100%, 20rem);
}

.oge-seo-hub--razbalka .oge-seo-hub__section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(
    118deg,
    #f8fafc 0%,
    #d1fae5 22%,
    #6ee7b7 42%,
    #34d399 56%,
    #7dd3fc 78%,
    #e2e8f0 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .oge-seo-hub--razbalka .oge-seo-hub__section-title {
  background: linear-gradient(
    118deg,
    #0f172a 0%,
    #065f46 24%,
    #059669 44%,
    #047857 56%,
    #1d4ed8 80%,
    #0f172a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 900px) {
  .page--oge-seo-hub .oge-seo-hub--razbalka {
    padding: 1.15rem 0.85rem 1.35rem;
  }

  .oge-seo-hub--razbalka .oge-seo-hub__hero {
    margin-bottom: 1.5rem;
  }

  .oge-seo-hub--razbalka .oge-seo-hub__title.hero__title-main {
    font-size: clamp(1.4rem, 6.2vw, 1.9rem);
  }

  .oge-seo-hub--razbalka .oge-seo-hub__title.hero__title-main::after {
    width: min(100%, 13rem);
    height: 2px;
  }

  .oge-seo-hub--razbalka .oge-seo-hub__lead {
    margin-bottom: 1.15rem;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .oge-seo-hub--razbalka .oge-seo-hub__hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.55rem;
  }

  .oge-seo-hub--razbalka .oge-seo-hub__cta {
    justify-content: center;
    width: 100%;
    min-height: 2.85rem;
    font-size: 0.95rem;
  }

  .oge-seo-hub--razbalka .oge-seo-hub__section {
    margin-bottom: 1.15rem;
    padding: 0.95rem 0.8rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(
      145deg,
      rgba(30, 34, 40, 0.72) 0%,
      rgba(22, 26, 32, 0.55) 100%
    );
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
  }

  [data-theme="light"] .oge-seo-hub--razbalka .oge-seo-hub__section {
    border-color: rgba(15, 23, 42, 0.08);
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(248, 250, 252, 0.82) 100%
    );
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  }

  .oge-seo-hub--razbalka .oge-seo-hub__section-title {
    font-size: clamp(1.02rem, 4.6vw, 1.18rem);
    margin-bottom: 0.65rem;
  }

  .oge-seo-hub--razbalka .oge-seo-hub__table-wrap {
    margin: 0.65rem -0.15rem 0;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.22);
  }

  [data-theme="light"] .oge-seo-hub--razbalka .oge-seo-hub__table-wrap {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.9);
  }

  .oge-seo-hub--razbalka .oge-seo-hub__table th {
    background: rgba(5, 184, 125, 0.14);
    font-size: 0.88rem;
  }

  .oge-seo-hub--razbalka .oge-seo-hub__table td {
    font-size: 0.88rem;
    padding: 0.5rem 0.6rem;
  }

  .oge-seo-hub--razbalka .oge-seo-hub__task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .oge-seo-hub--razbalka .oge-seo-hub__task-link {
    min-height: 3.25rem;
    padding: 0.6rem 0.65rem;
  }

  .oge-seo-hub--razbalka .oge-seo-hub__faq-item {
    padding: 0.75rem 0.7rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.18);
  }

  [data-theme="light"] .oge-seo-hub--razbalka .oge-seo-hub__faq-item {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
  }

  .oge-seo-hub--razbalka .oge-seo-hub__related {
    padding-top: 0.25rem;
  }
}

.ege-prep-intro {
  max-width: 52rem;
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: rgba(99, 102, 241, 0.07);
}

.page--ege-home .ege-prep-intro {
  margin-top: 0.5rem;
}

.ege-prep-intro__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.ege-prep-intro__body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  opacity: 0.88;
}

.ege-prep-cross-links {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.06);
}

.page--ege-home .ege-prep-cross-links {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.ege-prep-cross-links__title {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.ege-prep-cross-links__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ege-prep-cross-links__link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.ege-prep-cross-links__link:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.ege-prep-cross-links__label {
  font-size: 0.78rem;
  font-weight: 650;
  color: #a5b4fc;
}

.ege-prep-cross-links__hint {
  font-size: 0.68rem;
  opacity: 0.72;
}

[data-theme="light"] .ege-prep-intro,
[data-theme="light"] .ege-prep-cross-links {
  background: rgba(238, 242, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.18);
}

[data-theme="light"] .ege-prep-cross-links__link {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .ege-prep-cross-links__label {
  color: #4338ca;
}
