:root {
  --navy: #071d4b;
  --blue: #0759dc;
  --pale: #eef5ff;
  --line: #d6e1f0;
  --text: #0a204f;
  --muted: #52627d;
  --radius: 14px;
  --shadow: 0 16px 38px rgba(6, 29, 75, 0.1);
  --focus: 0 0 0 3px rgba(12, 103, 242, 0.3);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Manrope, Arial, sans-serif; color: var(--text); background: #fff; font-size: 17px; line-height: 1.55; }
button, input, textarea { font: inherit; }

.site-header { min-height: 112px; max-width: 1240px; margin: auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.site-logo-link { display: flex; align-items: center; flex: 0 1 315px; }
.site-logo { display: block; width: min(315px, 100%); height: 86px; object-fit: contain; object-position: left center; }
.site-name { color: var(--navy); font-weight: 800; font-size: 25px; letter-spacing: -1px; text-decoration: none; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a { color: var(--text); font-weight: 600; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 0; box-shadow: var(--focus); }

main { max-width: 1240px; margin: auto; padding: 0 32px; }
.hero { min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 70px 0 55px; }
.hero h1 { font-size: clamp(43px, 5vw, 68px); line-height: 1.05; letter-spacing: -3.2px; margin: 0 0 26px; max-width: 680px; }
.eyebrow { margin: 0 0 18px !important; color: var(--blue) !important; font-size: 14px !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-copy > p:not(.trust) { font-size: 20px; max-width: 600px; color: #314261; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin: 30px 0 22px; }
.button { border: 0; border-radius: 7px; padding: 15px 24px; font-weight: 800; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; min-height: 54px; cursor: pointer; }
.primary { color: #fff; background: var(--blue); }
.primary:hover, .primary:focus { background: #034bbd; }
.primary:disabled { background: #9ab5dc; cursor: not-allowed; }
.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.text-link { color: var(--blue); font-weight: 800; text-decoration: none; }
.trust { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.trust span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--blue); }
.hero-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px 24px 24px 6px; box-shadow: var(--shadow); background: var(--pale); }
.hero-photo::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(7, 29, 75, 0.08); border-radius: inherit; pointer-events: none; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo figcaption { position: absolute; right: 18px; bottom: 18px; max-width: 310px; padding: 13px 16px; border-radius: 9px 9px 9px 2px; color: #fff; background: rgba(7, 29, 75, 0.92); font-size: 14px; font-weight: 700; }

.steps { border: 1px solid var(--line); box-shadow: var(--shadow); padding: 30px 34px 36px; margin-bottom: 28px; border-radius: 18px; }
h2 { font-size: 32px; line-height: 1.15; letter-spacing: -1.2px; margin: 0 0 14px; }
.steps h2 { text-align: center; }
.steps ol { list-style: none; padding: 10px 0 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { display: flex; flex-direction: column; text-align: center; align-items: center; padding: 0 35px; border-right: 1px solid var(--line); }
.steps li:last-child { border: 0; }
.steps strong { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; margin-bottom: 12px; }
.steps span { font-weight: 800; }
.steps small { color: var(--muted); font-size: 14px; margin-top: 5px; }

.assessment { margin: 28px 0 42px; padding: 46px; background: linear-gradient(145deg, #f6f9fe 0%, var(--pale) 100%); border: 1px solid #e1eaf6; border-radius: 22px; scroll-margin-top: 20px; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; margin-bottom: 30px; }
.section-intro p { margin: 0; color: var(--muted); }
.assessment-instruction { margin: -10px 0 24px; color: var(--muted); max-width: 880px; }
#assessment-form { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 34px; border-radius: 12px; }
.progress-wrap { font-size: 14px; font-weight: 700; margin-bottom: 28px; }
.progress { height: 7px; background: #e3ebf5; border-radius: 10px; margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 10%; background: var(--blue); transition: width 0.25s; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 23px; line-height: 1.3; font-weight: 800; margin-bottom: 20px; }
.answers { display: grid; gap: 10px; }
.answer { border: 1px solid #b9c8dc; border-radius: 7px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.answer:has(input:checked) { border: 2px solid var(--blue); padding: 13px 15px; background: #f4f8ff; }
.answer input { width: 21px; height: 21px; accent-color: var(--blue); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.results { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 36px; }
.result-level { display: inline-block; color: #fff; background: var(--blue); font-weight: 800; padding: 5px 11px; border-radius: 5px; margin-bottom: 16px; }
.results ul { padding-left: 22px; }
.priority-alert { margin: 22px 0; padding: 16px 18px; border-left: 4px solid #8a5a00; background: #fff7e0; color: #5d4108; border-radius: 7px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.ask { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 55px; background: var(--pale); padding: 46px; border-radius: 22px; margin-bottom: 52px; scroll-margin-top: 20px; }
.bubble { width: 44px; height: 36px; background: var(--blue); border-radius: 7px; position: relative; margin-bottom: 18px; }
.bubble::after { content: ""; position: absolute; left: 8px; bottom: -10px; border: 10px solid transparent; border-top-color: var(--blue); border-left: 0; }
.ask p { color: var(--muted); }
.ask form { display: grid; gap: 8px; }
.ask [hidden] { display: none; }
.ask label { font-size: 14px; font-weight: 800; }
.ask label span { font-weight: 500; color: var(--muted); }
textarea, input { width: 100%; background: #fff; color: var(--text); border: 1px solid #aebfd5; border-radius: 7px; padding: 12px; }
textarea { min-height: 118px; resize: vertical; }
#consultation-contact { display: grid; gap: 8px; }
#consultation-contact p { margin: 0; font-size: 13px; }
.ask button { margin-top: 10px; }
.form-status { margin: 0 !important; font-size: 14px; }

footer { background: var(--navy); color: #fff; min-height: 140px; padding: 32px max(32px, calc((100vw - 1176px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 30px; }
footer p { margin: 8px 0 0; color: #dce8fb; }
.inverse { color: #fff; }

@media (max-width: 800px) {
  body { font-size: 16px; }
  .site-header { min-height: 86px; padding: 8px 18px; }
  .site-logo-link { flex-basis: 225px; }
  .site-logo { width: 225px; height: 68px; }
  .site-name { font-size: 19px; }
  .site-header nav { display: none; }
  main { padding: 0 18px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 42px 0 28px; gap: 15px; }
  .hero h1 { font-size: 43px; letter-spacing: -2.1px; }
  .hero-copy > p:not(.trust) { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .text-link { text-align: center; }
  .hero-photo { border-radius: 18px 18px 18px 5px; }
  .hero-photo figcaption { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .steps { padding: 25px 18px; }
  .steps h2 { text-align: left; }
  .steps ol { grid-template-columns: 1fr; gap: 18px; }
  .steps li { display: grid; grid-template-columns: 38px 1fr; text-align: left; align-items: center; border: 0; padding: 0; }
  .steps strong { grid-row: 1 / 3; margin: 0; }
  .steps small { margin: 0; }
  .assessment, .ask { padding: 26px 18px; margin-left: -18px; margin-right: -18px; border-radius: 0; }
  .section-intro, .ask { grid-template-columns: 1fr; gap: 20px; }
  #assessment-form { padding: 22px 16px; }
  legend { font-size: 20px; }
  .form-actions .button { flex: 1; }
  .ask { margin-bottom: 0; }
  footer { padding: 30px 18px; display: block; }
  footer > p { margin-top: 24px; }
  .trust { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
