:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --text: #1f232b;
  --text-soft: #5f6673;
  --line: #dce1e8;
  --accent: #67b8ff;
  --accent-soft: #e4f3ff;
  --accent-deep: #2f95ea;
  --surface-tint: #f9fcff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 56px rgba(31, 35, 43, 0.09);
  --container: min(1200px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246, 247, 248, 0.78);
  border-bottom: 1px solid rgba(220, 225, 232, 0.8);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 30;
  background: rgba(103, 184, 255, 0.12);
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(to right, #9ad8ff, var(--accent-deep));
  transition: width 0.12s linear;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #8accff 0%, var(--accent-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(31, 35, 43, 0.08);
}

.main-nav {
  display: flex;
  gap: 20px;
  color: var(--text-soft);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
}

.mobile-menu-inner {
  display: grid;
  gap: 8px;
}

.mobile-menu-inner a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 0 12px;
}

.mobile-menu-inner a.active {
  background: #f2f9ff;
}

.btn {
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(103, 184, 255, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: rgba(103, 184, 255, 0.6);
  background: #f8fbff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.hero {
  padding: 60px 0 48px;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  z-index: -1;
}

.hero::before {
  width: 360px;
  height: 360px;
  background: rgba(103, 184, 255, 0.18);
  left: 10%;
  top: 20px;
}

.hero::after {
  width: 280px;
  height: 280px;
  background: rgba(116, 217, 255, 0.13);
  right: 4%;
  top: 30%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.card {
  background: linear-gradient(180deg, #fff 0%, var(--surface-tint) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(31, 35, 43, 0.12);
}

.hero-copy {
  padding: 40px;
}

.hero-risk-strip {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  border: 1px solid rgba(103, 184, 255, 0.32);
  background: rgba(240, 248, 255, 0.8);
  font-size: 12px;
  color: #1b6cae;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #1f6fb2;
  font-size: 13px;
  padding: 7px 12px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.015em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
}

.lead {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.55;
  max-width: 640px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stats-row {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-chip {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fafbfc;
}

.stat-chip strong {
  display: block;
  font-size: 20px;
}

.stat-chip span {
  color: var(--text-soft);
  font-size: 13px;
}

.hero-path {
  padding: 28px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.path-grid {
  height: 100%;
  background-image: radial-gradient(circle at 1px 1px, #e7edf4 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 14px;
  padding: 16px;
  position: relative;
}

.path-grid::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 170deg, transparent 20%, rgba(103, 184, 255, 0.14) 48%, transparent 70%);
  animation: orbit 11s linear infinite;
  z-index: 0;
}

.path-grid > * {
  position: relative;
  z-index: 1;
}

.path-stage {
  position: relative;
  margin: 18px 0;
  padding-left: 34px;
  color: var(--text-soft);
  font-size: 14px;
}

.path-stage::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--line);
  position: absolute;
  left: 8px;
  top: 1px;
  background: #fff;
  transition: all 0.25s ease;
}

.path-stage::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  width: 2px;
  height: calc(100% + 12px);
  background: linear-gradient(to bottom, #f0f2f5, #dde3ea);
}

.path-stage:last-child::after {
  display: none;
}

.path-stage.active {
  color: var(--text);
}

.path-stage.active::before {
  border-color: rgba(103, 184, 255, 0.3);
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(103, 184, 255, 0.18);
}

.section {
  padding: 26px 0 10px;
}

.section-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
}

.section-subtitle {
  color: var(--text-soft);
  max-width: 640px;
  line-height: 1.6;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 14px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.service-card,
.case-card,
.trust-card,
.maxim-card,
.contact-card,
.step-card {
  padding: 24px;
}

.service-card p,
.trust-card p,
.case-card p,
.step-card p {
  color: var(--text-soft);
  line-height: 1.55;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-soft);
  background: #fcfcfd;
}

.map-shell {
  padding: 24px;
  position: relative;
}

.map-hint {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 13px;
}

.service-map {
  position: relative;
  min-height: 430px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #fff 0%, #f4faff 100%);
  overflow: hidden;
}

.service-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(103, 184, 255, 0.06) 45%, transparent 100%);
  animation: mapSheen 7s ease-in-out infinite;
  pointer-events: none;
}

.map-node {
  position: absolute;
  min-width: 130px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 13px;
  box-shadow: 0 10px 26px rgba(31, 35, 43, 0.07);
  cursor: pointer;
  transition: all 0.25s ease;
}

