/* ============================================================
   SCHET115.RU — Template-page styles
   (loaded by all template pages, in addition to styles.css + components.css)
   ============================================================ */

/* ---------- Breadcrumbs ---------- */
.crumbs { border-bottom: 1px solid var(--border); background: var(--white); }
.crumbs__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-block: 14px; font-size: var(--fs-sm); }
.crumbs__row a { color: var(--slate-500); font-weight: 500; transition: color .15s; }
.crumbs__row a:hover { color: var(--blue-600); }
.crumbs__cur { color: var(--navy-900); font-weight: 600; }
.crumbs__sep { display: inline-flex; color: var(--slate-300); }
.crumbs__sep svg { width: 14px; height: 14px; }

/* ---------- Mid-page CTA band ---------- */
.ctaband { margin-block: clamp(40px, 6vw, 72px); }
.ctaband__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; flex-wrap: wrap; }
.ctaband__inner::before { content: ""; position: absolute; right: -8%; top: -60%; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.35), transparent 70%); }
.ctaband__h { color: #fff; font-size: var(--fs-h3); position: relative; }
.ctaband__p { color: var(--slate-400); font-size: var(--fs-body); margin-top: 8px; max-width: 460px; position: relative; }
.ctaband__inner .btn { position: relative; flex-shrink: 0; }

/* ---------- Template hero (generic) ---------- */
.thero { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 44px); position: relative; }
.thero--tint { background: var(--bg-tint); border-bottom: 1px solid var(--border); }
.thero__inner { max-width: 860px; }
.thero__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.thero h1 { font-size: var(--fs-h1); margin-bottom: 16px; }
.thero__lead { font-size: var(--fs-lead); color: var(--slate-600); max-width: 680px; margin-bottom: 26px; }
.thero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Two-column content + sticky aside ---------- */
.tlayout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(32px, 4vw, 60px); align-items: start; }
.taside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.tcard { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 22px; }
.tcard__h { font-weight: 700; color: var(--navy-900); font-size: 1.05rem; margin-bottom: 6px; }
.tcard__p { font-size: var(--fs-sm); color: var(--slate-500); margin-bottom: 16px; }

/* ---------- Content prose ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: var(--fs-h3); margin: 40px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.prose p { font-size: 1.06rem; line-height: 1.75; color: var(--slate-700); margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--slate-700); line-height: 1.7; }
.prose li { margin-bottom: 8px; font-size: 1.04rem; }
.prose strong { color: var(--navy-900); font-weight: 700; }
.prose p a, .prose li a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* generic section spacing inside templates */
.tsection { padding-block: clamp(40px, 5vw, 72px); }
.tsection--tint { background: var(--bg-tint); }
.tsection__head { max-width: 640px; margin-bottom: 32px; }
.tsection__head h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.tsection__head p { font-size: var(--fs-lead); color: var(--slate-500); }

@media (max-width: 920px) {
  .tlayout { grid-template-columns: 1fr; }
  .taside { position: static; order: 2; }
}

/* ---------- TOC ---------- */
.toc { display: flex; flex-direction: column; gap: 1px; }
.toc__link { display: block; padding: 7px 12px; border-left: 2px solid var(--border); font-size: var(--fs-sm); font-weight: 500; color: var(--slate-500); transition: all .15s; }
.toc__link:hover { color: var(--navy-900); border-color: var(--slate-400); }
.toc__link.is-active { color: var(--blue-700); border-color: var(--blue-600); font-weight: 600; background: var(--blue-50); }

/* ---------- Reading progress bar ---------- */
.rprog { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); z-index: 120; width: 0; transition: width .1s linear; }

/* ---------- Article meta ---------- */
.amteta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--slate-500); font-size: var(--fs-sm); }
.figph { border-radius: var(--r-lg); background: linear-gradient(135deg, var(--slate-100), var(--blue-50)); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--slate-400); font-size: var(--fs-sm); aspect-ratio: 16/9; margin: 8px 0 22px; gap: 8px; }
.figph svg { width: 22px; height: 22px; }

