/* Лендинг для Казахстана. Токены и компоненты – из дизайн-системы fora-soft.ru (app/globals.css). */

:root {
  --head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --paper: #f6f7fb;
  --tint: #eef2fe;
  --navy: #010513;
  --navy-card: #0a1230;
  --ink: #101427;
  --body: #454a63;
  --body-2: #5a607a;
  --muted: #656982;
  --on-dark-body: #aab0cc;
  --on-dark-tech: #cdd9ff;
  --on-dark-muted: #9398b0;

  --blue: #1a5bfa;
  --blue-dark: #5d92ff;
  --blue-raw: #2c68fa;
  --btn-from: #2e6afa;
  --btn-to: #1a5bfa;
  --line: #e7e9f2;
  --line-2: #e3e7fb;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-hover: 0 24px 44px -22px rgba(44, 104, 250, .4);
  --glow-accent: 0 12px 24px -10px rgba(26, 91, 250, .55);
  --btn-glow: 0 18px 38px -14px rgba(26, 91, 250, .5);
  --btn-glow-hover: 0 24px 48px -14px rgba(26, 91, 250, .62);
  --focus: #2c68fa;
  --ease: cubic-bezier(.25, 1, .5, 1);

  --sec-y: 112px;
  --wrap: min(1400px, 90vw);
  --gutter: clamp(20px, 2.4vw, 40px);
  --reveal-shift: 18px;
}
@media (max-width: 980px) { :root { --wrap: 100vw; } }
@media (max-width: 900px) { :root { --sec-y: 88px; } }
@media (max-width: 560px) { :root { --sec-y: 56px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: clamp(16px, 0.39vw + 11px, 18.5px);
  line-height: 1.6;
  letter-spacing: -.017188em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--head); color: var(--ink); font-weight: 700; letter-spacing: -.017188em; margin: 0; }
h2 { font-size: clamp(26px, 1.2vw + 18px, 40px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; max-width: 24ch; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
h2 .accent { color: var(--blue); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: rgba(44, 104, 250, .22); color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
a:active { opacity: .7; }

/* Появление секций при прокрутке */
[data-reveal] { opacity: 0; transform: translateY(var(--reveal-shift)); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  border-radius: var(--r-pill);
  padding: 16px 28px;
  border: 1px solid transparent;
  text-align: center;
  max-width: 100%;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn-primary {
  background: linear-gradient(180deg, var(--btn-from), var(--btn-to));
  color: #fff;
  border-color: rgba(255, 255, 255, .16);
  box-shadow: var(--btn-glow);
}
.btn-secondary { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); }
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--btn-glow-hover); }
  .btn-secondary:hover { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .4); }
}
.text-link { font-family: var(--head); font-weight: 600; font-size: 14.5px; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; transition: gap .18s var(--ease); }
@media (hover: hover) { .text-link:hover { gap: 12px; } }

