:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #0b1730;
  --muted: #5e6f86;
  --blue: #2f7de1;
  --blue-dark: #1e5fb4;
  --blue-soft: #eaf3ff;
  --line: #e0e8f2;
  --shadow: 0 24px 70px rgba(19, 57, 102, .11);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(47, 125, 225, .11), transparent 38%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 56px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 253, 255, .86);
  border-bottom: 1px solid rgba(224, 232, 242, .76);
  backdrop-filter: blur(14px);
}
.header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.16rem;
  font-weight: 850;
}
.brand__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.brand__icon i, .icon i { font-size: 1.25rem; line-height: 1; }
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-weight: 700;
}
.nav a:hover { color: var(--blue-dark); }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: .92rem;
  line-height: 1.2;
}

.header-contact a,
.footer-contact a {
  color: var(--blue-dark);
  font-weight: 700;
}

.header-contact a:hover,
.footer-contact a:hover { color: var(--blue); }

.contact-phone {
  font-size: 1.15rem;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #4b9bff);
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(47, 125, 225, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 22px 44px rgba(47, 125, 225, .28); }
.btn--ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}
.btn--small { min-height: 42px; padding: 0 18px; }
.btn--full { width: 100%; }

.hero { padding: 70px 0 44px; }
.hero__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  grid-template-areas:
    "text visual"
    "features visual";
  align-items: center;
  gap: 42px;
}
.hero__text { grid-area: text; }
.kicker {
  margin: 0 0 14px;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .88rem;
  font-weight: 850;
}
.kicker--light { color: rgba(255,255,255,.86); }
h1, h2 {
  margin: 0 0 18px;
  line-height: 1.05;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(2.65rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
.lead { color: var(--muted); font-size: 1.16rem; max-width: 600px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero__visual img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.hero__visual { grid-area: visual; }
.hero__features {
  grid-area: features;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mini-card {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 16px 40px rgba(19, 57, 102, .06);
}
.icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  flex: 0 0 auto;
}
.icon.small { width: 42px; height: 42px; }
.mini-card b, .mini-card span:not(.icon) { display: block; }
.mini-card b { margin-top: 12px; }
.mini-card span:not(.icon) { color: var(--muted); font-size: .94rem; }

.center { text-align: center; max-width: 780px; margin: 0 auto 36px; }
.section-title p:not(.kicker) { color: var(--muted); }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.step__image {
  height: 220px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle, rgba(47, 125, 225, .12), transparent 64%),
    #f8fbff;
}
.step__image img { max-height: 205px; object-fit: contain; border-radius: 16px; }
.step__number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 1.3rem;
}
.step h3 { margin: 0 0 10px; font-size: 1.35rem; }
.step p { margin: 0; color: var(--muted); }

.demo-video {
  padding-top: 10px;
  text-align: center;
}
.demo-video__btn {
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: 42px;
  align-items: center;
}
.split--reverse .visual-panel { order: 2; }
.split--reverse .copy { order: 1; }
.copy p:not(.kicker) { color: var(--muted); }
.feature-list, .app-list {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}
.feature, .app-list article {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.82);
}
.feature h3, .app-list h3 { margin: 0 0 6px; }
.feature p, .app-list p { margin: 0; color: var(--muted); }
.visual-panel {
  display: grid;
  place-items: center;
  padding: 26px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at center, rgba(47, 125, 225, .1), transparent 58%),
    rgba(255,255,255,.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.visual-panel img { border-radius: 22px; object-fit: contain; }

.spec-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.spec-strip article {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.spec-strip article:last-child { border-right: 0; }
.spec-strip h3 { margin: 14px 0 8px; font-size: 1.08rem; }
.spec-strip p { margin: 0; color: var(--muted); font-size: .95rem; }

.app {
  background:
    radial-gradient(circle at 82% 45%, rgba(47,125,225,.12), transparent 28%),
    linear-gradient(180deg, transparent, rgba(255,255,255,.55));
}
.app-visual img {
  max-height: 650px;
}
.store-row { margin-top: 18px; }
.store-btn {
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
}
.store-btn img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.audience-grid article {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(19, 57, 102, .06);
}
.audience-grid h3 { margin: 0 0 8px; }
.audience-grid p { margin: 0; color: var(--muted); }

.cta { padding-bottom: 76px; }
.cta__grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 34px;
  align-items: start;
  padding: 38px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.2), transparent 24%),
    linear-gradient(135deg, #1654a8, #3e93ff);
  box-shadow: var(--shadow);
}
.cta p:not(.kicker) { color: rgba(255,255,255,.82); }
.form {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.96);
  color: var(--text);
}
.form label {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
  font-weight: 750;
}
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 400;
}
.form input:focus, .form textarea:focus {
  outline: 2px solid rgba(47,125,225,.18);
  border-color: var(--blue);
}
.form .btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.form .btn {
  position: relative;
}
.btn__label {
  transition: opacity .2s ease;
}
.btn__spinner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: spin .7s linear infinite;
  transition: opacity .2s ease;
}
.form .btn.is-loading .btn__label {
  opacity: 0;
}
.form .btn.is-loading .btn__spinner {
  opacity: 1;
}
.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--blue-dark);
  font-weight: 800;
}
.form-message.error { color: var(--blue); }
.form-message.success { color: #1e5fb4; }

.popup[hidden] { display: none; }
.popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}
.popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 20, 37, .56);
}
.popup__card {
  position: relative;
  width: min(460px, calc(100% - 28px));
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 24px 70px rgba(11, 23, 48, .25);
  text-align: center;
}
.popup__card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
}
.popup__card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.reveal {
  --reveal-distance: 22px;
  --reveal-duration: 720ms;
  --reveal-delay: 0ms;
  --reveal-ease: cubic-bezier(.22, .61, .36, 1);
}

