:root {
  --bg: #f5f7fb;
  --paper: #ffffff;
  --ink: #162033;
  --muted: #5d6a7d;
  --line: #dce3ef;
  --blue: #1d94f1;
  --blue-dark: #0f4c87;
  --orange: #f87b00;
  --green: #10a46c;
  --soft-blue: #eaf5ff;
  --shadow: 0 18px 48px rgba(22, 32, 51, 0.12);
  --red: #e72525;
  --red-dark: #b8001f;
  --red-light: #ff6b4a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 227, 239, 0.9);
}

.topline {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 8px 18px;
  color: #4a5568;
  background: #fef7d8;
  font-size: 13px;
  line-height: 1.3;
}

.topline span {
  position: relative;
}

.topline span + span::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 340px) 1fr auto auto auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: center;
}

.brand img {
  width: 132px;
  height: auto;
}

.brand span {
  max-width: 190px;
  color: #4d5a6c;
  font-size: 12px;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #455266;
  font-size: 14px;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--blue-dark);
  border-color: var(--blue);
}

.header-contacts {
  display: grid;
  gap: 2px;
  color: #526075;
  font-size: 13px;
}

.header-contacts .phone {
  color: var(--blue);
  font-size: 19px;
  font-weight: 700;
}

.header-socials {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  overflow: hidden;
  background: #eef4fb;
  border-radius: 50%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-socials .social-link-max {
  background: linear-gradient(135deg, #4cf 0%, #53e 66%, #93d 100%);
}

.header-socials .social-link-telegram {
  background: #2fa8df;
}

.header-socials a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(20, 32, 51, 0.16);
}

.header-socials img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outline-button,
.primary-button,
.lead-form button,
.contact-form button,
.modal-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.outline-button {
  color: var(--ink);
  background: #fff;
  border-color: #b7c4d6;
}

.outline-button,
.lead-form button,
.footer-cta,
.modal-form button {
  position: relative;
  gap: 10px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--red-dark), var(--red), var(--red-light), var(--red));
  background-size: 220% 220%;
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(231, 37, 37, 0.24);
  animation: redShift 5s ease infinite;
}

.outline-button::after,
.lead-form button::after,
.footer-cta::after,
.modal-form button::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 5l7 7-7 7v-4H3v-6h11V5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.outline-button:hover,
.primary-button:hover,
.lead-form button:hover,
.contact-form button:hover,
.modal-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(29, 148, 241, 0.22);
}

.outline-button:hover,
.lead-form button:hover,
.footer-cta:hover,
.modal-form button:hover {
  background: linear-gradient(135deg, #a90018, #ec2323, #ff7452, #d80f2c);
  box-shadow: 0 16px 34px rgba(231, 37, 37, 0.32);
}

@keyframes redShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.hero {
  padding: 72px 0 64px;
  background:
    linear-gradient(135deg, #eef7ff 0%, #ffffff 52%, #fff4e8 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.72fr);
  column-gap: 30px;
  row-gap: 24px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--soft-blue);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(32px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 24px;
  color: #39475b;
  font-size: 18px;
  line-height: 1.48;
}

.lead-form {
  max-width: 760px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(183, 196, 214, 0.95);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(22, 32, 51, 0.1);
}

.lead-form p {
  margin-bottom: 14px;
  color: #1e2b3f;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
}

label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e4;
  border-radius: 6px;
  outline: none;
}

textarea {
  min-height: 116px;
  padding-top: 13px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 148, 241, 0.14);
}

.form-note,
.contact-form small,
.modal-form small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.hero-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 0;
}

.hero-points > .point-card {
  position: relative;
  min-height: 142px;
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(231, 244, 255, 0.95), rgba(255, 255, 255, 0) 58%),
    #fff;
  border: 1px solid #d6e7f7;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(18, 62, 107, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero-points > .point-card:hover {
  transform: translateY(-4px);
  border-color: #a7d4f7;
  background:
    linear-gradient(135deg, rgba(219, 240, 255, 1), rgba(255, 255, 255, 0.2) 62%),
    #fff;
  box-shadow: 0 22px 46px rgba(18, 62, 107, 0.14);
}

