/* KarCrypto shared frosted-glass card style.
   Injected into every HTML page by .htaccess (mod_substitute, before </head>),
   so it follows each page's own inline <style> and wins at equal specificity. */

/* Backlight: soft fixed light behind the page so the glass has something to refract */
body::before,body::after{content:"";position:fixed;z-index:-1;pointer-events:none;width:900px;height:800px}
body::before{left:-380px;top:6%;background:radial-gradient(closest-side,rgba(88,80,236,.16) 0%,rgba(37,99,235,.08) 50%,transparent 100%)}
body::after{right:-420px;bottom:2%;background:radial-gradient(closest-side,rgba(34,190,170,.12) 0%,rgba(29,158,117,.06) 50%,transparent 100%)}

/* Cards: medium blur */
html .related-card,html .reason-card,html .why-card,html .process-item,html .case-card,html .scenario-item,
html .scenario-card,html .exchange-card,html .track-card,html .step-card,html .decision-card,html .tool-card,
html .link-card,html .material-card,html .blog-card,html .trust-card,html .stat-card,html .earn-card,html .card{
  position:relative;border-color:transparent;
  background:linear-gradient(145deg,rgba(255,255,255,.12) 0%,rgba(255,255,255,.045) 42%,rgba(12,22,40,.42) 100%);
  box-shadow:inset 0 1px 0 0 rgba(255,255,255,.20),inset 0 -1px 1px 0 rgba(0,0,0,.22),0 20px 40px -22px rgba(0,0,0,.6);
  -webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);
}
/* Big content blocks: calmer fill so long text stays readable */
html .content-card,html .form-card,html .hero-form-card{
  background:linear-gradient(145deg,rgba(255,255,255,.075) 0%,rgba(255,255,255,.03) 45%,rgba(12,22,40,.40) 100%);
  border-color:rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 0 rgba(255,255,255,.16),inset 0 -1px 1px 0 rgba(0,0,0,.22),0 24px 48px -24px rgba(0,0,0,.6);
  -webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);
}
html .intake-form-wrap{
  background:linear-gradient(145deg,rgba(255,255,255,.075) 0%,rgba(255,255,255,.03) 45%,rgba(12,22,40,.40) 100%);
  box-shadow:inset 0 -1px 1px 0 rgba(0,0,0,.22),0 24px 48px -24px rgba(0,0,0,.6);
  -webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);
}
/* FAQ: long lists, so no blur, only glass fill and rim */
html .faq-item{
  border-color:rgba(255,255,255,.10);
  background:linear-gradient(145deg,rgba(255,255,255,.09) 0%,rgba(255,255,255,.035) 45%,rgba(12,22,40,.40) 100%);
  box-shadow:inset 0 1px 0 0 rgba(255,255,255,.16),inset 0 -1px 1px 0 rgba(0,0,0,.2),0 14px 30px -20px rgba(0,0,0,.55);
}

