/* ============================================================
   NightSours — космический стиль
   Палитра: чёрный / белый / тёмно-синий
   ============================================================ */

:root {
  --bg: #030509;
  --bg-2: #060a16;
  --navy: #0a1230;
  --navy-2: #101c4a;
  --blue: #4c6fff;
  --blue-2: #7da2ff;
  --blue-3: #9db4ff;
  --white: #f4f6ff;
  --muted: #8f97b3;
  --glass: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.09);
  --radius: 20px;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body:not(.is-loaded) { overflow: hidden; }

::selection { background: var(--blue); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05070f; }
::-webkit-scrollbar-thumb { background: #1a2650; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #26357a; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* ============ КОСМИЧЕСКИЙ ФОН ============ */

.space-bg {
  position: fixed;
  inset: 0;
  z-index: -1;              /* космос ВСЕГДА позади контента */
  pointer-events: none;
  overflow: hidden;
}

.nebula {
  position: absolute;
  inset: 0;
  background: url('../assets/nebula.webp') center / cover no-repeat;
  mix-blend-mode: screen;    /* чёрный фон фото растворяется в космосе */
  opacity: 0.9;
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#meteorfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.moon-glow {
  position: absolute;
  top: 10vh;
  right: 5vw;
  width: min(40vw, 470px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(140, 170, 255, 0.17) 0%, rgba(120, 150, 255, 0.06) 42%, transparent 68%);
  filter: blur(6px);
  will-change: transform;
}

.moon {
  position: absolute;
  top: 7vh;
  right: 8vw;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  object-fit: cover;
  /* r39: blend снят — вместо него луна с альфа-каналом (moon_crescent_a.webp),
     чтобы Android не перемешивал кадр при каждом скролле */
  opacity: 0.96;
  will-change: transform;
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 12%, transparent 42%, rgba(2, 3, 8, 0.55) 100%),
    linear-gradient(to bottom, rgba(2, 3, 8, 0.35), transparent 26%, rgba(2, 3, 8, 0.72) 96%);
}

.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 111, 255, 0.13), transparent 62%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
}

/* ============ PRELOADER ============ */

html:not(.js) #preloader { display: none; }
html.no-pre #preloader { display: none !important; }

#preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(90% 70% at 50% 45%, #05081a 0%, #020308 70%);
  display: grid;
  place-items: center;
  padding-top: 96px;              /* композиция заметно ниже центра экрана */
  transition: opacity 0.9s ease, visibility 0.9s ease;
  animation: preKill 0.9s ease 7s forwards;
}

@keyframes preKill {
  to { opacity: 0; visibility: hidden; }
}

#preloader.done { opacity: 0; visibility: hidden; }

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

#preloader.done .preloader-inner { transform: scale(1.08); opacity: 0.4; }

.preloader-logo {
  width: min(650px, 86vw);
  margin-bottom: 30px;
  filter: drop-shadow(0 0 28px rgba(125, 162, 255, 0.35));
}

.preloader-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.preloader-stars i {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: preTwinkle 3s ease-in-out infinite;
}

@keyframes preTwinkle {
  0%, 100% { opacity: calc(var(--o) * 0.3); }
  50%      { opacity: var(--o); }
}

.preloader-track {
  position: relative;
  width: min(540px, 82vw);
  margin: 46px 0 16px;
}

.sheep-dev {
  position: absolute;
  left: 0;
  bottom: 16px;
  width: clamp(84px, 13vw, 122px);
  z-index: 2;
  will-change: left, transform;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
}

.sheep-dev img {
  display: block;
  width: 100%;
  transform-origin: 50% 100%;
  animation: devType 1.4s ease-in-out infinite;
}

@keyframes devType {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50%      { transform: rotate(-1.6deg) translateY(-3px); }
}

.preloader-bar {
  position: relative;
  width: 100%;
  height: 12px;
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65),
              inset 0 -1px 0 rgba(255, 255, 255, 0.05),
              0 0 30px -8px rgba(70, 100, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#preloaderFill {
  display: block;
  position: relative;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1d3a9e 0%, #4c6fff 45%, #7da2ff 75%, #cdd9ff 100%);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(125, 162, 255, 0.8),
              0 0 44px rgba(70, 100, 255, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

#preloaderFill::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 34px; height: 100%;
  border-radius: 999px;
  background: radial-gradient(closest-side at 100% 50%,
    #ffffff 0%, rgba(255, 255, 255, 0.65) 35%, rgba(255, 255, 255, 0) 100%);
}

#preloaderFill::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(115deg,
    rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 68%);
  background-size: 250% 100%;
  animation: fillSheen 1.7s linear infinite;
}

@keyframes fillSheen {
  from { background-position: 125% 0; }
  to   { background-position: -125% 0; }
}

.preloader-meta {
  width: min(540px, 82vw);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.preloader-hint {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: #f4f7ff;
  text-shadow: 0 0 34px rgba(125, 162, 255, 0.35);
}

#preloaderPercent {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: #f4f7ff;
  text-shadow: 0 0 22px rgba(125, 162, 255, 0.55);
}

/* ============ HEADER ============ */

#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.4s ease;
}

#header.scrolled { padding: 10px 0; }

.header-inner {
  width: min(1440px, 97vw);
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px 0 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(12, 17, 36, 0.55), rgba(5, 8, 18, 0.35));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: height 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled .header-inner {
  height: 88px;
  background: rgba(5, 8, 18, 0.85);
  border-color: rgba(125, 162, 255, 0.22);
  box-shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.9),
              0 0 44px -18px rgba(76, 111, 255, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.logo { flex-shrink: 0; }

.logo img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(125, 162, 255, 0.4));
  transition: filter 0.3s ease, transform 0.3s ease, height 0.4s ease;
}

#header.scrolled .logo img { height: 74px; }

.logo:hover img { filter: drop-shadow(0 0 26px rgba(125, 162, 255, 0.65)); transform: translateY(-1px); }

.nav { display: flex; gap: 4px; }

.nav a {
  padding: 18px 32px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.nav a:hover {
  color: #fff;
  background: rgba(125, 162, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(125, 162, 255, 0.28);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 5, 10, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 40px 8vw;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

body.menu-open { overflow: hidden; }  /* страница не листается за открытым меню */
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }

.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  padding: 10px 0;
  color: var(--white);
}

.mobile-cta { margin-top: 24px; align-self: flex-start; }

/* мессенджеры в мобильном меню */
.mm-msg { display: flex; gap: 16px; margin-top: 34px; }
.mm-msg a {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 20px;
  transition: transform 0.3s ease;
}
.mm-msg a:active { transform: scale(0.94); }
.mm-msg img { width: 62px; height: auto; aspect-ratio: 1; display: block; }

/* ============ КНОПКИ ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3d5cff 0%, #6f8dff 100%);
  color: #fff;
  box-shadow: 0 12px 40px -12px rgba(80, 110, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.btn-primary:hover::after { left: 130%; }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -12px rgba(80, 110, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 162, 255, 0.55);
  background: rgba(125, 162, 255, 0.08);
}

.btn-small { padding: 14px 30px; font-size: 15px; }
.btn-full { width: 100%; }

.header-cta {
  padding: 18px 42px;
  font-size: 17px;
  letter-spacing: 0.01em;
  margin-right: 16px;
}

/* ============ HERO ============ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 190px 0 64px;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.1vw, 66px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.grad {
  color: #c3d1ff;
}

.hero-sub-short { display: none; }

.hero-sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn { font-size: 17px; padding: 20px 40px; }

.hero-note { display: none; }
.about-short { display: none; }

/* кликабельные карточки → конструктор */
[data-svc].card-link,
.price-card[data-svc] { cursor: pointer; }
[data-svc].card-link:focus-visible,
.price-card[data-svc]:focus-visible { outline: 2px solid rgba(125, 162, 255, 0.7); outline-offset: 3px; }

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 56px;
  flex-wrap: wrap;
}

.stat {
  padding: 4px 48px 4px 0;
  margin-right: 48px;
  border-right: 1px solid var(--stroke);
}

.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: #fff;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  max-width: 150px;
}

/* ============ TICKER ============ */

