/* ==========================================================================
   И-СЕРВИС — design tokens (PLAN.md §2)
   ========================================================================== */
:root {
  --brand: #3D5AFE;
  --brand-600: #2F46D6;
  --brand-700: #2338B8;
  --brand-300: #8FA2FF;
  --brand-100: #E6EBFF;
  --sky: #EAF3FF;
  --bg: #FFFFFF;
  --bg-soft: #F4F7FF;
  --ink: #0E1330;
  --muted: #474F72;
  --line: #E3E8F7;
  --ok: #16A34A;
  --err: #D92D20;

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(61, 90, 254, .25);
  --shadow-lg: 0 40px 90px -30px rgba(61, 90, 254, .38);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 9vw, 128px);
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* Большие экраны (2K, 4K): масштабируем страницу целиком, чтобы интерфейс не казался мелким.
   --z нужна, чтобы единицы vh не растягивались вместе с масштабом. */
:root { --z: 1; }
@media (min-width: 2200px) { :root { --z: 1.25; } html { zoom: 1.25; } }
@media (min-width: 2500px) { :root { --z: 1.33; } html { zoom: 1.33; } }
@media (min-width: 3200px) { :root { --z: 1.75; } html { zoom: 1.75; } }
@media (min-width: 3700px) { :root { --z: 2; } html { zoom: 2; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: linear-gradient(180deg, #F7F9FF 0%, #FFFFFF 30%, #F5F8FF 60%, #FFFFFF 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--sky { background: rgba(228, 238, 255, .75); }
.section--soft { background: rgba(240, 244, 255, .8); }
.section--dark { background: linear-gradient(135deg, var(--brand-700) 0%, #16206B 55%, var(--ink) 100%); color: #fff; }
.section--dark .eyebrow { background: rgba(255, 255, 255, .14); color: #DCE4FF; }
.section--dark .h2 { color: #fff; }

/* diagonal section cut (logo angle ≈ 50°) */
.cut-top { clip-path: polygon(0 64px, 100% 0, 100% 100%, 0 100%); margin-top: -64px; padding-top: calc(var(--section) + 64px); }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; justify-self: start; padding: 7px 14px; border-radius: 999px; background: rgba(230, 235, 255, .8); font: 700 13px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700); }
.h1 { font-size: clamp(40px, 6.2vw, 88px); font-weight: 800; }
.h2 { font-size: clamp(30px, 4.2vw, 56px); font-weight: 800; }
.h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.accent { color: var(--brand); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 64px); max-width: 760px; }
.section-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--brand); --fg-btn: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--bg-btn); color: var(--fg-btn);
  font: 700 16px/1 var(--font-head); cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  box-shadow: 0 12px 30px -12px rgba(61, 90, 254, .6);
}
/* diagonal left→right fill */
.btn::before {
  content: ""; position: absolute; inset: 0 -30%; z-index: -1;
  background: var(--brand-700);
  transform: translateX(-110%) skewX(-40deg);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0) skewX(-40deg); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg-btn: transparent; --fg-btn: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost::before { background: var(--brand-100); }
.btn--white { --bg-btn: #fff; --fg-btn: var(--brand); box-shadow: 0 12px 30px -12px rgba(14, 19, 48, .4); }
.btn--white::before { background: var(--brand-100); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--font-head); color: var(--brand); }
.section-head--row .link-arrow { padding: 12px 20px; border: 1.5px solid var(--brand); border-radius: 999px; transition: background-color .25s, color .25s; }
.section-head--row .link-arrow:hover { background: var(--brand); color: #fff; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .35s var(--ease-out), background-color .35s, box-shadow .35s;
}
.header.is-scrolled {
  --header-h: 72px; height: 72px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header .container { display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; flex: none; view-transition-name: site-logo; }
.logo svg { height: 78px; width: auto; transition: height .35s var(--ease-out); }
.header.is-scrolled .logo svg { height: 58px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 14px; font: 600 15px/1 var(--font-head); color: var(--ink); border-radius: 10px;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--brand); }
.header-phone { display: inline-flex; align-items: center; gap: 10px; font: 800 16px/1 var(--font-head); white-space: nowrap; }
.header-phone::before { content: ""; width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--brand-100) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233D5AFE' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") center / 16px no-repeat; }
.header-phone:hover { color: var(--brand); }
.burger { display: none; width: 44px; height: 44px; flex: none; border: 0; background: var(--brand-100); border-radius: 12px; cursor: pointer; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 26px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: #fff; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 6px;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); visibility: hidden;
  transition: clip-path .6s var(--ease-io), visibility 0s .6s;
}
.menu-open .mobile-menu { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; transition: clip-path .6s var(--ease-io); }
.mobile-menu a:not(.btn) { font: 800 32px/1.25 var(--font-head); padding: 6px 0; }
.mobile-menu .btn { margin-top: 20px; }
.mobile-menu .mm-phones { margin-top: auto; display: grid; gap: 6px; font: 700 18px/1.3 var(--font-head); }

@media (max-width: 1080px) {
  :root { --header-h: 80px; }
  .header.is-scrolled { --header-h: 64px; height: 64px; }
  .logo svg { height: 60px; }
  .header.is-scrolled .logo svg { height: 48px; }
  .nav, .header .btn, .header-phone { display: none; }
  .burger { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh / var(--z)); display: flex; align-items: flex-start; padding: calc(var(--header-h) + 12px) 0 64px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; position: relative; }
.hero-copy { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 80px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .line--sub { font-size: .56em; line-height: 1.25; color: #8A92B5; letter-spacing: -.01em; margin-top: .12em; }
.hero .eyebrow { background: #fff; border: 1px solid var(--line); gap: 8px; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.hero .btn { min-height: 60px; padding: 0 30px; font-size: 17px; }
.hero-stats { display: inline-flex; flex-wrap: wrap; justify-self: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 8px; }
.hero-stats > div { display: grid; gap: 2px; padding: 0 22px; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.hero-stats b { font: 800 clamp(20px, 2vw, 24px)/1.15 var(--font-head); color: var(--brand); letter-spacing: -.02em; white-space: nowrap; }
.hero-stats span { font-size: 14px; color: var(--muted); }
.hero-visual img { border-radius: 32px; }
.hero-visual::before { content: ""; position: absolute; inset: 0; border-radius: 32px; background: linear-gradient(145deg, #EAF3FF 0%, #DCE6FF 100%); }
.hero-addr { position: absolute; z-index: 2; left: 0; top: calc(100% + 16px); display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); }
.hero-addr i { width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--brand) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/><circle cx='12' cy='10' r='3'/></svg>") center / 20px no-repeat; }
.hero-addr b { display: block; font: 700 15px/1.3 var(--font-head); }
.hero-addr span { font-size: 13px; color: var(--muted); }
.trust { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--brand-100); color: var(--brand-700); border-radius: 999px; font: 600 14px/1 var(--font-head); }
.chip svg { width: 16px; height: 16px; }
.hero-visual { position: relative; aspect-ratio: 4 / 3.4; }
.hero-visual img, .hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-visual img { mix-blend-mode: multiply; transition: opacity .8s var(--ease-out); }
.hero-visual canvas { opacity: 0; transition: opacity .9s var(--ease-out); }
.hero-visual.is-3d canvas { opacity: 1; }
.hero-visual.is-3d img { opacity: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px 32px; padding-top: 8px; color: var(--muted); font-size: 15px; }
.hero-meta strong { display: block; color: var(--ink); font: 700 17px/1.3 var(--font-head); }
.scroll-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; z-index: 1; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brand); animation: wheel 1.8s var(--ease-io) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* soft gradient blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0; }
.blob--a { width: 520px; height: 520px; background: radial-gradient(circle, var(--brand-100), transparent 70%); right: -120px; top: 40px; }
.blob--b { width: 420px; height: 420px; background: radial-gradient(circle, #DCE8FF, transparent 70%); left: -160px; bottom: -80px; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; max-width: 520px; width: 100%; margin: 0 auto -16px; aspect-ratio: 4 / 3; }
  .hero-visual { margin-bottom: 84px; }
  .hero-addr { left: 0; top: calc(100% + 12px); }
  .hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-self: stretch; padding: 16px 4px; }
  .hero-stats > div { padding: 0 10px; }
  .hero-stats b { font-size: 17px; }
  .hero-stats span { font-size: 12px; }
  .scroll-hint { display: none; }
}

/* ---------- Direction cards ---------- */
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dir-card {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--bg-soft); border-radius: 28px; border: 1px solid var(--line);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .4s var(--ease-out);
}
.dir-card { transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.dir-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.dir-card__media { aspect-ratio: 4 / 2.7; overflow: hidden; }
.dir-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .9s var(--ease-out); }
.dir-card:hover .dir-card__media img { transform: scale(1.1); }
.dir-card__body { display: grid; gap: 14px; padding: 28px 32px 32px; align-content: start; }
.ticks { display: grid; gap: 8px; color: var(--muted); }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks svg { width: 18px; height: 18px; flex: none; color: var(--brand); stroke-width: 2.4; }
.dir-card .btn { justify-self: start; margin-top: 8px; }
@media (max-width: 820px) { .directions { grid-template-columns: 1fr; } .dir-card__body { padding: 24px; } }

/* tilt glare */
.tilt { position: relative; }
.tilt .glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 45%); mix-blend-mode: soft-light; z-index: 2; }
.tilt:hover .glare { opacity: 1; }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
  transform-style: preserve-3d;
}
.svc:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-4px); }
.svc__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--brand); color: #fff; transition: background-color .3s, transform .45s var(--ease-out); }
.svc__icon svg { width: 30px; height: 30px; }
.svc:hover .svc__icon { background: var(--brand-700); }
.svc .h3 { font-weight: 800; }
.svc p { color: var(--muted); font-size: 15px; }
.svc__price { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l a" "p a"; align-items: center; column-gap: 12px; }
.svc__price span { grid-area: l; font-size: 13px; color: var(--muted); }
.svc__price b { grid-area: p; color: var(--brand); font: 800 clamp(24px, 2.4vw, 30px)/1.15 var(--font-head); letter-spacing: -.02em; }
.svc:has(a.stretched) .svc__price::after { content: "\2192"; grid-area: a; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-100); color: var(--brand); font: 700 20px/1 var(--font-head); transition: background-color .3s, color .3s, transform .4s var(--ease-out); }
.svc:hover:has(a.stretched) .svc__price::after { background: var(--brand); color: #fff; transform: translateX(3px); }
.svc a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (max-width: 980px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

.cta-inline { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 24px 28px; border-radius: var(--radius); background: var(--brand-100); }
.cta-inline p { font: 700 clamp(17px, 1.6vw, 20px)/1.3 var(--font-head); }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process__line { display: none; }
.step { position: relative; display: grid; gap: 14px; align-content: start; padding: 24px 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step:not(:last-child)::after { content: "\2192"; position: absolute; right: 22px; top: 36px; font: 700 22px/1 var(--font-head); color: var(--brand-300); }
.step__num { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--brand); color: #fff; font: 800 22px/1 var(--font-head); }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .process { grid-template-columns: 1fr 1fr; } .step:not(:last-child)::after { display: none; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.fact__value { font: 800 clamp(28px, 2.8vw, 34px)/1.2 var(--font-head); color: var(--brand); letter-spacing: -0.02em; }
.fact__value small { font-size: .55em; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.fact p { color: var(--muted); font-size: 15px; }
/* тёмная полоса фактов на главной */
.section--dark .facts { gap: 32px; }
.section--dark .fact { padding: 24px 0 0; border: 0; border-top: 2px solid rgba(255, 255, 255, .3); border-radius: 0; background: transparent; gap: 12px; }
.section--dark .fact__value { color: #fff; }
.section--dark .fact p { color: #C9D3FF; }
@media (max-width: 1100px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Dev section ---------- */
.dev { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.dev__list { display: grid; gap: 16px; margin-top: 8px; }
.dev__list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.dev__list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; }
.dev__list .ico svg { width: 22px; height: 22px; }
.dev__list strong { font: 700 17px/1.3 var(--font-head); display: block; margin-bottom: 2px; }
.dev__list span { color: var(--muted); font-size: 15px; }
.mockup-stage { perspective: 1400px; }
.mockup { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-soft); transform: rotateY(-14deg) rotateX(6deg); transform-style: preserve-3d; will-change: transform; }
.mockup img { width: 100%; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) { .dev { grid-template-columns: 1fr; } .mockup { transform: none; } }

/* case card */
.case { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff; }
.case__body { padding: clamp(28px, 4vw, 48px); display: grid; gap: 16px; align-content: center; }
.case__body .eyebrow { color: #fff; background: rgba(255, 255, 255, .1); }
.case__body p { color: #B9C0DD; }
.case__screen { position: relative; background: linear-gradient(135deg, var(--brand) 0%, #6C83FF 100%); display: grid; place-items: center; padding: 32px; min-height: 280px; }
.case .chip { background: rgba(255, 255, 255, .1); color: #fff; }
/* abstract desktop window (CSS illustration, no fake screenshots) */
.win { width: 100%; max-width: 440px; background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); overflow: hidden; transform: rotate(-3deg); }
.win__bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win__body { display: grid; grid-template-columns: 90px 1fr; min-height: 200px; }
.win__side { background: var(--brand-100); padding: 12px 10px; display: grid; gap: 8px; align-content: start; }
.win__side i { height: 8px; border-radius: 4px; background: var(--brand-300); opacity: .7; }
.win__side i:first-child { background: var(--brand); opacity: 1; }
.win__main { padding: 14px; display: grid; gap: 8px; align-content: start; }
.win__main i { height: 18px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); }
.win__main i.h { height: 10px; width: 50%; background: var(--ink); opacity: .8; border: 0; }
.win__main i.b { width: 38%; height: 26px; background: var(--brand); border: 0; justify-self: end; border-radius: 8px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font: 700 17px/1.35 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-100); position: relative; transition: background-color .3s, transform .4s var(--ease-out); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--brand); border-radius: 2px; transition: transform .4s var(--ease-out), background-color .3s; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] .pm { background: var(--brand); transform: rotate(180deg); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: #fff; }
.faq details[open] .pm::after { transform: rotate(0); }
.faq .faq__a { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contact / form ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.form-card { background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); display: grid; gap: 24px; align-content: start; position: relative; overflow: hidden; }
.tabs { display: inline-flex; padding: 4px; background: var(--bg-soft); border-radius: 999px; gap: 4px; justify-self: start; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font: 700 14px/1 var(--font-head); cursor: pointer; color: var(--muted); transition: background-color .3s, color .3s; }
.tabs button[aria-selected="true"] { background: var(--brand); color: #fff; }
.tabs button:focus, .tabs button:focus-visible { outline: none; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 24px 16px 10px; min-height: 58px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field textarea { min-height: 116px; }
.field label { position: absolute; left: 17px; top: 18px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease-out), color .25s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.78); color: var(--brand); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); animation: shake .4s var(--ease-io); }
.field .err { display: block; font-size: 13px; color: var(--err); margin-top: 6px; min-height: 0; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--line); border-radius: 14px; cursor: pointer; color: var(--muted); font-size: 15px; transition: border-color .25s, background-color .25s; }
.file:hover { border-color: var(--brand-300); background: var(--bg-soft); }
.file svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.check a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.check.is-invalid { color: var(--err); }
.hp { position: absolute; left: -9999px; }
.form-success { position: absolute; inset: 0; background: #fff; display: grid; place-items: center; text-align: center; padding: 32px; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility 0s .5s; }
.form-card.is-sent .form-success { opacity: 1; visibility: visible; transition: opacity .5s var(--ease-out); }
.form-success > div { display: grid; gap: 14px; justify-items: center; max-width: 380px; }
.form-success svg { width: 88px; height: 88px; }
.form-success circle { stroke: var(--brand-100); }
.form-success path { stroke: var(--brand); stroke-dasharray: 60; stroke-dashoffset: 60; }
.form-card.is-sent .form-success path { animation: draw .7s .25s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Чат ---------- */
.chat-start, .chat-room { display: grid; gap: 24px; }
.chat-start[hidden], .chat-room[hidden], .chat-closed[hidden], .chat-file[hidden], .chat-composer[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.chat-head > div { display: grid; gap: 6px; }
.chat-link { border: 0; background: none; padding: 6px 0; font: 600 14px/1.2 var(--font-body); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; flex: none; }
.chat-link:hover { color: var(--brand); }
.chat-log { height: clamp(280px, 46vh, 440px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); scroll-behavior: smooth; }
.chat-msg { max-width: min(82%, 420px); display: grid; gap: 4px; padding: 10px 14px 8px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.chat-msg p { margin: 0; white-space: pre-wrap; }
.chat-msg__who { font: 700 12.5px/1.2 var(--font-head); letter-spacing: .01em; }
.chat-msg time { font-size: 12px; opacity: .7; justify-self: end; }
.chat-msg--me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.chat-msg--me .chat-msg__who { color: #D8DFFF; }
.chat-msg--them { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-msg--them .chat-msg__who { color: var(--brand); }
.chat-msg__img { display: block; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, .06); min-width: 120px; min-height: 80px; }
.chat-msg__img img { display: block; max-width: 100%; max-height: 220px; width: auto; height: auto; }
.chat-msg__gone { font-size: 13px; opacity: .7; }
.chat-closed { display: flex; gap: 12px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--brand-100); }
.chat-closed p { margin: 0; font-weight: 600; }
.chat-composer { display: flex; gap: 10px; align-items: flex-end; }
.chat-composer textarea { flex: 1; min-height: 48px; max-height: 140px; resize: none; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 24px; background: #fff; line-height: 1.4; font: inherit; }
.chat-composer textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.chat-attach { position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); cursor: pointer; color: var(--brand); transition: background-color .25s, border-color .25s; }
.chat-attach:hover { background: var(--bg-soft); border-color: var(--brand-300); }
.chat-attach svg { width: 22px; height: 22px; }
.chat-attach input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; font-size: 0; }
.chat-attach:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.chat-send { width: 48px; height: 48px; min-width: 48px; padding: 0; border-radius: 50%; flex: none; display: grid; place-items: center; }
.chat-send svg { width: 20px; height: 20px; }
.chat-file { margin: -12px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .chat-in-view .fab, .chat-in-view .to-top { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (max-width: 520px) { .chat-msg { max-width: 90%; } .chat-head { flex-direction: column; gap: 4px; } }

.info-card { border-radius: 28px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.info-card__top { display: grid; grid-template-columns: 1fr 140px; gap: 16px; padding: clamp(24px, 3vw, 36px); align-items: center; }
.info-card__top img { mix-blend-mode: multiply; }
.info-list { display: grid; gap: 18px; }
.info-list dt { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.info-list dd { margin: 4px 0 0; font: 700 18px/1.4 var(--font-head); }
.info-list dd a:hover { color: var(--brand); }
.map { min-height: 280px; background: var(--brand-100); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .info-card__top { grid-template-columns: 1fr; } .info-card__top img { display: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; position: relative; }
.page-hero h1 { view-transition-name: page-title; }
.page-hero__img { mix-blend-mode: multiply; border-radius: 24px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }
.crumbs a:hover { color: var(--brand); }
@media (max-width: 860px) { .page-hero .container { grid-template-columns: minmax(0, 1fr) !important; } .page-hero__img { max-width: 440px; } }

/* ---------- Price table ---------- */
.price-group { margin-bottom: 48px; }
.price-group h2 { margin-bottom: 20px; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 16px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th { background: var(--bg-soft); font: 700 13px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-family: var(--font-head); font-weight: 700; }
.price-table td:last-child { color: var(--brand); }
.price-table tbody tr { transition: background-color .2s; }
.price-table tbody tr:hover { background: var(--bg-soft); }
@media (max-width: 600px) {
  .price-table th, .price-table td { padding: 14px 16px; }
  .price-table td:last-child { white-space: normal; }
}
.price-search { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.price-search input { flex: 1 1 260px; min-height: 52px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; }
.price-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.note { padding: 18px 22px; border-radius: var(--radius-sm); background: var(--brand-100); color: var(--brand-700); font-size: 15px; }

/* requisites */
.req { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.req dt, .req dd { margin: 0; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.req dt { background: var(--bg-soft); color: var(--muted); font-weight: 600; font-size: 14px; }
.req dd { font-weight: 500; }
.req dt:last-of-type, .req dd:last-of-type { border-bottom: 0; }
@media (max-width: 600px) { .req { grid-template-columns: 1fr; } .req dt { border-bottom: 0; padding-bottom: 4px; } .req dd { padding-top: 0; background: var(--bg-soft); } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; background: var(--brand); color: #fff; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band::before { content: ""; position: absolute; width: 60%; height: 220%; right: -10%; top: -60%; background: linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); transform: skewX(-40deg); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band p { color: #DCE2FF; margin-top: 12px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #B9C0DD; padding: 72px 0 32px; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer .logo svg { height: 72px; }

.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Floating call button (mobile) ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: var(--brand); color: #fff; display: none; place-items: center; box-shadow: 0 16px 40px -10px rgba(61, 90, 254, .7); }
.fab svg { width: 26px; height: 26px; }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: ring 2.4s var(--ease-out) infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 1080px) { .fab { display: grid; } }

/* ---------- Loader (first visit only) ---------- */
.loader { position: fixed; inset: 0; z-index: 500; background: #fff; display: grid; place-items: center; }
.loader svg { width: 110px; height: auto; overflow: visible; }
.loader .lp { fill: transparent; stroke: var(--brand); stroke-width: 4; stroke-dasharray: 1500; stroke-dashoffset: 1500; }
.loader .lt { opacity: 0; fill: var(--brand); }
html:not(.first-visit) .loader { display: none; }

/* ---------- Reveal defaults (JS adds .js) ---------- */
.js [data-reveal] { opacity: 0; }
.js .hero h1 .line > span { transform: translateY(105%); }

/* ---------- Page transitions: View Transitions API (cross-document) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .55s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in .65s var(--ease-io) both; }
@keyframes vt-out { to { opacity: .4; transform: translateY(-24px); } }
@keyframes vt-in {
  from { clip-path: polygon(0 100%, 100% 140%, 100% 140%, 0 100%); }
  to { clip-path: polygon(0 -40%, 100% 0, 100% 100%, 0 100%); }
}
::view-transition-group(site-logo), ::view-transition-group(page-title) { animation-duration: .6s; animation-timing-function: var(--ease-out); }

/* fallback curtain for browsers without cross-document VT */
.curtain { position: fixed; inset: -10% -30%; z-index: 400; background: var(--brand); pointer-events: none; transform: translateX(-130%) skewX(-40deg); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; }
  .js .hero h1 .line > span { transform: none; }
  .mockup { transform: none; }
  .loader { display: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ==========================================================================
   v3: фон с 3D-сценой, портфолио, списки цен в карточках
   ========================================================================== */
/* Фон: шейдерный градиент (assets/js/bg.js). Пока он грузится или если WebGL нет, виден такой же статичный градиент. */
.bg-scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(42vw 42vw at 96% 18%, rgba(143, 162, 255, .42), transparent 70%),
    radial-gradient(48vw 48vw at 2% 70%, rgba(214, 223, 255, .9), transparent 70%),
    radial-gradient(26vw 26vw at 84% 92%, rgba(61, 90, 254, .14), transparent 70%),
    linear-gradient(180deg, #F7F9FF, #EEF4FF); }
.bg-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease-out); }
.bg-scene.is-ready canvas { opacity: 1; }
/* лёгкое зерно, чтобы градиент не выглядел пластиковым и не было полос */
.bg-scene::after { content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2 0 0 0 0 .25 0 0 0 0 .6 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }.header, .main, main, .footer { position: relative; }

.svc { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.svc__list { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.svc__list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.svc__list b { color: var(--ink); font: 600 14px/1.3 var(--font-head); white-space: nowrap; }
.price-group h2 { display: flex; align-items: center; gap: 12px; }
.price-group__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; flex: none; }
.price-group__ico svg { width: 22px; height: 22px; }
.chip--lg { font-size: 16px; padding: 12px 18px; }
.facts--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .facts--3 { grid-template-columns: 1fr; } }
.about-logo { max-width: 300px; justify-self: center; filter: drop-shadow(0 30px 40px rgba(61, 90, 254, .25)); }

.case__screen.has-img { padding: 0; }
.case__screen.has-img img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 820px) { .portfolio-grid { grid-template-columns: 1fr; } }
.pf-card { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.pf-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.pf-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--brand) 0%, #6C83FF 100%); display: grid; place-items: center; padding: 0; }
.pf-card__media.is-empty { padding: 28px; }
.pf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.pf-card:hover .pf-card__media img { transform: scale(1.05); }
.pf-card__body { padding: 24px 28px 28px; display: grid; gap: 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.gallery__item { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.gallery__item img { width: 100%; height: auto; transition: transform .6s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.02); }
[data-lightbox] .gallery__item { cursor: zoom-in; }
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 72px 88px; background: rgba(10, 14, 38, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: lbIn .25s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } }
.lb-stage { margin: 0; display: grid; place-items: center; max-width: 100%; }
.lb-stage img { max-width: min(100%, 1700px); max-height: calc(100svh / var(--z) - 144px); width: auto; height: auto; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); transition: opacity .25s; user-select: none; }
.lb-stage img.is-loading { opacity: 0; }
.lb-btn { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background-color .2s, transform .25s var(--ease-out); }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; margin-top: -26px; }
.lb-next { right: 20px; top: 50%; margin-top: -26px; }
.lb-prev:hover { transform: translateX(-3px); }
.lb-next:hover { transform: translateX(3px); }
.lb-count { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: #C9D3FF; font: 600 15px/1 var(--font-head); }
@media (max-width: 700px) {
  .lightbox { padding: 64px 12px 72px; }
  .lb-btn { width: 44px; height: 44px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; margin-top: 0; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-count { bottom: 28px; }
}
.prose { margin-top: 40px; max-width: 75ch; font-size: 18px; line-height: 1.7; }
/* мобильные правки: колонки сетки не шире экрана */
.hero .container > *, .page-hero .container > *, .dev > *, .contact > * { min-width: 0; }
.svc__list b { text-align: right; }
@media (max-width: 560px) {
  .btn-row .btn { white-space: normal; text-align: center; }
  .svc__list b { white-space: normal; max-width: 48%; }
}
/* единый фон без стыков: секции прозрачные, общий градиент виден сквозь всю страницу */
.section--sky, .section--soft { background: transparent; }
.cut-top { clip-path: none; margin-top: 0; padding-top: var(--section); }
/* читаемость: плотнее основной текст, мелкие подписи полужирные и не меньше 15px */
body { font-weight: 450; font-size: 16.5px; }
.lead { font-weight: 450; color: #3E4669; }
.svc p, .step p, .fact p, .dev__list span, .ticks, .svc__list, .faq__a, .info-list dt,
.hero-meta, .note, .check, .file, .crumbs, .price-table td, .pf-card__body p, .case__body p,
.footer, .cta-band p, .form-card .muted, .req dd { font-weight: 500; }
.svc p, .step p, .fact p, .dev__list span, .note, .file, .footer, .price-table td { font-size: 15.5px; }
.svc__list, .check, .crumbs { font-size: 15px; }
.chip { font-size: 14.5px; }
.eyebrow { font-size: 13.5px; }
.price-table th { font-size: 13.5px; }
.footer { color: #C9CFEA; }
.case__body p { color: #CDD3EE; }
.cta-band p { color: #E8ECFF; }
/* кнопка «Наверх» */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--brand); display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 34px -14px rgba(61, 90, 254, .45);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s, background-color .25s, color .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), background-color .25s, color .25s; }
.to-top svg { width: 22px; height: 22px; stroke-width: 2.2; transition: transform .25s var(--ease-out); }
.to-top:hover { background: var(--brand); color: #fff; }
.to-top:hover svg { transform: translateY(-2px); }
@media (max-width: 1080px) { .to-top { right: 19px; bottom: 88px; } } /* над кнопкой звонка */
.menu-open .to-top { opacity: 0; visibility: hidden; }
.loader svg { width: 120px; }

/* страница политики конфиденциальности */
.policy { max-width: 820px; font-size: 17px; line-height: 1.75; color: var(--ink); }
.policy > * + * { margin-top: 16px; }
.policy h2 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 44px; letter-spacing: -0.02em; }
.policy h3 { font-size: 19px; margin-top: 28px; }
.policy ul { padding-left: 22px; display: grid; gap: 8px; list-style: disc; }
.policy li::marker { color: var(--brand); }
.policy a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
/* ---- исправления после QA ---- */
[hidden] { display: none !important; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FDECEA; color: #B42318; font-size: 15px; line-height: 1.4; }
.map { display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.map p { margin: 0; max-width: 34ch; font-size: 14px; }
.map iframe { position: absolute; }
@media (pointer: coarse) {
  .footer a, .mobile-menu a, .footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .faq summary, .tabs [role="tab"] { min-height: 44px; }
}
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 1.8em 0 .5em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.3em; }
.prose-table { overflow-x: auto; margin: 0 0 1.4em; }
.prose-table table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; }
.prose-table th, .prose-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose-table th { font-weight: 700; background: var(--bg-soft); }