.hero-points > .point-card:hover .point-kicker {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.hero-points > .point-card:hover strong {
  color: #083b69;
}

.hero-points strong,
.hero-points span {
  display: block;
}

.hero-points strong {
  margin-top: 12px;
  color: #0b477d;
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.25;
}

.hero-points span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.hero-points .point-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  margin-top: 0;
  padding: 3px 9px;
  align-items: center;
  color: #0b477d;
  background: #eaf5ff;
  border: 1px solid #c8e3fb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-points .point-logo {
  width: min(154px, 68%);
  height: 24px;
  object-fit: contain;
  object-position: left center;
  margin: 12px 0 10px;
  opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {
  .hero-points > .point-card {
    transition: none;
  }

  .hero-points > .point-card:hover {
    transform: none;
  }
}

.hero-visual {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 18px;
  background: #121b2e;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: #dbe7f7;
  font-size: 13px;
}

.visual-top img {
  width: 190px;
}

.monitor {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.monitor-tabs {
  display: flex;
  gap: 1px;
  background: #2462a8;
  color: #dcefff;
  font-size: 12px;
}

.monitor-tabs button {
  flex: 1 1 0;
  padding: 10px 9px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.monitor-tabs .is-active {
  background: #fff;
  color: #1f579c;
}

.monitor img {
  width: 100%;
  min-height: 0;
  flex: 1;
  object-fit: cover;
  object-position: 46% 12%;
}

.visual-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.visual-metrics div {
  min-height: 86px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.visual-metrics span,
.visual-metrics strong {
  display: block;
}

.visual-metrics span {
  color: #8fd2ff;
  font-size: 22px;
  font-weight: 800;
}

.visual-metrics strong {
  margin-top: 6px;
  color: #e7eef8;
  font-size: 13px;
  line-height: 1.25;
}

.section {
  padding: 86px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.split {
  display: flex;
  max-width: none;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}

.section-head h2,
.result-copy h2,
.contact-copy h2 {
  margin: 13px 0 0;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.result-copy p,
.contact-copy p {
  max-width: 490px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

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

.risks .section-head {
  max-width: none;
}

.risks .section-head h2 {
  white-space: nowrap;
}

.risk-item {
  position: relative;
  min-height: 218px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.risk-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--orange));
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.risk-item:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg, #fff, #f8fbff);
  border-color: #bdd7ee;
  box-shadow: 0 22px 46px rgba(24, 72, 118, 0.13);
}

.risk-item:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.risk-card-head {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.risk-icon {
  position: relative;
  width: 94px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background:
    linear-gradient(135deg, rgba(234, 245, 255, 0.94), rgba(255, 255, 255, 0.82)),
    #fff;
  border: 1px solid #d6e7f7;
  border-radius: 8px;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.risk-icon svg {
  width: 72px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.risk-item h3 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.18;
  transition: color 220ms ease;
}

.risk-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
  transition: color 220ms ease;
}

.risk-item:hover .risk-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-color: rgba(42, 131, 223, 0.48);
  box-shadow: 0 16px 30px rgba(30, 124, 213, 0.2);
  transform: translateY(-1px);
}

.risk-item:hover h3 {
  color: var(--blue-dark);
}

.risk-item:hover p {
  color: #35455c;
}

.marquee-section {
  overflow: hidden;
  padding: 24px 0;
  color: #fff;
  background: var(--blue-dark);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  padding-right: 70px;
  font-size: clamp(25px, 3.6vw, 52px);
  font-weight: 800;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333%);
  }
}

.quiz-section {
  padding: 44px 0;
  background: linear-gradient(180deg, #fff, #f4f8fc);
}

.quiz-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 26px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(237, 247, 255, 0.88), rgba(255, 255, 255, 0) 56%),
    #fff;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(18, 62, 107, 0.1);
}

.quiz-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.quiz-copy span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  color: var(--blue-dark);
  background: var(--soft-blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quiz-copy h2 {
  margin: 12px 0 10px;
  color: #132138;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.quiz-copy p {
  margin-bottom: 0;
  color: #44546a;
  line-height: 1.55;
}

.quiz-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  margin-top: 24px;
  overflow: hidden;
  background: #f4f8fc;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(18, 62, 107, 0.12);
}

.quiz-visual::before {
  content: none;
}

.quiz-visual img {
  position: relative;
  width: 100%;
  min-height: 260px;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}

.quiz-form {
  display: grid;
  gap: 16px;
}

.quiz-progress {
  height: 6px;
  overflow: hidden;
  background: #dce8f5;
  border-radius: 999px;
}

.quiz-progress span {
  display: block;
  width: 16.666%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  border-radius: inherit;
  transition: width 220ms ease;
}

.quiz-step {
  display: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-step.is-active {
  display: grid;
  gap: 10px;
}

.quiz-step legend {
  margin-bottom: 8px;
  color: #132138;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.16;
}

.quiz-option {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 12px 14px;
  background: #f8fbff;
  border: 1px solid #d6e3ef;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.quiz-option:hover {
  transform: translateX(4px);
  background: #fff;
  border-color: #b8d8f4;
}

.quiz-option:has(input:checked) {
  background: #fff4f2;
  border-color: #ffb7a8;
  box-shadow: inset 3px 0 0 var(--red);
}

.quiz-option input {
  width: 18px;
  min-height: auto;
  height: 18px;
  accent-color: var(--red);
}

.quiz-option span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: #243248;
  font-weight: 700;
}

.quiz-step-final p {
  margin: 0 0 6px;
  color: #44546a;
  line-height: 1.55;
}

.quiz-fields {
  display: grid;
  gap: 10px;
}

.quiz-fields input {
  border-color: #cbd8e7;
}

.quiz-step-final small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.quiz-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.quiz-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-dark), var(--red), var(--red-light), var(--red));
  background-size: 220% 220%;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.quiz-next,
