/* ------------------------------------------------------------------
   Текстовые блоки разделов каталога
   ------------------------------------------------------------------ */

.cat-content {
  border-top: 1px solid var(--ink);
  margin-top: 40px;
}

.cc-section { padding: clamp(2.4rem, 4.5vw, 3.6rem) 0; border-bottom: 1px solid var(--line); }
.cc-section:last-child { border-bottom: 0; }

.cc-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 0.8rem;
  letter-spacing: var(--ls-l);
  max-width: 24ch;
}
.cc-lead {
  max-width: 62ch;
  font-size: 15px;
  color: var(--body);
  margin: 0 0 1.6rem;
}

/* «Как выбирать» — карточки с советами */
/* Фон сетки — цвет карточки, иначе в пустых ячейках последнего ряда
   просвечивает серая подложка и выглядит как незагрузившийся блок. */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  background: transparent;
  border: 0;
}
.cc-item {
  background: transparent;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line-strong);
  box-shadow: none;
}
.cc-item h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.4rem;
  letter-spacing: var(--ls-s);
}
.cc-item p { margin: 0; font-size: 14px; line-height: 1.6; }

@media (max-width: 900px) { .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cc-grid { grid-template-columns: 1fr; } }

/* Чек-лист — нумерация как порядок осмотра вещи */
.cc-check {
  list-style: none;
  counter-reset: c;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem 2rem;
  max-width: 900px;
}
.cc-check li {
  counter-increment: c;
  position: relative;
  padding-left: 2.2rem;
}
.cc-check li::before {
  content: counter(c, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.15em;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--taupe);
  font-variant-numeric: tabular-nums;
}
.cc-check b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.cc-check span { display: block; font-size: 13.5px; color: var(--body); margin-top: 2px; }

/* Вопросы — раскрывающиеся, чтобы не превращать страницу в простыню */
.cc-faq { max-width: 860px; border-top: 1px solid var(--line); }
.cc-faq details { border-bottom: 1px solid var(--line); }
.cc-faq summary {
  cursor: pointer;
  padding: 0.95rem 2rem 0.95rem 0;
  font-size: 15px;
  color: var(--ink);
  position: relative;
  list-style: none;
}
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem; top: 50%;
  transform: translateY(-50%);
  color: var(--taupe);
  font-size: 17px;
  line-height: 1;
}
.cc-faq details[open] summary::after { content: "–"; }
.cc-faq summary:hover { color: var(--taupe-deep); }
.cc-faq p {
  margin: 0 0 1.1rem;
  padding-right: 2rem;
  max-width: 66ch;
  font-size: 14.5px;
  color: var(--body);
}

/* Завершающий блок раздела */
.cc-closing {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--ink);
  padding: clamp(2.4rem, 4.5vw, 3.6rem) 0 clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 0;
}
.cc-closing h2 { font-size: clamp(2rem, 4vw, 3.25rem); max-width: 14ch; letter-spacing: var(--ls-xl); }
.cc-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin: 1.4rem 0 1.6rem;
}
.cc-points b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.cc-points span { font-size: 13.5px; color: var(--body); }
.cc-call { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }

/* Развёрнутый текст раздела с перелинковкой */
.cc-text { max-width: 68ch; }
.cc-text p { margin: 0 0 1rem; font-size: 15px; line-height: 1.7; }
.cc-links-head {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--taupe-deep); font-weight: 600; margin: 1.6rem 0 0.8rem;
}
.cc-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.6rem; }
.cc-links a {
  display: block;
  padding: 10px 0 12px;
  border: 0;
  border-top: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 0;
}
.cc-links a:hover { border-top-color: var(--ink); }
.cc-links a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--taupe); }
.cc-links b { display: block; font-size: 14px; color: var(--ink); font-weight: 600; }
.cc-links span { display: block; font-size: 12px; color: var(--taupe-deep); margin-top: 2px; }

/* Телефон в закрывающем блоке раздела — тот же, что на главной (home.css подключается только там). */
.cc-closing .closing-phone {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: var(--ls-m);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.cc-closing .closing-phone:hover { text-decoration: underline; text-decoration-color: var(--taupe); text-underline-offset: 4px; }
.cc-closing .closing-hours { font-size: 13px; color: var(--taupe-deep); }
