/* ═══════════════════════════════════════════════════
   ХИМСТРОЙ — Примеры применения
   Архив + одиночная запись
═══════════════════════════════════════════════════ */

:root {
  --green-dark:  #047148;
  --green-mid:   #349C72;
  --green-deep:  #13612e;
  --slate:       #5A656D;
  --slate-light: #889491;
  --mist:        #A9B5AE;
  --bg-light:    #F1F0EB;
  --white:       #FFFFFF;
  --charcoal:    #2D3436;
}

@keyframes stepIn {
  to { opacity: 1; transform: translateY(0); }
}

.entry-content-main {
  padding: 0 !important;
}

/* ── Контейнер ── */
.ex__inner {
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Диагональные текстуры ── */
.ex-archive-hero::before,
.ex-hero::before,
.ex-result::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px,
    transparent 1px, transparent 12px
  );
  pointer-events: none;
}
.ex-archive::before,
.ex-params::before,
.ex-content::before,
.ex-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0,0,0,0.022) 0px, rgba(0,0,0,0.022) 1px,
    transparent 1px, transparent 12px
  );
  pointer-events: none;
}

/* ── Метка раздела ── */
.ex-section__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.ex-section__label::before,
.ex-section__label::after {
  content: ''; display: block; height: 1px; background: var(--green-dark);
}
.ex-section__label::before { width: 32px; }
.ex-section__label::after  { width: 20px; }

.ex-section__label--light {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 14px;
}
.ex-section__label--light::before,
.ex-section__label--light::after {
  content: ''; display: block; height: 1px; background: var(--green-mid);
}
.ex-section__label--light::before { width: 32px; }
.ex-section__label--light::after  { width: 20px; }

.ex-section__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 40px;
}
.ex-section__title em { font-style: normal; color: var(--green-dark); }
.ex-section__title--light { color: var(--white); }
.ex-section__title--light em { color: var(--green-mid); }


/* ═══════════════════════════════════
   HERO АРХИВА
═══════════════════════════════════ */
.ex-archive-hero {
  background: var(--charcoal);
  padding: 64px 24px 80px;
  position: relative;
  overflow: hidden;
}
.ex-archive-hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  bottom: -120px; right: -80px;
  background: radial-gradient(circle, rgba(4,113,72,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ex-archive-hero__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 16px;
  opacity: 0; transform: translateY(12px);
  animation: stepIn 0.4s ease 0.05s forwards;
}
.ex-archive-hero__label::before,
.ex-archive-hero__label::after {
  content: ''; display: block; height: 1px; background: var(--green-dark);
}
.ex-archive-hero__label::before { width: 32px; }
.ex-archive-hero__label::after  { width: 20px; }

.ex-archive-hero__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  opacity: 0; transform: translateY(16px);
  animation: stepIn 0.5s ease 0.15s forwards;
}
.ex-archive-hero__title em { font-style: normal; color: var(--green-mid); }

.ex-archive-hero__lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 600px;
  opacity: 0; transform: translateY(16px);
  animation: stepIn 0.5s ease 0.25s forwards;
}


