/* Diamond Sites — портфолио. Стекло в стиле iOS, бриллианты, моушен.
   Анимации включаются классом .js на <html>; без JS и при «уменьшить движение» всё видно сразу. */

:root {
  --bg: #06070c;
  --text: #f4f6fb;
  --muted: rgba(226, 232, 255, .62);
  --faint: rgba(226, 232, 255, .38);
  --line: rgba(255, 255, 255, .12);
  --iri: linear-gradient(100deg, #9be7ff 0%, #c4b5fd 30%, #f9a8d4 55%, #fde68a 75%, #9be7ff 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --px: 0; --py: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.05; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #c4b5fd; color: var(--bg); }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Фон: aurora + зерно ---------- */
.aurora { position: fixed; inset: -10%; z-index: -2; overflow: hidden; pointer-events: none;
  transform: translate3d(calc(var(--px) * -24px), calc(var(--py) * -24px), 0); transition: transform 1.2s var(--ease); }
.aurora__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.aurora__blob--1 { width: 46vmax; height: 46vmax; left: -8%; top: -10%; background: #2b6fff; animation: drift1 26s ease-in-out infinite alternate; }
.aurora__blob--2 { width: 38vmax; height: 38vmax; right: -6%; top: 6%; background: #8b5cf6; animation: drift2 30s ease-in-out infinite alternate; }
.aurora__blob--3 { width: 34vmax; height: 34vmax; left: 30%; top: 48%; background: #ec4899; opacity: .32; animation: drift3 34s ease-in-out infinite alternate; }
.aurora__blob--4 { width: 30vmax; height: 30vmax; left: -6%; bottom: -12%; background: #06b6d4; opacity: .38; animation: drift2 28s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, 26vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-22vw, -30vh) scale(1.2); } }

.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.sparkles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

/* ---------- Стекло ---------- */
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.04) 60%, rgba(255,255,255,.07));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.04),
              0 24px 60px -28px rgba(0,0,0,.7);
}
/* блик, который бежит за курсором / пальцем */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255,255,255,.16), transparent 45%);
  opacity: var(--hl, 0); transition: opacity .5s var(--ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(28, 30, 44, .92); }
}

