:root {
  --bg: #f3eee6;
  --bg-deep: #ebe4d8;
  --card: #ffffff;
  --ink: #0d1b2e;
  --muted: #5c6570;
  --line: #ddd6cb;
  --navy: #0b2340;
  --navy-2: #1c3d66;
  --gold: #c9a46a;
  --shadow: 0 20px 50px rgba(13, 27, 46, 0.08);
  --r: 22px;
  --max: 1180px;
  --header-h: 92px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--navy); }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 238, 230, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(13, 27, 46, 0.06);
}

.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  gap: 24px;
}
.header-inner:not(:has(.nav)) {
  grid-template-columns: 1fr auto;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  flex: none;
}

.brand:hover { color: var(--ink); }

.brand-logo-img {
  display: block;
  height: 76px;
  width: auto;
  max-width: 280px;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.nav a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--ink);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 35, 64, 0.28);
}
.btn-primary:hover { background: var(--navy-2); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-light {
  background: #fff;
  color: var(--navy);
  border-color: rgba(255,255,255,0.2);
}

main { padding: 20px 0 56px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.15fr);
  gap: 40px;
  align-items: center;
  padding: 18px 0 8px;
}

.hero-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-2);
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-line {
  width: 72px;
  height: 1.5px;
  background: var(--ink);
  margin: 18px 0 16px;
}

.hero p.lead {
  margin: 0 0 26px;
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.trust-row svg { flex: none; }

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(460px, 62vh);
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  image-rendering: auto;
}

.hero-shield {
  position: absolute;
  inset: 7% 9%;
  width: auto;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.28));
}

/* Sections */
.section { margin-top: 56px; }

.section h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.section > p,
.section-lead {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 640px;
}

.grid-5, .grid-4, .grid-3 { display: grid; gap: 16px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f4f1ea;
  display: grid;
  place-items: center;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-2);
}

.step {
  counter-increment: steps;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta {
  margin-top: 56px;
  background: linear-gradient(135deg, #0b2340, #1c3d66);
  color: #fff;
  border-radius: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.cta h2 { color: #fff; margin: 0 0 10px; font-size: 28px; }
.cta p { color: #d7dde6; margin: 0 0 18px; }
.cta .pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}

.cta-box {
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  padding: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

/* Form */
.form-card {
  max-width: 780px;
  margin: 12px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-card h1 { margin: 0 0 8px; font-size: 32px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
.field.full { grid-column: 1 / -1; }
.help { font-weight: 500; color: var(--muted); font-size: 13px; }

input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }

.widget-shell { padding: 18px 0 28px; }
.widget-frame-wrap {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.widget-frame {
  width: 100%;
  height: 90vh;
  min-height: 720px;
  border: 0;
  display: block;
}

@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 80px;
    padding: 10px 0;
  }
  .brand-logo-img { height: 56px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav, .header-cta { display: none; }
  .header-inner.is-open {
    grid-template-columns: 1fr;
  }
  .header-inner.is-open .nav,
  .header-inner.is-open .header-cta {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .hero, .cta, .grid-4, .grid-3, .form-grid {
    grid-template-columns: 1fr;
  }
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .hero { gap: 22px; }
  .hero-visual { justify-content: flex-start; }
  .hero-visual img { max-width: 100%; max-height: min(400px, 52vh); }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .grid-5, .grid-4, .grid-3 {
    grid-template-columns: 1fr;
  }
  .cta { padding: 24px; }
  .form-card { padding: 22px 18px; }
}