/* ═══════════════════════════════════
   АРХИВ — СЕТКА КАРТОЧЕК
═══════════════════════════════════ */
.ex-archive {
  background: var(--bg-light);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.ex-archive::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  bottom: -80px; left: -80px;
  background: radial-gradient(circle, rgba(4,113,72,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ex-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 48px;
}

/* Карточка */
.ex-card {
  background: var(--white);
  border: 1px solid rgba(4,113,72,0.1);
  border-top: 3px solid var(--green-dark);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: stepIn 0.5s ease forwards;
  transition: border-top-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.ex-card:hover {
  border-top-color: var(--green-mid);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(4,113,72,0.12);
  z-index: 2;
}

.ex-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ex-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
  border: 1px solid rgba(4,113,72,0.25);
  padding: 4px 10px;
}
.ex-card__badge i { font-size: 10px; }

.ex-card__num {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(4,113,72,0.06);
  line-height: 1;
  transition: color 0.3s;
  flex-shrink: 0;
}
.ex-card:hover .ex-card__num { color: rgba(4,113,72,0.1); }

.ex-card__title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 12px;
}
.ex-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.ex-card:hover .ex-card__title a { color: var(--green-dark); }

.ex-card__short {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.ex-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.ex-card__meta-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
}

.ex-card__meta-key {
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ex-card__meta-key i { font-size: 10px; margin-right: 3px; }

.ex-card__meta-val {
  color: var(--slate);
}

.ex-card__footer {
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.ex-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.3s, gap 0.3s;
}
.ex-card:hover .ex-card__link { color: var(--green-mid); gap: 12px; }
.ex-card__link i { font-size: 10px; }

/* Пагинация */
.ex-archive .navigation {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}


/* ═══════════════════════════════════
   HERO одиночной записи
═══════════════════════════════════ */
.ex-hero {
  background: var(--charcoal);
  padding: 64px 24px 80px;
  position: relative;
  overflow: hidden;
}
.ex-hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  bottom: -120px; right: -80px;
  background: radial-gradient(circle, rgba(4,113,72,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ex-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-mid);
  text-decoration: none;
  margin-bottom: 28px;
  opacity: 0; transform: translateY(12px);
  animation: stepIn 0.4s ease 0.05s forwards;
  transition: gap 0.2s, color 0.2s;
}
.ex-hero__back:hover { color: var(--white); gap: 12px; }

.ex-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-mid);
  border: 1px solid rgba(52,156,114,0.3);
  background: rgba(52,156,114,0.07);
  padding: 6px 14px;
  margin-bottom: 20px;
  opacity: 0; transform: translateY(12px);
  animation: stepIn 0.4s ease 0.12s forwards;
}

.ex-hero__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(24px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 20px;
  opacity: 0; transform: translateY(16px);
  animation: stepIn 0.5s ease 0.2s forwards;
}
.ex-hero__title em { font-style: normal; color: var(--green-mid); }

.ex-hero__short {
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
  max-width: 680px;
  opacity: 0; transform: translateY(16px);
  animation: stepIn 0.5s ease 0.3s forwards;
}


