/* =========================================================
   TreeLife Stimulation — catalog.css (стили страницы каталога)
   Подключается после style.css:
   <link rel="stylesheet" href="css/catalog.css">
   ========================================================= */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container--narrow { max-width: 820px; }
.center { text-align: center; margin-top: 36px; }

.block-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.block-head h2 { font-size: clamp(26px, 3.2vw, 36px); }
.block-head p  { margin: 0; color: var(--teal); }


/* ---------- шапка страницы ---------- */

.cat-hero {
  padding: 28px 0 56px;
  background:
    radial-gradient(900px 340px at 85% -10%, var(--surface-3), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--white));
  border-bottom: 1px solid var(--border-c);
}

.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--teal); margin-bottom: 26px; }
.crumbs a:hover { color: var(--text-strong); text-decoration: underline; }
.crumbs span:last-child { color: var(--text); }

.cat-hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.cat-hero h1 { margin-bottom: 16px; }
.cat-hero h1 em { font-style: normal; color: var(--teal); }
.cat-hero__lead { font-size: 18px; max-width: 560px; margin: 0 0 26px; }
.cat-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.cat-hero__facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
}
.cat-hero__facts li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border-c);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cat-hero__facts strong { font-family: var(--font-head); font-size: 22px; color: var(--text-strong); font-weight: 500; }
.cat-hero__facts span   { font-size: 14px; color: var(--teal); }


/* ---------- фильтры ---------- */

.cat-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 20px;
  border: 1.5px solid var(--border-c);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--teal); background: var(--surface-3); }
.chip.is-active { background: var(--teal); border-color: var(--teal); color: var(--white); }
.cat-count { font-size: 14px; color: var(--teal); }


/* ---------- карточки товаров ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.product-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-c);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 16px 40px rgba(7, 58, 61, .14);
}
.product-card--accent { border-color: var(--teal); box-shadow: var(--shadow); }
.product-card[hidden] { display: none !important; }

.product-card__media {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--surface-2), var(--surface-3));
  padding: 18px;
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .4s;
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__media.is-empty { min-height: 220px; }

.product-card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  padding: 5px 12px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border-c);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--text);
}
.product-card--accent .product-card__badge { background: var(--teal); border-color: var(--teal); color: var(--white); }

.product-card__body { padding: 22px 22px 8px; flex: 1; }
.product-card__category {
  font-family: var(--font-mono);
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--teal); margin-bottom: 6px;
}
.product-card h2 { font-size: 26px; margin-bottom: 10px; }
.product-card h2 a:hover { color: var(--teal); }
.product-card__body > p { margin: 0 0 16px; font-size: 15px; }

.product-card__specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 0 0 16px;
}
.product-card__specs div {
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-c);
  border-radius: var(--radius-sm);
}
.product-card__specs dt { font-size: 12px; color: var(--teal); }
.product-card__specs dd { margin: 0; font-weight: 600; font-size: 15px; }

.check-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; font-size: 14px; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.4l2.3 2.3 4.7-4.9' fill='none' stroke='%2314a3a1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.product-card__buy {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--border-c);
  margin-top: 12px;
}
.product-card__price {
  font-family: var(--font-head);
  font-size: 28px; font-weight: 500; color: var(--text-strong);
  margin-bottom: 12px;
}
.product-card__price small { font-family: var(--font-body); font-size: 15px; color: var(--teal); }
.product-card__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-card__buttons .btn { width: 100%; padding-left: 10px; padding-right: 10px; }


/* ---------- сравнение ---------- */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-c);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border-c); }
.compare thead th {
  font-family: var(--font-head); font-size: 18px; font-weight: 500;
  color: var(--text-strong); background: var(--surface-2);
}
.compare tbody th { font-weight: 500; color: var(--teal); width: 24%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .is-accent { background: rgba(20, 163, 161, .07); }
.compare thead .is-accent { background: var(--surface-3); }


/* ---------- обучение ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  padding: 26px;
  border: 1px solid var(--border-c);
  border-radius: var(--radius);
  background: var(--surface);
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 14px;
  border-radius: 50%;
  background: var(--teal); color: var(--white);
  font-family: var(--font-head); font-size: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p  { margin: 0; font-size: 15px; }


/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border-c);
  border-radius: var(--radius);
  padding: 0 22px;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0;
  font-weight: 500; color: var(--text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto;
  font-size: 24px; line-height: 1; color: var(--teal);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; font-size: 15px; }


/* ---------- призыв ---------- */

.cta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
  padding: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-dark));
  color: var(--teal-line);
}
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p  { margin: 0; max-width: 460px; }
.cta__side { display: grid; gap: 6px; justify-items: start; }
.cta__phone { font-family: var(--font-head); font-size: 30px; color: var(--white); }
.cta__side small { margin-bottom: 8px; }
.cta .btn-primary { background: var(--white); border-color: var(--white); color: var(--teal-deep); }
.cta .btn-primary:hover:not(:disabled) { background: var(--teal-soft); border-color: var(--teal-soft); }


/* ---------- адаптив ---------- */

@media (max-width: 1020px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-hero__grid { grid-template-columns: 1fr; }
  .cat-hero__facts { grid-template-columns: repeat(3, 1fr); }
  .cat-hero__facts li { flex-direction: column; gap: 2px; }
}
@media (max-width: 720px) {
  .product-grid, .steps { grid-template-columns: 1fr; }
  .cat-hero__facts { grid-template-columns: 1fr; }
  .cat-hero__facts li { flex-direction: row; align-items: baseline; }
  .cta { padding: 30px 22px; }
}

/* в шапке каталога теперь один столбец */
.cat-hero__grid { grid-template-columns: 1fr; }
