:root {
  --blue: #123f78;
  --blue-dark: #08264a;
  --orange: #f28c28;
  --cream: #fff7ec;
  --text: #172033;
  --muted: #5f6b7a;
  --line: #e6eaf0;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(8, 38, 74, 0.14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f5f7fb;
  line-height: 1.5;
}
a { color: var(--blue); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--orange);
  color: white;
  font-weight: 950;
}
.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 0.92rem;
}
.main-nav a.active,
.main-nav a:hover { background: var(--cream); color: var(--blue-dark); }

.hero {
  min-height: calc(100svh - 65px);
  padding: 38px 18px 56px;
  color: white;
  background:
    radial-gradient(circle at 12% 15%, rgba(242, 140, 40, 0.45), transparent 34%),
    linear-gradient(145deg, rgba(18, 63, 120, 0.98), rgba(8, 38, 74, 0.98));
  display: flex;
  align-items: center;
}
.hero-content,
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 850;
  font-size: 0.78rem;
}
.hero .eyebrow { color: #ffd3a3; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 {
  margin: 0;
  font-size: clamp(2.45rem, 12vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
h2 {
  margin: 0;
  font-size: clamp(1.7rem, 7vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
h3 { margin: 12px 0 8px; font-size: 1.2rem; }
.lead {
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 4.5vw, 1.35rem);
  color: rgba(255,255,255,0.88);
}
.lead-dark {
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 4vw, 1.28rem);
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.stacked { display: grid; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}
.button.primary { background: var(--orange); color: white; box-shadow: 0 16px 36px rgba(242, 140, 40, 0.28); }
.button.ghost { color: white; border: 1px solid rgba(255,255,255,0.3); }
.button.ghost-dark { color: var(--blue-dark); border: 1px solid var(--line); background: white; }
.button.light { color: var(--blue-dark); background: white; }
.button.full { width: 100%; }

.hero-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.14);
}
.hero-card h2 { font-size: clamp(1.55rem, 6vw, 2.4rem); color: white; }
.hero-card p { color: rgba(255,255,255,0.82); }
.card-label { color: #ffd3a3; font-weight: 850; text-transform: uppercase; letter-spacing: 0.11em; font-size: 0.78rem; }

.section { padding: 64px 0; }
.section-title { display: grid; gap: 12px; margin-bottom: 24px; }
.section-title p { margin: 0; color: var(--muted); }
.text-block { display: grid; gap: 14px; }
.text-block p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.split { display: grid; gap: 26px; }
.cards { display: grid; gap: 16px; }
.card,
.contact-card,
.contact-form,
.image-placeholder,
.service-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--cream);
  color: var(--orange);
  font-weight: 900;
}
.soft-panel {
  width: min(1120px, calc(100% - 32px));
  padding: 34px;
  margin-bottom: 52px;
  border-radius: calc(var(--radius) + 8px);
  background: var(--cream);
}
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
  padding: 16px 16px 16px 46px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
  position: relative;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 17px;
  top: 15px;
  color: var(--orange);
  font-weight: 900;
}
.contact-band {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-bottom: 40px;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-band p { color: var(--muted); }

.page-hero {
  background:
    radial-gradient(circle at top left, rgba(242, 140, 40, 0.18), transparent 36%),
    #f5f7fb;
}
.page-hero-inner { padding-top: 62px; padding-bottom: 46px; }
.compact-width { max-width: 780px; }
.image-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 20% 20%, rgba(242, 140, 40, 0.18), transparent 30%),
    linear-gradient(145deg, #fff, #eef3f9);
  font-weight: 850;
}
.service-list { display: grid; gap: 16px; }
.service-item { padding: 24px; }
.service-item h2 { font-size: clamp(1.35rem, 5vw, 2.05rem); }
.service-item p { margin-bottom: 0; color: var(--muted); }

.contact-section { display: grid; gap: 24px; align-items: start; }
.contact-card { padding: 24px; font-size: 1.05rem; }
.contact-card p { color: var(--muted); }
.contact-form { display: grid; gap: 16px; padding: 18px; }
.field-row { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 780; }
input, textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #ccd4df;
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid rgba(242, 140, 40, 0.26); border-color: var(--orange); }
.checkbox { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 12px; font-weight: 500; color: var(--muted); line-height: 1.42; }
.checkbox input { width: 22px; height: 22px; min-height: 22px; margin-top: 2px; accent-color: var(--orange); }
.flash { margin: 0; padding: 12px 14px; border-radius: 14px; }
.flash.error { background: #fff1f1; color: #9b1c1c; }

.plain-page,
.thanks-page { min-height: 100svh; background: radial-gradient(circle at top left, rgba(242, 140, 40, 0.18), transparent 36%), #f5f7fb; }
.privacy-container,
.thanks-card { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 58px; }
.privacy-container h1,
.thanks-card h1 { color: var(--blue-dark); font-size: clamp(2rem, 8vw, 4rem); }
.privacy-container h2 { margin-top: 32px; font-size: clamp(1.28rem, 5vw, 2rem); }
.privacy-container p,
.thanks-card p { color: var(--muted); }
.back-link { display: inline-flex; margin-bottom: 26px; text-decoration: none; font-weight: 800; }
.thanks-card { min-height: 80svh; display: flex; flex-direction: column; justify-content: center; }

.site-footer { padding: 30px 18px 42px; color: var(--muted); }
.footer-inner { width: min(1120px, 100%); margin: 0 auto; display: grid; gap: 18px; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { font-weight: 750; text-decoration: none; }

@media (min-width: 720px) {
  .site-header { padding: 14px 28px; }
  .hero { padding: 54px 28px 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); }
  .section { padding: 76px 0; }
  .split,
  .contact-section { grid-template-columns: 0.9fr 1.1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
  .contact-band { grid-template-columns: 1fr auto; }
  .field-row { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 28px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 1060px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .lead { max-width: 720px; }
}

@media (max-width: 480px) {
  .site-header { align-items: flex-start; }
  .brand small { display: none; }
  .main-nav a { padding: 8px 9px; font-size: 0.86rem; }
  .actions.vertical-mobile,
  .actions { display: grid; }
}