/* Specular rim (gradient border) for the smaller cards */
html .related-card::before,html .reason-card::before,html .why-card::before,html .process-item::before,html .case-card::before,
html .scenario-item::before,html .scenario-card::before,html .exchange-card::before,html .track-card::before,html .step-card::before,
html .decision-card::before,html .tool-card::before,html .link-card::before,html .material-card::before,html .blog-card::before,html .trust-card::before{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;z-index:3;
  background:linear-gradient(145deg,rgba(255,255,255,.52) 0%,rgba(255,255,255,.10) 32%,rgba(255,255,255,.04) 62%,rgba(255,255,255,.22) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
}

/* Hover: slightly brighter glass */
html .related-card:hover,html .reason-card:hover,html .why-card:hover,html .process-item:hover,html .case-card:hover,
html .scenario-item:hover,html .exchange-card:hover,html .track-card:hover,html .step-card:hover,html .link-card:hover,
html .material-card:hover,html .blog-card:hover,html .trust-card:hover,html .faq-item:hover,html .faq-item.open{
  border-color:transparent;
  background:linear-gradient(145deg,rgba(255,255,255,.17) 0%,rgba(255,255,255,.07) 42%,rgba(12,22,40,.38) 100%);
  box-shadow:inset 0 1px 0 0 rgba(255,255,255,.34),inset 0 -1px 1px 0 rgba(0,0,0,.22),0 26px 48px -20px rgba(0,0,0,.7);
}
html .faq-item:hover,html .faq-item.open{border-color:rgba(255,255,255,.18)}
html .content-card:hover{border-color:rgba(255,255,255,.16);background:linear-gradient(145deg,rgba(255,255,255,.095) 0%,rgba(255,255,255,.04) 45%,rgba(12,22,40,.38) 100%)}

@media (max-width:960px){
  body::before{left:-520px}body::after{right:-560px}
  html .related-card,html .reason-card,html .why-card,html .process-item,html .case-card,html .scenario-item,html .scenario-card,
  html .exchange-card,html .track-card,html .step-card,html .decision-card,html .tool-card,html .link-card,html .material-card,
  html .blog-card,html .trust-card,html .stat-card,html .earn-card,html .card,html .content-card,html .form-card,html .hero-form-card,html .intake-form-wrap{
    -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html .related-card,html .reason-card,html .why-card,html .process-item,html .case-card,html .content-card,html .form-card,html .hero-form-card{
    background:linear-gradient(145deg,rgba(40,58,84,.92),rgba(18,31,50,.95))}
}
@media (prefers-reduced-motion:reduce){html .related-card,html .faq-item{transition:none}}

/* Desktop menu capsule (Услуги / Ресурсы / Компания): lighter frosted glass instead of a heavy dark pill.
   :not(.mobile-open) keeps the mobile drawer untouched. */
html .nav-center:not(.mobile-open){
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 10px 30px -14px rgba(0,0,0,.45);
}
/* Brighter menu text inside the desktop capsule (was muted slate #94A3B8) */
html .nav-center:not(.mobile-open) .nav-dropdown-trigger,
html .nav-center:not(.mobile-open)>.nav-link{color:#F1F5F9}
html .nav-center:not(.mobile-open) .nav-dropdown-trigger:hover,
html .nav-center:not(.mobile-open) .nav-item.open>.nav-dropdown-trigger,
html .nav-center:not(.mobile-open)>.nav-link:hover{color:#FFFFFF}

/* Readable captions: the muted text token was #64748B (3.7:1 on the navy, 2.9:1 on glass cards),
   which made small labels like "Заморозка и вывод" nearly invisible. Raised to #94A3B8 (6.8:1). */
html:root{--text-muted:#94A3B8}
/* Light panels (tables, scam-report form, search box) keep the darker tone, #94A3B8 would fade on white */
html .comparison-table,html .search-section,html .info-card,html .report-card,html .result-panel-inner,html .form-input-light{--text-muted:#64748B}
/* Footer text that was hardcoded to a dark slate */
html .footer-tagline,html .footer-bottom p,html .footer-col-links a:not(:hover),html .footer-legal a:not(:hover){color:#94A3B8}
/* Inline style="color:#64748B" captions (hardcoded, not via the variable) */
html [style*="color:#64748b" i],html [style*="color: #64748b" i]{color:#94A3B8 !important}
html .comparison-table [style*="color:#64748b" i],html .comparison-table [style*="color: #64748b" i],
html .search-section [style*="color:#64748b" i],html .search-section [style*="color: #64748b" i],
html .info-card [style*="color:#64748b" i],html .info-card [style*="color: #64748b" i],
html .report-card [style*="color:#64748b" i],html .report-card [style*="color: #64748b" i],
html .result-panel-inner [style*="color:#64748b" i],html .result-panel-inner [style*="color: #64748b" i]{color:#64748B !important}

/* Compact FAQ on service pages: items after the 5th are folded behind a button */
html .faq-item.faq-extra{display:none}
html .faq-more{display:block;grid-column:1/-1;margin:18px auto 0;padding:11px 24px;border-radius:999px;font-family:var(--font-heading,inherit);font-size:14px;font-weight:600;color:#E8EDF3;cursor:pointer;
  background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.2);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:background .25s,border-color .25s}
html .faq-more:hover{background:linear-gradient(145deg,rgba(255,255,255,.2),rgba(255,255,255,.08));border-color:rgba(255,255,255,.4);color:#fff}

/* Mobile overflow guards: grid children must be allowed to shrink, long tokens (paths, URLs) must wrap */
@media (max-width:768px){
  .article-wrap>*,.case-grid>*,.link-grid>*{min-width:0}
  .article-body,.link-card,.case-card{overflow-wrap:anywhere}
  .link-card--wide{grid-column:auto}
}

/* Yandex Maps reviews widget block */
.ya-reviews{padding:56px 0}
.ya-reviews .section-h2{margin-bottom:10px}
.ya-reviews-lead{max-width:640px;margin:0 auto 22px;text-align:center;color:var(--text-secondary,#94A3B8);font-size:15px;line-height:1.65}
.ya-reviews-frame{max-width:760px;height:clamp(500px,82vh,760px);height:clamp(500px,82svh,760px);margin:0 auto;border-radius:16px;overflow:hidden;border:1px solid rgba(201,168,76,.28);background:#fff;box-shadow:0 18px 50px rgba(0,0,0,.28)}
.ya-reviews-frame iframe{display:block;width:100%;height:100%;border:0}
.ya-reviews-links{margin:16px auto 0;text-align:center;font-size:14px;color:var(--text-secondary,#94A3B8)}
.ya-reviews-links a{color:var(--gold,#C9A84C);text-decoration:none;border-bottom:1px solid rgba(201,168,76,.4)}
.ya-reviews-links a:hover{border-bottom-color:var(--gold,#C9A84C)}
@media (max-width:768px){.ya-reviews{padding:40px 0}.ya-reviews-frame{height:clamp(500px,78vh,680px);height:clamp(500px,78svh,680px);border-radius:12px}}

.ya-reviews .section-label,.ya-reviews .section-h2{text-align:center}

/* Footer grid: brand + four link columns (RU/EN full footer). Pages ship their own
   column rules that leave the fifth cell alone on a new row at mid widths. Here the
   brand takes a full row below 1100px, so the four link columns always fill the rest
   (4 across, then 2 x 2, then 1) and no cell is left orphaned. The LP footer has fewer
   cells and is not matched. */
html .footer-ext-grid > *{min-width:0}
html .footer-ext-grid .footer-col-links a{overflow-wrap:anywhere}
@media (max-width:1100px){
  html .footer-ext-grid:has(> :nth-child(5)){grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 24px}
  html .footer-ext-grid:has(> :nth-child(5)) > .footer-brand{grid-column:1 / -1;max-width:520px}
}
@media (max-width:760px){
  html .footer-ext-grid:has(> :nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}
}
@media (max-width:380px){
  html .footer-ext-grid:has(> :nth-child(5)){grid-template-columns:minmax(0,1fr);gap:24px}
}

/* Testimonial carousel: slides are stacked in one grid cell. A cross-fade left the
   outgoing slide painted under the incoming one on iOS Safari (texts overlapping while
   swiping). The outgoing slide now disappears at once and only the new one fades in,
   so two slides are never visible together. */
html .testimonial-slide{opacity:0;visibility:hidden;transition:none;animation:none}
html .testimonial-slide.active{opacity:1;visibility:visible;animation:kcSlideIn .4s ease both}
@keyframes kcSlideIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){html .testimonial-slide.active{animation:none}}
