/* ============================================================
   STATIX · components.css — переиспользуемые блоки
   Подключать ПОСЛЕ style.css, ДО responsive.css
   Каталог и правила: /styleguide.html + /DESIGN-SYSTEM.md
   ============================================================ */

/* ─── PRICING ─── */
.pricing { padding: 0 var(--pad) var(--gap-y); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.price-card {
  background: var(--bg);
  padding: clamp(1.4rem, 3vw, 2.5rem);
  display: flex; flex-direction: column;
  transition: background .5s;
}
.price-card:hover { background: #060606; }
.price-card.featured {
  background: #060606;
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.price-head {
  font-family: var(--matricha); font-size: var(--fs3); font-weight: normal;
  letter-spacing: .03em; margin-bottom: .8rem;
}
.price-num { font-family: var(--matricha); font-size: var(--fs4); line-height: 1; margin-bottom: .4rem; }
.price-num .a { color: var(--accent); }
.price-term { font-size: var(--fs-sm); color: var(--dim); margin-bottom: 1.5rem; font-weight: 300; }
.price-list { list-style: none; margin: 0 0 1.5rem; flex: 1; }
.price-list li {
  font-size: var(--fs-sm); color: var(--dim); line-height: 1.6; font-weight: 300;
  padding: .4rem 0 .4rem 1.2rem; position: relative; border-bottom: 1px solid var(--border);
}
.price-list li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 5px; height: 1px; background: var(--accent); }
.price-btn {
  width: 100%; min-height: var(--tap); border: 1px solid var(--fg); background: transparent;
  color: var(--fg); font-family: var(--inter); font-size: var(--fs-sm); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: all .3s; padding: .8rem 1rem;
}
.price-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ─── STEPS / PROCESS ─── */
.steps { padding: 0 var(--pad) var(--gap-y); }
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.step { background: var(--bg); padding: clamp(1.4rem, 3vw, 2rem); position: relative; transition: background .5s; }
.step:hover { background: #060606; }
.step-num { font-family: var(--matricha); font-size: var(--fs4); color: var(--dim2); line-height: 1; margin-bottom: 1.2rem; }
.step h3 { font-family: var(--matricha); font-size: var(--fs2); font-weight: normal; letter-spacing: .03em; margin-bottom: .7rem; }
.step p { font-size: var(--fs-sm); color: var(--dim); line-height: 1.7; font-weight: 300; }

/* ─── FAQ (нативный <details>) ─── */
.faq { padding: 0 var(--pad) var(--gap-y); max-width: 900px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: .4rem 0;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.2rem 0; font-family: var(--matricha); font-size: var(--fs2);
  font-weight: normal; letter-spacing: .02em; color: var(--fg);
  transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-x { position: relative; flex: 0 0 24px; height: 24px; }
.faq-x::before, .faq-x::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.5px; background: var(--accent);
  transition: transform .3s;
}
.faq-x::before { transform: translate(-50%, -50%); }
.faq-x::after  { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-x::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 0 1.5rem; }
.faq-a p { font-size: var(--fs-sm); color: var(--dim); line-height: 1.8; font-weight: 300; max-width: 60ch; }
.faq-a a { color: var(--accent); }

/* ─── QUOTES / TESTIMONIALS (заполнить реальными отзывами) ─── */
.quotes { padding: 0 var(--pad) var(--gap-y); }
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.quote { background: var(--bg); padding: clamp(1.4rem, 3vw, 2.5rem); display: flex; flex-direction: column; }
.quote-mark { font-family: var(--matricha); font-size: var(--fs5); color: var(--accent); line-height: .6; margin-bottom: 1rem; }
.quote-text { font-size: var(--fs-sm); color: var(--dim); line-height: 1.8; font-weight: 300; flex: 1; }
.quote-author { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.quote-author .qa-name { font-family: var(--matricha); font-size: var(--fs-sm); color: var(--fg); }
.quote-author .qa-role { font-size: var(--fs-xs); color: var(--dim); margin-top: .2rem; }

/* ─── ASSURE / GUARANTEES ─── */
.assure { padding: 0 var(--pad) var(--gap-y); }
.assure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.assure-item { background: var(--bg); padding: clamp(1.4rem, 3vw, 2rem); transition: background .5s; }
.assure-item:hover { background: #060606; }
.assure-item .ai-mark { font-family: var(--matricha); font-size: var(--fs3); color: var(--accent); line-height: 1; margin-bottom: .8rem; }
.assure-item h3 { font-family: var(--matricha); font-size: var(--fs2); font-weight: normal; margin-bottom: .5rem; }
.assure-item p { font-size: var(--fs-sm); color: var(--dim); line-height: 1.6; font-weight: 300; }

/* ─── INLINE CTA ─── */
.inline-cta {
  margin: 0 var(--pad); padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--border); background: #040404;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  flex-wrap: wrap;
}
.inline-cta h3 { font-family: var(--matricha); font-size: var(--fs3); font-weight: normal; letter-spacing: .02em; }
.inline-cta h3 .accent { color: var(--accent); }
.inline-cta p { font-size: var(--fs-sm); color: var(--dim); font-weight: 300; margin-top: .5rem; }

/* ─── RESPONSIVE (компоненты) ─── */
@media (max-width: 900px) {
  .pricing-grid, .quotes-grid { grid-template-columns: 1fr; }
  .steps-grid, .assure-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .steps-grid, .assure-grid { grid-template-columns: 1fr; }
  .inline-cta { flex-direction: column; align-items: flex-start; }
}

/* ─── FOOTER LINKS ─── */
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--dim); text-decoration: none; font-size: var(--fs-sm); transition: color .3s; }
.footer-links a:hover { color: var(--accent); }
@media (max-width: 520px) { .footer-links { gap: 1rem; width: 100%; order: 3; } }

/* ─── STYLEGUIDE (только для /styleguide.html) ─── */
.sg-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.sg-title { font-family: var(--matricha); font-size: var(--fs5); margin: 2rem 0 .5rem; }
.sg-lead { color: var(--dim); max-width: 60ch; line-height: 1.7; margin-bottom: 3rem; }
.sg-block { border: 1px solid var(--border); margin-bottom: 2rem; background: #060606; }
.sg-block > h3 { font-family: var(--matricha); font-size: var(--fs2); font-weight: normal; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
.sg-demo { padding: 1.5rem; }
.sg-code { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: #0a0a0a; overflow-x: auto; }
.sg-code pre { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; line-height: 1.6; color: var(--dim); white-space: pre; }
.sg-swatch { display: inline-block; width: 100%; aspect-ratio: 2/1; border: 1px solid var(--border); margin-bottom: .4rem; }
.sg-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.sg-palette .sw-name { font-size: var(--fs-xs); color: var(--dim); }
.sg-palette .sw-val { font-size: var(--fs-xs); color: var(--dim2); font-family: ui-monospace, monospace; }
.sg-type-row { display: flex; align-items: baseline; gap: 2rem; padding: .8rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sg-type-row .lbl { flex: 0 0 140px; font-size: var(--fs-xs); color: var(--dim2); font-family: ui-monospace, monospace; }