/* ---------- Callout box in prose ---------- */
.callout { border-radius: var(--r-md); padding: 18px 20px; margin: 22px 0; display: flex; gap: 14px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.6; }
.callout svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.callout--warn { background: var(--warn-100); color: #7c5104; } .callout--warn svg { color: var(--warn-600); }
.callout--info { background: var(--blue-50); color: var(--navy-800); } .callout--info svg { color: var(--blue-600); }
.callout--safe { background: var(--safe-100); color: #065f3f; } .callout--safe svg { color: var(--safe-600); }
.callout b { display: block; margin-bottom: 3px; }

/* ---------- Service template ---------- */
.svc__causes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.svc__cause { display: flex; gap: 13px; background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; }
.svc__cause-ic { display: inline-flex; width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--border); color: var(--blue-600); align-items: center; justify-content: center; flex-shrink: 0; }
.svc__cause-ic svg { width: 19px; height: 19px; }
.svc__cause b { color: var(--navy-900); font-size: 1rem; }
.svc__cause p { font-size: var(--fs-sm); color: var(--slate-500); margin-top: 3px; line-height: 1.5; }

.svc__steps { display: flex; flex-direction: column; gap: 4px; margin: 22px 0; }
.svc__step { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.svc__step:last-child { border-bottom: none; }
.svc__step-n { font-size: 1.4rem; font-weight: 800; color: var(--blue-600); letter-spacing: -.03em; flex-shrink: 0; width: 44px; }
.svc__step b { color: var(--navy-900); font-size: 1.1rem; }
.svc__step p { font-size: var(--fs-sm); color: var(--slate-500); margin-top: 4px; }

.svc__pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.svc__plan { position: relative; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 20px; background: #fff; display: flex; flex-direction: column; }
.svc__plan--best { border-color: var(--blue-500); box-shadow: var(--sh-glow); }
.svc__plan-badge { position: absolute; top: -11px; left: 20px; background: var(--blue-600); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: var(--r-pill); }
.svc__plan-name { font-weight: 700; color: var(--navy-900); font-size: 1.1rem; }
.svc__plan-note { font-size: var(--fs-xs); color: var(--slate-500); margin: 2px 0 14px; }
.svc__plan-price { font-size: 1.5rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; margin-bottom: 16px; }
.svc__plan-feats { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.svc__plan-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-sm); color: var(--slate-700); }
.svc__plan-feats svg { width: 16px; height: 16px; color: var(--safe-600); flex-shrink: 0; margin-top: 2px; }

.svc__cases { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.svc__case { border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; transition: border-color .2s, transform .2s; display: block; }
.svc__case:hover { border-color: var(--blue-400); transform: translateY(-2px); }
.svc__case-bank { font-weight: 700; color: var(--navy-900); margin: 12px 0 8px; }
.svc__case-row b { font-size: 1.25rem; color: var(--safe-600); }
.svc__case-row span { font-size: var(--fs-xs); color: var(--slate-500); margin-left: 8px; }

.svc__form { display: flex; flex-direction: column; gap: 10px; }
.aside__link { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: var(--fs-sm); font-weight: 500; color: var(--slate-700); border-bottom: 1px solid var(--border); transition: color .15s; }
.aside__link:last-child { border-bottom: none; }
.aside__link:hover { color: var(--blue-600); }
.aside__link svg { color: var(--slate-400); flex-shrink: 0; }

@media (max-width: 680px) {
  .svc__causes, .svc__pricing, .svc__cases { grid-template-columns: 1fr; }
}

/* ---------- Article template ---------- */
.artcta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--r-lg); padding: 20px 24px; margin: 26px 0; }
.artcta b { display: block; color: var(--navy-900); font-size: 1.1rem; }
.artcta span { font-size: var(--fs-sm); color: var(--slate-600); }
.artcta .btn { flex-shrink: 0; }

.zsk { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.zsk__row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-md); font-size: 1rem; color: var(--slate-700); border: 1px solid var(--border); }
.zsk__row b { color: var(--navy-900); }
.zsk__row--safe { background: color-mix(in srgb, var(--safe-100) 45%, #fff); border-color: var(--safe-100); }
.zsk__row--warn { background: color-mix(in srgb, var(--warn-100) 45%, #fff); border-color: var(--warn-100); }
.zsk__row--risk { background: color-mix(in srgb, var(--risk-100) 45%, #fff); border-color: var(--risk-100); }
.zsk__row .dot { width: 11px; height: 11px; flex-shrink: 0; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related__card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s; }
.related__card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.related__card h4 { font-size: 1.05rem; color: var(--navy-900); line-height: 1.3; flex: 1; }
.related__meta { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--slate-500); font-weight: 500; }

@media (max-width: 680px) {
  .related { grid-template-columns: 1fr; }
  .artcta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Bank template ---------- */
.bankhero { display: flex; gap: 24px; align-items: flex-start; }
.bankhero__logo { width: 76px; height: 76px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 2.2rem; flex-shrink: 0; box-shadow: var(--sh-md); }
.bankhero__main { min-width: 0; }
.bankstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bankstat { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 22px; }
.bankstat__v { font-size: 1.6rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; }
.bankstat__l { font-size: var(--fs-sm); color: var(--slate-500); margin-top: 2px; }

.banktriggers { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.banktrigger { display: flex; gap: 16px; background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 20px; }
.banktrigger__n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: var(--fs-sm); }
.banktrigger b { color: var(--navy-900); }
.banktrigger p { font-size: var(--fs-sm); color: var(--slate-500); margin-top: 3px; }

.bankcase { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.bankcase:last-child { border-bottom: none; }
.bankcase__amt { font-weight: 800; color: var(--safe-600); font-size: 1.1rem; }

@media (max-width: 680px) {
  .bankhero { flex-direction: column; gap: 16px; }
  .bankstats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Case template ---------- */
.casemetrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.casemetric { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: 22px; }
.casemetric__v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.casemetric__v--safe { color: var(--safe-600); } .casemetric__v--blue { color: var(--blue-600); } .casemetric__v--ink { color: var(--navy-900); }
.casemetric__l { font-size: var(--fs-sm); color: var(--slate-500); margin-top: 2px; }

.timeline { margin-top: 18px; }
.tl { display: flex; gap: 18px; }
.tl__marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.tl__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--blue-600); border: 3px solid var(--blue-100); margin-top: 4px; }
.tl__line { width: 2px; flex: 1; background: var(--border-strong); margin: 4px 0; }
.tl__body { padding-bottom: 26px; }
.tl__day { font-size: var(--fs-xs); font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: .04em; }
.tl__body b { display: block; color: var(--navy-900); font-size: 1.1rem; margin: 4px 0 4px; }
.tl__body p { font-size: var(--fs-sm); color: var(--slate-600); }

.quote { margin: 24px 0 0; padding: 24px 26px; background: var(--bg-tint); border-left: 3px solid var(--blue-500); border-radius: 0 var(--r-md) var(--r-md) 0; position: relative; }
.quote svg { width: 30px; height: 30px; color: var(--blue-200, #c7dafe); position: absolute; top: 18px; right: 22px; opacity: .5; }
.quote p { font-size: 1.15rem; line-height: 1.6; color: var(--navy-800); font-weight: 500; margin: 0 0 12px; }
.quote footer { font-size: var(--fs-sm); color: var(--slate-500); } .quote footer b { color: var(--navy-900); }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--slate-500); } .kv b { color: var(--navy-900); text-align: right; }

@media (max-width: 680px) { .casemetrics { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Problem template ---------- */
.prob__risks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.prob__risk { background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.prob__risk-ic { display: inline-flex; width: 42px; height: 42px; border-radius: 11px; background: var(--risk-100); color: var(--risk-600); align-items: center; justify-content: center; margin-bottom: 12px; }
.prob__risk-ic svg { width: 21px; height: 21px; }
.prob__risk b { color: var(--navy-900); font-size: 1.05rem; }
.prob__risk p { font-size: var(--fs-sm); color: var(--slate-500); margin-top: 5px; }

.checklist { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.checkitem { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--sh-xs); }
.checkitem__n { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-600); color: #fff; font-weight: 700; font-size: var(--fs-sm); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checkitem p { font-size: 1rem; color: var(--slate-700); margin: 0; }

@media (max-width: 680px) { .prob__risks { grid-template-columns: 1fr; } }

/* ---------- FAQ hub template ---------- */
.faqsearch { position: relative; margin-top: 24px; }
.faqsearch svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--slate-400); }
.faqsearch input { width: 100%; height: 56px; border: 1.5px solid var(--border-strong); border-radius: var(--r-pill); padding: 0 22px 0 50px; font-size: 1.05rem; font-family: inherit; color: var(--navy-900); outline: none; background: #fff; box-shadow: var(--sh-sm); transition: border-color .15s, box-shadow .15s; }
.faqsearch input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-50); }

.faqcats { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 28px; }
.faqcat { padding: 9px 17px; border-radius: var(--r-pill); border: 1.5px solid var(--border-strong); background: #fff; font-size: var(--fs-sm); font-weight: 600; color: var(--slate-600); transition: all .15s; }
.faqcat:hover { border-color: var(--blue-400); color: var(--blue-700); }
.faqcat.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.faqhub { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(28px,4vw,52px); align-items: start; }
.faqtag { font-size: var(--fs-xs); font-weight: 700; color: var(--blue-600); background: var(--blue-50); padding: 2px 9px; border-radius: var(--r-pill); margin-right: 8px; }

@media (max-width: 920px) { .faqhub { grid-template-columns: 1fr; } }