.ticker {
  position: relative;
  border-top: 1px solid rgba(125, 162, 255, 0.16);
  border-bottom: 1px solid rgba(125, 162, 255, 0.16);
  background: linear-gradient(90deg,
    rgba(76, 111, 255, 0.12), rgba(6, 10, 22, 0.5) 26%,
    rgba(6, 10, 22, 0.5) 74%, rgba(76, 111, 255, 0.12));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 20px 0;
}

.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 1;
  pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg,  var(--bg), rgba(3, 5, 9, 0)); }
.ticker::after  { right: 0; background: linear-gradient(270deg, var(--bg), rgba(3, 5, 9, 0)); }

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: tick 34s linear infinite;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(226, 232, 255, 0.72);
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-track > * { margin-right: 48px; }

.ticker-track i {
  color: var(--blue-2);
  font-style: normal;
  font-size: 11px;
  text-shadow: 0 0 12px rgba(125, 162, 255, 0.85);
}

@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ СЕКЦИИ ============ */

.section { padding: 72px 0; }

.section-head {
  margin-bottom: 44px;
  text-align: center;
}

.section-head p {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.eyebrow i {
  font-style: normal;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  background: linear-gradient(135deg, #4c6fff 0%, #7da2ff 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  filter: drop-shadow(0 0 14px rgba(76, 111, 255, 0.6));
}

.eyebrow em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #dfe6ff;
  text-shadow: 0 0 18px rgba(125, 162, 255, 0.5);
}

.eyebrow::after {
  content: '';
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, rgba(125, 162, 255, 0.8), rgba(125, 162, 255, 0));
}

.section-head h2, .contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  margin: 18px 0 14px;
  color: #f4f7ff;
  text-shadow: 0 0 34px rgba(125, 162, 255, 0.35);
}

.section-head p, .contact-info > p {
  color: var(--muted);
  max-width: 560px;
  font-size: 16.5px;
}

.section-head p::before, .contact-info > p::before {
  content: '✦';
  display: block;
  margin: 0 auto 16px;
  color: var(--blue-2);
  font-size: 13px;
  text-shadow: 0 0 14px rgba(125, 162, 255, 0.9);
  animation: starPulse 3.2s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.3); }
}

/* ============ УСЛУГИ ============ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: svc;
}

.card {
  position: relative;
  padding: 32px 30px 34px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(240px circle at var(--mx, -80%) var(--my, -80%), rgba(125, 162, 255, 0.14), transparent 62%),
    linear-gradient(115deg, transparent 42%, rgba(160, 190, 255, 0.12) 50%, transparent 58%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  background-size: 100% 100%, 240% 100%, 100% 100%;
  background-position: 0 0, 135% 0, 0 0;
  background-repeat: no-repeat;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease,
              box-shadow 0.45s ease, background-position 1s ease;
}

.card:hover {
  transform: translateY(-7px);
  border-color: rgba(125, 162, 255, 0.45);
  box-shadow: 0 30px 70px -35px rgba(70, 100, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  background-position: 0 0, -55% 0, 0 0;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 162, 255, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.45s ease, left 0.45s ease, right 0.45s ease;
}

.card:hover::after { opacity: 1; left: 5%; right: 5%; }

.card::before {
  content: '0' counter(svc);
  counter-increment: svc;
  position: absolute;
  top: 26px; right: 26px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(135deg, rgba(76, 111, 255, 0.34), rgba(125, 162, 255, 0.12));
  border: 1px solid rgba(125, 162, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #cdd7ff;
  text-shadow: 0 0 12px rgba(125, 162, 255, 0.55);
  transition: filter 0.4s ease, color 0.4s ease;
}

.card:hover::before {
  color: #fff;
  filter: drop-shadow(0 0 14px rgba(76, 111, 255, 0.65));
}

.card h3 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 14px;
  padding-right: 52px;
  color: #eef2ff;
  letter-spacing: 0.01em;
}

.card h3::after {
  content: '';
  display: block;
  width: 34px; height: 2px;
  margin-top: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), rgba(125, 162, 255, 0.25));
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover h3::after { width: 72px; }

.card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; padding-bottom: 18px; }

.card p::after {
  content: '\2192';
  position: absolute;
  right: 28px; bottom: 20px;
  font-size: 17px;
  color: var(--blue-2);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.card:hover p::after { opacity: 0.95; transform: none; text-shadow: 0 0 14px rgba(125, 162, 255, 0.8); }

.card p::before {
  content: '';
  position: absolute;
  left: 30px; bottom: 26px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(125, 162, 255, 0.55), rgba(125, 162, 255, 0));
  transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover p::before { width: calc(100% - 100px); }

/* ============ РАБОТЫ ============ */

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

a.work-card { color: inherit; text-decoration: none; display: block; }

.work-card {
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease, box-shadow 0.45s ease;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(125, 162, 255, 0.45);
  box-shadow: 0 34px 80px -40px rgba(70, 100, 255, 0.6);
}

.browser {
  margin: 18px 18px 0;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--stroke);
  border-bottom: 0;
  overflow: hidden;
  background: rgba(6, 10, 22, 0.85);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}

.dot { width: 9px; height: 9px; border-radius: 50%; }
.d1 { background: rgba(255, 120, 120, 0.75); }
.d2 { background: rgba(255, 200, 120, 0.75); }
.d3 { background: rgba(120, 255, 180, 0.75); }

