/* Akmalov Digital — futuristic studio site: black and deep navy, neon blue-violet light, glass cards. */

:root {
  --bg: #05060f;
  --bg-2: #0a0f24;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1fb;
  --muted: #a3abc6;
  --faint: #7c85a3;
  --blue: #4f8cff;
  --violet: #8b5cf6;
  --pink: #c084fc;
  --neon: #7b7bff;
  --accent-soft: rgba(123, 123, 255, 0.14);
  --accent-line: rgba(123, 123, 255, 0.38);
  --grad: linear-gradient(135deg, #4f8cff 0%, #8b5cf6 55%, #c084fc 100%);
  --danger: #ff8197;
  --success: #4fd1a5;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --margin: clamp(16px, 4vw, 40px);
  --radius: 22px;
  /* Strong ease-out for entrances and feedback; ease-in-out for things moving on screen. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #9aa8ff; outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(139, 92, 246, 0.45); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 600; transition: top 0.2s var(--ease-out); }
.skip:focus { top: 12px; }

/* Background: deep gradient, faint perspective grid, slow-drifting neon glows. */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(110% 70% at 70% -10%, #161d4a 0%, var(--bg-2) 35%, var(--bg) 70%); }
.grid-lines { position: absolute; inset: -50% -20% auto; height: 120%; background-image: linear-gradient(rgba(123, 123, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 123, 255, 0.07) 1px, transparent 1px); background-size: 64px 64px; transform: perspective(900px) rotateX(62deg); transform-origin: top; mask-image: radial-gradient(60% 50% at 50% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000 0%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform; }
.orb-a { width: 560px; height: 560px; top: -220px; right: -140px; background: #5b4bd8; opacity: 0.45; animation: drift 24s var(--ease-in-out) infinite alternate; }
.orb-b { width: 460px; height: 460px; top: 45vh; left: -240px; background: #1f4fd8; opacity: 0.32; animation: drift 30s var(--ease-in-out) infinite alternate-reverse; }
.orb-c { width: 380px; height: 380px; bottom: -200px; right: 12vw; background: #9b3fd8; opacity: 0.2; animation: drift 36s var(--ease-in-out) infinite alternate; }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.08); } }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--margin); }

/* Header: clear over the hero, glass once the page scrolls. */
.bar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: background-color 0.25s ease, border-color 0.25s ease; }
.bar.scrolled { background: rgba(5, 6, 15, 0.72); border-bottom-color: var(--border); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
.bar-row { display: flex; align-items: center; gap: 14px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.mark { position: relative; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--grad); box-shadow: 0 0 18px rgba(123, 123, 255, 0.55); }
.mark::after { content: ""; position: absolute; inset: 8px; border-radius: 3px; border: 2px solid rgba(255, 255, 255, 0.92); border-right-color: transparent; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 15px; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 10px; color: var(--muted); white-space: nowrap; transition: color 0.15s ease, background-color 0.15s ease; }
.nav .nav-cta { display: none; }
.lang { display: flex; padding: 3px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.lang a { padding: 6px 9px; border-radius: 8px; color: var(--muted); transition: color 0.15s ease, background-color 0.15s ease; }
.lang a[aria-current] { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; transition: transform 0.16s var(--ease-out); }
.burger:active { transform: scale(0.95); }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease-out); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 16px; white-space: nowrap; cursor: pointer; transition: transform 0.16s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease; }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 30px rgba(109, 92, 246, 0.4); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { min-height: 56px; padding: 0 28px; }

/* Shared bits */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: #cfd2ff; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9aa8ff; box-shadow: 0 0 10px #9aa8ff; }
.pill { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: #c8c8ff; border: 1px solid rgba(123, 123, 255, 0.3); box-shadow: 0 0 24px rgba(123, 123, 255, 0.12) inset; transition: transform 0.25s var(--ease-out); }
.icon svg { width: 22px; height: 22px; }

/* Glass card with a neon edge and a soft glow that follows the cursor on desktop. */
.card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border: 1px solid var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform 0.25s var(--ease-out), border-color 0.2s ease, background-color 0.2s ease; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(320px circle at var(--x, 50%) var(--y, 0%), rgba(123, 123, 255, 0.18), transparent 70%); opacity: 0; transition: opacity 0.3s ease; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 4.9vw, 66px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
.lead { margin-top: 22px; max-width: 52ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 44px; max-width: 520px; }
.facts li { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.facts strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.facts span { display: block; margin-top: 2px; color: var(--faint); font-size: 13.5px; line-height: 1.35; }

/* Hero visual: a laptop and a phone in 3D, neon rings behind, floating glass chips. */
.scene { position: relative; aspect-ratio: 1 / 0.86; perspective: 1400px; }
.scene-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
/* Each ring is tilted into the scene; its ::before spins the neon gradient within that plane. */
.ring { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; filter: drop-shadow(0 0 12px rgba(123, 123, 255, 0.7)); }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #4f8cff, #8b5cf6, #c084fc, transparent 60%, transparent 75%, #4f8cff); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); animation: spin 26s linear infinite; }
.ring-a { width: 92%; transform: translate(-50%, -40%) translateZ(-120px) rotateX(66deg); }
.ring-b { width: 64%; transform: translate(-50%, -42%) translateZ(-80px) rotateX(70deg) rotateZ(25deg); opacity: 0.55; }
.ring-b::before { animation-duration: 38s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.glow { position: absolute; left: 20%; right: 20%; top: 30%; bottom: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(123, 123, 255, 0.45), transparent 65%); filter: blur(40px); transform: translateZ(-60px); }

.laptop { position: absolute; left: 4%; top: 14%; width: 78%; transform: translateZ(0) rotateY(-16deg) rotateX(6deg); transform-style: preserve-3d; }
.laptop-screen { position: relative; aspect-ratio: 16 / 10; padding: 3%; border-radius: 14px 14px 6px 6px; background: linear-gradient(160deg, #1b2040, #0b0e1f); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 1px rgba(123, 123, 255, 0.25), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(123, 123, 255, 0.25); }
.laptop-base { height: 12px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #2a3058, #10132a); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.ui { height: 100%; border-radius: 8px; overflow: hidden; background: radial-gradient(120% 80% at 80% 0%, #24206a 0%, #0a0e22 60%); padding: 5%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 7%; }
.ui-bar { display: flex; align-items: center; gap: 5px; }
.ui-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.ui-bar span { margin-left: auto; width: 22%; height: 8px; border-radius: 99px; background: var(--grad); }
.ui-hero b { display: block; height: 10px; width: 70%; border-radius: 99px; background: rgba(255, 255, 255, 0.85); }
.ui-hero b.short { margin-top: 6px; width: 48%; background: var(--grad); }
.ui-hero em { display: block; margin-top: 9px; height: 6px; width: 60%; border-radius: 99px; background: rgba(255, 255, 255, 0.2); }
.ui-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.ui-cards span { border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.ui-cards span:nth-child(2) { border-color: rgba(123, 123, 255, 0.6); box-shadow: 0 0 16px rgba(123, 123, 255, 0.35); }
.ui-rows { display: grid; gap: 5px; }
.ui-rows span { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.ui-rows span:last-child { width: 70%; }

.phone { position: absolute; right: 6%; bottom: 6%; width: 27%; aspect-ratio: 9 / 18.5; padding: 3.5%; border-radius: 26px; background: linear-gradient(160deg, #222852, #0b0e1f); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 0 0 1px rgba(123, 123, 255, 0.3), 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(139, 92, 246, 0.35); transform: translateZ(90px) rotateY(-10deg); }
.phone-screen { height: 100%; border-radius: 18px; overflow: hidden; background: radial-gradient(120% 60% at 50% 0%, #2a2470 0%, #0a0e22 65%); padding: 10% 8%; display: flex; flex-direction: column; gap: 6%; }
.pui-head { display: flex; align-items: center; gap: 6px; }
.pui-dot { width: 14px; height: 14px; border-radius: 5px; background: var(--grad); }
.pui-head b { height: 6px; width: 50%; border-radius: 99px; background: rgba(255, 255, 255, 0.7); }
.pui-item { display: flex; align-items: center; gap: 6px; padding: 7% 6%; border-radius: 9px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.pui-item span { width: 12px; height: 12px; flex: none; border-radius: 4px; background: rgba(123, 123, 255, 0.5); }
.pui-item b { flex: 1; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.45); }
.pui-item em { font-style: normal; font-size: clamp(7px, 0.75vw, 10px); font-weight: 700; color: #cfd2ff; white-space: nowrap; }
.pui-btn { margin-top: auto; padding: 7% 0; border-radius: 99px; background: var(--grad); text-align: center; font-size: clamp(7px, 0.75vw, 10px); font-weight: 700; box-shadow: 0 6px 18px rgba(109, 92, 246, 0.5); }

.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: rgba(16, 20, 44, 0.72); border: 1px solid var(--border-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(123, 123, 255, 0.18); font-size: clamp(11px, 1vw, 13.5px); font-weight: 600; white-space: nowrap; animation: float 7s var(--ease-in-out) infinite alternate; }
.chip svg { width: 16px; height: 16px; color: #a9b4ff; }
.chip-a { left: 0; top: 4%; transform: translateZ(140px); }
.chip-b { right: 0; top: 18%; transform: translateZ(120px); animation-delay: -2.5s; }
.chip-c { left: 8%; bottom: 4%; transform: translateZ(160px); animation-delay: -5s; }
@keyframes float { from { translate: 0 -6px; } to { translate: 0 8px; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(24px, 4vw, 48px) 0; }
.head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.head h2, .about h2, .order-intro h2, .reviews-empty h2 { margin-top: 16px; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.head p { margin: 16px auto 0; max-width: 56ch; color: var(--muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.service { display: flex; flex-direction: column; padding: 24px; }
.service h3 { margin-top: 20px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.service p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.service-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: auto; padding-top: 22px; }
.order-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; color: #b9bfff; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.order-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease-out); }
.order-link:active { transform: scale(0.97); }

/* Portfolio */
.works { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.work { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; }
.work-shot { position: relative; justify-self: center; width: 100%; max-width: 240px; padding: 8px; border-radius: 30px; background: linear-gradient(160deg, #222852, #0b0e1f); border: 1px solid var(--border-strong); box-shadow: 0 0 40px rgba(123, 123, 255, 0.25); }
.work-shot img { width: 100%; border-radius: 22px; }
.work-body h3 { margin-top: 14px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.work-body p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.tag { display: inline-flex; padding: 5px 11px; border-radius: 999px; background: rgba(79, 209, 165, 0.12); border: 1px solid rgba(79, 209, 165, 0.35); color: #9ff0d3; font-size: 12.5px; font-weight: 600; }
.tag-muted { background: var(--accent-soft); border-color: var(--accent-line); color: #cfd2ff; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.work-tags li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.work-soon { display: flex; align-items: center; padding: 28px; border-style: dashed; border-color: var(--border-strong); background: rgba(255, 255, 255, 0.02); }
.demo-link { margin-top: 20px; min-height: 46px; }
.work-note { font-size: 14px !important; color: var(--faint) !important; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-text p { color: var(--muted); font-size: 18px; }
.about-text p + p { margin-top: 18px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 24px; }
.step::after { counter-increment: step; content: "0" counter(step); position: absolute; top: 20px; right: 22px; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; }
.step h3 { margin-top: 64px; font-size: 18px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Advantages */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.perk { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.perk h3 { font-size: 17px; font-weight: 700; }
.perk p { margin-top: 4px; color: var(--muted); font-size: 15px; }

/* Reviews (empty, honest) */
.reviews-empty { padding: clamp(32px, 5vw, 56px); text-align: center; }
.reviews-empty h2 { font-size: clamp(26px, 3vw, 36px); }
.reviews-empty p { margin: 14px auto 0; max-width: 56ch; color: var(--muted); }

/* Prices */
.prices { padding: 8px 8px 0; }
.prices table { width: 100%; border-collapse: collapse; }
.prices th, .prices td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.prices thead th { color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.prices tbody th { font-weight: 600; }
.prices tbody td:nth-child(2) { font-weight: 700; font-variant-numeric: tabular-nums; }
.prices tbody td:last-child { color: var(--muted); }
.prices tbody tr { transition: background-color 0.15s ease; }
.prices-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 20px 26px; }
.prices-foot p { color: var(--muted); }

/* FAQ: height animates where supported; elsewhere it opens instantly. */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.2s ease, background-color 0.2s ease; interpolate-size: allow-keywords; }
.faq details[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(#a9b4ff, #a9b4ff) center / 12px 2px no-repeat, linear-gradient(#a9b4ff, #a9b4ff) center / 2px 12px no-repeat; transition: transform 0.25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.3s var(--ease-out), content-visibility 0.3s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq details p { padding: 0 22px 20px; color: var(--muted); max-width: 64ch; opacity: 0; transform: translateY(-4px); transition: opacity 0.25s ease, transform 0.3s var(--ease-out); }
.faq details[open] p { opacity: 1; transform: none; }

/* Order form */
.order { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.order-intro p { margin-top: 16px; color: var(--muted); }
.order-alt a { color: #b9bfff; text-decoration: underline; text-underline-offset: 3px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: clamp(22px, 3vw, 32px); border-color: rgba(123, 123, 255, 0.28); box-shadow: 0 0 60px rgba(123, 123, 255, 0.12); }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; }
.optional { color: var(--faint); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; background: rgba(5, 6, 15, 0.55); border: 1px solid var(--border-strong); font-size: 16px; transition: border-color 0.15s ease, box-shadow 0.2s ease; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field ::placeholder { color: #6c7593; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #8f96ff; box-shadow: 0 0 0 4px rgba(123, 123, 255, 0.18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select select option { background: #0d1128; color: var(--text); }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field-error { min-height: 0; margin-top: 6px; color: var(--danger); font-size: 13.5px; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: rotate 0.6s linear infinite; }
.submit[aria-busy="true"] { cursor: progress; }
.submit[aria-busy="true"] .spinner { display: inline-block; }
@keyframes rotate { to { transform: rotate(360deg); } }
.form-status { flex: 1 1 260px; font-size: 15px; color: var(--muted); }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); }
.form-status a { color: #b9bfff; text-decoration: underline; text-underline-offset: 3px; }
.form.sent { border-color: rgba(79, 209, 165, 0.45); }

/* Contacts */
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact { display: flex; align-items: center; gap: 16px; padding: 22px; }
.contact strong { display: block; font-weight: 700; }
.contact small { display: block; color: var(--muted); font-size: 14.5px; }

/* Footer */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--border); background: rgba(5, 6, 15, 0.6); color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px; }
.footer .brand { color: var(--text); }
.footer-note { margin-top: 12px; max-width: 34ch; }
.footer nav, .footer-contacts { display: grid; gap: 10px; align-content: start; }
.footer nav a, .footer-contacts a { transition: color 0.15s ease; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }

/* Phone-only order button: slides up between the hero and the form. */
.dock { display: none; }

/* Hover only on devices that really hover, so taps on phones don't stick. */
@media (hover: hover) and (pointer: fine) {
  .nav a:not(.btn):hover, .lang a:not([aria-current]):hover { color: var(--text); background: var(--surface); }
  .btn:hover { transform: scale(1.04); }
  .btn:hover:active { transform: scale(0.97); }
  .btn:hover svg { transform: translateX(3px); }
  .btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 14px 40px rgba(109, 92, 246, 0.6); }
  .btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.26); }
  .card:hover { border-color: rgba(123, 123, 255, 0.35); }
  .card:hover::before { opacity: 1; }
  .service:hover, .contact:hover, .step:hover { transform: translateY(-4px); }
  .service:hover .icon, .contact:hover .icon { transform: scale(1.06); }
  .order-link:hover svg { transform: translateX(4px); }
  .prices tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
  .faq summary:hover { background: rgba(255, 255, 255, 0.02); }
  .footer nav a:hover, .footer-contacts a:hover { color: var(--text); }
}

/* Motion: only when JS runs, so content never stays hidden. */
.js .rise { opacity: 0; animation: rise 0.9s var(--ease-out) forwards; animation-delay: calc(80ms + var(--d, 0) * 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), border-color 0.2s ease, background-color 0.2s ease; transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.in { opacity: 1; transform: none; }
/* After the reveal finishes, cards get their quick hover timing back. */
.js .card.reveal.settled { transition: transform 0.25s var(--ease-out), border-color 0.2s ease, background-color 0.2s ease; transition-delay: 0s; }

/* Tablet */
@media (max-width: 1080px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .scene { max-width: 620px; width: 100%; margin: 8px auto 0; }
  .about, .order { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* Phones and small tablets: menu becomes a sheet under the header. */
@media (max-width: 900px) {
  .bar-cta { display: none; }
  .burger { display: block; }
  .lang { margin-left: auto; }
  .nav { position: absolute; z-index: 19; top: calc(100% + 4px); left: 12px; right: 12px; margin: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 22px; background: rgba(10, 13, 32, 0.96); border: 1px solid var(--border-strong); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); font-size: 17px; transform-origin: top center; opacity: 0; transform: translateY(-8px) scale(0.98); visibility: hidden; transition: opacity 0.2s ease-out, transform 0.25s var(--ease-out), visibility 0s linear 0.25s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity 0.2s ease-out, transform 0.25s var(--ease-out), visibility 0s; }
  .nav a:not(.btn) { padding: 14px 14px; color: var(--text); }
  .nav .nav-cta { display: flex; margin-top: 8px; }
  .dock { display: flex; position: fixed; z-index: 18; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); visibility: hidden; transform: translateY(calc(100% + 32px)); transition: transform 0.4s var(--ease-drawer), visibility 0s linear 0.4s; }
  .dock.show { visibility: visible; transform: none; transition: transform 0.4s var(--ease-drawer), visibility 0s; }
  .dock.show:active { transform: scale(0.97); transition-duration: 0.16s; }
  .footer { padding-bottom: 112px; }
  .contacts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .facts li { padding: 12px; }
  .facts strong { font-size: 18px; }
  .actions .btn { width: 100%; }
  .perks, .steps { grid-template-columns: minmax(0, 1fr); }
  .work { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .work-shot { max-width: 200px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .submit { width: 100%; }
  .prices th, .prices td { padding: 14px 12px; font-size: 15px; }
  .prices thead th:last-child, .prices tbody td:last-child { display: none; }
  .prices-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .chip { padding: 7px 10px; border-radius: 11px; }
  .chip svg { width: 13px; height: 13px; }
}

/* Reduced motion: keep the fades, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb, .ring::before, .chip { animation: none; }
  .js .rise { animation-name: fade; animation-duration: 0.4s; }
  .js .reveal { transform: none; transition-duration: 0.4s; }
  .btn:active, .btn:hover, .btn:hover:active, .card:hover, .service:hover, .contact:hover, .step:hover, .icon, .btn:hover svg, .order-link:hover svg { transform: none !important; }
  .faq details p { transform: none; }
  .nav, .nav.open { transform: none; }
  .dock, .dock.show, .dock.show:active { transform: none; opacity: 0; transition: opacity 0.25s ease, visibility 0s linear 0.25s; }
  .dock.show { opacity: 1; transition: opacity 0.25s ease, visibility 0s; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
