/* Страницы /statii/slug/ — загружается после темы, v4 */

.kk-article-page .kk-article-wrap {
  width: 100%;
  max-width: none;
}

.kk-article-page .kk-article-body,
.kk-article-page .kk-article-body article {
  width: 100%;
  max-width: none;
}

.kk-article-page .kk-article-body h2 {
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  font-size: 1.35em;
}

.kk-article-page .kk-article-body p {
  margin-bottom: 1em;
  line-height: 1.65;
}

.kk-article-page .kk-article-body a {
  color: #c62828 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.kk-article-page .kk-article-body a:hover {
  color: #9e1f1f !important;
}

.kk-article-page .kk-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}

.kk-article-page .kk-article-body table th,
.kk-article-page .kk-article-body table td {
  border: 1px solid #e0e0e0;
  padding: 10px 14px;
  text-align: left;
}

.kk-article-page .kk-article-body table th {
  background: #f7f7f7;
  font-weight: 600;
}

/* ── FAQ аккордеон ── */
.kk-article-page .kk-article-faq {
  margin: 2.5em 0 0;
  width: 100%;
}

.kk-article-page .kk-article-faq__title {
  margin: 0 0 16px;
  font-size: 1.35em;
  font-weight: 700;
  color: #222;
}

.kk-article-page .kk-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.kk-article-page .kk-faq-item {
  display: block;
  margin: 0;
  padding: 0;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.kk-article-page .kk-faq-item[open] {
  border-color: #c62828;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.12);
}

.kk-article-page summary.kk-faq-item__q {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 16px 18px !important;
  margin: 0 !important;
  list-style: none !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  color: #222 !important;
  background: #fff !important;
  -webkit-tap-highlight-color: transparent;
}

.kk-article-page summary.kk-faq-item__q::-webkit-details-marker {
  display: none !important;
}

.kk-article-page summary.kk-faq-item__q::marker {
  content: "" !important;
  display: none !important;
}

.kk-article-page summary.kk-faq-item__q::after {
  content: none !important;
  display: none !important;
}

.kk-article-page .kk-faq-item__text {
  flex: 1 1 auto;
  min-width: 0;
}

.kk-article-page .kk-faq-item__icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: #c62828;
  background: #fff;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.kk-article-page .kk-faq-item[open] summary.kk-faq-item__q {
  background: #fdf8f8 !important;
  border-bottom: 1px solid #eee;
}

.kk-article-page .kk-faq-item[open] .kk-faq-item__icon {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
}

.kk-article-page .kk-faq-item__a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 18px 16px;
  margin: 0;
  background: #fafafa;
  color: #444;
  font-size: 15px;
  line-height: 1.6;
}

.kk-article-page .kk-faq-item__a p {
  margin: 0;
}

.kk-article-page .kk-article-back {
  margin-top: 2.5em;
  padding-top: 1em;
  border-top: 1px solid #eee;
}

@media (max-width: 767px) {
  .kk-article-page .site-content {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .kk-article-page .kk-article-faq__title {
    font-size: 1.15em;
  }

  .kk-article-page summary.kk-faq-item__q {
    padding: 14px 12px !important;
    font-size: 14px !important;
  }

  .kk-article-page .kk-faq-item__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    font-size: 17px;
  }

  .kk-article-page .kk-faq-item__a {
    padding: 12px;
    font-size: 14px;
  }

  .kk-article-page .kk-article-body table {
    font-size: 13px;
  }

  .kk-article-page .kk-article-body table th,
  .kk-article-page .kk-article-body table td {
    padding: 7px 8px;
  }
}
