:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #1e4d63;
  --accent-hover: #163a4c;
  --accent-soft: #e0f2f7;
  --success: #047857;
  --success-soft: #d1fae5;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
}

.m-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.m-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.m-logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.m-logo span {
  color: var(--accent);
}

.m-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.m-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
}

.m-nav a:hover,
.m-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.m-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.m-btn-primary:hover {
  background: var(--accent-hover);
}

.m-btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
}

.m-btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.m-hero {
  background: linear-gradient(165deg, #0f172a 0%, #1e4d63 55%, #2d6a7a 100%);
  color: #fff;
  padding: 72px 24px 64px;
}

.m-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.m-hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.m-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  max-width: 720px;
}

.m-hero-lead {
  margin: 0 0 28px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
}

.m-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.m-hero .m-btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.m-hero .m-btn-primary:hover {
  background: var(--accent-soft);
}

.m-hero .m-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.m-hero .m-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.m-proof-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.m-proof-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.m-proof-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.m-proof-item strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
}

.m-proof-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.m-section {
  padding: 64px 24px;
}

.m-section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.m-section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.m-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.m-section-intro {
  margin: 0 0 32px;
  color: var(--text-muted);
  max-width: 640px;
}

.m-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.m-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.m-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.m-section-alt .m-card {
  background: var(--bg);
}

.m-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.m-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.m-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.m-steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.m-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.m-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.m-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.m-table th,
.m-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.m-table th {
  background: var(--bg);
  font-weight: 600;
}

.m-trust {
  background: var(--accent-soft);
  border: 1px solid #b8dce8;
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}

.m-trust h3 {
  margin: 0 0 8px;
  color: var(--accent);
}

.m-trust p {
  margin: 0;
  color: var(--text);
}

.m-cta-band {
  background: var(--accent);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
}

.m-cta-band h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.m-cta-band p {
  margin: 0 0 24px;
  opacity: 0.9;
}

.m-cta-band .m-btn-primary {
  background: #fff;
  color: var(--accent);
}

.m-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px 24px;
}

.m-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.m-footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.m-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.m-footer li {
  margin-bottom: 8px;
}

.m-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}

.m-footer a:hover {
  color: #fff;
}

.m-footer-bottom {
  max-width: var(--max);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  text-align: center;
}

.m-form {
  max-width: 520px;
}

.m-field {
  margin-bottom: 16px;
}

.m-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.m-field input,
.m-field select,
.m-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
}

.m-field textarea {
  min-height: 100px;
  resize: vertical;
}

.m-field-check label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.m-field-check input {
  width: auto;
  margin-top: 4px;
}

.m-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.m-calc-result {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
}

.m-calc-result h3 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.m-calc-result .big {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.m-calc-result p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.m-range-value {
  font-weight: 600;
  color: var(--accent);
}

.m-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.m-alert-success {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.m-alert-error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.m-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: none;
}

.m-cookie.show {
  display: block;
}

.m-cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.m-cookie p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 240px;
}

.m-legal h2 {
  margin-top: 32px;
}

.m-legal h2:first-child {
  margin-top: 0;
}

.m-legal p,
.m-legal li {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .m-calc-grid {
    grid-template-columns: 1fr;
  }

  .m-nav-toggle {
    display: block;
  }
}