.quiz-submit {
  flex: 1;
  animation: redShift 5s ease infinite;
}

.quiz-next:disabled {
  cursor: default;
  background: #d9e3ee;
  box-shadow: none;
  animation: none;
}

.quiz-back {
  min-width: 118px;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid #c8d8e8;
}

.quiz-back:disabled {
  cursor: default;
  opacity: 0.45;
}

.quiz-submit[hidden],
.quiz-next[hidden] {
  display: none;
}

.clients {
  background: #fff;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.logo-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 333 / 250;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 8px;
  filter: saturate(0.82);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.logo-grid img:hover {
  transform: translateY(-4px);
  filter: saturate(1.06);
  box-shadow: 0 18px 36px rgba(18, 62, 107, 0.14);
}

.results {
  background: linear-gradient(180deg, #f6f9fd, #fff);
}

.result-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
  align-items: start;
}

.result-copy {
  position: sticky;
  top: 132px;
}

.result-copy p {
  margin: 18px 0 28px;
}

.result-list {
  display: grid;
  gap: 12px;
}

.result-list div {
  position: relative;
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.result-list div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  background: var(--orange);
  border-radius: 0 999px 999px 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.result-list div:hover {
  transform: translateX(6px);
  border-color: #acd7f8;
  box-shadow: 0 18px 38px rgba(18, 62, 107, 0.1);
}

.result-list div:hover::before {
  opacity: 1;
}

.result-list strong {
  color: #1f2d42;
  font-size: 18px;
  line-height: 1.3;
}

.result-list span {
  color: var(--muted);
  line-height: 1.5;
}

.reveal-section .reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal-section.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .result-list div {
    transition: none;
  }

  .result-list div:hover {
    transform: none;
  }
}

.steps {
  position: relative;
  background:
    linear-gradient(180deg, rgba(242, 248, 255, 0.96), rgba(255, 255, 255, 1) 62%),
    radial-gradient(circle at top right, rgba(29, 148, 241, 0.12), transparent 38%);
}

.steps .section-head {
  max-width: 780px;
}

.steps .eyebrow {
  color: var(--blue-dark);
  background: var(--soft-blue);
}

.steps .section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(180px, 0.54fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(19, 42, 73, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.timeline article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), #7cc9ff);
  opacity: 0.75;
}

.timeline article:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 148, 241, 0.34);
  box-shadow: 0 22px 44px rgba(19, 42, 73, 0.12);
}

.timeline-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--blue);
  background: var(--soft-blue);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
}

.timeline h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
}

.step-detail {
  min-height: 100%;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.step-detail p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.step-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--blue-dark);
  background: var(--soft-blue);
  border: 1px solid #d6ebff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.step-result {
  border-left-color: #ffd8ac;
}

.step-result .step-label {
  color: #9a4a00;
  background: #fff4e8;
  border-color: #ffd8ac;
}

@media (prefers-reduced-motion: reduce) {
  .timeline article {
    transition: none;
  }

  .timeline article:hover {
    transform: none;
  }
}

.contact-section {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 36px;
  align-items: stretch;
}