.url {
  margin-left: 12px;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 4px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-screen {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.s-aurora  { background: linear-gradient(135deg, #0a1430 0%, #12275e 55%, #0a1230 100%); }
.s-aurora  .ui-glow { background: radial-gradient(circle, rgba(76, 111, 255, 0.75), transparent 65%); }
.s-luna    { background: linear-gradient(150deg, #101c4a 0%, #0a1230 60%, #060a1c 100%); }
.s-luna    .ui-glow { background: radial-gradient(circle, rgba(157, 180, 255, 0.6), transparent 65%); top: auto; bottom: -30%; }
.s-orbita  { background: linear-gradient(160deg, #0b1230 0%, #1a2b6b 70%, #0a1230 100%); }
.s-orbita  .ui-glow { background: radial-gradient(circle, rgba(61, 92, 255, 0.7), transparent 65%); }
.s-orange  { background: url('../assets/work-orange.webp') center top / cover no-repeat; }
.s-elite   { background: url('../assets/work-elite.webp?v=2') center 35% / cover no-repeat; }

.ui {
  position: absolute;
  inset: 0;
  padding: 20px 22px;
}

.ui-glow {
  position: absolute;
  top: -22%; right: -10%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.8;
}

.ui-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ui-logo { width: 18px; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.35); }

.ui-link { width: 34px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); }

.ui-cta {
  margin-left: auto;
  width: 44px; height: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3d5cff, #6f8dff);
  box-shadow: 0 4px 14px -4px rgba(80, 110, 255, 0.9);
}

.ui-mid { position: relative; }

.ui-h1 {
  height: 15px;
  width: 68%;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.88);
  margin-bottom: 9px;
}

.ui-h1.w2 { width: 44%; }

.ui-p {
  height: 8px;
  width: 52%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 16px;
}

.ui-btns { display: flex; gap: 8px; }

.ui-btns span {
  width: 52px; height: 18px;
  border-radius: 9px;
  background: linear-gradient(135deg, #3d5cff, #6f8dff);
}

.ui-btns span.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ui-mid.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ui-circle {
  flex: none;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), rgba(125, 162, 255, 0.25) 60%, transparent 75%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ui-cards {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.ui-cards span {
  flex: 1;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 20px;
}

.work-meta h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }

.work-meta p { color: var(--muted); font-size: 13px; }

.work-arrow {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  color: var(--blue-2);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.work-card:hover .work-arrow {
  background: linear-gradient(135deg, #3d5cff, #6f8dff);
  color: #fff;
  transform: rotate(45deg);
}

/* ============ О НАС ============ */

.about-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 52px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: center;
}

.about-text {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(168deg, rgba(150, 176, 230, .07), rgba(125, 162, 255, .035) 30%, rgba(9, 14, 30, .55) 72%, rgba(6, 10, 22, .7)) padding-box,
    linear-gradient(150deg, rgba(196, 216, 255, .5) 0%, rgba(140, 170, 255, .14) 22%, rgba(80, 110, 220, .1) 55%, rgba(125, 162, 255, .2) 78%, rgba(166, 194, 255, .42) 100%) border-box;
  border: 1px solid transparent;
  border-radius: 28px;
  backdrop-filter: blur(24px) saturate(165%) brightness(1.06);
  -webkit-backdrop-filter: blur(24px) saturate(165%) brightness(1.06);
  padding: clamp(28px, 5vw, 54px);
  box-shadow:
    0 2px 6px rgba(3, 7, 22, .4),
    0 40px 90px -50px rgba(0, 0, 0, .9),
    0 0 80px -40px rgba(76, 111, 255, .45),
    inset 0 1px 0 rgba(214, 228, 255, .22),
    inset 1px 0 0 rgba(214, 228, 255, .09),
    inset -1px 0 0 rgba(214, 228, 255, .05),
    inset 0 -1px 0 rgba(4, 8, 20, .55),
    inset 0 -22px 40px -28px rgba(125, 162, 255, .22);
}
.about-text::after {
  content: '';
  position: absolute;
  top: -1px; left: 38px;
  width: 130px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 239, 255, .85), transparent);
  filter: blur(.4px);
  pointer-events: none;
}

.about-text::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(110% 52% at 14% -10%, rgba(214, 228, 255, .07), transparent 58%),
    linear-gradient(115deg, transparent 44%, rgba(224, 235, 255, .05) 50%, transparent 56%);
  background-size: 100% 100%, 240% 100%;
  pointer-events: none;
  animation: aboutSheen 12s ease-in-out infinite;
}
@keyframes aboutSheen {
  0%, 100% { background-position: 0 0, -30% 0; }
  50% { background-position: 0 0, 130% 0; }
}

.about-text p {
  color: #ccd4ea;
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 0;
  text-align: left;
}

.about-text p + p { margin-top: 20px; }

.about-text p:not(:last-child) { padding-bottom: 20px; }

.about-text p:not(:last-child)::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 20px;
  background: linear-gradient(90deg, rgba(125, 162, 255, .38), rgba(125, 162, 255, .1) 55%, transparent 85%);
}

.about-text p:first-child {
  font-size: 18.5px;
  font-weight: 500;
  color: #eef2ff;
  line-height: 1.8;
  text-shadow: 0 0 26px rgba(125, 162, 255, .18);
}

.about-text b {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .015em;
  color: #b7ccff;
  text-shadow: 0 0 22px rgba(76, 111, 255, .6);
}

.about-text p b { color: var(--white); }

.about-text p:last-child { margin-bottom: 0; }

.about-side {
  position: relative;
  text-align: center;
}

.handnote {
  font-family: 'Caveat', 'Manrope', cursive;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.28;
  color: #eef2ff;
  transform: rotate(-4deg);
  text-shadow: 0 0 22px rgba(125, 162, 255, 0.4);
  margin: -48px auto 16px;
  max-width: 300px;
  position: relative;
  z-index: 2;
}

.handnote .heart {
  display: block;
  position: relative;
  width: max-content;
  margin: 10px auto 0;
  padding: 10px 14px;
  background: radial-gradient(72% 60% at 50% 46%, rgba(76, 111, 255, .26), transparent 72%);
}
.handnote .heart svg {
  display: block;
  transform-origin: 50% 46%;
  filter: drop-shadow(0 0 13px rgba(125, 162, 255, .7));
  animation: heartbeat 2.4s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.15); }
  24% { transform: scale(1); }
  36% { transform: scale(1.09); }
  48% { transform: scale(1); }
}
.handnote .heart::before,
.handnote .heart::after {
  content: '✦';
  position: absolute;
  color: #dfe6ff;
  font-size: 14px;
  text-shadow: 0 0 10px rgba(125, 162, 255, .9);
  animation: heartTwinkle 2.4s ease-in-out infinite;
}
.handnote .heart::before { left: -20px; top: -2px; }
.handnote .heart::after { right: -16px; bottom: 6px; font-size: 10px; animation-delay: 1.2s; }
@keyframes heartTwinkle {
  0%, 55%, 100% { opacity: .12; transform: scale(.8); }
  25% { opacity: 1; transform: scale(1.2); }
}

.sheep {
  width: min(100%, 460px);
  margin: 0 auto;
  filter: drop-shadow(0 24px 46px rgba(0, 0, 0, 0.55));
  animation: sheepFloat 6.5s ease-in-out infinite;
}

@keyframes sheepFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}

/* ============ ПРОЦЕСС ============ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step {
  position: relative;
  padding-top: 46px;
  border-top: 1px solid var(--stroke);
}

.step .planet {
  position: absolute;
  top: -42px; left: 0;
  width: 84px; height: 84px;
  background: center / contain no-repeat;
  filter: drop-shadow(0 0 16px rgba(76, 111, 255, 0.5));
  animation: planetFloat 6s ease-in-out infinite;
}

.planet.p1 { background-image: url('../assets/planet1.webp'); }
.planet.p2 { background-image: url('../assets/planet2.webp'); animation-delay: 1.4s; }
.planet.p3 { background-image: url('../assets/planet3.webp'); animation-delay: 2.8s; }
.planet.p4 { background-image: url('../assets/planet4.webp'); animation-delay: 4.2s; }

@keyframes planetFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--blue-2);
}

.step h3 { font-size: 18px; font-weight: 800; margin: 14px 0 10px; }
.step p {
  position: relative;
  color: #cdd8f5;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.72;
  letter-spacing: 0.012em;
  padding-top: 14px;
  text-shadow: 0 0 18px rgba(125, 162, 255, 0.16);
}

.step p::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4c6fff, rgba(125, 162, 255, 0.05));
  box-shadow: 0 0 10px rgba(76, 111, 255, 0.5);
  transition: width 0.45s ease;
}

.step:hover p::before { width: 76px; }

/* ============ ЦЕНЫ ============ */

