.category-sections.container {
  --category-accent: #c3f043;
  --category-sticky-top: 180px;
  width: 100%;
  max-width: 1200px;
  margin: 80px auto 16px;
  padding: 64px 0 0;
  border-top: 1px solid #e7e7e7;
  color: #171717;
  font-family: Inter, sans-serif;
}

.category-sections__seo {
  display: grid;
  align-items: start;
  gap: 48px;
}

.category-sections__seo--columns {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(32px, 5vw, 72px);
}

.category-sections__content {
  min-width: 0;
}

.category-rich-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.category-rich-text :is(h1, h2, h3, h4, h5, h6) {
  margin: 32px 0 14px;
  color: inherit;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.category-rich-text h1 { font-size: clamp(28px, 2.5vw, 36px); }
.category-rich-text h2 { font-size: clamp(24px, 2vw, 30px); }
.category-rich-text h3 { font-size: 24px; }
.category-rich-text h4 { font-size: 21px; }
.category-rich-text h5 { font-size: 18px; }
.category-rich-text h6 { font-size: 16px; }

.category-rich-text :is(p, ul, ol, table, blockquote, figure, .category-sections__table-scroll) {
  margin: 0 0 20px;
}

.category-rich-text > :first-child { margin-top: 0; }
.category-rich-text > :last-child { margin-bottom: 0; }

.category-rich-text a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #81a51f;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.category-rich-text a:hover { text-decoration-color: currentColor; }
.category-rich-text :is(ul, ol) { padding-left: 24px; }
.category-rich-text ul > li { list-style: disc; }
.category-rich-text ol > li { list-style: decimal; }
.category-rich-text li { margin-bottom: 8px; }
.category-rich-text li > :is(ul, ol) { margin: 8px 0 0; }
.category-rich-text blockquote { border-left: 4px solid var(--category-accent); padding: 12px 0 12px 20px; }
.category-rich-text blockquote > :last-child { margin-bottom: 0; }
.category-rich-text img { height: auto; max-width: 100%; }
.category-rich-text hr { margin: 32px 0; border: 0; border-top: 1px solid #e7e7e7; }

.category-sections__table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.category-rich-text table {
  width: 100% !important;
  height: auto !important;
  border: 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}

.category-sections__table-scroll > table { margin-bottom: 0; }
.category-rich-text :is(th, td) { min-width: 100px; padding: 14px 16px; border: 0; border-bottom: 1px solid #e7e7e7; text-align: left; vertical-align: top; }
.category-rich-text th { background: #f3f5ef; color: #171717; font-weight: 700; }
.category-rich-text tbody tr:nth-child(even) { background: #fafbf8; }
.category-rich-text caption { margin-bottom: 12px; text-align: left; font-weight: 600; }

.category-sections__sidebar {
  min-width: 0;
  width: 100%;
  max-width: 480px;
  padding: 32px;
  border: 1px solid #292929;
  border-radius: 16px;
  background: #111;
  color: #fff;
}

.category-sections__seo--columns > .category-sections__sidebar {
  position: sticky;
  top: var(--category-sticky-top);
  max-height: calc(100dvh - var(--category-sticky-top) - 24px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #6a6a6a #111;
}

.category-sections .category-sections__sidebar-title {
  margin: 0 0 16px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.category-sections__sidebar-text { color: #dedede; font-size: 14px; line-height: 1.75; }
.category-sections__sidebar-text a { color: #fff; text-decoration-color: var(--category-accent); }

.category-sections .category-sections__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 100%;
  min-height: 48px;
  margin-top: 24px;
  padding: 13px 20px;
  border: 1px solid var(--category-accent);
  border-radius: 6px;
  background: var(--category-accent);
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.2s, border-color 0.2s;
}

.category-sections .category-sections__button:hover { border-color: #d6ff6d; background: #d6ff6d; }
.category-sections__button span { flex-shrink: 0; font-size: 20px; line-height: 1; }
.category-sections__categories { margin-top: 24px; }
.category-sections__categories li + li { border-top: 1px solid #303030; }
.category-sections__categories a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px 0; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: underline; text-decoration-color: var(--category-accent); text-underline-offset: 4px; }
.category-sections__categories a:hover { color: var(--category-accent); }
.category-sections__categories a span { color: var(--category-accent); text-decoration: none; }

.category-sections__faq { margin-top: 72px; }
.category-sections__faq:first-child { margin-top: 0; }
.category-sections .category-sections__faq-title { margin: 0 0 32px; font-size: clamp(26px, 2.5vw, 32px); font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; }
.category-sections__faq-title::after { display: block; width: 88px; height: 6px; margin-top: 18px; background: var(--category-accent); content: ''; transform: skew(-35deg); }
.category-sections__question { border-bottom: 1px solid #e5e5e5; }
.category-sections__question summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; padding: 20px 0; list-style: none; cursor: pointer; }
.category-sections__question summary::-webkit-details-marker { display: none; }
.category-sections__question summary::marker { content: ''; }
.category-sections__question summary h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.6; }
.category-sections__faq-icon { position: relative; flex: 0 0 28px; height: 28px; border-radius: 50%; background: #f3f5ef; }
.category-sections__faq-icon::before, .category-sections__faq-icon::after { position: absolute; top: 13px; left: 9px; width: 10px; height: 2px; background: #111; content: ''; }
.category-sections__faq-icon::after { transform: rotate(90deg); }
.category-sections__question[open] .category-sections__faq-icon { background: var(--category-accent); }
.category-sections__question[open] .category-sections__faq-icon::after { display: none; }
.category-sections__answer { max-width: 920px; padding: 0 52px 24px 0; color: #555; }
.category-sections :is(a, summary, [tabindex]):focus-visible { outline: 2px solid #65851c; outline-offset: 5px; }
.category-sections__sidebar :is(a, [tabindex]):focus-visible { outline-color: var(--category-accent); }

@media (max-width: 1236px) {
  .category-sections.container { padding-right: 16px; padding-left: 16px; }
}

@media (max-width: 991px) {
  .category-sections.container { margin-top: 56px; padding-top: 40px; }
  .category-sections__seo--columns { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .category-sections__seo--columns > .category-sections__sidebar { position: static; max-height: none; overflow: visible; }
  .category-sections__sidebar { max-width: none; }
}

@media (max-width: 767px) {
  .category-sections.container { margin-top: 40px; padding-top: 32px; }
  .category-rich-text { font-size: 15px; line-height: 1.8; }
  .category-rich-text :is(h1, h2, h3, h4, h5, h6) { margin-top: 28px; }
  .category-rich-text > :first-child { margin-top: 0; }
  .category-rich-text h3 { font-size: 22px; }
  .category-rich-text h4 { font-size: 19px; }
  .category-rich-text :is(td, th) { padding: 12px; }
  .category-sections__sidebar { padding: 24px; border-radius: 12px; }
  .category-sections .category-sections__sidebar-title { font-size: 21px; }
  .category-sections__faq { margin-top: 48px; }
  .category-sections .category-sections__faq-title { margin-bottom: 24px; }
  .category-sections__question summary { gap: 16px; padding: 18px 0; }
  .category-sections__question summary h3 { font-size: 15px; }
  .category-sections__answer { padding-right: 0; }
}

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