.iri {
  font-style: normal; background: var(--iri); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--font); letter-spacing: -.01em; cursor: pointer; white-space: nowrap;
  transition: scale .35s var(--spring), box-shadow .35s var(--ease), background .3s;
}
.btn:active { scale: .96; }
.btn.magnetic { transition: translate .7s var(--spring), scale .35s var(--spring), box-shadow .35s var(--ease), background .3s; }
.btn.magnetic.is-mag { transition: translate .12s linear, scale .35s var(--spring), box-shadow .35s var(--ease), background .3s; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--white { background: #fff; color: #06070c; box-shadow: 0 10px 40px -10px rgba(196,181,253,.7), inset 0 -2px 0 rgba(0,0,0,.08); }
.btn--white:hover { box-shadow: 0 14px 50px -8px rgba(155,231,255,.85), inset 0 -2px 0 rgba(0,0,0,.08); }
.btn--glass { color: var(--text); }
.btn--glass:hover { background: rgba(255,255,255,.16); }
.arr { display: inline-block; transition: transform .35s var(--spring); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Остров-шапка ---------- */
.island {
  position: fixed; top: 14px; left: 50%; z-index: 50; translate: -50% 0;
  width: min(1120px, 100% - 24px); height: 62px; padding: 0 10px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px;
  background: rgba(14, 16, 26, .45); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 20px 50px -20px rgba(0,0,0,.6);
  transition: width .7s var(--ease), top .5s var(--ease), background .4s;
}
.island.is-compact { width: min(860px, 100% - 24px); top: 10px; background: rgba(10, 11, 18, .62); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.logo b { font-weight: 700; margin-left: 4px; color: var(--muted); }
.logo__gem { width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(196,181,253,.6)); animation: gemFloat 4s ease-in-out infinite; }
@keyframes gemFloat { 50% { transform: translateY(-2px) rotate(-6deg); } }
.island__nav { display: flex; gap: 4px; }
.island__nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .25s, background .25s; }
.island__nav a:hover { color: var(--text); background: rgba(255,255,255,.08); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 130px 0 56px; display: flex; flex-direction: column; justify-content: center; gap: 48px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.hero__title { font-size: clamp(46px, 6.1vw, 92px); font-weight: 800; letter-spacing: -.055em; line-height: .98; }
.hero__lead { margin-top: 26px; max-width: 520px; font-size: 19px; color: var(--muted); }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.gem-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.gem-canvas:active { cursor: grabbing; }
.hero__halo { position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,181,253,.38), rgba(155,231,255,.14) 45%, transparent 70%);
  filter: blur(20px); animation: halo 5s ease-in-out infinite; }
@keyframes halo { 50% { transform: scale(1.08); opacity: .75; } }
.hero__hint { position: absolute; left: 50%; bottom: 4%; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: opacity .6s; }
.hero__hint.is-hidden { opacity: 0; }
.hint-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--muted); position: relative; }
.hint-dot::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--text); animation: swipe 2.4s var(--ease) infinite; }
@keyframes swipe { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--r); }
.facts li { padding: 24px 26px; display: flex; flex-direction: column; gap: 4px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts b { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- Секции ---------- */
.section { padding: 120px 0; }
.head { margin-bottom: 48px; }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.label::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: var(--iri); background-size: 300% 100%; }
.title { margin-top: 14px; font-size: clamp(36px, 5.2vw, 68px); font-weight: 800; letter-spacing: -.05em; }

/* ---------- Кейс ---------- */
.case { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 22px; border-radius: 40px; }
.case + .case { margin-top: 20px; }
.case__media { position: relative; display: block; padding: 0 9% 9% 0; }
.browser { border-radius: 18px; overflow: hidden; background: #0d0e14; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); transition: transform .8s var(--ease); }
.browser__bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: rgba(255,255,255,.06); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.browser__bar i:nth-child(1) { background: #ff5f57; } .browser__bar i:nth-child(2) { background: #febc2e; } .browser__bar i:nth-child(3) { background: #28c840; }
.browser__bar span { margin-left: 10px; padding: 3px 12px; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 12px; color: var(--muted); }
.browser img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.iphone { position: absolute; right: 0; bottom: 0; width: 27%; padding: 5px; border-radius: 22% / 10.5%;
  background: linear-gradient(145deg, #4b4f5c, #15161c 40%, #2a2c35);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 40px 70px -20px rgba(0,0,0,.9);
  transition: transform .8s var(--ease); }
.iphone__screen { position: relative; border-radius: 19% / 9%; overflow: hidden; background: #000; }
.iphone__screen img { width: 100%; aspect-ratio: 390/844; object-fit: cover; }
.iphone__island { position: absolute; top: 2.4%; left: 50%; translate: -50% 0; width: 32%; height: 3.6%; border-radius: 99px; background: #000; z-index: 1; }
.case__media:hover .browser { transform: translateY(-6px); }
.case__media:hover .iphone { transform: translate(6px, -14px) rotate(2deg); }

.case__body { padding: 18px 18px 18px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.case__title { margin-top: 22px; font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; }
.case__lead { margin-top: 14px; color: var(--muted); }
.checks { margin: 22px 0 30px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--iri); background-size: 300% 100%; }
.checks li::after { content: ""; position: absolute; left: 7px; top: 6px; width: 5px; height: 9px; border: solid #06070c; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.soon { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.soon__card { min-height: 220px; padding: 30px; border-radius: 32px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.soon__num { font-size: 14px; font-weight: 600; color: var(--faint); }
.soon__card p { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.loader { display: inline-flex; gap: 6px; }
.loader i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: dots 1.4s infinite; }
.loader i:nth-child(2) { animation-delay: .2s; } .loader i:nth-child(3) { animation-delay: .4s; }
@keyframes dots { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-5px); } }
.soon__gem { position: absolute; right: -10px; bottom: -14px; width: 150px; height: 150px; opacity: .9;
  filter: drop-shadow(0 0 30px rgba(196,181,253,.5)); animation: gemFloat 5s ease-in-out infinite; transition: transform .7s var(--spring); }
.soon__card--cta:hover .soon__gem { transform: rotate(-14deg) scale(1.08); }

/* ---------- Услуги ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.service { padding: 30px; border-radius: 32px; display: flex; flex-direction: column; }
.service--main { border-color: transparent; background: linear-gradient(160deg, rgba(255,255,255,.17), rgba(255,255,255,.05)); }
/* радужная рамка отдельным слоем — стекло под ней остаётся прозрачным */
.service--main::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: var(--iri); background-size: 200% 100%; animation: shimmer 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.badge { position: absolute; top: 22px; right: 22px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #06070c; background: var(--iri); background-size: 200% 100%; }
.service__icon { display: flex; gap: 4px; height: 40px; margin-bottom: 26px; }
.service__icon svg { width: 36px; height: 36px; filter: drop-shadow(0 0 12px rgba(196,181,253,.55)); animation: gemFloat 4s ease-in-out infinite; }
.service__icon svg:nth-child(2) { animation-delay: .3s; } .service__icon svg:nth-child(3) { animation-delay: .6s; }
.service h3 { font-size: 26px; font-weight: 700; }
.service > p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.service ul { margin: 22px 0 28px; display: grid; gap: 10px; }
.service li { position: relative; padding-left: 22px; font-size: 15px; }
.service li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; transform: rotate(45deg); border-radius: 2px; background: var(--iri); background-size: 300% 100%; }
.service__price { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.service__price span { font-size: 14px; color: var(--muted); }
.service__price b { font-size: 20px; font-weight: 700; }
.extras { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.extras__label { font-size: 15px; color: var(--faint); margin-right: 4px; }
.chip { padding: 10px 16px; border-radius: 999px; font-size: 14.5px; }

/* ---------- Процесс ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 30px; right: 30px; top: 51px; height: 2px; border-radius: 2px; }
.steps::before { background: rgba(255,255,255,.1); }
.steps::after { background: var(--iri); background-size: 200% 100%; transform-origin: left; transform: scaleX(var(--p)); transition: transform .9s var(--ease); box-shadow: 0 0 18px rgba(196,181,253,.7); }
.step { z-index: 1; padding: 26px; border-radius: 28px; display: flex; flex-direction: column; gap: 22px; }
.step__num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: rgba(10,11,18,.85); border: 1px solid rgba(255,255,255,.18); transition: background .5s, color .5s, box-shadow .5s; }
.step.is-lit .step__num { background: #fff; color: #06070c; box-shadow: 0 0 24px rgba(196,181,253,.8); }
.step h3 { font-size: 21px; font-weight: 700; }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- FAQ: список как в настройках iOS ---------- */
.faq { max-width: 860px; }
.faq__list { border-radius: 26px; overflow: hidden; }
.faq__list details + details { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; position: relative; transition: background .25s; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { background: rgba(255,255,255,.04); }
.faq__list summary::before { content: ""; position: absolute; right: 28px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .45s var(--spring), margin .45s var(--spring); }
.faq__list details[open] summary::before { transform: rotate(-135deg); margin-top: -2px; }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 26px 24px; color: var(--muted); font-size: 16px; }

/* ---------- Контакты ---------- */
.contact { padding: 60px 0 100px; }
.contact__panel { position: relative; overflow: hidden; text-align: center; padding: 200px 24px 64px; border-radius: 44px; }
.gem-canvas--small { top: 22px; left: 50%; right: auto; bottom: auto; width: 180px; height: 180px; translate: -50% 0; }
.contact__title { margin-top: 18px; font-size: clamp(38px, 6vw, 80px); font-weight: 800; letter-spacing: -.055em; }
.contact__title .iri { display: inline-block; }
.contact__lead { margin: 22px auto 0; max-width: 540px; color: var(--muted); font-size: 18px; }
.contact__links { margin-top: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.contact__phone { margin-top: 22px; color: var(--faint); font-size: 15px; letter-spacing: .02em; }

.footer { padding: 0 0 40px; color: var(--faint); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- Док (телефон) ---------- */
.dock { display: none; }

/* ---------- Курсор (компьютер) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  pointer-events: none; opacity: 0;
  border: 1px solid rgba(255,255,255,.55);
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.25), rgba(255,255,255,.03) 60%);
  -webkit-backdrop-filter: blur(2px) saturate(160%) brightness(1.15); backdrop-filter: blur(2px) saturate(160%) brightness(1.15);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5), 0 6px 20px rgba(0,0,0,.25);
  transition: width .4s var(--spring), height .4s var(--spring), margin .4s var(--spring), opacity .3s, border-color .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 70px; height: 70px; margin: -35px 0 0 -35px; border-color: rgba(196,181,253,.9); }
.cursor.is-down { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

/* касание на телефоне — «капля» стекла */
.tap { position: fixed; z-index: 65; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(3px) brightness(1.2); backdrop-filter: blur(3px) brightness(1.2);
  animation: tap .75s var(--ease) forwards; }
@keyframes tap { to { transform: scale(5.5); opacity: 0; } }

/* ---------- Появление (только с JS) ---------- */
.js [data-reveal] { opacity: 0; translate: 0 28px; scale: .985; filter: blur(12px);
  transition: opacity .9s var(--ease) var(--d, 0s), translate 1.1s var(--ease) var(--d, 0s), scale 1.1s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; translate: 0 105%; filter: blur(8px); opacity: 0;
  transition: translate 1.1s var(--ease) var(--d), filter 1s var(--ease) var(--d), opacity .8s var(--ease) var(--d); }
.js [data-split].is-in .w > span { translate: 0 0; filter: blur(0); opacity: 1; }

/* наклон карточек */
.tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease); }
.tilt.is-tilting { transition: transform .15s linear; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .island__nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { order: -1; max-width: 420px; width: 86%; margin-top: -10px; }
  .hero__text { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .case { grid-template-columns: 1fr; gap: 18px; }
  .case__body { padding: 6px 10px 12px; }
  .services { grid-template-columns: 1fr; max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before, .steps::after { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .wrap { width: calc(100% - 32px); }
  .island { height: 56px; padding: 0 8px 0 16px; top: max(10px, env(safe-area-inset-top)); }
  .island.is-compact { width: calc(100% - 24px); }
  .logo { font-size: 17px; }
  .hero { padding: 92px 0 24px; gap: 30px; min-height: auto; }
  .hero__stage { width: 92%; }
  .hero__title { font-size: clamp(40px, 12.4vw, 60px); }
  .hero__lead { font-size: 16.5px; margin-top: 18px; }
  .hero__cta { width: 100%; flex-direction: column; margin-top: 26px; }
  .hero__cta .btn { width: 100%; }
  .pill { margin-bottom: 18px; font-size: 13px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 18px; }
  .facts li + li { border-left: 0; }
  .facts li:nth-child(even) { border-left: 1px solid var(--line); }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 80px 0; }
  .head { margin-bottom: 30px; }
  .case { padding: 12px; border-radius: 30px; }
  .case__media { padding: 0 12% 14% 0; }
  .iphone { width: 31%; }
  .case__body .btn { width: 100%; }
  .soon { grid-template-columns: 1fr; gap: 14px; }
  .soon__card { min-height: 170px; padding: 24px; border-radius: 28px; }
  .soon__gem { width: 120px; height: 120px; }
  .service { padding: 24px; border-radius: 28px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px; border-radius: 24px; }
  .step__num { flex: none; width: 44px; height: 44px; font-size: 14px; }
  .faq__list summary { font-size: 16.5px; padding: 18px 52px 18px 20px; }
  .faq__list summary::before { right: 22px; }
  .faq__a p { padding: 0 20px 20px; font-size: 15.5px; }
  .contact { padding: 30px 0 60px; }
  .contact__panel { padding: 168px 18px 40px; border-radius: 32px; }
  .gem-canvas--small { width: 150px; height: 150px; top: 18px; }
  .contact__links .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }

  .dock {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
    position: fixed; z-index: 55; left: 50%; translate: -50% 0; bottom: calc(10px + env(safe-area-inset-bottom));
    width: min(420px, 100% - 20px); padding: 7px; border-radius: 30px;
    background: rgba(14, 16, 26, .5);
  }
  .dock a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 22px;
    font-size: 10.5px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s, scale .3s var(--spring); }
  .dock a:active { scale: .9; }
  .dock a.is-active { color: var(--text); background: rgba(255,255,255,.1); }
  .dock svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .dock .dock__main { color: #06070c; background: #fff; box-shadow: 0 6px 20px -6px rgba(196,181,253,.8); }
}

@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora__blob, .iri, .logo__gem, .service__icon svg, .soon__gem, .hero__halo, .loader i, .pill__dot, .hint-dot::before { animation: none !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1 !important; translate: none !important; scale: none !important; filter: none !important; transition: none !important; }
  .tilt { transform: none !important; }
  .cursor, .sparkles { display: none; }
}
