/* site_extra: база знаний (раздел и статьи) */

.kb-page {
  color: #1b2433;
  font-family: Montserrat, sans-serif;
}
.kb-h2 {
  margin: 0 0 18px;
  color: #254061;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

/* ----- Раздел: список статей ----- */
.kb-intro {
  max-width: 820px;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.6;
}
.kb-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 60px;
}
.kb-item__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border: 1px solid #e6dcc9;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.kb-item__link:hover,
.kb-item__link:focus-visible {
  border-color: #e5b67c;
  box-shadow: 0 12px 30px rgba(27, 36, 51, 0.12);
  transform: translateY(-3px);
  outline: none;
}
.kb-item__tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f4ead9;
  color: #254061;
  font-size: 12px;
  font-weight: 600;
}
.kb-item__title {
  margin: 0 0 10px;
  color: #254061;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.kb-item__text {
  flex: 1 1 auto;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(27, 36, 51, 0.8);
}
.kb-item__more {
  color: #254061;
  font-size: 14px;
  font-weight: 700;
}

/* ----- Статья ----- */
.kb-article__container {
  max-width: 880px;
  padding-bottom: 70px;
}
.kb-article__head {
  margin-bottom: 28px;
}
.kb-article__tag {
  display: inline-block;
  margin-bottom: 14px;
  color: #254061;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.kb-article__title {
  margin: 0 0 16px;
  text-align: left;
}
.kb-article__lead {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(27, 36, 51, 0.85);
}
.kb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(27, 36, 51, 0.65);
  font-size: 13px;
}

.kb-answer {
  position: relative;
  margin: 0 0 32px;
  padding: 24px 26px 24px 30px;
  border-radius: 16px;
  background: #254061;
  color: #fff;
}
.kb-answer:before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: #e5b67c;
}
.kb-answer__label {
  margin-bottom: 10px;
  color: #e5b67c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kb-answer__text {
  font-size: 17px;
  line-height: 1.6;
}
.kb-answer__text p {
  margin: 0 0 10px;
}
.kb-answer__cta {
  display: inline-block;
  margin-top: 8px;
  color: #e5b67c;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kb-facts {
  margin-bottom: 36px;
}
.kb-facts__list {
  margin: 0;
  border: 1px solid #e6dcc9;
  border-radius: 14px;
  overflow: hidden;
}
.kb-facts__row {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 16px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.5;
}
.kb-facts__row:nth-child(odd) {
  background: #faf6ee;
}
.kb-facts__term {
  margin: 0;
  font-weight: 700;
  color: #254061;
}
.kb-facts__value {
  margin: 0;
}

.kb-content {
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.7;
}
.kb-content h2 {
  margin: 36px 0 14px;
  color: #254061;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}
.kb-content h3 {
  margin: 26px 0 10px;
  color: #254061;
  font-size: 19px;
  font-weight: 700;
}
.kb-content p {
  margin: 0 0 14px;
}
.kb-content ul,
.kb-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.kb-content li {
  margin-bottom: 6px;
}
.kb-content a {
  color: #254061;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----- Карточки продуктов ----- */
.kb-products {
  margin-bottom: 40px;
  padding: 26px;
  border-radius: 16px;
  background: #f4ead9;
}
.kb-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kb-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.kb-card:hover {
  box-shadow: 0 10px 26px rgba(27, 36, 51, 0.15);
  transform: translateY(-2px);
}
.kb-card__img {
  display: block;
  aspect-ratio: 4 / 3;
  background: #faf6ee;
}
.kb-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kb-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}
.kb-card__vendor {
  color: rgba(27, 36, 51, 0.6);
  font-size: 12px;
}
.kb-card__name {
  color: #254061;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.kb-card__link {
  margin-top: auto;
  padding-top: 8px;
  color: #1b2433;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----- FAQ ----- */
.kb-faq {
  margin-bottom: 40px;
}
.kb-faq__item {
  border-bottom: 1px solid #e6dcc9;
}
.kb-faq__q {
  position: relative;
  padding: 16px 36px 16px 0;
  color: #254061;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.kb-faq__q::-webkit-details-marker {
  display: none;
}
.kb-faq__q:after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 4px;
  color: #e5b67c;
  font-size: 26px;
  font-weight: 400;
}
.kb-faq__item[open] .kb-faq__q:after {
  content: "\2212";
}
.kb-faq__a {
  padding: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
}
.kb-faq__a p {
  margin: 0;
}

/* ----- Источники ----- */
.kb-sources {
  margin-bottom: 40px;
}
.kb-sources__list {
  margin: 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
}
.kb-sources__item {
  margin-bottom: 6px;
}
.kb-sources__link {
  color: #254061;
  text-underline-offset: 3px;
  word-break: break-word;
}

/* ----- Карточка автора и экспертности (E-E-A-T) ----- */
.kb-eeat {
  padding: 26px;
  border: 1px solid #e5b67c;
  border-radius: 16px;
  background: #fff;
}
.kb-eeat__title {
  margin: 0 0 18px;
  color: #254061;
  font-size: 20px;
  font-weight: 700;
}
.kb-eeat__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 24px;
  margin-bottom: 18px;
}
.kb-eeat__cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.kb-eeat__k {
  color: rgba(27, 36, 51, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.kb-eeat__v {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.kb-eeat__s {
  color: rgba(27, 36, 51, 0.7);
  font-size: 13px;
  line-height: 1.45;
}
.kb-eeat__s a {
  color: #254061;
}
.kb-eeat__note {
  margin: 0 0 16px;
  padding-top: 16px;
  border-top: 1px solid #f0e6d3;
  color: rgba(27, 36, 51, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .kb-list,
  .kb-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .kb-list,
  .kb-products__grid,
  .kb-eeat__grid {
    grid-template-columns: 1fr;
  }
  .kb-h2 {
    font-size: 21px;
  }
  .kb-article__lead {
    font-size: 16px;
  }
  .kb-answer {
    padding: 20px 18px 20px 24px;
  }
  .kb-answer__text {
    font-size: 16px;
  }
  .kb-facts__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .kb-products,
  .kb-eeat {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kb-item__link,
  .kb-card {
    transition: none;
  }
}