.map-node::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  right: 8px;
  top: 8px;
  border-radius: 50%;
  background: #d8e9f7;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.map-node small {
  display: block;
  color: var(--text-soft);
  margin-top: 4px;
}

.map-node.active {
  border-color: rgba(103, 184, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(103, 184, 255, 0.26);
}

.map-node.active::after {
  background: var(--accent-deep);
  box-shadow: 0 0 0 5px rgba(103, 184, 255, 0.2);
}

.map-link {
  position: absolute;
  height: 2px;
  background: linear-gradient(to right, rgba(31, 35, 43, 0.15), rgba(31, 35, 43, 0.05));
  transform-origin: left center;
}

.map-link.active {
  background: linear-gradient(to right, rgba(103, 184, 255, 0.9), rgba(103, 184, 255, 0.14));
}

.service-map.compact {
  display: grid;
  gap: 8px;
  padding: 12px;
  min-height: auto;
}

.service-map.compact .map-node {
  position: static;
  width: 100%;
  text-align: left;
}

.service-map.compact .map-link {
  display: none;
}

.mock-visual {
  border-radius: 14px;
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(145deg, #dce6ef 0%, #c6d1dd 38%, #f2e8df 100%);
  position: relative;
  overflow: hidden;
}

.mock-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.36) 45%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 4.8s linear infinite;
}

.mock-visual::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1));
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes mapSheen {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(-12%);
  }
  50% {
    opacity: 1;
    transform: translateX(12%);
  }
}

.case-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.case-kpis {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.case-kpis div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 9px;
  background: #fff;
}

.case-kpis strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.case-kpis span {
  color: var(--text-soft);
  font-size: 11px;
}

.quote {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(103, 184, 255, 0.45);
  background: #f5fbff;
  color: #235d8d;
  font-size: 14px;
  line-height: 1.5;
}

.steps-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.step-card {
  padding: 16px;
  text-align: center;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #1f6fb2;
  font-weight: 700;
}

.quiz {
  padding: 24px;
}

.quiz-progress {
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  height: 8px;
  background: #edf0f3;
  margin-bottom: 18px;
}

.quiz-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, #9dd6ff, var(--accent-deep));
  transition: width 0.35s ease;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.quiz-option:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 184, 255, 0.45);
}

.quiz-option.selected {
  border-color: rgba(103, 184, 255, 0.6);
  background: #f2f9ff;
}

.quiz-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  padding: 26px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-soft);
  font-size: 14px;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 24px rgba(31, 35, 43, 0.16);
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.float-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 184, 255, 0.45);
  box-shadow: 0 16px 32px rgba(31, 35, 43, 0.2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.textarea {
  min-height: 130px;
  resize: vertical;
}

.section.is-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.section.is-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1280px) {
  :root {
    --container: min(1200px, calc(100% - 36px));
  }

  .hero-copy {
    padding: 30px;
  }

  .hero-risk-strip {
    margin-top: 14px;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .grid-4,
  .grid-3,
  .steps-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-map {
    min-height: 500px;
  }
}

@media (max-width: 920px) {
  .header-inner {
    min-height: 70px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(28px, 6vw, 42px);
  }

  .lead {
    font-size: 16px;
  }

  .main-nav,
  .header-actions .btn-secondary {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: max-height 0.32s ease, border-color 0.32s ease;
  }

  .mobile-menu.open {
    max-height: 420px;
    border-top-color: var(--line);
  }

  .mobile-menu-inner {
    width: var(--container);
    margin: 0 auto;
    padding: 12px 0 16px;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(1200px, calc(100% - 26px));
  }

  .hero {
    padding-top: 24px;
  }

  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .contact-grid,
  .steps-line {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-path {
    padding: 20px;
  }

  .hero-risk-strip {
    gap: 6px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    width: 100%;
  }

  .floating-contact {
    right: 12px;
    bottom: 12px;
  }

  .float-chip {
    min-width: 44px;
    height: 44px;
    font-size: 0;
  }

  .float-chip::before {
    content: attr(aria-label);
    font-size: 10px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  :root {
    --radius-lg: 18px;
  }

  h1 {
    font-size: 30px;
    line-height: 1.1;
  }

  .hero-copy,
  .hero-path,
  .service-card,
  .case-card,
  .trust-card,
  .maxim-card,
  .contact-card,
  .step-card,
  .quiz {
    padding: 16px;
  }

  .stat-chip strong {
    font-size: 18px;
  }

  .case-kpis {
    grid-template-columns: 1fr;
  }

  .risk-pill {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