.prices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 1150px) {
  .prices-grid { grid-template-columns: repeat(2, 1fr); }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 28px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(10px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease, box-shadow 0.45s ease;
}

.price-card:hover {
  transform: translateY(-7px);
  border-color: rgba(125, 162, 255, 0.4);
  box-shadow: 0 30px 70px -35px rgba(70, 100, 255, 0.5);
}

.price-card.featured {
  border-color: rgba(125, 162, 255, 0.55);
  background: linear-gradient(180deg, rgba(64, 94, 255, 0.17), rgba(10, 16, 40, 0.45));
  box-shadow: 0 34px 90px -45px rgba(70, 100, 255, 0.7);
}

.badge {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4c6fff, #7da2ff 55%, #4c6fff);
  background-size: 200% 100%;
  border: 1px solid rgba(244, 247, 255, 0.35);
  font-family: "Unbounded", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  box-shadow:
    0 10px 30px -8px rgba(80, 110, 255, 0.95),
    0 0 0 0 rgba(125, 162, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: badgePulse 2.6s ease-out infinite, badgeShift 5s linear infinite;
  z-index: 2;
}
.badge::before,
.badge::after {
  content: "✦";
  font-size: 10px;
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}
@keyframes badgePulse {
  0%   { box-shadow: 0 10px 30px -8px rgba(80, 110, 255, 0.95), 0 0 0 0 rgba(125, 162, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  70%  { box-shadow: 0 10px 30px -8px rgba(80, 110, 255, 0.95), 0 0 0 11px rgba(125, 162, 255, 0), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  100% { box-shadow: 0 10px 30px -8px rgba(80, 110, 255, 0.95), 0 0 0 0 rgba(125, 162, 255, 0), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
}
@keyframes badgeShift {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}
.price-card.featured { overflow: visible; }
.price-card.featured:hover .badge { transform: translateX(-50%) scale(1.06); }

.price-card h3 { font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }

.price {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  margin: 15px 0 4px;
}

.price .from {
  display: inline;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  margin-right: 10px;
}

.per { color: var(--muted); font-size: 13px; font-family: var(--font-mono); }

.price-card ul {
  list-style: none;
  margin: 26px 0 32px;
  display: grid;
  gap: 13px;
  flex: 1;
}

.price-card li {
  position: relative;
  padding-left: 30px;
  color: #c7cde4;
  font-size: 14.2px;
  line-height: 1.5;
}

.price-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 1px;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237da2ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============ FAQ ============ */

.faq-wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
}

.faq-list { border-top: 1px solid var(--stroke); }

.faq-item { border-bottom: 1px solid var(--stroke); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 6px;
  background: none;
  border: 0;
  color: #f4f7ff;
  font-family: "Unbounded", sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  text-shadow: 0 0 26px rgba(125, 162, 255, 0.5);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.faq-q:hover { color: #fff; text-shadow: 0 0 18px rgba(145, 175, 255, 0.75); }

.faq-icon {
  flex: none;
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(125, 162, 255, 0.35);
  background: rgba(76, 111, 255, 0.10);
  transition: transform 0.4s ease, background 0.3s ease;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--blue-2);
  border-radius: 2px;
}

.faq-icon::before { width: 12px; height: 1.8px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.8px; height: 12px; transform: translate(-50%, -50%); transition: transform 0.4s ease; }

.faq-item.open .faq-icon { transform: rotate(180deg); background: rgba(76, 111, 255, 0.25); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-a p {
  padding: 0 52px 24px 6px;
  color: #f4f7ff;
  font-family: "Unbounded", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.9;
  text-shadow: 0 0 22px rgba(125, 162, 255, 0.28);
}

.faq-a a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }

.faq-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 40px 26px 34px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(76, 111, 255, .34);
  background:
    radial-gradient(360px 200px at 50% -14%, rgba(76, 111, 255, .3), transparent 65%),
    linear-gradient(180deg, rgba(16, 25, 58, .55), rgba(7, 11, 28, .78));
  box-shadow: 0 26px 70px -30px rgba(3, 7, 22, .8), inset 0 1px 0 rgba(244, 247, 255, .06);
  transition: border-color .45s ease, box-shadow .45s ease;
}
.faq-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 16% 24%, rgba(244, 247, 255, .75), transparent 100%),
    radial-gradient(1px 1px at 72% 12%, rgba(244, 247, 255, .5), transparent 100%),
    radial-gradient(1.6px 1.6px at 86% 66%, rgba(125, 162, 255, .8), transparent 100%),
    radial-gradient(1px 1px at 10% 72%, rgba(244, 247, 255, .45), transparent 100%),
    radial-gradient(1.2px 1.2px at 52% 90%, rgba(125, 162, 255, .55), transparent 100%);
  animation: ideaStars 5s ease-in-out infinite alternate;
}
.faq-cta::after {
  content: "";
  position: absolute;
  left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 162, 255, .85), transparent);
  pointer-events: none;
}
.faq-cta:hover {
  border-color: rgba(125, 162, 255, .6);
  box-shadow: 0 30px 80px -30px rgba(3, 7, 22, .85), 0 0 38px rgba(76, 111, 255, .16), inset 0 1px 0 rgba(244, 247, 255, .08);
}
.faq-cta > * { position: relative; z-index: 1; }

.faq-cta-icon {
  display: block;
  width: min(330px, 96%);
  margin: 0 auto 22px;
  position: relative;
}
.faq-cta-icon::before {
  content: "";
  position: absolute;
  inset: -14% -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(76, 111, 255, .26), transparent 75%);
  filter: blur(14px);
  animation: logoBreath 4.5s ease-in-out infinite;
}
@keyframes logoBreath {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.faq-cta-icon img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 0 28px rgba(125, 162, 255, 0.45));
}

.faq-cta h3 {
  font-family: "Unbounded", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #f4f7ff;
  text-shadow: 0 0 26px rgba(125, 162, 255, .5);
  margin-bottom: 12px;
}

.faq-cta p {
  color: rgba(223, 230, 255, .76);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ============ КОНТАКТЫ ============ */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 42px 26px 38px;
  border-radius: 26px;
  border: 1px solid rgba(125, 162, 255, .28);
  background:
    radial-gradient(130% 90% at 50% -28%, rgba(76, 111, 255, .2), transparent 62%),
    radial-gradient(1px 1px at 18% 30%, rgba(244, 247, 255, .5), transparent 100%),
    radial-gradient(1.2px 1.2px at 82% 22%, rgba(125, 162, 255, .65), transparent 100%),
    radial-gradient(1px 1px at 66% 78%, rgba(244, 247, 255, .4), transparent 100%),
    linear-gradient(170deg, rgba(146, 172, 226, .06), rgba(9, 14, 30, .5) 78%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(214, 228, 255, .14), 0 24px 60px -40px rgba(0, 0, 0, .9);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease, box-shadow 0.45s ease;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 162, 255, 0.7), transparent);
  opacity: .35;
  transition: opacity 0.45s ease, left 0.45s ease, right 0.45s ease;
}

.contact-card::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -76px;
  width: 240px; height: 150px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(76, 111, 255, 0.38), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

