/* nasheer marketing — styles v5 (по мотивам прежнего сайта) */

@font-face {
  font-family: "Glorida";
  src: url("/assets/fonts/Glorida-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* ── Темы: палитры прежнего сайта ───────────────────── */
:root, [data-theme="dark"] {
  --bg: #031b1e;
  --bg-deep: #021315;
  --text: #f0ede8;
  --heading: #ecd4bd;
  --muted: rgba(236, 212, 189, .7);
  --subtle: rgba(236, 212, 189, .64);   /* ≥ 4.5:1 на --bg и --bg-deep */
  --accent: #39f5d2;
  --accent-alt: #00c4a1;
  --line: rgba(236, 212, 189, .1);
  --line-strong: rgba(236, 212, 189, .24);
  --nav-bg: rgba(3, 27, 30, .9);
  --input-bg: rgba(0, 62, 65, .55);
  --glass-bg: rgba(0, 62, 65, .32);
  --glass-bg-hover: rgba(0, 62, 65, .55);
  --glass-border: rgba(236, 212, 189, .1);
  --glass-border-hover: rgba(57, 245, 210, .35);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 32px rgba(0, 0, 0, .18);
  --glass-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 56px rgba(0, 0, 0, .28), 0 0 40px rgba(57, 245, 210, .12);
  --btn-p-bg: linear-gradient(135deg, #ecd4bd, #c9a88a);
  --btn-p-text: #031b1e;
  --btn-p-glow: rgba(236, 212, 189, .3);
  --btn-cta-bg: linear-gradient(135deg, #39f5d2, #00c4a1);
  --btn-cta-text: #031b1e;
  --btn-cta-glow: rgba(57, 245, 210, .35);
  --btn-g-text: #ecd4bd;
  --btn-g-border: rgba(236, 212, 189, .22);
  --grid-line: rgba(236, 212, 189, .05);
  --grad-beige: linear-gradient(135deg, #ecd4bd, #c9a88a 50%, #ecd4bd);
  --grad-teal: linear-gradient(135deg, #39f5d2, #00c4a1 50%, #39f5d2);
  --glow-1: rgba(0, 81, 81, .55);
  --glow-2: rgba(57, 245, 210, .08);
  --chip-bg: rgba(0, 62, 65, .22);
  --tint: rgba(0, 62, 65, .12);
  --loader-bg: #003e41;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #ecd4bd;
  --bg-deep: #e0c4a8;
  --text: #14322e;
  --heading: #0f2825;
  --muted: rgba(15, 40, 37, .78);
  --subtle: rgba(15, 40, 37, .74);
  --accent: #005f62;
  --accent-alt: #004a4d;
  --line: rgba(15, 40, 37, .12);
  --line-strong: rgba(15, 40, 37, .26);
  --nav-bg: rgba(236, 212, 189, .94);
  --input-bg: rgba(255, 255, 255, .7);
  --glass-bg: rgba(255, 255, 255, .52);
  --glass-bg-hover: rgba(255, 255, 255, .72);
  --glass-border: rgba(15, 40, 37, .14);
  --glass-border-hover: rgba(0, 95, 98, .4);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 32px rgba(15, 40, 37, .08);
  --glass-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .7), 0 20px 56px rgba(15, 40, 37, .12), 0 0 40px rgba(0, 95, 98, .1);
  --btn-p-bg: linear-gradient(135deg, #0f2825, #1f4a45);
  --btn-p-text: #f5e8d8;
  --btn-p-glow: rgba(15, 40, 37, .28);
  --btn-cta-bg: linear-gradient(135deg, #005f62, #004a4d);
  --btn-cta-text: #ffffff;
  --btn-cta-glow: rgba(0, 95, 98, .3);
  --btn-g-text: #0f2825;
  --btn-g-border: rgba(15, 40, 37, .32);
  --grid-line: rgba(15, 40, 37, .07);
  --grad-beige: linear-gradient(135deg, #0f2825, #1f4a45 50%, #0f2825);
  --grad-teal: linear-gradient(135deg, #005f62, #004a4d 50%, #005f62);
  --glow-1: rgba(255, 255, 255, .45);
  --glow-2: rgba(0, 95, 98, .1);
  --chip-bg: rgba(255, 255, 255, .45);
  --tint: rgba(255, 255, 255, .22);
  --loader-bg: #003e41;
  color-scheme: light;
}

:root {
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-logo: "Glorida", var(--font-body);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --radius: 16px;
  --nav-h: 68px;
}
[lang="ar"] { --font-head: "Segoe UI", Tahoma, system-ui, sans-serif; --font-body: "Segoe UI", Tahoma, system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background .4s, color .4s; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(57, 245, 210, .25); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--heading); border-radius: 2px; }

/* Скрытие без смещения за экран: left:-9999px в RTL (арабский) давал горизонтальную прокрутку */
.skip { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 10000; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 700; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 900px; }
.logo-font { font-family: var(--font-logo); font-weight: 400; text-transform: lowercase; letter-spacing: .02em; text-decoration: none; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico--sm { width: 16px; height: 16px; }
.ico--xs { width: 12px; height: 12px; }
.grad-beige, .grad-teal { background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 6s linear infinite; }
.grad-beige { background-image: var(--grad-beige); }
.grad-teal { background-image: var(--grad-teal); }

/* без backdrop-filter: на десятках карточек он сильно грузит видеокарту телефонов */
.glass { background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }

/* ── Buttons ─────────────────────────────────────────── */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s; }
.btn--sm { padding: 10px 18px; font-size: .875rem; border-radius: 9px; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--btn-p-bg); color: var(--btn-p-text); }
.btn--primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 36px var(--btn-p-glow); }
.btn--accent { background: var(--btn-cta-bg); color: var(--btn-cta-text); box-shadow: 0 6px 24px var(--btn-cta-glow); }
.btn--accent:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 40px var(--btn-cta-glow); }
.btn--ghost { border: 1px solid var(--btn-g-border); color: var(--btn-g-text); font-weight: 600; }
.btn--ghost:hover { border-color: var(--heading); background: rgba(236, 212, 189, .06); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .35); animation: ripple .6s ease-out; pointer-events: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--heading); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--line-strong); background: var(--glass-bg); }

/* ── Loader (nasheer.marketing loader.html) ──────────── */
.loader { position: fixed; inset: 0; z-index: 9999; background: var(--loader-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.no-loader .loader { display: none; }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__wipe { position: absolute; inset: 0; z-index: 3; background: var(--loader-bg); transform-origin: left; animation: wipeLeft .7s cubic-bezier(.76, 0, .24, 1) forwards; }
.loader__orb { position: absolute; top: 50%; left: 50%; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(181, 169, 138, .09) 0%, transparent 70%); transform: translate(-50%, -50%); animation: orbPulse 8s ease-in-out infinite; transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.loader__word { position: relative; font-size: clamp(72px, 15vw, 190px); line-height: 1; color: #ecd4bd; letter-spacing: .04em; white-space: nowrap; animation: slideFromRight 1.1s cubic-bezier(.16, 1, .3, 1) .25s both; }
.loader__word sup { font-size: .28em; vertical-align: super; margin-left: .05em; opacity: .75; letter-spacing: 0; }
.loader__progress { position: absolute; bottom: 72px; left: 50%; width: 160px; height: 4px; transform: translateX(-50%); border-radius: 100px; background: rgba(236, 212, 189, .08); overflow: hidden; animation: fadeIn .4s ease .2s both; }
/* Телефон: слово сразу на месте и коротко проявляется — быстрее LCP, без полёта через экран */
@media (max-width: 768px) {
  .loader__word { animation: loaderFadeIn .5s ease-out both; }
  .loader__progress span { animation-duration: .9s, 2s !important; animation-delay: 0s, 0s !important; }
  .loader__wipe { animation-duration: .4s; }
}
@keyframes loaderFadeIn { from { opacity: .01; transform: scale(.97); } to { opacity: 1; transform: none; } }
.loader__progress span { display: block; height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, rgba(181, 169, 138, .5), #ecd4bd 50%, rgba(181, 169, 138, .5)); background-size: 300% 100%; animation: iphoneProgress 1.5s cubic-bezier(.4, 0, .6, 1) .2s forwards, iphoneShimmer 2s ease-in-out infinite; }
.loader__year { position: absolute; bottom: 40px; right: 48px; font-size: 11px; letter-spacing: .2em; color: rgba(236, 212, 189, .3); animation: fadeIn 1s ease 1.2s both; }

/* ── Qalam cursor + scroll progress ──────────────────── */
.qalam { position: fixed; left: 0; top: 0; z-index: 99999; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
@media (hover: hover) and (pointer: fine) {
  .has-qalam, .has-qalam * { cursor: none !important; }
  .has-qalam input, .has-qalam select, .has-qalam textarea { cursor: text !important; }
}
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 950; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--accent), var(--heading)); }

/* ── Nav ─────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 900; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; border-bottom: 1px solid transparent; transition: background .35s, border-color .35s; }
.nav.is-scrolled { background: var(--nav-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line); }
.nav__logo { font-size: 1.45rem; color: var(--heading); white-space: nowrap; padding: 8px 0; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--muted); font-size: .9rem; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--heading); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; }
.theme-toggle .ico--sun { display: none; }
[data-theme="light"] .theme-toggle .ico--sun { display: block; }
[data-theme="light"] .theme-toggle .ico--moon { display: none; }

.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--heading); font-size: .82rem; font-weight: 700; transition: border-color .2s, background .2s; }
.lang__btn:hover { border-color: var(--line-strong); background: var(--glass-bg); }
.lang__menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 960; list-style: none; min-width: 200px; max-height: min(70vh, 480px); overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-strong); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); animation: dock .25s var(--ease); }
.lang__menu li button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; text-align: start; font-size: .9rem; color: var(--text); }
.lang__menu li button:hover, .lang__menu li button[aria-selected="true"] { background: var(--glass-bg-hover); color: var(--heading); }
.lang__menu small { color: var(--subtle); font-size: .72rem; font-weight: 700; letter-spacing: .06em; }

.mmenu { position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); }
.mmenu__panel { position: absolute; top: 0; inset-inline-end: 0; bottom: 0; width: min(84%, 340px); background: var(--bg); border-inline-start: 1px solid var(--line); padding: 84px 28px 32px; display: flex; flex-direction: column; animation: slideIn .3s var(--ease); }
.mmenu__panel a { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: var(--heading); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mmenu__panel .btn { margin-top: 28px; }
.mmenu__close { position: absolute; top: 14px; inset-inline-end: 16px; }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) 0 90px; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%); }
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.hero__glow--1 { width: 720px; height: 720px; top: -18%; right: -10%; background: radial-gradient(circle, var(--glow-1), transparent 65%); animation: blob1 18s ease-in-out infinite; }
.hero__glow--2 { width: 540px; height: 540px; bottom: -14%; left: -10%; background: radial-gradient(circle, var(--glow-2), transparent 65%); animation: blob2 22s ease-in-out infinite; }
.hero__inner { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 1000px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 40px; background: rgba(57, 245, 210, .07); border: 1px solid rgba(57, 245, 210, .22); color: var(--accent); font-size: .76rem; font-weight: 700; letter-spacing: .1em; margin-bottom: 34px; }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.5s ease-in-out infinite; }
.hero__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(2.3rem, 7.2vw, 5.8rem); line-height: 1.06; letter-spacing: -.025em; margin-bottom: 44px; }
/* Длинные слова (немецкий, казахский) переносятся, а не вылезают за экран */
h1, h2, h3, .acc__name, .chip, .stat__label { overflow-wrap: break-word; hyphens: auto; }
.hero__line { display: block; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* Появление hero — чистый CSS, без ожидания JS: заголовок (LCP) рисуется сразу.
   При первом визите вступление делает лоадер, поэтому анимация только для повторных визитов. */
.no-loader .hero .pill, .no-loader .hero__line, .no-loader .hero__actions { animation: heroIn .8s var(--ease) both; }
.no-loader .hero__line:nth-child(1) { animation-delay: .06s; }
.no-loader .hero__line:nth-child(2) { animation-delay: .14s; }
.no-loader .hero__actions { animation-delay: .24s; }
@keyframes heroIn { from { opacity: .01; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 110px 0; position: relative; }
.section--line { border-top: 1px solid var(--line); }
.section--tint { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shead { text-align: center; margin-bottom: 56px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 15px; border-radius: 40px; background: rgba(57, 245, 210, .07); border: 1px solid rgba(57, 245, 210, .22); color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.shead__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; color: var(--heading); }
.shead__sub { color: var(--muted); max-width: 560px; margin: 14px auto 0; font-size: clamp(.95rem, 2vw, 1.05rem); }
.eyebrow { text-align: center; font-size: .74rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--subtle); margin-bottom: 22px; }

/* Trust */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto; }
.stat { border-radius: 20px; padding: 36px 24px; text-align: center; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; }
.stat:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); box-shadow: var(--glass-shadow-hover); transform: translateY(-4px); }
.stat__num { display: block; font-family: var(--font-head); font-weight: 600; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -.03em; background: linear-gradient(135deg, var(--heading), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { font-weight: 700; color: var(--heading); margin-top: 12px; font-size: 1.05rem; }
.stat__desc { color: var(--subtle); font-size: .85rem; }

/* Niche + chips */
.niche { padding: 56px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { padding: 11px 18px; border-radius: 40px; font-size: .9rem; font-weight: 500; color: var(--muted); background: var(--chip-bg); border: 1px solid var(--line-strong); transition: color .2s, border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.chip:hover { color: var(--heading); border-color: var(--heading); transform: translateY(-1px); }
.chip[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--glass-bg-hover); box-shadow: 0 0 18px rgba(57, 245, 210, .16); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.chip--dashed { border-style: dashed; }

/* Clients marquee */
.clients { padding-bottom: 90px; overflow: hidden; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
[dir="rtl"] .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; color: var(--subtle); padding: 0 44px; border-inline-end: 1px solid var(--line); white-space: nowrap; transition: color .2s; }
.marquee__track span:hover { color: var(--heading); }

/* Services accordion */
.acc { display: flex; flex-direction: column; gap: 10px; }
.acc__item { border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass-bg); transition: border-color .3s, background .3s, box-shadow .3s; }
.acc__item:hover { border-color: var(--line-strong); }
.acc__item.is-open { border-color: var(--glass-border-hover); background: var(--glass-bg-hover); box-shadow: var(--glass-shadow-hover); }
.acc__head button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 22px; text-align: start; }
.acc__icon { width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--input-bg); border: 1px solid var(--line); color: var(--heading); transition: color .3s, border-color .3s, background .3s; }
.acc__item.is-open .acc__icon { color: var(--accent); border-color: rgba(57, 245, 210, .35); }
.acc__text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.acc__problem { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--subtle); }
.acc__name { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--heading); }
.acc__tagline { flex-basis: 100%; font-size: .86rem; color: var(--muted); margin-top: 3px; }
.acc__item.is-open .acc__problem { color: var(--accent); }
.acc__chev { color: var(--subtle); transition: transform .35s var(--ease); }
.acc__item.is-open .acc__chev { transform: rotate(180deg); }
.acc__body { padding: 0 22px 22px; }
.acc__inner { padding: 24px 26px; border-radius: 12px; background: rgba(2, 19, 21, .35); border: 1px solid rgba(57, 245, 210, .15); animation: dock .35s var(--ease); }
[data-theme="light"] .acc__inner { background: rgba(255, 255, 255, .5); }
.acc__quote { font-style: italic; color: var(--heading); border-inline-start: 3px solid var(--accent); padding-inline-start: 14px; margin-bottom: 14px; }
.acc__inner > p { color: var(--muted); margin-bottom: 16px; }
.acc__inner ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.acc__inner li { font-size: .8rem; padding: 6px 13px; border-radius: 30px; background: rgba(57, 245, 210, .07); border: 1px solid rgba(57, 245, 210, .18); color: var(--heading); }
.acc__inner li::before { content: "✓ "; color: var(--accent); }

/* Process timeline */
.timeline { list-style: none; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px; border-radius: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(90deg, var(--accent), var(--heading)); transform-origin: left; transform: scaleX(var(--tp, 0)); transition: transform .2s linear; }
[dir="rtl"] .timeline::after { transform-origin: right; }
.tstep { position: relative; z-index: 1; text-align: center; }
.tstep__icon { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent); background: var(--bg); border: 1px solid rgba(57, 245, 210, .4); box-shadow: 0 0 0 6px var(--bg), 0 0 30px rgba(57, 245, 210, .18); }
.tstep__icon .ico { width: 24px; height: 24px; }
.tstep__n { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--accent); opacity: .75; margin-bottom: 6px; }
.tstep h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--heading); margin-bottom: 8px; }
.tstep p { font-size: .87rem; color: var(--muted); }

