/* ТОПДОМ — правки по ТЗ СММ/SEO: карточки, шапка и подвал каталога, подборки, «Частые вопросы», юридический текст футера */

/* ---------- карточка проекта: название и характеристики видны сразу ---------- */
.pgrid .pcard::after { opacity: 1; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.34) 40%, rgba(0,0,0,0) 62%); }
.pgrid .pcard__info { opacity: 1; transform: none; padding: clamp(14px, 1.5vw, 24px); }
.pgrid .pcard__info b { font-size: clamp(20px, 1.9vw, 30px); }
.pcard__kind { display: block; margin-bottom: 4px; font-style: normal; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; opacity: .82; }
.pcard__info small { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.pi { display: inline-flex; align-items: center; gap: .3em; }
.pi svg { width: 1em; height: 1em; flex: none; }
.pcard__info small .pi { font-size: 1em; }
.pcard__info { display: block; }
.pcard__top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 16px; }
.pcard__sub { display: flex; justify-content: space-between; align-items: center; gap: 4px 16px; margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.42); }
.pcard__sub small { flex: none; margin: 0; justify-content: flex-end; }
.pcard__note { flex: 1 1 0; min-width: 0; margin: 0; padding: 0; border: 0; font-size: 14px; font-weight: 400; line-height: 1.35; opacity: .94; }
.pcard .tag--dark { z-index: 1; text-transform: lowercase; letter-spacing: .02em; }
.pgrid .pcard { animation-delay: calc(min(var(--i, 0), 8) * 70ms); }

/* ---------- шапка каталога ---------- */
.chead { padding: 0 var(--gutter) 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 9px; opacity: .55; }
.crumbs a { color: var(--ink-2); transition: color .25s; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs li[aria-current] { color: var(--ink); }
.chead__h1 { margin: 14px 0 0; font-size: clamp(30px, 4.2vw, 58px); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; max-width: 18em; text-wrap: balance; }
.chead__found { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); }
.chead__found b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chips__h { margin: 22px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.is-clamped { max-height: var(--chips-h, none); overflow: hidden; }
.chead .chip { padding: 8px 15px; font-size: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); transition: background .25s, color .25s, border-color .25s, transform .25s; }
.chead .chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chead .chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips__more { margin-top: 12px; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.chips__more[hidden] { display: none; }

/* ---------- «Показать ещё» ---------- */
.pmore { display: flex; justify-content: center; padding: 22px var(--gutter) 8px; }
.pmore[hidden] { display: none; }
.pmore__btn { height: 52px; padding: 0 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; font-weight: 500; color: var(--ink); transition: background .25s, color .25s, border-color .25s; }
.pmore__btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- нижний блок: подборки, SEO-текст, вопросы ---------- */
.cseo { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 90px); }
.cseo[hidden] { display: none; }
.tiles__h, .faq__h { margin: 0 0 22px; font-size: clamp(26px, 3vw, 42px); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px 32px; }
.tiles__h { grid-column: 1 / -1; margin-bottom: 0; }
.tiles__t { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tiles__l { display: flex; flex-wrap: wrap; gap: 7px; }
.tile { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--ink); transition: background .25s, color .25s, border-color .25s, transform .25s; }
.tile:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.cseo__cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.cseo__cols--one { grid-template-columns: minmax(0, 54em); }
.cseo__body { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.cseo__body > :first-child { margin-top: 0; }
.cseo__body h1, .cseo__body h2, .cseo__body h3 { color: var(--ink); font-weight: 400; letter-spacing: -.02em; line-height: 1.2; margin: 1.6em 0 .6em; }
.cseo__body h1, .cseo__body h2 { font-size: clamp(22px, 2.2vw, 30px); }
.cseo__body h3 { font-size: 19px; }
.cseo__body p { margin: 0 0 1em; }
.cseo__body ul, .cseo__body ol { margin: 0 0 1em; padding-left: 1.3em; }
.cseo__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cseo__body img { max-width: 100%; height: auto; border-radius: 16px; }
.cseo__body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.cseo__body td, .cseo__body th { padding: 8px 12px; border: 1px solid var(--line); }
.cseo__body.is-clamped { max-height: 21em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.cseo__toggle { margin-top: 14px; padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.cseo__toggle[hidden] { display: none; }
.faq__h { margin-bottom: 14px; }
.faq__i { border-top: 1px solid var(--line); }
.faq__i:last-child { border-bottom: 1px solid var(--line); }
.faq__i summary { position: relative; padding: 18px 40px 18px 0; font-size: 17px; font-weight: 500; line-height: 1.35; cursor: pointer; list-style: none; }
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq__i[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__a { padding: 0 0 20px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); animation: faqIn .4s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- футер: юридический текст ---------- */
.footer__legal { max-width: 980px; margin: 18px 0 0; font-size: 12px; line-height: 1.55; opacity: .55; }

@media (max-width: 900px) {
  .chead { padding-bottom: 16px; }
  .chead__h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .chead__found { font-size: 15px; }
  .chead .chip { padding: 8px 13px; font-size: 13.5px; }
  .cseo__cols { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; gap: 22px; }
  .pgrid .pcard::after { background: linear-gradient(0deg, rgba(0,0,0,.76) 0%, rgba(0,0,0,.3) 40%, rgba(0,0,0,0) 62%); }
  .pcard__kind { font-size: 12px; }
  .pgrid .pcard__info b { font-size: 20px; }
  .pgrid .pcard__info small { font-size: 16px; }
  .pcard__sub { margin-top: 5px; padding-top: 7px; }
  .pcard__note { font-size: 13px; }
  .faq__i summary { font-size: 16px; padding: 16px 36px 16px 0; }
}
@media (prefers-reduced-motion: reduce) { .faq__a { animation: none; } .chead .chip, .tile { transition: none; } }