a.contact-card:hover {
  transform: translateY(-7px);
  border-color: rgba(125, 162, 255, 0.45);
  box-shadow: 0 30px 60px -32px rgba(70, 100, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

a.contact-card:hover::before { opacity: 1; left: 8%; right: 8%; }
a.contact-card:hover::after  { opacity: 1; }

.contact-card .cicon {
  position: relative;
  z-index: 1;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 25%, rgba(125, 162, 255, 0.28), rgba(76, 111, 255, 0.1));
  border: 1px solid rgba(125, 162, 255, 0.38);
  box-shadow: 0 0 24px -6px rgba(76, 111, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

a.contact-card:hover .cicon {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 0 34px -4px rgba(76, 111, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.cicon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(125, 162, 255, .45);
  opacity: 0;
  animation: cOrbit 8s linear infinite;
  transition: opacity .4s ease;
}
a.contact-card:hover .cicon::after { opacity: 1; }
@keyframes cOrbit { to { transform: rotate(360deg); } }

.contact-card em {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9aa5cf;
}

.contact-card b {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  transition: color 0.3s ease;
}

a.contact-card:hover b { color: var(--blue-2); }

.cicon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(76, 111, 255, 0.12);
  border: 1px solid rgba(76, 111, 255, 0.3);
  color: var(--blue-3);
}

/* ============ ФОРМЫ ============ */

.glass-panel {
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 38px;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.field input, .field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 14px 17px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.field input::placeholder, .field textarea::placeholder { color: rgba(143, 151, 179, 0.55); }

.field input:focus, .field textarea:focus {
  border-color: rgba(125, 162, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(76, 111, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(143, 151, 179, 0.7);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 40px 10px;
}

.success-icon {
  width: 62px; height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(76, 111, 255, 0.15);
  border: 1px solid rgba(125, 162, 255, 0.5);
  color: var(--blue-2);
  box-shadow: 0 0 40px -6px rgba(76, 111, 255, 0.55);
}

.form-success h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.form-success p  { color: var(--muted); max-width: 320px; margin: 0 auto; }

/* ============ FOOTER ============ */

footer {
  position: relative;
  overflow: hidden; /* r38: «звезда» .f-shoot (105vw) больше не раздувает scrollable area → Android не раздвигает viewport */
  border-top: 1px solid rgba(125, 162, 255, 0.16);
  background:
    radial-gradient(70% 160% at 50% -40%, rgba(76, 111, 255, 0.16), transparent 62%),
    radial-gradient(90% 50% at 50% 120%, rgba(76, 111, 255, 0.13), transparent 65%),
    rgba(4, 6, 14, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 162, 255, 0.75) 32%, rgba(125, 162, 255, 0.75) 68%, transparent);
  pointer-events: none;
}

footer .container { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr 1fr;
  gap: 48px;
  padding: 46px 0 34px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 12px 0 20px;
  max-width: 320px;
}

.footer-logo {
  display: block;
  width: max-content;
  margin: 0 auto;
  transform: translateY(-18px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-logo img {
  width: min(300px, 70vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(125, 162, 255, 0.5));
  transition: filter 0.4s ease;
}

.footer-logo:hover { transform: translateY(-22px); }
.footer-logo:hover img { filter: drop-shadow(0 0 42px rgba(125, 162, 255, 0.65)); }

.footer-social { display: flex; gap: 12px; }
.footer-col .footer-social { margin-top: 16px; }

.footer-social a {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  padding: 3px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.footer-social img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  display: block;
}

.footer-social a:hover {
  transform: translateY(-4px) scale(1.05);
  filter: brightness(1.06) drop-shadow(0 10px 22px rgba(76, 111, 255, 0.55));
}

.footer-col h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #eef2ff;
  text-shadow: 0 0 18px rgba(125, 162, 255, 0.5);
  margin-bottom: 18px;
}

.footer-col h4::before {
  content: '';
  width: 14px; height: 14px;
  flex: none;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  background: linear-gradient(135deg, #4c6fff 0%, #7da2ff 100%);
  filter: drop-shadow(0 0 8px rgba(76, 111, 255, 0.6));
}

.footer-col h4::after {
  content: '';
  height: 1px;
  flex: 0 0 44px;
  background: linear-gradient(90deg, rgba(125, 162, 255, 0.55), rgba(125, 162, 255, 0));
}

.footer-col a {
  align-items: baseline;
}
.footer-col a::before {
  content: '✦';
  font-size: 9px;
  margin-right: 9px;
  color: #4c6fff;
  opacity: .38;
  transition: opacity .3s ease, color .3s ease;
}
.footer-col a:hover::before { opacity: 1; color: #a9c2ff; }

.footer-col a, .footer-addr {
  display: block;
  padding: 5px 0;
  color: #c7cde4;
  font-size: 16px;
  transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(4px);
  text-shadow: 0 0 18px rgba(125, 162, 255, 0.45);
}

.footer-addr { color: var(--muted); }

footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 9% 22%, rgba(244, 247, 255, .7), transparent 100%),
    radial-gradient(1px 1px at 78% 14%, rgba(244, 247, 255, .5), transparent 100%),
    radial-gradient(1.4px 1.4px at 64% 78%, rgba(125, 162, 255, .75), transparent 100%),
    radial-gradient(1px 1px at 27% 64%, rgba(244, 247, 255, .45), transparent 100%),
    radial-gradient(1.2px 1.2px at 91% 48%, rgba(244, 247, 255, .55), transparent 100%),
    radial-gradient(1px 1px at 45% 36%, rgba(125, 162, 255, .5), transparent 100%);
  animation: ideaStars 6s ease-in-out infinite alternate;
}
.f-shoot {
  position: absolute;
  top: 10%; left: 0;
  width: 150px; height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(125, 162, 255, .55) 55%, #eef2ff);
  filter: drop-shadow(0 0 9px rgba(125, 162, 255, .9));
  pointer-events: none;
  opacity: 0;
  animation: fShoot 11s ease-in infinite;
}
@keyframes fShoot {
  0% { transform: translate3d(-220px, 0, 0) rotate(9deg); opacity: 0; }
  3% { opacity: 1; }
  16% { transform: translate3d(105vw, 90px, 0) rotate(9deg); opacity: 0; }
  100% { transform: translate3d(105vw, 90px, 0) rotate(9deg); opacity: 0; }
}
.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 162, 255, .45) 30%, rgba(125, 162, 255, .45) 70%, transparent);
}
.footer-bottom::after {
  content: '✦';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #7da2ff;
  text-shadow: 0 0 12px rgba(125, 162, 255, .9);
  animation: ideaStars 3.5s ease-in-out infinite alternate;
}
.footer-bottom {
  position: relative;
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.copyright {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  color: rgba(163, 172, 205, 0.82);
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

.copyright b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: #e6ecff;
  text-shadow: 0 0 16px rgba(125, 162, 255, 0.65);
}

.copyright .cr-sep {
  color: #4c6fff;
  font-size: 10px;
  text-shadow: 0 0 12px rgba(125, 162, 255, 0.9);
  animation: ideaStars 3.8s ease-in-out infinite alternate;
}

.copyright em {
  font-style: italic;
  color: #97a1c8;
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px rgba(76, 111, 255, 0.35);
}


/* ============ REVEAL-АНИМАЦИИ ============ */

html.js .reveal {
  transform: translateY(26px);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}

html.js .reveal.visible { transform: none; }

/* ============ АДАПТИВ ============ */

@media (max-width: 1400px) {
  .nav a { padding: 13px 18px; font-size: 16px; }
  .header-inner { width: min(1320px, 95vw); }
}

@media (max-width: 1250px) {
  .nav a { padding: 10px 13px; font-size: 15px; }
  .header-inner { width: min(1200px, 94vw); }
  .logo img { height: 70px; }
  #header.scrolled .logo img { height: 64px; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid  { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .moon { width: 56vw; opacity: 0.75; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; padding: 26px 0 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card:last-child:nth-child(odd) { grid-column: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-side { max-width: 420px; margin: 0 auto; }
  .handnote { margin-top: 0; }
  .prices-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .faq-wrap { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; max-width: 460px; }
  .price-card.featured { order: -1; }
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }
  .header-inner { height: 80px; padding: 0 12px 0 18px; }
  .logo img { height: 52px; }
  #header.scrolled .logo img { height: 46px; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding-top: 138px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .step .planet { width: 72px; height: 72px; top: -36px; }
  .stat { padding-right: 26px; margin-right: 26px; }
  .stat b { font-size: 27px; }
  .moon { top: 25vh; right: -6vw; width: 78vw; opacity: 0.5; }
  .moon-glow { top: 32vh; right: -12vw; width: 90vw; }
  .glass-panel { padding: 28px 22px; }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* r38: min-content колонок не раздувал футер на экранах 320–360 */
    gap: 10px;
    padding: 16px 0 8px;
  }
  .footer-col { min-width: 0; overflow-wrap: break-word; }
  .eyebrow { gap: 10px; }
  .eyebrow::after { width: 34px; }
  .eyebrow em { font-size: 14.5px; letter-spacing: 0.18em; }
  .footer-logo { transform: translateY(-14px); margin-bottom: -8px; }
  .footer-logo img { width: min(240px, 60vw); }
  .footer-brand p { margin: 4px 0 4px; }
  .footer-col {
    padding: 13px 14px 11px;
    border: 1px solid rgba(125, 162, 255, 0.12);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(22, 30, 62, 0.5), rgba(8, 13, 30, 0.32));
  }
  div.footer-col { grid-column: 1 / -1; }
  .footer-col h4 { font-size: 12.5px; letter-spacing: 0.2em; margin-bottom: 11px; }
  .footer-col h4::before { width: 10px; height: 10px; }
  .footer-col h4::after { flex-basis: 22px; }
  .footer-col a, .footer-addr { padding: 3px 0; }
  .footer-col .footer-social { margin-top: 12px; padding-top: 12px; }
  .footer-bottom { padding: 10px 0 12px; gap: 8px; }
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
  .header-inner { height: 70px; border-radius: 18px; }
  .logo img { height: 44px; }
  #header.scrolled .logo img { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.15s !important; }
}
/* ============ FAQ: акцентная карта «Идея» ============ */
.idea-card {
  position: relative;
  margin-top: 40px;
  padding: 46px 54px 50px;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  border: 1px solid rgba(76, 111, 255, .38);
  background:
    radial-gradient(560px 240px at 88% -12%, rgba(76, 111, 255, .28), transparent 62%),
    radial-gradient(400px 200px at -8% 118%, rgba(125, 162, 255, .12), transparent 60%),
    linear-gradient(180deg, rgba(16, 25, 58, .66), rgba(7, 11, 28, .8));
  box-shadow: 0 30px 80px rgba(3, 7, 22, .55), inset 0 1px 0 rgba(244, 247, 255, .07);
}
.idea-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(244, 247, 255, .8), transparent 100%),
    radial-gradient(1px 1px at 78% 14%, rgba(244, 247, 255, .55), transparent 100%),
    radial-gradient(1.6px 1.6px at 64% 82%, rgba(125, 162, 255, .8), transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(244, 247, 255, .5), transparent 100%),
    radial-gradient(1.2px 1.2px at 92% 58%, rgba(244, 247, 255, .6), transparent 100%),
    radial-gradient(1px 1px at 48% 34%, rgba(125, 162, 255, .55), transparent 100%);
  animation: ideaStars 5.5s ease-in-out infinite alternate;
}
.idea-card::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 162, 255, .85), transparent);
  pointer-events: none;
}
@keyframes ideaStars { from { opacity: .5; } to { opacity: 1; } }
.idea-body { position: relative; z-index: 1; }
.idea-body .eyebrow { margin-bottom: 16px; }
.idea-body .eyebrow img {
  height: 76px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 30px rgba(125, 162, 255, 0.65));
}
.idea-body h3 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: .01em;
  color: #f4f7ff;
  text-shadow: 0 0 34px rgba(125, 162, 255, .45);
  margin-bottom: 16px;
}
.idea-body p {
  max-width: 56ch;
  color: rgba(223, 230, 255, .78);
  line-height: 1.7;
  margin-bottom: 26px;
}
.idea-art { position: relative; z-index: 1; justify-self: center; }
.idea-art svg {
  width: clamp(120px, 13vw, 158px);
  height: auto;
  filter: drop-shadow(0 0 26px rgba(76, 111, 255, .45));
  animation: ideaFloat 6s ease-in-out infinite;
}
@keyframes ideaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.idea-spark { animation: ideaSpark 2.6s ease-in-out infinite; transform-origin: 70px 82.5px; }
@keyframes ideaSpark {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.82); }
}
.idea-card:hover {
  border-color: rgba(125, 162, 255, .65);
  box-shadow: 0 34px 90px rgba(3, 7, 22, .6), 0 0 42px rgba(76, 111, 255, .18), inset 0 1px 0 rgba(244, 247, 255, .09);
}
@media (max-width: 900px) {
  .idea-card { grid-template-columns: 1fr; padding: 38px 30px 42px; }
  .idea-art { order: -1; }
  .idea-art svg { width: 112px; }
  .idea-body h3 { font-size: clamp(22px, 6vw, 28px); }
}

