/* ============================================================
   natan-catalog · site.css
   Компоненты перенесены из natan-ui/design-book и адаптированы
   под маркетинговую страницу. ВСЕ цвета/тени/радиусы — только
   var(--token) из tokens.css. Ноль hex-кодов здесь.
   ============================================================ */

/* ---------- каркас ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--border); }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { letter-spacing: -.01em; margin: 0; }
h1 { font-size: 34px; font-weight: 700; line-height: 1.15; }
h2, .h2 { font-size: 24px; font-weight: 700; }
.section-head .h2 { margin-bottom: 8px; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 640px; }
.eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.section-head { margin-bottom: 28px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; }
.brand-link .logo { display: block; height: 30px; width: auto; }
.brand-tag { font-size: 12.5px; color: var(--muted); border-left: 1px solid var(--border); padding-left: 10px; white-space: nowrap; }
@media (max-width: 599px) { .brand-tag { display: none; } }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-radius: var(--radius-sm); transition: color .15s, background .15s; }
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-cta { margin-left: 6px; }
.nav a.nav-cta { color: var(--card); }
.nav a.nav-cta:hover { color: var(--card); background: var(--primary-hover); }
@media (max-width: 767px) {
  .nav .nav-links { display: none; }
}

/* ---------- кнопки (лекало natan-ui) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; padding: 11px 20px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .12s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: var(--card); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--primary-hover); color: var(--card); }
.btn-secondary { background: var(--card); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { background: var(--brand-soft); }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- теги / чипы ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag.t-brand { color: var(--card); background: var(--brand); }
.tag.t-neutral { color: var(--muted); background: var(--brand-soft); }
.tag.t-ok { color: var(--ok); background: var(--ok-soft); }
.result-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); }
.result-tag .tnum { font-variant-numeric: tabular-nums; }

/* ---------- герой ---------- */
.hero { padding: 68px 0 60px; }
.hero h1 { max-width: 760px; }
.hero .lead { margin-top: 16px; font-size: 17px; max-width: 620px; }
.hero .hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- сетки ---------- */
.grid { display: grid; gap: 18px; }
.grid-cats { grid-template-columns: repeat(4, 1fr); }
.grid-products { grid-template-columns: repeat(3, 1fr); }
.grid-trust { grid-template-columns: repeat(3, 1fr); }
.grid-steps { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) {
  .grid-cats { grid-template-columns: repeat(2, 1fr); }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .grid-cats, .grid-products, .grid-trust, .grid-steps { grid-template-columns: 1fr; }
  h1 { font-size: 27px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 44px 0; }
}

/* ---------- карточка категории ---------- */
.cat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 20px; transition: border-color .15s, transform .12s; display: block; }
.cat-card:hover { border-color: var(--brand); }
.cat-card h3 { margin-bottom: 6px; transition: color .15s; }
.cat-card:hover h3 { color: var(--brand); }
.cat-card p { color: var(--muted); font-size: 13.5px; margin: 0; }
.cat-card .cat-count { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ---------- карточка продукта ---------- */
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.product-card:hover { border-color: var(--brand); }
.product-card .poster-wrap { aspect-ratio: 16 / 9; background: var(--brand-soft); border-bottom: 1px solid var(--border); overflow: hidden; }
.product-card .poster-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .pc-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card .pc-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.product-card h3 { transition: color .15s; }
.product-card:hover h3 { color: var(--brand); }
.product-card .pc-summary { color: var(--muted); font-size: 13.5px; margin: 0; flex: 1; }
.product-card .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.product-card .pc-price { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-card .pc-price .muted { color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------- блок доверия ---------- */
.trust-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.trust-item .ti-mark { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--brand); color: var(--card); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.trust-item .ti-mark svg { width: 18px; height: 18px; stroke: var(--card); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-item h3 { margin-bottom: 6px; }
.trust-item p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- шаги «как заказать» ---------- */
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step .step-num { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---------- финальный CTA ---------- */
.cta-band { background: var(--brand-soft); border-radius: var(--radius); padding: 40px; text-align: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; }

/* ---------- страница продукта ---------- */
.product-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
@media (max-width: 899px) { .product-hero { grid-template-columns: 1fr; gap: 26px; } }
.product-hero h1 { font-size: 30px; }
.product-hero .lead { margin-top: 14px; }
.product-hero .ph-result { margin-top: 18px; }
.media-frame { aspect-ratio: 16 / 9; background: var(--brand-soft); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; }
.media-frame img, .media-frame video, .media-frame iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.media-frame .play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.media-frame .play-btn .play-disc { width: 62px; height: 62px; border-radius: 999px; background: var(--brand); color: var(--card); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-btn); transition: transform .12s; }
.media-frame .play-btn:hover .play-disc { transform: scale(1.06); }
.media-frame .play-btn svg { width: 24px; height: 24px; fill: var(--card); margin-left: 3px; }

/* блок цен */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 0; }
@media (max-width: 599px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.price-card .pc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.price-card .pc-value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-card .pc-value .unit { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-card .pc-note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* контентные секции продукта */
.prose { max-width: 720px; }
.prose h2 { font-size: 20px; margin: 32px 0 12px; }
.prose h3 { font-size: 16px; margin: 24px 0 8px; }
.prose p { color: var(--fg); line-height: 1.6; margin: 0 0 12px; }
.prose ul, .prose ol { color: var(--fg); line-height: 1.6; padding-left: 20px; margin: 0 0 12px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--brand); }
.prose a:hover { color: var(--primary-hover); }

.pb-block { max-width: 720px; margin-bottom: 8px; }
.pb-block h2 { font-size: 20px; margin: 0 0 10px; }
.pb-block p { color: var(--fg); line-height: 1.6; }
.results-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.results-list li { display: flex; align-items: flex-start; gap: 10px; }
.results-list li .result-tag { flex: none; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 720px; }
@media (max-width: 599px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); display: block; }

.stack-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 720px; }
.stack-line .stack-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-right: 4px; }
.stack-line .stack-chip { font-size: 12px; color: var(--muted); background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; }

/* ---------- форма заявки ---------- */
.lead-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 24px; max-width: 560px; }
.lead-form h3 { margin-bottom: 4px; }
.lead-form .lf-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 14px; outline: none; background: var(--card); color: var(--fg); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { resize: vertical; min-height: 88px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.consent input { margin-top: 2px; flex: none; width: 15px; height: 15px; accent-color: var(--brand); }
.consent a { color: var(--brand); }
.form-note { font-size: 13px; margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-sm); display: none; }
.form-note.is-ok { display: block; color: var(--ok); background: var(--ok-soft); }
.form-note.is-bad { display: block; color: var(--bad); background: var(--bad-soft); }

/* ---------- заглушки / пусто ---------- */
.empty-state { background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-state .es-dash { font-size: 28px; color: var(--faint); margin-bottom: 10px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0; }
.notfound .nf-code { font-size: 60px; font-weight: 700; color: var(--brand-soft); font-variant-numeric: tabular-nums; line-height: 1; }
.notfound h1 { margin: 12px 0 8px; }
.notfound p { color: var(--muted); margin-bottom: 22px; }

/* ---------- футер ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 32px 0; margin-top: 8px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer .ft-brand { font-weight: 700; }
.site-footer .ft-links { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--muted); font-size: 13.5px; }
.site-footer a:hover { color: var(--brand); }
.site-footer .ft-copy { color: var(--faint); font-size: 12.5px; width: 100%; }

/* ---------- «похожие» ---------- */
.related .grid-products { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767px) { .related .grid-products { grid-template-columns: 1fr; } }

/* breadcrumbs */
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { color: var(--faint); margin: 0 6px; }
