/* ===== Mitzpen Credit — landing styles ===== */
/* Brand: change --brand to rebrand the whole site */
:root {
  --brand: #0e7c66;          /* teal-green: trust + growth */
  --brand-dark: #0a5d4c;
  --brand-light: #e7f4f0;
  --accent: #f2a900;         /* warm gold accent */
  --ink: #16202b;            /* main text */
  --ink-soft: #48586a;       /* secondary text (AA contrast on white) */
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f9fb;
  --whatsapp: #25d366;
  --whatsapp-dark: #0f6b34;
  --danger: #c0392b;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(16,32,43,.06);
  --shadow: 0 10px 30px rgba(16,32,43,.10);
  --shadow-lg: 0 24px 60px rgba(16,32,43,.16);
  --container: 1180px;
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --fs-scale: 1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: calc(17px * var(--fs-scale));
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--brand-dark); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* ===== Accessibility helpers ===== */
.skip-link {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 2px; border-radius: 4px; }
::placeholder { color: #5b6b7d; opacity: 1; }

body.a11y-contrast { --ink:#000; --ink-soft:#1a1a1a; --bg:#fff; --bg-soft:#fff; --line:#000; --brand:#055; --brand-dark:#033; --accent:#7a4500; --brand-light:#fff; --whatsapp-dark:#0f6b34; }
body.a11y-contrast .hero { background: #fff; }
body.a11y-links a { text-decoration: underline !important; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== Buttons ===== */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 17px 30px; font-size: 1.08rem; }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(14,124,102,.30); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
/* outline variant for LIGHT backgrounds (btn-ghost is white-on-dark only) */
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-whatsapp { background: var(--whatsapp); color: #06351c; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color:#fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--brand); font-weight: 800; }
.brand-name { font-size: 1.25rem; color: var(--ink); letter-spacing: -.3px; }
.brand-name strong { color: var(--brand); font-weight: 800; }
.brand-logo { color: var(--brand); flex: none; }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .98rem; }
.main-nav a:hover { color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; }
.phone-link:hover { color: var(--brand); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; gap: 6px; padding: 14px 20px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav:not([hidden]) { display: flex; } /* show when JS removes [hidden]; base display:none keeps it closed otherwise */
.mobile-nav a { padding: 10px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.mobile-nav a:hover { background: var(--bg-soft); }
.mobile-nav .btn { margin-top: 6px; }

/* ===== Hero ===== */
.hero { background: linear-gradient(170deg, var(--brand-light) 0%, #f6fbfa 45%, #fff 100%); padding-top: 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: start; }
.eyebrow { color: var(--brand-dark); font-weight: 700; font-size: .9rem; letter-spacing: .4px; text-transform: none; margin-bottom: 14px; }
.eyebrow.center { text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; font-weight: 900; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 .accent { color: var(--brand); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 36em; margin-bottom: 22px; }
.hero-points { list-style: none; display: grid; gap: 11px; margin-bottom: 26px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.hero-points svg { width: 22px; height: 22px; flex: none; fill: #fff; background: var(--brand); border-radius: 50%; padding: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-microcopy { color: var(--ink-soft); font-size: .95rem; }
.hero-urgency { display: flex; align-items: center; gap: 7px; color: var(--brand-dark); font-weight: 600; font-size: .96rem; margin-bottom: 8px; }
.hero-urgency svg { fill: var(--brand-dark); flex: none; } /* was --accent gold (2.01:1, fails non-text contrast); brand-dark is 7.8:1 */
/* a11y panel close button */
.a11y-close { position: absolute; inset-inline-end: 10px; top: 10px; width: 28px; height: 28px; border: 0; background: transparent; color: var(--ink-soft); font-size: 1.1rem; line-height: 1; cursor: pointer; border-radius: 6px; }
.a11y-close:hover, .a11y-close:focus-visible { background: var(--bg-soft); color: var(--ink); }
.trust-statement { max-width: 720px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-sm); }
.trust-statement p { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 22px; }

/* Lead card */
.lead-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; position: sticky; top: 86px; }
.lead-card-head { background: var(--brand); color: #fff; padding: 22px 24px; }
.lead-card-head h2 { font-size: 1.4rem; margin-bottom: 6px; }
.lead-card-head p { font-size: .95rem; opacity: .95; }
.lead-form { padding: 22px 24px 26px; display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .optional { color: var(--ink-soft); font-weight: 400; font-size: .85rem; }
.field input, .field select {
  font-family: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid #6b7280;
  border-radius: 11px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,124,102,.45); outline: 2px solid var(--brand-dark); outline-offset: 1px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .85rem; font-weight: 600; }
.field.consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); }
.field.consent label { font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.field.consent .error { grid-column: 1 / -1; }
.form-reassure { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: .85rem; }
.form-reassure svg { fill: var(--brand); flex: none; }

/* trust strip */
.trust-strip { margin-top: 54px; border-top: 1px solid var(--line); background: #fff; }
.trust-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding-block: 22px; }
.trust-item { text-align: center; }
.trust-item strong { display: block; color: var(--brand-dark); font-size: 1.05rem; }
.trust-item span { color: var(--ink-soft); font-size: .9rem; }

/* ===== Sections ===== */
.section { padding-block: 78px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.6px; margin-bottom: 12px; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; }
.section-sub.small { font-size: .95rem; }

/* Honesty compare */
.honesty { background: var(--bg-soft); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 940px; margin: 0 auto; }
.compare-col { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.compare-col.can { border-top: 5px solid var(--brand); }
.compare-col.cant { border-top: 5px solid #d9534f; }
.compare-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 16px; }
.badge { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.badge.ok { background: var(--brand); }
.badge.no { background: #d9534f; }
.compare-col ul { list-style: none; display: grid; gap: 12px; }
.compare-col li { padding-inline-start: 26px; position: relative; color: var(--ink); }
.compare-col.can li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 800; }
.compare-col.cant li::before { content: "✕"; position: absolute; inset-inline-start: 0; color: #d9534f; font-weight: 800; }
.honesty-foot { text-align: center; max-width: 720px; margin: 30px auto 0; color: var(--ink-soft); font-size: 1.02rem; }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.cards-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 56px; height: 56px; border-radius: 15px; background: var(--brand-light); color: var(--brand-dark); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); }

/* For whom */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 820px; margin: 0 auto; }
.chip { background: var(--brand-light); color: var(--brand-dark); border: 1px solid #cfe7e0; padding: 11px 20px; border-radius: 999px; font-weight: 600; }
.for-whom-cta { text-align: center; margin-top: 30px; font-size: 1.08rem; }

/* Steps */
.how { background: var(--bg-soft); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius-lg); padding: 30px 24px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* Pricing */
.pricing-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.pricing-copy h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; margin-bottom: 14px; }
.pricing-list { list-style: none; display: grid; gap: 12px; margin: 18px 0 26px; }
.pricing-list li { padding-inline-start: 30px; position: relative; }
.pricing-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; width: 22px; height: 22px; background: var(--brand); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.pricing-note { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.pricing-note h3 { margin-bottom: 12px; font-size: 1.3rem; }
.pricing-note p { opacity: .96; }

/* Why */
.why-card { text-align: center; padding: 26px 20px; }
.why-card h3 { color: var(--brand-dark); font-size: 1.2rem; margin-bottom: 8px; }
.why-card p { color: var(--ink-soft); }

/* Testimonials */
.testimonials { background: var(--bg-soft); }
/* (testimonials replaced by .trust-statement) */

/* FAQ */
.accordion { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.acc-item summary { cursor: pointer; padding: 19px 22px; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; color: var(--brand); font-size: 1.6rem; font-weight: 400; line-height: 1; transition: transform .2s; flex: none; }
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 22px 20px; color: var(--ink-soft); }

/* Final CTA */
.final-cta { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; text-align: center; }
.final-inner { max-width: 720px; }
.final-cta h2 { font-size: clamp(1.8rem,3.4vw,2.5rem); font-weight: 800; margin-bottom: 12px; }
.final-cta p { font-size: 1.15rem; opacity: .95; margin-bottom: 28px; }
.final-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Footer */
.site-footer { background: #0f1a22; color: #c7d2dc; padding-top: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-name strong { color: var(--accent); }
.footer-brand p { margin-top: 10px; max-width: 28em; }
.footer-links, .footer-contact { display: grid; gap: 10px; align-content: start; }
.footer-links a, .footer-contact a { color: #c7d2dc; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.disclosure { padding-block: 22px 30px; font-size: .82rem; color: #8da0ae; }
.disclosure p { margin-bottom: 8px; max-width: 90ch; }
.copyright { color: #7d92a2; }

/* Sticky mobile CTA */
.mobile-cta { display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 1100; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.mcta-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; text-decoration: none; color: var(--ink); font-size: .78rem; font-weight: 700; }
.mcta-btn svg { width: 22px; height: 22px; }
.mcta-btn.whatsapp { color: #0f6b34; }
.mcta-btn.primary { background: var(--brand); color: #fff; margin: 7px; border-radius: 10px; justify-content: center; }

/* Accessibility FAB */
.a11y-fab { position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 1100; width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; }
.a11y-fab svg { width: 26px; height: 26px; }
.a11y-panel { position: fixed; inset-inline-start: 16px; bottom: 76px; z-index: 1100; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px; width: 220px; display: grid; gap: 8px; }
.a11y-panel[hidden] { display: none; }
.a11y-panel h3 { font-size: 1rem; margin-bottom: 4px; }
.a11y-panel button { font-family: inherit; padding: 9px 12px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: 9px; cursor: pointer; font-weight: 600; text-align: start; }
.a11y-panel button:hover { background: var(--brand-light); }
.a11y-panel a { font-size: .85rem; margin-top: 4px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .main-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; margin-inline-start: auto; }
  .header-cta { margin-inline-start: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .lead-card { position: static; order: -1; }
  .cards-3, .cards-4, .steps { grid-template-columns: 1fr 1fr; }
  .compare, .pricing-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: calc(16px * var(--fs-scale)); }
  .section { padding-block: 54px; }
  .cards-3, .cards-4, .steps, .trust-inner { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 38px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 64px; }
  .a11y-fab { bottom: 74px; }
  .a11y-panel { bottom: 134px; }
  .hero-actions .btn { flex: 1; }
}

/* ===== Legal / content pages ===== */
.header-inner > .btn { margin-inline-start: auto; }
.legal { max-width: 820px; padding-block: 50px 72px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 8px; letter-spacing: -.5px; }
.legal-updated { color: var(--ink-soft); font-size: .95rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.28rem; margin: 30px 0 10px; color: var(--brand-dark); }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 16px; padding-inline-start: 22px; display: grid; gap: 8px; }
.legal li { color: var(--ink); }
.legal a { color: var(--brand-dark); font-weight: 600; }
.legal-back { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 700; }

/* high-contrast focus indicator for buttons — visible on brand/green/dark backgrounds (WCAG 2.4.7/1.4.11) */
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(0,0,0,.55); }
.btn-outline:focus-visible, .btn-ghost:focus-visible { outline-color: var(--brand-dark); box-shadow: 0 0 0 5px rgba(255,255,255,.9); }

/* ===== Language switcher (HE ⇄ RU) + soft language-suggestion banner ===== */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 34px; padding: 0 11px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 800; font-size: .88rem; color: var(--brand-dark); background: #fff; text-decoration: none; line-height: 1; letter-spacing: .2px; }
.lang-switch:hover { border-color: var(--brand); background: var(--brand-light); }
.lang-switch:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.lang-switch-m { display: block; margin-top: 8px; padding: 12px 0 4px; text-align: center; font-weight: 700; color: var(--brand-dark); text-decoration: none; border-top: 1px solid var(--line); }
.lang-switch-m:hover { text-decoration: underline; }

.lang-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: 540px; margin-inline: auto; padding: 12px 14px; background: var(--brand-dark, #0a5d4c); color: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.28); font-size: .95rem; }
.lang-banner span { flex: 1; }
.lang-banner a { color: #fff; font-weight: 800; text-decoration: underline; white-space: nowrap; }
.lang-banner a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lang-banner button { flex: none; background: transparent; border: 0; color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.lang-banner button:hover { background: rgba(255,255,255,.15); }
.lang-banner button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 700px) { .lang-banner { bottom: 78px; } } /* clear the sticky mobile CTA bar */

/* i18n robustness: long RU button labels are nowrap and can exceed a phone's width (they set the
   min-content of grid/flex items like .hero-copy). Allow buttons to wrap on small screens, and let
   long words break, so neither HE nor RU can force horizontal overflow. */
@media (max-width: 560px) {
  .btn { white-space: normal; }
}
.hero-copy, .section-head, .section-sub, .card, .why-card, .chip, .lead-card { overflow-wrap: break-word; }
