:root {
  --sky: #f3f7fb;
  --paper: #ffffff;
  --ink: #0b2a55;
  --navy: #0b3a75;
  --blue: #1597d8;
  --slate: #4d6690;
  --mute: #7d8fab;
  --line: #d6e2ee;
  --danger: #c43a3a;
  --ok: #157a52;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky) 62%, #fbfdff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.top {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 5vw, 48px) 0;
}
.brand { display: inline-block; }
.brand img { width: clamp(180px, 22vw, 250px); }

/* ---------- Hero ---------- */
main { flex: 1; }
.hero {
  position: relative;
  max-width: 1200px; margin: 0 auto;
  min-height: min(78vh, 720px);
  padding: clamp(48px, 9vw, 120px) clamp(16px, 5vw, 48px) clamp(56px, 8vw, 96px);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.sky {
  position: absolute; right: 0; top: -2%;
  width: min(68%, 800px); height: auto;
  pointer-events: none;
}
.sky-line {
  fill: none; stroke: url(#skyLine); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.6s cubic-bezier(.6,.05,.2,1) .2s forwards;
  opacity: .9;
}
.sky-line--thin { stroke-width: 1.2; opacity: .45; animation-delay: 1.1s; animation-duration: 1.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-copy { position: relative; max-width: 14.5em; font-size: clamp(2.5rem, 7vw, 5.4rem); }
.hero h1 {
  margin: 0;
  font-size: 1em; line-height: 1.04; font-weight: 600; letter-spacing: -0.035em;
  color: var(--ink);
}
.hero-sub {
  margin: .9em 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--slate); letter-spacing: -0.005em;
  max-width: 32em;
}

/* ---------- Contact ---------- */
.contact {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 5vw, 48px) clamp(56px, 8vw, 96px);
  display: grid; gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border-top: 1px solid var(--line);
}
.contact-intro h2 { margin: 0 0 .5em; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.contact-intro p { margin: 0 0 1em; color: var(--slate); max-width: 34ch; }
.contact-note { font-size: .875rem; color: var(--mute) !important; }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 4vw, 36px);
  display: grid; gap: 18px;
  grid-template-columns: 1fr 1fr;
}
.field { margin: 0; min-width: 0; }
.field--types, .field:has(textarea), .field--consent, .actions, #turnstile-slot { grid-column: 1 / -1; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; color: var(--ink); padding: 0; }
.req { color: var(--blue); }
.opt { color: var(--mute); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #a5b3c8; }
input:hover, textarea:hover { border-color: #b9cbe0; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(21, 151, 216, .14); }
.invalid input, .invalid textarea { border-color: var(--danger); }
.invalid .chips .chip span { border-color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fbfcfe;
  font-size: .95rem; font-weight: 500; color: var(--slate);
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover span { border-color: #b9cbe0; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.field-foot { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.count { font-size: .8rem; color: var(--mute); white-space: nowrap; margin-top: 6px; }
.err { margin: 6px 0 0; font-size: .85rem; color: var(--danger); min-height: 0; }
.err:empty { display: none; }

.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; color: var(--slate) !important; font-size: .9rem !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.btn {
  font: inherit; font-weight: 600; font-size: 1rem;
  color: #fff; background: var(--navy);
  border: 0; border-radius: 999px; padding: 14px 28px; cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:hover { background: #0d4a94; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.form-status { margin: 0; font-size: .95rem; }
.form-status.ok { color: var(--ok); }
.form-status.bad { color: var(--danger); }

.form.sent { display: block; }
.sent-panel { padding: 8px 4px; }
.sent-panel h3 { margin: 0 0 .4em; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.sent-panel p { margin: 0 0 1.2em; color: var(--slate); }
.link-btn { font: inherit; color: var(--navy); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* ---------- Footer + discreet gate ---------- */
.foot {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 20px clamp(16px, 5vw, 48px) 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--mute); font-size: .85rem;
  border-top: 1px solid var(--line);
}
.foot p { margin: 0; }
.gate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gate-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid transparent; background: transparent; color: #a9b6c9; cursor: pointer;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.gate-toggle:hover, .gate-toggle[aria-expanded="true"] { color: var(--slate); border-color: var(--line); }
.gate-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gate-form[hidden] { display: none; }
.gate-form input { width: 160px; padding: 7px 12px; font-size: .9rem; border-radius: 999px; }
.gate-go {
  font: inherit; font-size: .85rem; font-weight: 500;
  border: 1px solid var(--line); background: #fff; color: var(--slate);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.gate-go:hover { color: var(--navy); border-color: #b9cbe0; }
.gate-msg { margin: 0; width: 100%; text-align: right; font-size: .8rem; color: var(--danger); }
.gate-msg:empty { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .sky { top: 2%; right: -18%; width: 120%; opacity: .55; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .hero { min-height: 62vh; }
  .btn { width: 100%; }
  .foot { justify-content: space-between; }
  .gate-form input { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .sky-line { animation: none; stroke-dashoffset: 0; }
  * { transition: none !important; }
}
