/* ==========================================================================
   CASE VAT DEDUCTIONS PAGE STYLES (Стили детальной страницы кейса: вычеты НДС по контрагенту)
   ========================================================================== */

/* Шапка кейса */
.case-hero {
  background: rgb(239, 233, 221);
  border-bottom: 1px solid rgb(221, 211, 194);
  padding: 40px 0;
}

.case-hero__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.case-hero__breadcrumbs {
  font-size: 12px;
  color: rgb(107, 101, 88);
  margin-bottom: 14px;
}

.case-hero__breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.case-hero__breadcrumbs a:hover {
  text-decoration: underline;
}

.case-hero__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: rgb(156, 130, 104);
  font-weight: 700;
  margin-bottom: 14px;
}

.case-hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.35;
  color: rgb(38, 34, 32);
  margin: 0;
}

/* Метрики кейса */
.case-metrics-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgb(239, 233, 221);
  border-radius: 12px;
  overflow: hidden;
  margin: 36px 0;
  border: 1px solid rgb(221, 211, 194);
}

.case-metrics__item {
  padding: 24px 28px;
  border-right: 1px solid rgb(221, 211, 194);
}

.case-metrics__item:last-child {
  border-right: none;
}

.case-metrics__value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  color: rgb(38, 34, 32);
  font-weight: 600;
}

.case-metrics__value--accent {
  color: rgb(156, 130, 104);
}

.case-metrics__label {
  font-size: 12px;
  color: rgb(107, 101, 88);
  margin-top: 4px;
}

/* Контентная часть кейса */
.case-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

.case-content__section {
  margin-bottom: 34px;
}

.case-content__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.case-content__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(38, 34, 32);
  color: rgb(242, 235, 221);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.case-content__section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: rgb(38, 34, 32);
  margin: 0;
}

.case-content__text {
  font-size: 14.5px;
  color: rgb(43, 36, 31);
  margin: 0;
  padding-left: 36px;
  line-height: 1.6;
}

.case-content__body {
  padding-left: 36px;
}

.case-content__body .case-content__text {
  padding-left: 0;
  margin-bottom: 16px;
}

.case-content__body .case-content__text:last-child {
  margin-bottom: 0;
}

/* Блок результата */
.case-result-box {
  background: rgb(38, 34, 32);
  color: rgb(242, 235, 221);
  border-radius: 12px;
  padding: 30px 34px;
  margin: 0 0 34px;
}

.case-result-box__label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: rgb(201, 173, 143);
  font-weight: 700;
  margin-bottom: 12px;
}

.case-result-box__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.case-result-box__desc {
  font-size: 13.5px;
  color: rgb(207, 198, 186);
  margin: 0;
  line-height: 1.6;
}

.case-content__note {
  font-size: 11.5px;
  color: rgb(107, 101, 88);
  font-style: italic;
  margin: 0 0 40px;
}

/* CTA внизу статьи */
.case-cta {
  border-top: 1px solid rgb(221, 211, 194);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.case-cta__info h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: rgb(38, 34, 32);
  margin: 0 0 5px;
}

.case-cta__info p {
  font-size: 13px;
  color: rgb(107, 101, 88);
  margin: 0;
}

.case-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.case-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.case-cta__btn:hover {
  opacity: 0.9;
}

.case-cta__btn--primary {
  background: rgb(38, 34, 32);
  color: rgb(255, 255, 255);
}

.case-cta__btn--outline {
  background: transparent;
  border: 1.5px solid rgb(38, 34, 32);
  color: rgb(38, 34, 32);
}

.case-back {
  margin-top: 30px;
}

.case-back a {
  font-size: 13px;
  color: rgb(156, 130, 104);
  font-weight: 600;
  text-decoration: none;
}

.case-back a:hover {
  text-decoration: underline;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .case-metrics {
    grid-template-columns: 1fr;
  }
  .case-metrics__item {
    border-right: none;
    border-bottom: 1px solid rgb(221, 211, 194);
  }
  .case-metrics__item:last-child {
    border-bottom: none;
  }
  .case-hero__container,
  .case-metrics-wrap,
  .case-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .case-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .case-cta__actions {
    width: 100%;
  }
  .case-cta__btn {
    flex: 1;
    justify-content: center;
  }
}