:root {
  --paper: #F5F7FB;
  --white: #FFFFFF;
  --ink: #0A1630;
  --ink-2: #13254A;
  --muted: #55607A;
  --line: #DDE5F2;
  --blue: #0D7BE6;
  --blue-dark: #0A63BB;
  --blue-soft: #E3EFFD;
  --blue-on-dark: #6FB2FF;
  --red: #C8322B;
  --amber: #A86A10;
  --green: #1C8048;
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.defs { position: absolute; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: 600 1rem/1.2 var(--body);
  text-decoration: none;
  border: 2px solid var(--blue);
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
.btn--small { padding: 9px 16px; font-size: 0.9375rem; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--ink); }
.btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--line:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.logo__mark svg { width: 22px; height: 22px; fill: var(--blue); }
.logo__word { font: 700 1.0625rem var(--display); letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }

/* Header */
.top { background: rgba(245, 247, 251, 0.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--blue); }

/* Hero — dark, with the giant brand mark as the one bold element */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #DCE5F5; padding: 80px 0 96px; }
.hero__mark { position: absolute; right: -90px; top: -60px; width: 640px; height: 640px; fill: var(--blue); opacity: 0.09; pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.25rem); max-width: 16ch; }
.lead { margin-top: 22px; font-size: 1.1875rem; color: #B7C4DE; max-width: 52ch; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 10px; }
.hero__facts li { padding-left: 26px; position: relative; color: #DCE5F5; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 7px; border-left: 2.5px solid var(--blue-on-dark); border-bottom: 2.5px solid var(--blue-on-dark); transform: rotate(-45deg); }

/* Quiz */
.quiz { background: var(--white); color: var(--ink); border-radius: 20px; padding: 26px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); min-height: 420px; display: flex; flex-direction: column; }
.quiz__title { font-family: var(--display); font-size: 1.25rem; line-height: 1.25; }
.quiz__sub { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.quiz__bar { margin-top: 16px; height: 6px; border-radius: 3px; background: var(--blue-soft); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s ease; }
.quiz__body { margin-top: 22px; flex: 1; display: flex; flex-direction: column; }
.quiz__count { font-size: 0.875rem; color: var(--muted); }
.quiz__q { margin-top: 8px; font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
.quiz__hint { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }
.quiz__answers { margin-top: auto; padding-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quiz__answers button { font: 600 1rem var(--body); padding: 13px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.quiz__answers button:hover { border-color: var(--blue); background: var(--blue-soft); }
.quiz__answers button:first-child { background: var(--blue); border-color: var(--blue); color: #fff; }
.quiz__answers button:first-child:hover { background: var(--blue-dark); }
.quiz__back { margin-top: 12px; align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--muted); font: 500 0.9375rem var(--body); cursor: pointer; text-decoration: underline; }
.quiz__start { margin-top: auto; }
.quiz__start .btn { width: 100%; }
.quiz__intro { color: var(--muted); }
.quiz__intro ul { margin: 12px 0 0; padding-left: 20px; }

.result__score { display: flex; align-items: baseline; gap: 12px; }
.result__num { font: 700 3rem/1 var(--display); }
.result__level { font-weight: 600; font-size: 1.0625rem; }
.result--high .result__num, .result--high .result__level { color: var(--red); }
.result--mid .result__num, .result--mid .result__level { color: var(--amber); }
.result--low .result__num, .result--low .result__level { color: var(--green); }
.result__text { margin-top: 10px; color: var(--muted); font-size: 0.96875rem; }
.result__list { list-style: none; margin: 14px 0 0; padding: 0; }
.result__list li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; font-size: 0.9375rem; }
.result__list li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.result__list b { display: block; font-weight: 600; }
.result__actions { margin-top: 18px; display: grid; gap: 8px; }

/* Stack strip */
.stack { background: var(--ink-2); color: #B7C4DE; }
.stack__in { display: flex; align-items: center; gap: 20px; padding: 18px 0; flex-wrap: wrap; }
.stack__label { font-weight: 600; color: #fff; }
.stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 5px 12px; border: 1px solid rgba(183, 196, 222, 0.28); border-radius: 999px; font-size: 0.9375rem; }

/* Sections */
section h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); max-width: 22ch; }

.services { padding: 96px 0; background: var(--white); }
.svc { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.svc article { padding-top: 22px; border-top: 2px solid var(--line); }
.svc article p { margin-top: 8px; color: var(--muted); font-size: 0.96875rem; }
.svc h3 { margin-top: 14px; }
.ico { width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-wide { margin-top: 44px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px 28px; border-radius: 16px; background: var(--blue-soft); color: var(--ink); text-decoration: none; }
.svc-wide:hover { background: #D5E7FC; color: var(--ink); }
.svc-wide .ico { width: 44px; height: 44px; }
.svc-wide strong { display: block; font-size: 1.25rem; }
.svc-wide span span { display: block; margin-top: 4px; color: var(--muted); }
.svc-wide__more { font-weight: 600; color: var(--blue); }

.audit { padding: 100px 0; background: var(--ink); color: #DCE5F5; }
.audit h2, .audit h3 { color: #fff; }
.audit__intro p { margin-top: 18px; max-width: 64ch; font-size: 1.125rem; }
.audit__who { color: #93A3C4; }
.audit__grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.audit__grid h3 { margin-bottom: 14px; font-size: 1.1875rem; }
.checks, .gets { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 10px 0 10px 30px; border-bottom: 1px solid rgba(220, 229, 245, 0.12); position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 8px; border-left: 2.5px solid var(--blue-on-dark); border-bottom: 2.5px solid var(--blue-on-dark); transform: rotate(-45deg); }
.gets li { padding: 10px 0; border-bottom: 1px solid rgba(220, 229, 245, 0.12); }
.gets b { color: #fff; font-weight: 600; }
.audit__steps-title { margin-top: 56px; font-size: 1.1875rem; }
.audit__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.steps { list-style: none; counter-reset: s; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: s; padding-top: 16px; border-top: 2px solid #2B4A86; }
.steps li::before { content: counter(s); display: block; font: 700 1.75rem var(--display); color: var(--blue-on-dark); margin-bottom: 8px; }
.steps b { color: #fff; }

.cases { padding: 96px 0; }
.case-list { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.case__tag { color: var(--blue); font-weight: 600; font-size: 0.875rem; }
.case h3 { margin-top: 6px; font-size: 1.25rem; }
.case p:not(.case__tag):not(.case__tech) { margin-top: 12px; color: var(--muted); font-size: 0.96875rem; }
.case__tech { margin-top: auto; padding-top: 16px; font-size: 0.875rem; color: var(--ink); opacity: .7; }

.how { padding: 0 0 96px; }
.steps--plain li { border-top-color: var(--line); color: var(--muted); }
.steps--plain li::before { color: var(--blue); }
.steps--plain b { color: var(--ink); }

.faq { padding: 96px 0; background: var(--white); border-top: 1px solid var(--line); }
.faq__in { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.0625rem; position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s ease; }
.faq__list details[open] summary::after { transform: rotate(-135deg); top: 29px; }
.faq__list details p { padding: 0 0 18px; color: var(--muted); max-width: 64ch; }

.contact { padding: 96px 0; background: var(--paper); border-top: 1px solid var(--line); }
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact p { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.contact__ways { list-style: none; padding: 0; margin: 24px 0 0; }
.contact__ways li { padding: 6px 0; font-size: 1.125rem; font-weight: 500; }
.form { display: grid; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.form label { font-weight: 500; font-size: 0.9375rem; margin-top: 10px; }
.form input, .form select, .form textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #C4D1E8; border-radius: 10px; padding: 11px 12px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(13, 123, 230, 0.22); }
.form input[aria-invalid="true"] { border-color: var(--red); }
.form .btn { margin-top: 16px; }
.form__err { color: var(--red) !important; font-weight: 500; margin-top: 8px !important; }
.form__note { font-size: 0.8125rem; margin-top: 6px !important; }

.foot { padding: 32px 0; background: var(--ink); color: #93A3C4; font-size: 0.9375rem; }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo--foot { color: #fff; }
.logo--foot:hover { color: #fff; }
.logo--foot .logo__mark { box-shadow: none; }
.foot__links { display: flex; gap: 18px; }
.foot a:not(.logo) { color: #fff; }

/* Floating contact */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 15; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 12px 28px -10px rgba(10, 22, 48, 0.55); }
.wa-float svg { width: 22px; height: 22px; fill: #fff; }
.wa-float:hover { background: var(--blue-dark); color: #fff; }

/* 404 */
.nf { padding: 96px 0; }
.nf h1 { font-family: var(--display); font-size: clamp(1.75rem, 4vw, 2.5rem); }
.nf__cta { margin-top: 28px; }

/* Responsive */
@media (max-width: 1000px) {
  .svc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .hero__in, .audit__grid, .contact__in, .faq__in { grid-template-columns: 1fr; gap: 40px; }
  .case-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .top__in { justify-content: space-between; }
  .hero__mark { width: 420px; height: 420px; right: -120px; top: -40px; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 64px; }
  .svc, .case-list, .steps { grid-template-columns: 1fr; }
  .services, .audit, .cases, .contact, .faq { padding: 64px 0; }
  .how { padding-bottom: 64px; }
  .quiz { padding: 20px; min-height: 0; }
  .quiz__answers { grid-template-columns: 1fr 1fr 1fr; }
  .svc-wide { grid-template-columns: auto 1fr; }
  .svc-wide__more { grid-column: 2; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}
