:root {
  --navy: #0B1730;
  --navy-2: #0F1E3D;
  --blue: #2F6BFF;
  --blue-light: #8FB4FF;
  --ink: #16213E;
  --text: #2B3350;
  --muted: #6B7592;
  --bg: #FFFFFF;
  --bg-alt: #F4F7FD;
  --border: #E4E9F5;
  --radius: 14px;
  --container: 1160px;
  --shadow: 0 12px 30px rgba(15, 30, 61, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 780px; }

h1, h2, h3 { color: var(--ink); font-weight: 800; line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p { margin: 0 0 12px; color: var(--text); }
a { color: var(--blue); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: -8px auto 40px; font-size: 1.05rem; }
.lead-text { text-align: center; font-size: 1.15rem; color: var(--muted); }
.align-left { text-align: left; }

.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.problem-img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(47,107,255,0.35); }
.btn-primary:hover { background: #2558E0; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}
.logo span b { color: var(--blue); font-weight: 800; }

.main-nav { display: flex; gap: 24px; }
.main-nav a { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--blue); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.phone-link { font-weight: 700; color: var(--ink); font-size: 0.98rem; white-space: nowrap; }
.phone-link:hover { color: var(--blue); }
.email-link { font-weight: 500; color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.email-link:hover { color: var(--blue); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; }

/* Hero */
.hero { padding: 72px 0 60px; background: linear-gradient(180deg, #F4F7FD 0%, #FFFFFF 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 0.82rem; margin-bottom: 12px; }
.hero-sub { font-size: 1.08rem; color: var(--muted); max-width: 560px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 22px 0 30px; }
.hero-points li { position: relative; padding-left: 22px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Trust bar */
.trust-bar { background: var(--navy); padding: 34px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-item { display: flex; flex-direction: column; gap: 4px; color: #C6D3F5; font-size: 0.9rem; }
.trust-num { font-size: 1.9rem; font-weight: 800; color: #fff; }

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: #EAF0FF;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card p { color: var(--muted); font-size: 0.94rem; margin: 0 0 14px; }
.card-diagram { display: block; width: 100%; height: auto; }

.card-diagram-wrap {
  position: relative;
  display: block; width: 100%;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; margin-bottom: 14px; box-sizing: border-box;
  cursor: pointer; font: inherit; text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card-diagram-wrap:hover, .card-diagram-wrap:focus-visible { border-color: var(--blue); box-shadow: var(--shadow); outline: none; }
.card-diagram-wrap::after {
  content: "";
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  opacity: 0; transform: scale(.85);
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 4px 10px rgba(47,107,255,0.35);
}
.card-diagram-wrap:hover::after, .card-diagram-wrap:focus-visible::after { opacity: 1; transform: scale(1); }

/* Diagram lightbox */
.diagram-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.diagram-modal.is-open { display: flex; }
.diagram-modal-backdrop { position: absolute; inset: 0; background: rgba(11,23,48,0.72); backdrop-filter: blur(2px); }
.diagram-modal-box {
  position: relative; z-index: 1;
  background: #fff; border-radius: 18px; padding: 28px 28px 22px;
  max-width: 900px; width: 100%; max-height: 88vh; overflow: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.diagram-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.diagram-modal-close:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.diagram-modal-title { font-size: 1.25rem; margin: 0 44px 16px 0; }
.diagram-modal-img { display: block; width: 100%; height: auto; background: var(--bg-alt); border-radius: 12px; padding: 16px; box-sizing: border-box; }
.diagram-modal-note { margin: 14px 0 0; font-size: 0.82rem; color: var(--muted); text-align: center; }

@media (max-width: 560px) {
  .diagram-modal-box { padding: 20px 16px 16px; border-radius: 14px; }
  .diagram-modal-title { font-size: 1.05rem; margin-right: 40px; }
}
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.card-meta span { background: #EAF0FF; color: var(--blue); font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* Pricing table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.price-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.94rem; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; white-space: nowrap; }
.price-table th:last-child, .price-table td:last-child { text-align: right; }
.price-table thead th { background: var(--navy-2); color: #fff; font-weight: 700; }
.price-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.price-table td:first-child { font-weight: 600; color: var(--ink); white-space: normal; }
.price-table td:last-child { font-weight: 700; color: var(--blue); }

/* Advantages */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 34px; }
.adv-item { padding-left: 18px; border-left: 3px solid var(--blue); }
.adv-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: step; }
.process-steps li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 18px; position: relative; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 0.95rem;
  margin-bottom: 14px;
}
.process-steps p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Cases */
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.case-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.case-card img { display: block; width: 100%; height: 160px; object-fit: cover; }
.case-card-body { padding: 20px; }
.case-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Lead form */
.section-cta { background: var(--navy-2); }
.section-cta h2, .section-cta .section-sub { color: #fff; }
.section-cta .section-sub { color: #AFC0EA; }
.lead-form {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.form-row input, .form-row textarea {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue); }
.form-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin: 0; }
.form-success { text-align: center; font-weight: 700; color: #1A7F4B; background: #EAF9F1; border-radius: 10px; padding: 12px; margin: 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-alt); border-radius: 12px; padding: 6px 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 0; top: 14px;
  font-size: 1.3rem; color: var(--blue); font-weight: 700;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { color: var(--muted); padding-bottom: 16px; margin: 0; font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--navy); color: #C6D3F5; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.logo-footer { color: #fff; margin-bottom: 12px; }
.footer-desc { color: #93A2CC; font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-col p { margin: 0 0 10px; }
.footer-col a { color: #C6D3F5; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem; color: #7C89B3;
}

/* Mobile call FAB */
.mobile-call-fab {
  display: none;
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--blue); align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(47,107,255,0.45);
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; order: -1; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-img { order: -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
}

@media (max-width: 1180px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .site-header.nav-open .header-cta {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    background: #fff; padding: 0 24px 20px;
    border-bottom: 1px solid var(--border);
  }
  .site-header.nav-open .header-contact { align-items: flex-start; }
  .mobile-call-fab { display: flex; }
}

@media (max-width: 760px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .lead-form { padding: 22px; }
}