/* ============ О нас: рамка-стекло, украшенная ============ */
.about-text { --mx: 50%; --my: 35%; }
.about-frame {
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  pointer-events: none;
  background: radial-gradient(420px 260px at var(--mx) var(--my), rgba(125, 162, 255, .16), transparent 62%);
  transition: opacity .4s ease;
  opacity: .85;
}
.about-frame::before,
.about-frame::after {
  content: '';
  position: absolute;
  width: 34px; height: 34px;
  border-top: 2px solid rgba(125, 162, 255, .55);
  border-left: 2px solid rgba(125, 162, 255, .55);
  top: 0; left: 0;
  border-top-left-radius: 16px;
  transition: border-color .4s ease;
}
.about-frame::after {
  top: auto; left: auto;
  bottom: 0; right: 0;
  border-top: 0; border-left: 0;
  border-bottom: 2px solid rgba(125, 162, 255, .55);
  border-right: 2px solid rgba(125, 162, 255, .55);
  border-top-left-radius: 0;
  border-bottom-right-radius: 16px;
}
.about-text:hover .about-frame { opacity: 1; }
.about-text:hover .about-frame::before,
.about-text:hover .about-frame::after { border-color: rgba(180, 205, 255, .9); }
.about-text p { position: relative; }
@media (max-width: 640px) {
  .about-frame { inset: 8px; }
}

/* ============ МОДАЛКА «ОБСУДИТЬ ПРОЕКТ» ============ */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 22px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 4, 12, .74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .3s ease;
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 40px 44px 32px;
  border-radius: 26px;
  border: 1px solid rgba(76, 111, 255, .42);
  background:
    radial-gradient(120% 100px at 50% 0%, rgba(76, 111, 255, .24), transparent 62%),
    radial-gradient(1.2px 1.2px at 14% 26%, rgba(244, 247, 255, .8), transparent 100%),
    radial-gradient(1px 1px at 76% 16%, rgba(244, 247, 255, .55), transparent 100%),
    radial-gradient(1.4px 1.4px at 62% 84%, rgba(125, 162, 255, .8), transparent 100%),
    radial-gradient(1px 1px at 28% 70%, rgba(244, 247, 255, .5), transparent 100%),
    linear-gradient(180deg, rgba(16, 25, 58, .94), rgba(7, 11, 28, .97));
  box-shadow:
    0 40px 120px -40px rgba(0, 0, 0, .92),
    0 0 70px -18px rgba(76, 111, 255, .4),
    inset 0 1px 0 rgba(244, 247, 255, .09);
  transform: translateY(20px) scale(.955);
  opacity: 0;
  transition: transform .34s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
}
.modal.is-open .modal-card { transform: none; opacity: 1; }
.modal-card::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 162, 255, .9), transparent);
  pointer-events: none;
}
.modal-x {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(125, 162, 255, .35);
  color: #dfe6ff;
  font-size: 13px;
  cursor: pointer;
  transition: background .3s ease, transform .35s ease, border-color .3s ease;
}
.modal-x:hover { background: rgba(76, 111, 255, .28); border-color: rgba(125, 162, 255, .7); transform: rotate(90deg); }
.modal-card .eyebrow { margin-bottom: 14px; }
.modal-card .eyebrow img {
  height: 68px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(125, 162, 255, .6));
}
.modal-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 27px);
  font-weight: 700;
  color: #f4f7ff;
  text-shadow: 0 0 26px rgba(125, 162, 255, .5);
  margin-bottom: 10px;
}
.modal-sub { color: rgba(223, 230, 255, .76); font-size: 15px; line-height: 1.65; margin-bottom: 22px; }
.modal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.modal-card .field { margin-bottom: 18px; }
.modal-card .field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9aa5cf;
  margin-bottom: 8px;
}
.modal-card input,
.modal-card textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(125, 162, 255, .3);
  background: rgba(4, 8, 20, .6);
  color: #e8edff;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.modal-card textarea {
  min-height: 104px;
  line-height: 1.6;
  resize: vertical;
}
.modal-card input::placeholder,
.modal-card textarea::placeholder { color: #6f7aa5; }
.modal-card input:focus,
.modal-card textarea:focus {
  outline: none;
  border-color: rgba(125, 162, 255, .75);
  box-shadow: 0 0 0 3px rgba(76, 111, 255, .16), 0 0 26px -10px rgba(76, 111, 255, .65);
}
.modal-send {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 2px;
}
.modal-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: #7f8bb8;
}
.modal-success {
  text-align: center;
  padding: 10px 0 6px;
}
.modal-success[hidden] { display: none; }
.modal-success-sheep {
  width: min(190px, 50vw);
  margin: 0 auto 12px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .55));
}
.modal-success p {
  color: rgba(223, 230, 255, .78);
  font-size: 15px;
  line-height: 1.65;
  max-width: 400px;
  margin: 0 auto 22px;
}
.modal-success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .modal-card { padding: 32px 22px 24px; }
  .modal-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============ подвал: контакты с иконками ============ */
.footer-col .f-contact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-col a.f-contact::before { content: none; }
.footer-col .f-contact svg {
  flex: none;
  color: #7da2ff;
  filter: drop-shadow(0 0 8px rgba(76, 111, 255, .7));
  transition: color .3s ease;
}
.footer-col a.f-contact:hover svg { color: #dbe6ff; }
.footer-col .footer-social {
  margin-top: 18px;
  padding-top: 18px;
  position: relative;
}
.footer-col .footer-social::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 72%;
  height: 1px;
  background: linear-gradient(90deg, rgba(125, 162, 255, .4), transparent);
}

/* ============ контакты: ряд мессенджеров ============ */
.cmsg { display: flex; justify-content: center; gap: 16px; margin-top: 30px; }
.cmsg a {
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border-radius: 18px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}
.cmsg img { width: 66px; height: auto; aspect-ratio: 1; display: block; }
.cmsg a:hover {
  transform: translateY(-5px) scale(1.07);
  filter: brightness(1.07) drop-shadow(0 12px 26px rgba(76, 111, 255, 0.65));
}
/* звёздочки-буллиты не должны залезать на иконки мессенджеров в подвале */
.footer-social a::before { content: none; }
@media (max-width: 640px) {
  .cmsg a { width: 66px; height: 66px; }
  .cmsg img { width: 58px; }
}

/* ============Контакты: подпись под рядом мессенджеров ============ */
.cmsg-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c2cdef;
  cursor: default;
  background: linear-gradient(100deg, #6f97ff 0%, #f4f7ff 30%, #b9ccff 50%, #6f97ff 78%, #dfe7ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: cmsgShine 7s linear infinite;
}

@keyframes cmsgShine { to { background-position: -220% 0; } }

