@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --m-blue: #1d4ed8;
  --m-blue-dark: #1e3a8a;
  --m-cyan: #0284c7;
  --m-navy: #0f172a;
  --m-slate: #334155;
  --m-muted: #64748b;
  --m-border: #e2e8f0;
  --m-bg: #f8fafc;
  --m-card: #ffffff;
  --m-font-head: 'Inter', sans-serif;
  --m-font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; position: relative; font-family: var(--m-font-head); background: var(--m-bg); color: var(--m-slate); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.m-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1e293b;
}
.m-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}
.m-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: var(--m-font-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.m-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--m-blue);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--m-font-mono);
}
.m-nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}
.m-nav-links a {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.m-nav-links a:hover, .m-nav-links a.active { color: var(--m-cyan); }
.m-cta-btn {
  background: var(--m-blue);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.88rem;
  transition: background 0.2s;
  display: inline-block;
}
.m-cta-btn:hover { background: var(--m-blue-dark); }

.m-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.m-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  transition: 0.3s;
}

.m-hero {
  background: #0f172a;
  color: #ffffff;
  padding: 80px 24px 70px;
  position: relative;
}
.m-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.resp-grid-2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.resp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.resp-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.resp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.m-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(29, 78, 216, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.m-hero h1 {
  font-size: 3.1rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
}
.m-hero p {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 32px;
  max-width: 580px;
}
.m-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.m-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 24px 32px;
  margin-top: 40px;
}
.m-stat-num {
  font-family: var(--m-font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: #38bdf8;
  line-height: 1;
  margin-bottom: 6px;
}
.m-stat-label { font-size: 0.85rem; color: #94a3b8; font-weight: 500; }

.m-section { padding: 80px 0; }
.m-section-alt { background: #ffffff; border-top: 1px solid var(--m-border); border-bottom: 1px solid var(--m-border); }
.m-section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.m-section-title h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--m-navy);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.m-section-title p { font-size: 1.05rem; color: var(--m-muted); }

.m-card {
  background: #ffffff;
  border: 1px solid var(--m-border);
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.m-card:hover { transform: translateY(-4px); box-shadow: 0 12px 20px -3px rgba(0,0,0,0.08); }
.m-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(29, 78, 216, 0.1);
  color: var(--m-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.m-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--m-navy);
  margin-bottom: 12px;
}
.m-card p { font-size: 0.95rem; color: var(--m-slate); line-height: 1.6; }

.table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
  border: 1px solid var(--m-border);
  border-radius: 8px;
  background: #fff;
}
.m-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.m-matrix th, .m-matrix td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--m-border);
  font-size: 0.92rem;
}
.m-matrix th {
  background: var(--m-navy);
  color: #ffffff;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}
.m-matrix tr:last-child td { border-bottom: none; }
.m-matrix tr:nth-child(even) td { background: #f8fafc; }
.m-tag-pro { color: var(--m-blue); font-weight: 700; }

.m-tool-box {
  background: #0f172a;
  color: #ffffff;
  border-radius: 14px;
  padding: 40px;
  margin: 40px 0;
  border: 1px solid #1e293b;
}
.m-tool-box h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #ffffff;
}
.m-tool-box p { color: #94a3b8; margin-bottom: 24px; }
.m-calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 24px; }
.m-field label { display: block; font-size: 0.85rem; color: #cbd5e1; margin-bottom: 6px; font-weight: 500; }
.m-field select, .m-field input {
  width: 100%;
  padding: 12px 14px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 6px;
  font-size: 16px !important;
  font-family: inherit;
}
.m-basket-result {
  background: rgba(29, 78, 216, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 24px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.m-result-val { font-family: var(--m-font-mono); font-size: 2.2rem; color: #38bdf8; font-weight: 700; }

.m-faq-item {
  border: 1px solid var(--m-border);
  border-radius: 8px;
  margin-bottom: 14px;
  background: #ffffff;
  overflow: hidden;
}
.m-faq-q {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--m-navy);
  font-size: 1.05rem;
}
.m-faq-q::after { content: '+'; font-size: 1.4rem; color: var(--m-blue); transition: 0.2s; }
.m-faq-item.active .m-faq-q::after { transform: rotate(45deg); }
.m-faq-a {
  padding: 0 24px 20px;
  color: var(--m-slate);
  font-size: 0.95rem;
  line-height: 1.65;
  display: none;
}
.m-faq-item.active .m-faq-a { display: block; }

.m-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 60px 0 30px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.m-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.m-footer h4 { color: #ffffff; margin-bottom: 18px; font-size: 1.05rem; }
.m-footer ul { list-style: none; }
.m-footer ul li { margin-bottom: 10px; }
.m-footer ul a:hover { color: #38bdf8; }
.m-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

@media (max-width: 992px) {
  header > div {
    padding: 14px 20px !important;
    box-sizing: border-box !important;
  }
  .m-mobile-toggle { display: block !important; }
  .m-nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f172a;
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid #1e293b;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  }
  .m-nav-links.active { display: flex !important; }
  .resp-grid-2, .resp-grid-3, .resp-grid-4, .resp-form-row { grid-template-columns: 1fr !important; gap: 24px !important; }
  .m-hero h1 { font-size: 2.2rem !important; }
  .m-stat-strip { grid-template-columns: 1fr 1fr !important; padding: 20px !important; }
  .m-footer-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
}