/* ---------- шапка ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(1, 5, 19, .72);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, .08);
}
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; gap: 28px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.nav-link { font-family: var(--head); font-weight: 500; font-size: 13.5px; padding: 12px 6px; color: #c7cfea; display: inline-flex; align-items: center; transition: color .2s var(--ease); }
@media (hover: hover) { .nav-link:hover { color: var(--blue-dark); } }
.nav-right { margin-left: auto; }
.nav-cta { padding: 12px 18px; font-size: 14px; white-space: nowrap; box-shadow: 0 10px 22px -10px rgba(26, 91, 250, .5); }

/* ---------- hero ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 112px 0 64px;
  min-height: calc(100svh - 73px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-aurora {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 26%, transparent 100%);
          mask-image: linear-gradient(to top, #000 0%, #000 26%, transparent 100%);
}
.hero-aurora::before, .hero-aurora::after {
  content: ""; position: absolute; left: -20%; right: -20%; top: -10%; bottom: 0;
  transform-origin: bottom center; mix-blend-mode: screen; will-change: transform, opacity, filter;
}
.hero-aurora::before {
  background:
    radial-gradient(45% 70% at 40% 100%, rgba(0, 115, 255, .9), transparent 72%),
    radial-gradient(34% 55% at 66% 100%, rgba(41, 137, 255, .65), transparent 74%),
    radial-gradient(48% 72% at 20% 100%, rgba(12, 74, 210, .6), transparent 76%);
  filter: blur(64px);
  animation: aurora-drift-a 15s ease-in-out infinite alternate;
}
.hero-aurora::after {
  background:
    radial-gradient(28% 62% at 52% 100%, rgba(140, 205, 255, .85), transparent 68%),
    radial-gradient(22% 50% at 80% 100%, rgba(96, 165, 255, .55), transparent 74%);
  animation: aurora-drift-b 11s ease-in-out infinite alternate;
}
.hero-aurora-beam {
  position: absolute; left: 50%; bottom: -8%; width: 120%; height: 85%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 100%, rgba(190, 225, 255, .6), rgba(120, 190, 255, .2) 45%, transparent 68%);
  filter: blur(24px); mix-blend-mode: screen;
  animation: aurora-beam 9s ease-in-out infinite alternate;
}
@keyframes aurora-drift-a {
  0%   { transform: translateX(-7%) scaleY(1);    opacity: .8; filter: blur(64px); }
  50%  { transform: translateX(5%)  scaleY(1.18); opacity: 1;  filter: blur(54px); }
  100% { transform: translateX(-3%) scaleY(1.05); opacity: .85; filter: blur(60px); }
}
@keyframes aurora-drift-b {
  0%   { transform: translateX(6%)  scaleY(1.1); opacity: .7; }
  100% { transform: translateX(-6%) scaleY(1.3); opacity: .95; }
}
@keyframes aurora-beam {
  0%   { transform: translateX(-54%) scaleX(1);    opacity: .55; }
  100% { transform: translateX(-46%) scaleX(1.08); opacity: .8; }
}
.home-hero-inner { position: relative; z-index: 1; width: 100%; max-width: min(1240px, var(--wrap)); margin: 0 auto; padding: 0 28px; text-align: center; }
.home-hero h1 { font-size: clamp(30px, 1.9vw + 24px, 60px); line-height: 1.08; letter-spacing: -.025em; color: #fff; text-wrap: balance; margin: 0 auto; max-width: 26ch; }
.home-hero .section-eyebrow { margin-top: 20px; }
.home-hero h1 .accent { color: var(--blue-dark); }
.home-hero-sub { color: var(--on-dark-body); font-size: clamp(16.5px, 0.36vw + 13px, 21px); line-height: 1.6; max-width: 60ch; margin: 24px auto 0; }
.home-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- консоль цифр ---------- */
.stats-console {
  max-width: min(1000px, 100%);
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 30px 64px -40px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.stats-console.four { grid-template-columns: repeat(4, 1fr); margin-top: 48px; max-width: none; }
.panel .sec-head + .stats-console { margin-top: 32px; }
.stat-cell { padding: 20px 16px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .1); transition: background-color .24s var(--ease); }
.stat-cell:first-child { border-left: none; }
@media (hover: hover) { .stat-cell:hover { background: rgba(44, 104, 250, .12); } }
.stat-num { display: block; font-family: var(--head); font-weight: 700; font-size: 30px; color: #fff; letter-spacing: -.03em; line-height: 1; margin-bottom: 6px; }
.stat-label { display: block; font-size: 12.5px; letter-spacing: .01em; color: var(--on-dark-body); line-height: 1.35; }

/* ---------- секции ---------- */
.home-section { max-width: var(--wrap); margin: 0 auto; padding: var(--sec-y) var(--gutter) 0; scroll-margin-top: 24px; }
.sec-head { display: flex; align-items: center; gap: 16px; margin: 20px 0 0; }
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-head.on-dark::after { background: rgba(255, 255, 255, .12); }
.section-eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); background: var(--tint); border: 1px solid rgba(26, 91, 250, .28);
  border-radius: var(--r-pill); padding: 8px 16px; margin: 0;
}
.section-eyebrow.on-dark { color: var(--blue-dark); background: rgba(93, 146, 255, .16); border-color: rgba(93, 146, 255, .34); }
.lead { color: var(--body-2); font-size: 17px; max-width: 62ch; margin-top: 16px; }
.sec-intro { margin-bottom: 32px; }

/* навy-панель (кейс, результат, контакты) */
.panel {
  position: relative;
  background-color: var(--navy);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: var(--r-lg);
  padding: 56px;
  color: var(--on-dark-body);
  overflow: hidden;
}
.panel h2, .panel h3 { color: #fff; }
.panel h2 .accent { color: var(--blue-dark); }
.panel .lead { color: var(--on-dark-body); }

/* ---------- услуги ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px;
  display: flex; flex-direction: column; color: var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
@media (hover: hover) { .svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); } }
.svc-icon { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--blue-raw); color: #fff; display: grid; place-items: center; margin-bottom: 16px; box-shadow: var(--glow-accent); }
.svc-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { font-size: 14.5px; color: var(--body-2); }

/* ---------- кейс ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 28px; }
.facts dt { font-size: 13px; color: var(--on-dark-muted); }
.facts dd { font-family: var(--head); font-weight: 500; font-size: 16px; color: #fff; margin-top: 4px; }
.shot { margin: 40px auto 0; border-radius: var(--r-md); }
.shot.framed { background: #fff; border: 1px solid var(--line); padding: 8px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }

/* ---------- задача: карточки с фото ---------- */
.pic-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pic-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
@media (hover: hover) { .pic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); } }
.pic-card img { width: 100%; aspect-ratio: 720 / 440; object-fit: cover; }
.pic-card h3 { margin: 24px 24px 8px; }
.pic-card p { font-size: 14.5px; color: var(--body-2); margin: 0 24px 24px; }