.js-reveal-enabled .reveal {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay);
  will-change: opacity, transform;
}

.js-reveal-enabled .reveal.reveal--left {
  transform: translate3d(calc(var(--reveal-distance) * -1), 0, 0);
}

.js-reveal-enabled .reveal.reveal--right {
  transform: translate3d(var(--reveal-distance), 0, 0);
}

.js-reveal-enabled .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.footer {
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.72);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
}
.footer .brand { color: var(--text); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact i {
  width: 16px;
  text-align: center;
}

@media (max-width: 1080px) {
  .hero__grid, .split, .cta__grid { grid-template-columns: 1fr; }
  .hero__grid { grid-template-areas: "text" "visual" "features"; }
  .split--reverse .visual-panel, .split--reverse .copy { order: initial; }
  .hero__features, .steps, .spec-strip, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-strip article:nth-child(2) { border-right: 0; }
  .spec-strip article { border-bottom: 1px solid var(--line); }
  .spec-strip article:nth-child(n+3) { border-bottom: 0; }
}

@media (max-width: 820px) {
  .nav, .header-contact { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 6px);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .header__inner { min-height: 70px; }
  .section { padding: 38px 0; }
  .hero { padding-top: 42px; }
  .hero__features { grid-template-columns: repeat(2, 1fr); }
  .hero__features .mini-card { text-align: center; }
  .hero__features .mini-card .icon { margin: 0 auto 14px; }
  .hero__features .mini-card:last-child { grid-column: 1 / -1; }
  .steps, .spec-strip, .audience-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .step__image { height: 190px; }
  .spec-strip article, .spec-strip article:nth-child(2), .spec-strip article:nth-child(n+3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .spec-strip article:last-child { border-bottom: 0; }
  .cta__grid { padding: 22px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal-enabled .reveal,
  .js-reveal-enabled .reveal.reveal--left,
  .js-reveal-enabled .reveal.reveal--right,
  .js-reveal-enabled .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
  .btn__spinner {
    animation: none;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