.cmsg-sub::before,
.cmsg-sub::after {
  content: '';
  flex: 0 1 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 162, 255, 0.55));
  transition: flex-basis 0.4s ease;
}
.cmsg-sub::after { transform: scaleX(-1); }
.cmsg-sub:hover::before,
.cmsg-sub:hover::after { flex-basis: 150px; }
.cmsg-sub span {
  color: #4c6fff;
  -webkit-text-fill-color: #8fb0ff;
  font-size: 12px;
  text-shadow: 0 0 14px rgba(76, 111, 255, 0.95);
  animation: ideaStars 4s ease-in-out infinite alternate;
}
.cmsg-sub span:last-child { animation-delay: 1.6s; }
.cmsg-sub:hover {
  color: #fff;
  text-shadow: none;
}
@media (max-width: 640px) {
  .cmsg-sub {
    font-size: min(12px, 3.4vw);
    letter-spacing: 0.1em;
    gap: 9px;
    margin-top: 20px;
    white-space: nowrap;
  }
  .cmsg-sub::before,
  .cmsg-sub::after { display: none; }
  .cmsg-sub:hover::before,
  .cmsg-sub:hover::after { flex-basis: 0; }
}

/* ============Hero-sub: акцент в лид-абзаце ============ */
.hero-sub em {
  font-style: normal;
  font-weight: inherit;
  color: inherit;
  text-shadow: none;}

/* ============Hero-sub: бренд (деликатная версия) ============ */
.hero-brand {
  font-weight: 800;
  font-size: 1.12em;
  letter-spacing: 0.005em;
  color: #eef3ff;
  text-shadow:
    0 0 14px rgba(140, 170, 255, 0.55),
    0 0 42px rgba(76, 111, 255, 0.3);
}