.contact-copy p {
  margin: 18px 0 24px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form button {
  width: 100%;
}

.contact-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 242, 249, 0.92)),
    #f4f7fb;
  border: 1px solid #dde6f0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-visual img {
  width: 100%;
  max-width: 620px;
  height: auto;
  max-height: 460px;
  min-height: 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 42% center;
  opacity: 1;
  border-radius: 14px;
  box-shadow: 0 26px 56px rgba(35, 58, 88, 0.14);
}

.contact-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(45, 139, 232, 0.08), rgba(255, 255, 255, 0) 48%, rgba(229, 50, 50, 0.05));
}

.contact-visual-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  color: #fff;
}

.contact-visual-caption span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  color: #dff1ff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-visual-caption strong {
  display: block;
  max-width: 520px;
  margin-top: 12px;
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.12;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 22px;
  background: #f5f8fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-card > div:not(.map-frame) {
  min-height: 96px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--blue-dark);
  font-size: 21px;
  font-weight: 800;
}

.contact-card p {
  margin-bottom: 0;
  color: #29384e;
  font-weight: 700;
  line-height: 1.35;
}

.map-frame {
  grid-column: 1 / -1;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dce8f4;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.site-footer {
  padding: 44px 0 24px;
  color: var(--ink);
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  gap: 34px;
  align-items: start;
  justify-content: space-between;
}

.footer-brand {
  justify-self: start;
}

.footer-brand img {
  width: 160px;
}

.footer-brand p {
  max-width: 280px;
  margin: 12px 0 0;
  color: #4f5d70;
  line-height: 1.45;
}

.footer-points {
  display: grid;
  gap: 9px;
  max-width: 340px;
  margin: 22px 0 0;
  padding: 0;
  color: #4f5d70;
  font-size: 14px;
  line-height: 1.4;
  list-style: none;
}

.footer-points li {
  position: relative;
  padding-left: 17px;
}

.footer-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.footer-title {
  display: block;
  margin-bottom: 14px;
  color: #8a96a8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-nav,
.footer-contact,
.footer-trust {
  display: grid;
  align-content: start;
}

.footer-trust {
  align-self: center;
  justify-self: center;
  justify-items: center;
}

.footer-nav {
  gap: 12px;
}

.footer-nav a {
  width: fit-content;
  color: #455266;
  font-weight: 700;
  transition: color 180ms ease;
}

.footer-nav a:hover,
.footer-email:hover,
.footer-legal a:hover {
  color: var(--blue);
}

.footer-contact {
  gap: 8px;
  justify-self: end;
  justify-items: start;
}

.footer-phone {
  color: #111b2d;
  font-size: clamp(24px, 2.3vw, 31px);
  line-height: 1.05;
  font-weight: 800;
}

.footer-contact span {
  color: var(--muted);
  font-size: 14px;
}

.footer-email {
  width: fit-content;
  color: var(--blue-dark);
  font-weight: 800;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-dark), var(--red), var(--red-light), var(--red));
  background-size: 220% 220%;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  font: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  animation: redShift 5s ease infinite;
}

.footer-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #a90018, #ec2323, #ff7452, #d80f2c);
  box-shadow: 0 12px 26px rgba(231, 37, 37, 0.24);
}

.footer-badges {
  display: grid;
  gap: 10px;
  width: 100%;
  justify-items: center;
}

.footer-badge {
  display: grid;
  gap: 10px;
  width: min(228px, 100%);
  min-height: 92px;
  padding: 13px 15px;
  background: #aeb8c4;
  border: 1px solid #95a2b0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(42, 56, 76, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.footer-badge:hover {
  transform: translateY(-3px);
  background: #bdc6d1;
  border-color: #8795a5;
  box-shadow: 0 16px 32px rgba(42, 56, 76, 0.13);
}

.footer-badge strong {
  color: #243248;
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
}

.footer-badge img {
  width: min(176px, 100%);
  height: 34px;
  object-fit: contain;
  object-position: left center;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
  padding-top: 22px;
  color: #6b7788;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
}

.footer-legal span {
  max-width: 760px;
}

.footer-legal a {
  color: var(--blue-dark);
  font-weight: 800;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .footer-cta {
    transition: none;
  }

  .footer-cta:hover {
    transform: none;
  }
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.lead-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 24, 42, 0.58);
  backdrop-filter: blur(8px);
}