/* Why cards */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { grid-column: span 2; border-radius: 20px; padding: 28px; position: relative; overflow: hidden; }
.card:nth-child(4) { grid-column: 2 / span 2; }
.card:hover { background: var(--glass-bg-hover); border-color: var(--glass-border-hover); box-shadow: var(--glass-shadow-hover); transform: translateY(-4px); }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.card__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 13px; color: var(--accent); background: rgba(57, 245, 210, .08); border: 1px solid rgba(57, 245, 210, .25); }
.card__n { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--accent); opacity: .35; }
.card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--heading); margin-bottom: 10px; }
.card p { font-size: .92rem; color: var(--muted); }

/* Problems */
.pbar { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 22px 26px; border-radius: 18px; border-color: var(--glass-border-hover); animation: dock .3s var(--ease); }
.pbar__count { color: var(--accent); font-weight: 700; }
.pbar__sub { color: var(--muted); font-size: .88rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-weight: 600; font-size: clamp(.98rem, 2vw, 1.08rem); color: var(--heading); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; }

/* Final CTA */
.final { padding: 30px 0 110px; }
.final__inner { text-align: center; border-radius: 28px; padding: 64px 28px; position: relative; overflow: hidden; }
.final__inner::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(ellipse at center, rgba(57, 245, 210, .14), transparent 60%); pointer-events: none; }
.final__title { position: relative; font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; letter-spacing: -.02em; color: var(--heading); margin-bottom: 16px; }
.final__title > span:first-child { display: inline-block; }
.final__title > span:first-child::first-letter { text-transform: uppercase; }
.final p { position: relative; color: var(--muted); max-width: 560px; margin: 0 auto 32px; }