/* ═══════════════════════════════════
   ПАРАМЕТРЫ — KV список
═══════════════════════════════════ */
.ex-params {
  background: var(--bg-light);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.ex-params::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  top: -80px; left: -80px;
  background: radial-gradient(circle, rgba(4,113,72,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ex-kv-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ex-kv-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  background: var(--white);
  border: 1px solid rgba(4,113,72,0.1);
  border-left: 3px solid var(--green-dark);
  overflow: hidden;
  opacity: 0; transform: translateY(14px);
  animation: stepIn 0.45s ease forwards;
  transition: border-left-color 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: default;
}
.ex-kv-item:nth-child(1) { animation-delay: 0.05s; }
.ex-kv-item:nth-child(2) { animation-delay: 0.12s; }
.ex-kv-item:nth-child(3) { animation-delay: 0.19s; }
.ex-kv-item:hover {
  border-left-color: var(--green-mid);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(4,113,72,0.09);
}

.ex-kv-item__key {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(4,113,72,0.04);
  border-right: 1px solid rgba(4,113,72,0.1);
  display: flex;
  align-items: center;
}
.ex-kv-item__val {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  display: flex;
  align-items: center;
}


/* ═══════════════════════════════════
   ОСНОВНОЙ ТЕКСТ ИЗ РЕДАКТОРА
═══════════════════════════════════ */
.ex-content {
  background: var(--bg-light);
  padding: 0 24px 72px;
  position: relative;
  overflow: hidden;
}

.ex-content__body {
  max-width: 780px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--slate);
  border-left: 3px solid var(--green-dark);
  padding-left: 28px;
}
.ex-content__body p { margin-bottom: 16px; }
.ex-content__body p:last-child { margin-bottom: 0; }
.ex-content__body strong { color: var(--charcoal); }
.ex-content__body a { color: var(--green-dark); }


/* ═══════════════════════════════════
   РЕЗУЛЬТАТ — тёмный
═══════════════════════════════════ */
.ex-result {
  background: var(--charcoal);
  padding: 64px 24px 72px;
  position: relative;
  overflow: hidden;
}
.ex-result::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  bottom: -80px; right: -80px;
  background: radial-gradient(circle, rgba(4,113,72,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.ex-result__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ex-result__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(4,113,72,0.09);
  border: 1px solid rgba(52,156,114,0.15);
  border-left: 3px solid var(--green-dark);
  padding: 16px 20px;
  opacity: 0; transform: translateY(14px);
  animation: stepIn 0.45s ease forwards;
  transition: background 0.3s, border-left-color 0.3s;
  cursor: default;
}
.ex-result__item:nth-child(1) { animation-delay: 0.05s; }
.ex-result__item:nth-child(2) { animation-delay: 0.15s; }
.ex-result__item:nth-child(3) { animation-delay: 0.25s; }
.ex-result__item:hover {
  background: rgba(4,113,72,0.14);
  border-left-color: var(--green-mid);
}
.ex-result__item i {
  font-size: 15px;
  color: var(--green-mid);
  margin-top: 2px;
  flex-shrink: 0;
}
.ex-result__item span {
  font-size: 14px;
  line-height: 1.65;
  color: var(--white);
}

.ex-result__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
}

/* Плашка «детали по запросу» — светлая, под блоком результата */
.ex-note {
  margin-top: 20px;
  padding: 14px 18px;
  background: rgba(4,113,72,0.05);
  border: 1px solid rgba(4,113,72,0.15);
  border-left: 3px solid var(--green-dark);
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ex-note i {
  color: var(--green-dark);
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
}


/* ═══════════════════════════════════
   CTA (общий для архива и записи)
═══════════════════════════════════ */
.ex-cta {
  background: var(--bg-light);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.ex-cta::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  bottom: -80px; right: -80px;
  background: radial-gradient(circle, rgba(4,113,72,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ex-cta__box {
  background: var(--white);
  border: 1px solid rgba(4,113,72,0.15);
  border-left: 4px solid var(--green-dark);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: stepIn 0.5s ease 0.05s forwards;
}

.ex-cta__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.ex-cta__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 12px;
}
.ex-cta__title em { font-style: normal; color: var(--green-dark); }

.ex-cta__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
  max-width: 460px;
}

.ex-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-dark);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border: 1px solid var(--green-mid);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.25s, box-shadow 0.25s, gap 0.25s;
}
.ex-cta__btn:hover {
  background: var(--green-mid);
  box-shadow: 0 4px 20px rgba(52,156,114,0.35);
  color: var(--white);
  gap: 14px;
}
.ex-cta__btn i { font-size: 13px; }

.ex-empty {
  font-size: 15px;
  color: var(--slate);
  padding: 40px 0;
}


/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 900px) {
  .ex-grid { grid-template-columns: repeat(2, 1fr); }
  .ex-kv-item { grid-template-columns: 160px 1fr; }
  .ex-cta__box { flex-direction: column; align-items: flex-start; }
  .ex-cta__btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .ex-archive-hero,
  .ex-hero,
  .ex-params,
  .ex-content,
  .ex-result,
  .ex-cta { padding-left: 16px; padding-right: 16px; }

  .ex-grid { grid-template-columns: 1fr; }

  .ex-kv-item { grid-template-columns: 1fr; }
  .ex-kv-item__key { border-right: none; border-bottom: 1px solid rgba(4,113,72,0.1); }

  .ex-card__meta-row { grid-template-columns: 70px 1fr; }

  .ex-cta__box { padding: 28px 20px; }
}