.lead-modal-dialog {
  position: relative;
  width: min(486px, 100%);
  padding: 30px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(234, 245, 255, 0.92), rgba(255, 255, 255, 0) 48%),
    #fff;
  border: 1px solid rgba(213, 226, 240, 0.95);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(11, 24, 43, 0.28);
  transform: translateY(14px) scale(0.98);
  transition: transform 200ms ease;
}

.lead-modal.is-open .lead-modal-dialog {
  transform: translateY(0) scale(1);
}

.lead-modal-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--red-dark), var(--red-light));
}

.lead-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #f1f5fa;
  border: 1px solid #d7e1ed;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.lead-modal-close::before,
.lead-modal-close::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 14px;
  height: 2px;
  background: #42516a;
  border-radius: 999px;
}

.lead-modal-close::before {
  transform: rotate(45deg);
}

.lead-modal-close::after {
  transform: rotate(-45deg);
}

.lead-modal-close:hover {
  transform: rotate(90deg);
  background: #fff;
  border-color: #bdd2e8;
}

.lead-modal-dialog .eyebrow {
  color: var(--blue-dark);
  background: var(--soft-blue);
}

.lead-modal-dialog h2 {
  max-width: 360px;
  margin: 14px 0 10px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.08;
}

.lead-modal-dialog p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.modal-form button {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .lead-modal,
  .lead-modal-dialog,
  .lead-modal-close {
    transition: none;
  }

  .lead-modal-close:hover,
  .lead-modal.is-open .lead-modal-dialog {
    transform: none;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  width: min(420px, calc(100% - 32px));
  padding: 14px 16px;
  color: #fff;
  background: #132138;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 120px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 1100px) {
  .nav-shell {
    grid-template-columns: 260px 1fr auto auto;
  }

  .main-nav {
    display: none;
  }

  .hero-grid,
  .result-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 720px;
  }

  .contact-visual img {
    min-height: 0;
    max-height: 390px;
  }

  .result-copy {
    position: static;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 18px;
  }

  .site-header {
    position: static;
  }

  .topline {
    justify-content: flex-start;
    overflow: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .topline::-webkit-scrollbar {
    display: none;
  }

  .risks .section-head h2 {
    white-space: normal;
  }

  .nav-shell {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .brand {
    grid-template-columns: 128px 1fr;
  }

  .header-contacts {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .outline-button {
    width: 100%;
  }

  .hero {
    padding-top: 42px;
  }

  .form-row,
  .hero-points,
  .risk-grid,
  .logo-grid,
  .result-list div,
  .timeline article,
  .footer-grid,
  .contact-card,
  .quiz-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    justify-content: stretch;
  }

  .footer-brand,
  .footer-trust,
  .footer-contact {
    justify-self: stretch;
  }

  .section {
    padding: 60px 0;
  }

  .section-head.split {
    display: block;
  }

  .section-head.split p {
    margin-top: 14px;
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline article {
    gap: 12px;
    padding: 20px;
  }

  .timeline h3 {
    margin-top: 0;
  }

  .step-detail {
    min-height: auto;
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .step-result {
    border-top-color: #ffd8ac;
  }

  .map-frame {
    grid-column: auto;
  }

  .footer-legal {
    display: grid;
    gap: 12px;
  }

  .footer-cta {
    width: 100%;
  }
}

@media (min-width: 561px) and (max-width: 860px) {
  .form-row {
    grid-template-columns: 1fr 1fr auto;
  }

  .hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .topline {
    display: none;
  }

  .container,
  .nav-shell {
    width: min(100% - 24px, 1180px);
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    min-height: auto;
    gap: 6px 14px;
    padding: 10px 0 12px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 132px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 132px;
  }

  .header-contacts {
    display: contents;
  }

  .header-contacts .phone {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: start;
    font-size: 16px;
    line-height: 1.15;
  }

  .header-contacts a:not(.phone) {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    color: #526075;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  .header-socials {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: center;
  }

  .outline-button {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 6px;
  }

  .outline-button,
  .primary-button,
  .lead-form button,
  .contact-form button,
  .modal-form button {
    min-height: 46px;
    padding: 0 16px;
  }

  .hero {
    padding: 30px 0 42px;
  }

  .hero-grid {
    row-gap: 16px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 31px;
    line-height: 1.08;
  }

  .lead {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
  }

  .eyebrow {
    min-height: 26px;
    padding: 0 9px;
    font-size: 12px;
  }

  .lead-form p {
    font-size: 15px;
    line-height: 1.35;
  }

  .lead-form,
  .hero-visual,
  .risk-item,
  .contact-card {
    padding: 16px;
  }

  input,
  textarea {
    min-height: 46px;
  }

  textarea {
    min-height: 96px;
  }

  .hero-visual {
    width: 100%;
  }

  .visual-top {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .visual-top img {
    width: 150px;
  }

  .monitor-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .monitor-tabs::-webkit-scrollbar {
    display: none;
  }

  .monitor-tabs button {
    flex: 0 0 auto;
    padding: 9px 10px;
    font-size: 11px;
  }

  .monitor img {
    min-height: 180px;
  }

  .visual-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .visual-metrics div {
    min-height: 72px;
    padding: 9px 7px;
  }

  .visual-metrics span {
    font-size: 15px;
  }

  .visual-metrics strong {
    font-size: 10px;
    line-height: 1.25;
  }

  .hero-points > .point-card {
    min-height: auto;
    padding: 16px;
  }

  .hero-points strong {
    margin-top: 9px;
    font-size: 21px;
  }

  .hero-points span {
    font-size: 14px;
  }

  .hero-points .point-logo {
    height: 22px;
    margin: 12px 0 10px;
  }

  .section {
    padding: 48px 0;
  }

  .quiz-section {
    padding: 32px 0;
  }

  .quiz-card {
    padding: 18px;
  }

  .quiz-visual {
    min-height: 170px;
    margin-top: 18px;
  }

  .quiz-visual img {
    min-height: 190px;
  }

  .quiz-copy h2 {
    font-size: 27px;
  }

  .quiz-step legend {
    font-size: 22px;
  }

  .quiz-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quiz-back {
    order: 2;
    width: 100%;
  }

  .quiz-next,
  .quiz-submit {
    width: 100%;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head h2,
  .result-copy h2,
  .contact-copy h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  .section-head p,
  .result-copy p,
  .contact-copy p {
    font-size: 16px;
    line-height: 1.55;
  }

  .risk-item {
    min-height: 188px;
  }

  .risk-item span {
    margin-bottom: 22px;
  }

  .risk-icon {
    top: auto;
    right: auto;
    width: 76px;
    height: 48px;
  }

  .risk-icon svg {
    width: 58px;
    height: 36px;
  }

  .risk-item h3 {
    max-width: none;
    font-size: 21px;
  }

  .risk-card-head {
    grid-template-columns: 76px 1fr;
    gap: 14px;
  }

  .marquee-section {
    padding: 18px 0;
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .logo-grid img {
    height: auto;
    border-radius: 6px;
  }

  .result-list div {
    gap: 8px;
    padding: 18px;
  }

  .result-list div:hover {
    transform: none;
  }

  .timeline article {
    grid-template-columns: 44px 1fr;
    gap: 12px 14px;
  }

  .timeline-number {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .timeline h3 {
    align-self: center;
    font-size: 20px;
  }

  .step-detail {
    grid-column: 1 / -1;
  }

  .step-label {
    min-height: 26px;
    font-size: 11px;
  }

  .contact-grid {
    gap: 24px;
  }

  .contact-copy p {
    margin: 14px 0 20px;
  }

  .contact-card > div:not(.map-frame) {
    min-height: auto;
    padding: 16px;
  }

  .contact-card a {
    font-size: 18px;
  }

  .contact-visual img {
    min-height: 0;
    max-height: 300px;
  }

  .contact-visual-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .contact-visual-caption strong {
    font-size: 22px;
  }

  .lead-modal {
    align-items: end;
    padding: 12px;
  }

  .lead-modal-dialog {
    padding: 26px 18px 18px;
  }

  .lead-modal-dialog h2 {
    padding-right: 42px;
    font-size: 28px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 240px;
  }

  .site-footer {
    padding: 34px 0 22px;
  }

  .footer-grid {
    gap: 22px;
  }

  .footer-points {
    margin-top: 16px;
  }

  .footer-badges {
    grid-template-columns: 1fr;
  }

  .footer-badge {
    width: 100%;
    min-height: 86px;
  }

  .footer-phone {
    font-size: 26px;
  }

  .marquee-track span {
    padding-right: 36px;
    font-size: 24px;
  }
}

@media (max-width: 370px) {
  h1 {
    font-size: 29px;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .visual-metrics {
    grid-template-columns: 1fr;
  }

  .visual-metrics div {
    min-height: auto;
  }
}