/* ============Производительность ============ */
.section.cv {
  content-visibility: auto;
  contain-intrinsic-size: auto 1100px;
}
@media (max-width: 640px) {
  .ticker-track { animation-duration: 48s; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.cr-link {
  color: rgba(163, 172, 205, 0.7);
  text-decoration: none;
  border-bottom: 1px dashed rgba(125, 162, 255, 0.35);
  transition: color 0.25s, border-color 0.25s;
}
.cr-link:hover { color: #dbe6ff; border-color: rgba(125, 162, 255, 0.8); }

/* ============Мобильные и ноутбуки ============ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  -webkit-tap-highlight-color: transparent;
}

body { overflow-x: clip; }

/* hero: честная высота на телефонах с плавающими панелями (iOS Safari) */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

/* короткие экраны ноутбуков (13–14″): меньше мёртвого воздуха */
@media (min-width: 901px) and (max-height: 830px) {
  .hero { padding-top: 150px; }
  .hero-stats { margin-top: 38px; }
  .hero h1 { font-size: clamp(30px, 4.2vw, 52px); }
}

/* тактильный отклик там, где нет hover */
.btn:active { transform: translateY(1px) scale(0.985); }
.f-contact:active, .footer-social a:active, .cmsg a:active { transform: scale(0.94); }

/* смартфоны/планшеты: стекло с backdrop-blur заставляет Android перерисовывать
   фон под КАЖДЫМ элементом на каждом кадре скролла — главный источник «дёргания».
   На тач-устройствах blur снимаем, плотность стекла компенсируем подложкой */
@media (pointer: coarse) {
  .header-inner, .glass-panel, .card, .work-card, .about-text, .price-card,
  .contact-card, .stat, .ticker, .calc-summary, .calc-main, .calc-help, footer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .glass-panel, .card, .work-card, .price-card, .contact-card,
  .calc-summary, .calc-main, .calc-help { background-color: rgba(9, 13, 28, 0.78); }
  .header-inner { background-color: rgba(8, 12, 26, 0.82); }
  .about-text { background-color: rgba(9, 13, 28, 0.6); }
  .stat { background-color: rgba(9, 13, 28, 0.45); }
  .ticker {
    background: linear-gradient(90deg, rgba(76, 111, 255, 0.1),
      rgba(6, 10, 22, 0.78) 26%, rgba(6, 10, 22, 0.78) 74%, rgba(76, 111, 255, 0.1));
  }
  footer { background-color: rgba(4, 6, 14, 0.94); }
  .space-bg, .moon-glow { filter: none; }
  .ticker-track { animation-duration: 64s; }
}

/* безопасные зоны iPhone (вырез/дактилоскоп) для фиксированной шапки и футера */
@supports (padding: env(safe-area-inset-top)) {
  #header .header-inner { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
  .footer-bottom { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* ============ Мобильная доводка (≤640) ============ */
@media (max-width: 640px) {
  /* 1. шапка: крупнее и правее, без «сужения» при скролле, бургер крупнее */
  #header, #header.scrolled { padding: calc(16px + env(safe-area-inset-top)) 0 16px; }
  .header-inner { height: 84px; padding-left: 26px; }
  #header.scrolled .header-inner { height: 84px; }
  .logo img { height: 70px; }
  #header.scrolled .logo img { height: 70px; }
  .burger { margin-right: 8px; gap: 7px; }
  .burger span { width: 32px; height: 3px; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  .faq-q { font-size: 16px; }
  .faq-a p { font-size: 12.5px; }

  /* 2. заголовки разделов крупнее */
  .section-head h2, .contact-info h2 { font-size: 34px; }

  /* 3. мессенджеры в секции «Контакты» крупнее */
  .cmsg a { width: 64px; height: 64px; }
  .cmsg img { width: 56px; }

  /* 4. логотип в карточке «Остались вопросы?» меньше */
  .faq-cta-icon { width: min(250px, 78%); margin-bottom: 16px; }

  /* 4b. кнопка «Обсудить проект» в карточке идеи — по центру */
  .idea-body .btn {
    display: flex;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
  }

  /* 9. тарифы компактнее на телефоне (колонка та же) */
  .prices-grid { gap: 14px; max-width: 420px; }
  .price-card { padding: 20px 20px 22px; border-radius: 20px; }
  .price-card h3 { font-size: 19px; }
  .price { font-size: 24px; margin: 11px 0 3px; }
  .price .from { font-size: 13px; margin-right: 8px; }
  .per { font-size: 11.5px; }
  .price-card ul { margin: 16px 0 18px; gap: 9px; }
  .price-card li { padding-left: 24px; font-size: 12.5px; line-height: 1.45; }
  .price-card li::before { width: 15px; height: 15px; }
  /* пилюля «Выбирают чаще всего» не залезает на текст */
  .price-card.featured { padding-top: 46px; }

  /* 10. «О нас»: рамка компактнее, рукописная надпись крупнее */
  .about-text { padding: 20px 18px; border-radius: 22px; }
  .about-text p { display: none; }  /* на телефоне — только короткая версия */
  .about-short { display: block; }
  .about-short p {
    display: block;
    margin: 0;
    /* единый «вводный» стиль, как у первого абзаца */
    font-size: 18.5px;
    font-weight: 500;
    color: #eef2ff;
    line-height: 1.8;
    text-shadow: 0 0 26px rgba(125, 162, 255, .18);
  }
  .about-frame { inset: 9px; border-radius: 14px; }
  .about-text p + p { margin-top: 13px; }
  .about-text p:not(:last-child) { padding-bottom: 13px; }
  .handnote { font-size: 34px; }
  .step p { font-size: 15px; padding-top: 12px; }

  /* 12. кнопка «Обсудить проект» в меню — крупнее */
  .mobile-cta {
    font-size: 28px;
    padding: 30px 40px;
    align-self: stretch;
    justify-content: center;
  }

  /* 15. кнопки hero — крупнее */
  .hero-actions .btn { font-size: 17px; padding: 19px 34px; }

  /* 16. hero: на телефоне подзаголовок скрыт целиком */
  .hero-sub-full { display: none; }
  .hero-sub-short { display: none; }

  /* 17. нижняя строка подвала: красиво и по-центру */
  .footer-bottom { padding: 12px 0 14px; }
  .copyright {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 9px;
    column-gap: 10px;
  }
  .copyright b {
    color: #eef2ff;
    letter-spacing: 0.14em;
    text-shadow: 0 0 16px rgba(125, 162, 255, 0.5);
  }
  .cr-link {
    display: inline-flex;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(125, 162, 255, 0.24);
    background: rgba(76, 111, 255, 0.09);
    color: #b9c4e6;
    text-decoration: none;
  }
  .cr-link:active { transform: scale(0.97); }

  /* 14. hero-статистика: компактной колонкой, каждая строка на одном месте */
  .hero-stats { display: none; }
  .stat { padding: 0; margin: 0; border-right: 0; display: flex; align-items: baseline; gap: 13px; }
  .stat b {
    font-size: 27px;
    background: linear-gradient(115deg, #ffffff 15%, #a9c4ff 55%, #6f97ff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .stat span {
    margin-top: 0;
    font-size: 13px;
    max-width: none;
    white-space: nowrap;
    color: #b9c4e6;
    letter-spacing: 0.02em;
  }

  /* 13. заголовок hero крупнее на телефоне + кнопки ниже + воздух от шапки */
  .hero h1 { font-size: min(48px, 10.1vw); line-height: 1.08; letter-spacing: -0.03em; } /* r38: слово «космического» 8.85em не влезало в 393px и раздвигало viewport */
  .hero { min-height: auto; padding: calc(138px + env(safe-area-inset-top)) 0 46px; }
  .hero-actions { margin-top: 14px; }

  /* 15. короткое описание студии под кнопками — только телефон */
  .hero-note {
    display: none;  /* описание скрыто и на телефоне (по просьбе) */
    margin: 34px 0 0;
    font-size: 17.5px;
    line-height: 1.55;
    color: rgba(196, 207, 238, 0.88);
  }
  .hero-note .hn-brand {
    font-size: 19px;
    display: inline-block;
    line-height: 1.35;
    font-family: var(--font-display);
    font-weight: 700;
    background: linear-gradient(115deg, #ffffff 15%, #a9c4ff 55%, #6f97ff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-note i { font-style: normal; color: #d7e3ff; font-weight: 600; }

  /* лента-тикер: крупнее на телефоне */
  .ticker { padding: 24px 0; }
  .ticker-track { font-size: 15.5px; letter-spacing: 0.18em; }
  .ticker-track i { font-size: 12.5px; }
  .ticker-track > * { margin-right: 36px; }
  .ticker::before, .ticker::after { width: 60px; }

  /* 11. услуги: две компактные карточки в ряд */
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 22px 17px 24px; border-radius: 20px; }
  .card h3 { font-size: 17.5px; margin-bottom: 12px; padding-right: 44px; }
  .card h3::after { width: 22px; margin-top: 8px; }
  .card:hover h3::after { width: 46px; }
  .card p { font-size: 15px; line-height: 1.62; padding-bottom: 15px; }
  .card::before {
    top: 17px; right: 17px;
    width: 38px; height: 38px;
    font-size: 12px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  }
  .card p::after { right: 15px; bottom: 14px; font-size: 15px; }

  /* 8. крупные CTA-кнопки на телефоне */
  .mobile-cta,
  .faq-cta .btn,
  .idea-body .btn {
    font-size: 17px;
    padding: 18px 36px;
  }

  /* 5. подвал «Контакты»: текст слева, мессенджеры вертикально в правой стороне рамки */
  div.footer-col {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
  }
  div.footer-col h4 { grid-column: 1 / -1; justify-content: center; }
  div.footer-col .f-contact { grid-column: 1; }
  .footer-col .footer-social {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
    justify-self: end;
    flex-direction: column;
    gap: 9px;
    margin-top: 0;
    padding-top: 0;
  }
  .footer-col .footer-social::before { display: none; }

  /* 5b. контакты: чипы-строки + «док» мессенджеров */
  div.footer-col .f-contact {
    padding: 9px 12px;
    margin-bottom: 7px;
    border: 1px solid rgba(125, 162, 255, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.03);
    color: #cdd9ff;
    font-size: 15px;
  }
  .footer-col .footer-links a { font-size: 14.5px; }
  div.footer-col a.f-contact:active { transform: scale(0.98); }
  .footer-col .f-contact svg {
    width: 30px; height: 30px;
    padding: 6px;
    border-radius: 50%;
    background: rgba(76, 111, 255, 0.15);
    box-sizing: border-box;
  }
  .footer-col .footer-social {
    padding: 9px 7px;
    border-radius: 19px;
    border: 1px solid rgba(125, 162, 255, 0.12);
    background: rgba(125, 162, 255, 0.06);
  }
}

/* ============ подвал: заголовок контактов (двойная подпись) ============ */
.footer-col .h4-long { display: none; }
@media (max-width: 640px) {
  .footer-col .h4-short { display: none; }
  .footer-col .h4-long { display: inline; }
  div.footer-col h4 { letter-spacing: 0.14em; }
  div.footer-col h4::after { display: none; }
}

/* ============ карточка идеи: компакт на телефоне ============ */
@media (max-width: 640px) {
  /* лампочка ниже (визуально), геометрия карточки не меняется */
  .idea-art { transform: translateY(12px); }
  /* логотип-чип и заголовок — по центру, текст остаётся по левому краю */
  .idea-body { text-align: center; }
  .idea-body p { text-align: left; }
  .idea-card { padding: 26px 20px 28px; }
  .idea-body .eyebrow { margin-bottom: 10px; }
  .idea-body .eyebrow img { height: 74px; }
  .idea-body h3 {
    font-size: clamp(19px, 5.2vw, 23px);
    line-height: 1.14;
    margin-bottom: 10px;
  }
  .idea-body p {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
}

/* ============ перенос заголовка идеи: телефон vs десктоп ============ */
.br-m { display: none; }
@media (max-width: 640px) {
  .br-d { display: none; }
  .br-m { display: inline; }
}

@media (min-width: 402px) and (max-width: 640px) {
  .hero h1 { font-size: min(51px, 10.4vw); } /* r38: та же защита для широких телефонов */
}

/* прелоадер на телефоне: логотип крупнее и ниже — ближе к полоске загрузки */
@media (max-width: 640px) {
  .preloader-logo { width: min(520px, 94vw); margin-bottom: 14px; }
}

/* 18. Красивые иконки почты и адреса: свечение в карточках, стеклянные чипы в подвале */
.contact-card .cicon svg {
  width: 26px; height: 26px;
  filter: drop-shadow(0 0 10px rgba(76, 111, 255, 0.5));
  transition: filter 0.45s ease;
}
a.contact-card:hover .cicon svg { filter: drop-shadow(0 0 16px rgba(125, 162, 255, 0.85)); }
.footer-col .f-contact svg {
  width: 26px; height: 26px;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 9px;
  background: linear-gradient(160deg, rgba(125, 162, 255, 0.15), rgba(76, 111, 255, 0.05));
  border: 1px solid rgba(125, 162, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 14px -6px rgba(76, 111, 255, 0.5);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.footer-col a.f-contact:hover svg {
  background: linear-gradient(160deg, rgba(125, 162, 255, 0.26), rgba(76, 111, 255, 0.1));
  border-color: rgba(125, 162, 255, 0.45);
}
@media (max-width: 640px) {
  .footer-col .f-contact svg { width: 24px; height: 24px; padding: 4px; }
}

/* ============ 20. Android/телефоны: плавный скролл (r39) ============ */
@media (max-width: 640px) {
  /* шапка: плотное стекло без backdrop-filter — blur на fixed-элементе
     заставлял Android переразмывать фон каждый кадр и «отставать» шапке */
  #header .header-inner,
  #header.scrolled .header-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(180deg, rgba(10, 14, 30, 0.95), rgba(4, 7, 16, 0.92));
  }
  /* барашек:свой композитный слой — теневая подложка растеризуется один раз */
  .sheep { will-change: transform; }
}

/* ============ 21. Мобильное меню: ссылки не заходят под шапку (r41) ============ */
@media (max-width: 640px) {
  .mobile-menu {
    /* flex-центрирование + переполнение = обрезка сверху; делаем «безопасный центр»:
     auto-маргины центрируют, если место есть, и не дают уехать вверх, если контента много */
    justify-content: flex-start;
    padding: calc(124px + env(safe-area-inset-top)) 8vw 36px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu > :first-child { margin-top: auto; }
  .mobile-menu > :last-child  { margin-bottom: auto; }
}