/* ---------- шаги (что построили, процесс) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--blue-raw); color: #fff; font-family: var(--head); font-weight: 700; font-size: 14px;
  margin-bottom: 16px; box-shadow: var(--glow-accent);
}
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { font-size: 14.5px; color: var(--body-2); }
.steps-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.chips li { font-family: var(--head); font-size: 13.5px; line-height: 1.3; letter-spacing: .01em; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 7px 12px; }

/* ---------- функции: чередующиеся ряды ---------- */
.feat { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin-top: 56px; }
.feat:nth-of-type(even) .feat-vis { order: 2; }
.feat-vis { display: flex; justify-content: center; align-items: center; background: var(--tint); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 28px; }
.feat-vis img { max-height: 420px; width: auto; max-width: 100%; border-radius: var(--r-md); }
.feat-vis.framed img { box-shadow: 0 24px 48px -28px rgba(16, 20, 39, .45); }
.feat h3 { font-size: clamp(20px, 0.6vw + 14px, 24px); margin-bottom: 12px; }
.feat p { color: var(--body-2); }

/* ---------- результат ---------- */
.result-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.lead.big { font-family: var(--head); font-weight: 500; font-size: clamp(20px, 0.9vw + 13px, 28px); line-height: 1.4; letter-spacing: -.01em; color: #fff; max-width: 32ch; margin-top: 0; }
.quote { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .12); }
.quote-mark { font-family: var(--head); font-weight: 800; font-size: 44px; line-height: .7; color: var(--blue-dark); margin-bottom: 20px; }
.quote p { font-family: var(--head); font-weight: 500; font-size: clamp(18px, 0.6vw + 14px, 24px); line-height: 1.45; color: #fff; letter-spacing: -.01em; }
.quote footer { margin-top: 16px; font-size: 14px; color: var(--on-dark-muted); }

/* ---------- контакты ---------- */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 36px; }
.contacts > div { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-md); padding: 24px; }
.contacts span { display: block; font-size: 12.5px; letter-spacing: .01em; color: var(--on-dark-muted); margin-bottom: 8px; }
.contacts a, .contacts p { color: #fff; font-family: var(--head); font-weight: 600; font-size: 17px; line-height: 1.4; }
@media (hover: hover) { .contacts a:hover { color: var(--blue-dark); } }

/* ---------- подвал ---------- */
.site-footer { margin-top: var(--sec-y); background: var(--navy); font-size: 13px; letter-spacing: .01em; color: #8b91b0; line-height: 1.7; }
.site-footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 48px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .nav-inner, .site-footer-inner { padding-left: 20px; padding-right: 20px; }
  .home-hero-inner { padding-left: 20px; padding-right: 20px; }
  .svc-cards, .pic-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 40px 28px; }
  .stats-console.four { grid-template-columns: repeat(2, 1fr); }
  .feat { grid-template-columns: 1fr; gap: 24px; margin-top: 48px; }
  .feat:nth-of-type(even) .feat-vis { order: 0; }
  .feat-vis img { max-height: 360px; }
  .result-top { grid-template-columns: 1fr; gap: 32px; }
  .quote { padding-left: 0; border-left: none; }
}
@media (max-width: 760px) {
  .nav { position: static; }
  .nav-inner { flex-wrap: wrap; gap: 0 16px; padding: 10px 20px; }
  .nav-right { margin-left: auto; }
  .nav-links { order: 3; width: 100%; gap: 4px; overflow-x: auto; }
  .nav-link { padding: 8px 6px 10px; }
  .home-hero { padding: 72px 0 56px; min-height: 0; }
}
@media (max-width: 560px) {
  .home-hero-cta { flex-direction: column; align-items: stretch; }
  .home-hero-cta .btn { width: 100%; }
  .stats-console { grid-template-columns: 1fr; margin-top: 40px; }
  .stats-console.four { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-left: none; border-top: 1px solid rgba(255, 255, 255, .1); }
  .stat-cell:first-child { border-top: none; }
  .stats-console.four .stat-cell:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .1); }
  .stats-console.four .stat-cell:nth-child(2) { border-top: none; }
  .svc-cards, .pic-cards, .steps, .contacts { grid-template-columns: 1fr; }
  .steps-card { padding: 28px 20px; }
  .panel { padding: 32px 20px; border-radius: var(--r-md); }
  .shot.framed { padding: 4px; }
  .feat-vis { padding: 16px; border-radius: var(--r-md); }
  .site-footer-inner { padding: 32px 20px; }
}