/* Footer */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 64px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer__logo { font-size: 1.8rem; color: var(--heading); display: inline-block; margin-bottom: 18px; white-space: nowrap; }
.footer__h { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); margin-bottom: 14px; }
.footer__grid a:not(.footer__logo), .footer__grid > div > p:not(.footer__h), .footer__btn { display: block; color: var(--muted); font-size: .9rem; text-decoration: none; padding: 5px 0; text-align: start; transition: color .2s; }
.footer__grid a:hover, .footer__btn:hover { color: var(--heading); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; padding: 0 !important; display: flex !important; align-items: center; justify-content: center; border-radius: 10px; background: var(--glass-bg); border: 1px solid var(--line); }
.socials a:hover { border-color: var(--glass-border-hover); color: var(--accent) !important; }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 24px; color: var(--subtle); font-size: .8rem; }

/* Sticky CTA (mobile) */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 800; transition: transform .35s var(--ease), opacity .35s; }
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* Modal */
.modal { margin: auto; border: 0; padding: 0; background: transparent; color: var(--text); width: min(100% - 32px, 480px); max-height: calc(100dvh - 32px); overflow: visible; }
.modal::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal[open] { animation: dock .3s var(--ease); }
.modal__box { position: relative; border-radius: 22px; padding: 36px 30px 26px; background: var(--bg); border-color: var(--glass-border-hover); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal__close { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; }
.modal__eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.modal__title { font-family: var(--font-head); font-weight: 600; font-size: 1.7rem; line-height: 1.15; color: var(--heading); margin-bottom: 14px; padding-inline-end: 30px; }
.modal__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.modal__tags:empty { display: none; }
.modal__tags span { font-size: .74rem; padding: 4px 11px; border-radius: 30px; background: rgba(57, 245, 210, .1); border: 1px solid rgba(57, 245, 210, .24); color: var(--accent); }
.modal__note { font-size: .74rem; text-align: center; margin-top: 12px; }
.modal__note a { color: var(--subtle); }
.modal__success { text-align: center; padding: 16px 0 6px; }
.modal__check { width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--accent); background: rgba(57, 245, 210, .1); border: 1px solid rgba(57, 245, 210, .35); }
.modal__check .ico { width: 30px; height: 30px; }
.modal__success p { color: var(--muted); margin-bottom: 22px; }
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-size: .8rem; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 13px 14px; border-radius: 10px; background: var(--input-bg); border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--subtle) 50%), linear-gradient(135deg, var(--subtle) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .field select { background-position: 20px 50%, 15px 50%; }
.field select option { background: var(--bg); color: var(--text); }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(57, 245, 210, .15); }
.field.has-error input { border-color: #ff7a7a; }
.field__err { display: block; font-size: .76rem; color: #ff8f8f; margin-top: 4px; }
[data-theme="light"] .field__err { color: #b3261e; }
.field__err:empty { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-error { font-size: .85rem; color: var(--text); background: rgba(255, 80, 80, .1); border: 1px solid rgba(255, 120, 120, .3); padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.form-error a { color: var(--accent); }

/* Cookie */
.cookie { position: fixed; z-index: 950; inset-inline-start: 24px; bottom: 24px; width: min(100% - 24px, 420px); display: flex; gap: 14px; padding: 18px; border-radius: 18px; background: var(--bg); border-color: var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, .4); font-size: .84rem; color: var(--muted); animation: dock .4s var(--ease); }
.cookie__icon { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--accent); background: rgba(57, 245, 210, .08); border: 1px solid rgba(57, 245, 210, .22); }
.cookie__title { font-weight: 700; color: var(--heading); font-size: .95rem; margin-bottom: 4px; }
.cookie a { color: var(--accent); }
.cookie__body { min-width: 0; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cookie__btns .btn { flex: 1 1 auto; white-space: normal; text-align: center; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Legal */
.legal { padding: calc(var(--nav-h) + 56px) 0 90px; }
.legal h1 { font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); color: var(--heading); margin-bottom: 8px; }
.legal__date { color: var(--subtle); margin-bottom: 40px; }
.legal h2 { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--heading); margin: 34px 0 12px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; white-space: pre-line; }
.legal ul { padding-inline-start: 20px; }
.legal a { color: var(--accent); }
.legal__back { display: inline-flex; margin-top: 40px; }

/* Keyframes */
@keyframes shimmer { from { background-position: -200% center; } to { background-position: 200% center; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blob1 { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(50px, -60px); } 70% { transform: translate(-30px, 25px); } }
@keyframes blob2 { 0%, 100% { transform: translate(0, 0); } 35% { transform: translate(-50px, 35px); } 65% { transform: translate(30px, -25px); } }
@keyframes gridGlow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(57, 245, 210, .35); } 50% { box-shadow: 0 0 0 6px rgba(57, 245, 210, 0); } }
@keyframes wipeLeft { to { transform: scaleX(0); } }
@keyframes slideFromRight { 0% { transform: translateX(130vw); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes orbPulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes iphoneProgress { 0% { width: 0; } 8% { width: 18%; } 20% { width: 35%; } 35% { width: 52%; } 50% { width: 63%; } 65% { width: 75%; } 78% { width: 84%; } 88% { width: 91%; } 95% { width: 96%; } 100% { width: 100%; } }
@keyframes iphoneShimmer { from { background-position: 100% center; } to { background-position: -100% center; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dock { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
[dir="rtl"] .mmenu__panel { animation-name: slideInRtl; }
@keyframes slideInRtl { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Responsive */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
}
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin: 0 auto; }
  .timeline::before, .timeline::after { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; }
  .timeline::after { transform-origin: top; transform: scaleY(var(--tp, 0)); }
  [dir="rtl"] .timeline::before, [dir="rtl"] .timeline::after { left: auto; right: 31px; }
  .tstep { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: start; padding-bottom: 28px; }
  .tstep__icon { grid-row: span 3; margin: 0; }
  .tstep__n { font-size: 1.2rem; margin: 4px 0 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card, .card:nth-child(4) { grid-column: auto; }
  .card:last-child { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { padding: 0 14px; }
  .nav__logo { font-size: 1.15rem; }
  .nav__right { gap: 6px; }
  .nav__cta { display: none; }
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .stats { grid-template-columns: 1fr; max-width: 360px; }
  .acc__head button { padding: 16px; gap: 12px; }
  .acc__icon { width: 40px; height: 40px; }
  .acc__body { padding: 0 14px 16px; }
  .acc__inner { padding: 18px; }
  .cards { grid-template-columns: 1fr; }
  .card:last-child { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding-bottom: 100px; }
  .cookie { bottom: 84px; inset-inline-start: 12px; }
  .modal__box { padding: 30px 20px 22px; }
  .loader__year { right: 24px; }
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; white-space: normal; text-align: center; }
  .modal .btn, .pbar .btn, .final .btn { white-space: normal; text-align: center; }
  .lang__btn span { display: none; }
}
/* Узкие телефоны (iPhone SE, 320–380 px): шапка помещается целиком */
@media (max-width: 380px) {
  .nav { padding: 0 10px; }
  .nav__logo { font-size: 1rem; }
  .nav__right { gap: 4px; }
  .icon-btn { width: 36px; height: 36px; }
  .lang__btn { height: 36px; padding: 0 8px; gap: 4px; }
}
@media (min-width: 769px) { .sticky-cta { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
