/* =========================================================
   WEBiSEO — redesign
   ========================================================= */

:root {
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --accent: #c8ff3e;
  --accent-ink: #0a0a0c;
  --violet: #7b5cff;

  --radius: 28px;
  --radius-sm: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1320px;
  --pad: clamp(20px, 4vw, 48px);
}

[data-theme='dark'] {
  --bg: #0a0a0c;
  --bg-2: #111115;
  --surface: #16161b;
  --surface-2: #1d1d23;
  --text: #f3f3ee;
  --muted: #8c8c96;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --orb-opacity: .55;
}

[data-theme='light'] {
  --bg: #f4f3ee;
  --bg-2: #ecebe4;
  --surface: #ffffff;
  --surface-2: #f8f7f2;
  --text: #0e0e12;
  --muted: #6b6b73;
  --line: rgba(14, 14, 18, .1);
  --line-strong: rgba(14, 14, 18, .2);
  --accent: #b6f01f;
  --orb-opacity: .35;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

main, footer { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

em { font-style: normal; color: var(--muted); }

/* Noise overlay */
.noise {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(3%, -6%); }
  60% { transform: translate(-7%, 2%); }
  80% { transform: translate(4%, 5%); }
}

/* ============ Custom cursor ============ */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 999; display: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s var(--ease), border-color .4s;
}
.cursor__ring em {
  font-family: var(--font-display); font-size: 12px; font-weight: 500; color: var(--accent-ink);
  opacity: 0; transform: scale(.6); transition: .3s var(--ease);
}
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--accent); }
.cursor.is-view .cursor__ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--accent); border-color: var(--accent); }
.cursor.is-view .cursor__ring em { opacity: 1; transform: scale(1); }
.cursor.is-view .cursor__dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

/* ============ Buttons ============ */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 100px;
  font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), color .4s var(--ease), border-color .4s, background .4s;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: rotate(45deg); }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn--lg { --h: 62px; padding: 0 34px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent::before { background: var(--text); }
.btn--accent:hover { color: var(--bg); }
.btn--ghost { border: 1px solid var(--line-strong); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }

/* ============ Header ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: transform .5s var(--ease), padding .4s var(--ease);
}
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .4s;
}
.header.is-scrolled { padding: 12px 0; }
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.logo__mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 18px;
  transition: transform .6s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.05); }
.logo__text b { color: var(--accent); font-weight: 600; }
[data-theme='light'] .logo__text b { color: #6b9a00; }

.nav { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 100px; background: color-mix(in srgb, var(--surface) 50%, transparent); }
.nav__link { position: relative; padding: 8px 16px; border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s, background .3s; }
.nav__link:hover, .nav__link.is-active { color: var(--text); background: var(--surface-2); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; position: relative; overflow: hidden; transition: border-color .3s, transform .5s var(--ease);
}
.theme-toggle:hover { border-color: var(--text); transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: transform .5s var(--ease), opacity .3s; }
[data-theme='dark'] .i-moon { transform: translateY(150%); opacity: 0; }
[data-theme='light'] .i-sun { transform: translateY(-150%); opacity: 0; }

.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { bottom: 16px; }
.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--pad) 40px;
  clip-path: circle(0 at calc(100% - 40px) 40px);
  transition: clip-path .8s var(--ease);
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); }
.mobile-menu__nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(30px, 8vw, 48px); font-weight: 500; letter-spacing: -.03em;
}
.mobile-menu__nav i { font-style: normal; font-size: 13px; color: var(--muted); font-family: var(--font-body); }
.mobile-menu__foot { display: grid; gap: 6px; color: var(--muted); }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 48px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--orb-opacity); will-change: transform; }
.orb--1 { width: 520px; height: 520px; background: var(--accent); top: -12%; right: -6%; animation: float1 18s ease-in-out infinite; opacity: calc(var(--orb-opacity) * .55); }
.orb--2 { width: 460px; height: 460px; background: var(--violet); top: 30%; right: 22%; animation: float2 22s ease-in-out infinite; }
.orb--3 { width: 360px; height: 360px; background: #2fd3ff; bottom: -10%; left: -6%; animation: float1 26s ease-in-out infinite reverse; opacity: calc(var(--orb-opacity) * .5); }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 80px) scale(1.1); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(80px, -60px) scale(.9); } }

.hero__inner { position: relative; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; margin-bottom: 32px;
  border: 1px solid var(--line-strong); border-radius: 100px; font-size: 13px; font-weight: 500;
  background: color-mix(in srgb, var(--surface) 40%, transparent); backdrop-filter: blur(10px);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(46px, 9.4vw, 152px); line-height: .98; letter-spacing: -.055em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-loaded .hero__title .word { transform: translateY(0); }
.hero__accent {
  font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, var(--accent) 10%, #6cf0c2 50%, var(--violet) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
[data-theme='light'] .hero__accent { background: linear-gradient(100deg, #5f9a00 10%, #0fae84 50%, var(--violet) 95%); -webkit-background-clip: text; background-clip: text; }
.hero__star { display: inline-block; color: var(--accent); font-size: .5em; vertical-align: top; margin-left: .15em; animation: spin 12s linear infinite; }
[data-theme='light'] .hero__star { color: #6b9a00; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero__lead { max-width: 460px; font-size: 18px; color: var(--muted); }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__meta { display: flex; align-items: center; gap: 56px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__meta-item { display: flex; align-items: center; gap: 14px; }
.hero__meta-item b { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -.04em; }
.hero__meta-item span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.scroll-hint { margin-left: auto; width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid var(--line-strong); position: relative; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--text); animation: scroll 1.8s var(--ease) infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ============ Marquee ============ */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--accent); color: var(--accent-ink); transform: rotate(-1.5deg) scale(1.02); margin: 40px 0; }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 48px); font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: clamp(90px, 12vw, 170px) 0; position: relative; }
.section__label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
}
.section__label span { color: var(--text); font-family: var(--font-display); letter-spacing: 0; }
.section__head { margin-bottom: clamp(48px, 6vw, 80px); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.05em; }
.section__aside { max-width: 320px; color: var(--muted); }

/* ============ About ============ */
.about__text {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3.7vw, 54px); line-height: 1.18; letter-spacing: -.035em; max-width: 1180px;
}
.about__text .w { opacity: .14; transition: opacity .3s; }
.about__text .w.is-on { opacity: 1; }
.about__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(60px, 8vw, 110px); }
.about__card {
  padding: 36px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .4s;
}
.about__card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.about__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; margin-bottom: 56px; }
.about__card h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.03em; margin-bottom: 12px; }
.about__card p { color: var(--muted); font-size: 16px; }

/* ============ Services ============ */
.services { background: var(--bg-2); border-radius: 48px; margin: 0 clamp(8px, 1.5vw, 20px); }
.services__list { border-top: 1px solid var(--line-strong); }
.service {
  position: relative; display: grid; grid-template-columns: 90px 1fr 120px 64px; gap: 32px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--line-strong); cursor: default; isolation: isolate;
}
.service::before {
  content: ''; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--surface);
  border-radius: var(--radius); transform: scaleY(0); opacity: 0; transition: transform .6s var(--ease), opacity .4s;
}
.service:hover::before { transform: scaleY(1); opacity: 1; }
.service__num { font-family: var(--font-display); font-size: 15px; color: var(--muted); align-self: start; padding-top: 12px; }
.service__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.6vw, 52px); letter-spacing: -.045em; line-height: 1.05; transition: transform .6s var(--ease); }
.service:hover .service__title { transform: translateX(12px); }
.service__desc { max-width: 620px; color: var(--muted); margin: 14px 0 20px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .5s, margin .5s; margin-block: 0; }
.service:hover .service__desc, .service.is-open .service__desc { max-height: 200px; opacity: 1; margin: 16px 0 20px; }
.service__icon { width: 92px; height: 92px; color: var(--muted); justify-self: center; transition: color .4s, transform .8s var(--ease); }
.service:hover .service__icon { color: var(--accent); transform: rotate(-8deg) scale(1.08); }
[data-theme='light'] .service:hover .service__icon { color: #5f9a00; }
.service__arrow { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: .5s var(--ease); }
.service__arrow svg { width: 22px; height: 22px; transition: transform .5s var(--ease); }
.service:hover .service__arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.service:hover .service__arrow svg { transform: rotate(45deg); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 100px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; }

/* ============ Work ============ */
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project { display: flex; flex-direction: column; gap: 22px; }
.project--wide { grid-column: 1 / -1; }
.project__media {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface);
  border: 1px solid var(--line);
}
.project--wide .project__media { aspect-ratio: 16 / 7.5; }
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.project:hover .project__media img { transform: scale(1.1); }
.project__media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .35));
}
.project__fallback {
  display: none; position: absolute; inset: 0; place-items: center;
  font-family: var(--font-display); font-size: clamp(40px, 7vw, 100px); letter-spacing: -.05em; color: #fff;
  background: radial-gradient(circle at 30% 30%, var(--c1), var(--c2) 70%);
}
.is-fallback img { display: none; }
.is-fallback .project__fallback { display: grid; }
.project__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 0 6px; }
.project__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.035em; margin-bottom: 6px; }
.project__desc { color: var(--muted); font-size: 15px; max-width: 480px; }
.project .tags { flex-shrink: 0; justify-content: flex-end; }

/* ============ Stats ============ */
.stats { border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 56px 28px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 5.4vw, 80px); letter-spacing: -.06em; line-height: 1; margin-bottom: 14px; }
.stat span { color: var(--muted); font-size: 15px; }

/* ============ Process ============ */
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 32px 28px 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  min-height: 330px; display: flex; flex-direction: column; overflow: hidden;
  transition: transform .6s var(--ease), background .5s, color .5s;
}
.step::after {
  content: ''; position: absolute; width: 220px; height: 220px; right: -90px; bottom: -90px; border-radius: 50%;
  background: var(--accent); filter: blur(60px); opacity: 0; transition: opacity .6s;
}
.step:hover { transform: translateY(-8px); }
.step:hover::after { opacity: .35; }
.step__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.step__num { font-family: var(--font-display); font-size: 56px; font-weight: 500; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-strong); transition: color .5s, -webkit-text-stroke-color .5s; }
.step:hover .step__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step__time { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--line); }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.03em; margin: 40px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============ Reviews ============ */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.review {
  padding: 36px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 24px; transition: transform .6s var(--ease);
}
.review:hover { transform: translateY(-6px) rotate(-.5deg); }
.review--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; transform: translateY(40px); }
.review--accent:hover { transform: translateY(34px) rotate(.5deg); }
.review__stars { letter-spacing: 4px; font-size: 15px; color: var(--accent); }
[data-theme='light'] .review__stars { color: #5f9a00; }
.review--accent .review__stars { color: var(--accent-ink); }
.review blockquote { font-size: 17px; line-height: 1.65; }
.review figcaption { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); margin-top: auto; }
.review--accent figcaption { border-color: rgba(0, 0, 0, .15); }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.review--accent .avatar { background: var(--accent-ink); color: var(--accent); border: 0; }
.review figcaption b { display: block; font-weight: 600; }
.review figcaption small { color: var(--muted); font-size: 13px; }
.review--accent figcaption small { color: rgba(0, 0, 0, .6); }

/* ============ Contact ============ */
.contact__box {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px);
  padding: clamp(32px, 6vw, 88px); border-radius: 48px; background: var(--surface); border: 1px solid var(--line);
}
.contact__glow {
  position: absolute; z-index: -1; width: 700px; height: 700px; left: -200px; bottom: -380px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 65%); opacity: .22; filter: blur(30px);
}
.contact__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4.8vw, 70px); line-height: 1.02; letter-spacing: -.05em; margin-bottom: 24px; }
.contact__lead { color: var(--muted); max-width: 440px; margin-bottom: 48px; }
.contact__list { display: grid; gap: 22px; }
.contact__list li { display: grid; gap: 2px; }
.contact__list small { color: var(--muted); font-size: 13px; }
.contact__list a, .contact__list span { font-family: var(--font-display); font-size: clamp(17px, 1.6vw, 22px); letter-spacing: -.02em; width: fit-content; }
.contact__list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact__list a:hover { background-size: 100% 1px; }

.form { position: relative; display: flex; flex-direction: column; gap: 14px; }
.form__chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.form__chips legend { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span {
  display: inline-block; padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: .3s var(--ease); user-select: none;
}
.form__chips span:hover { border-color: var(--text); }
.form__chips input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.form__chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 0 12px; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  outline: none; font-size: 18px; resize: none; transition: border-color .3s;
}
.field label { position: absolute; left: 0; top: 24px; color: var(--muted); pointer-events: none; transition: .35s var(--ease); transform-origin: left; }
.field input:focus, .field textarea:focus { border-color: var(--text); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.78); }
.field.is-error input, .field.is-error textarea {
  border-bottom-color: #ef4444 !important;
  animation: fieldShake 0.4s ease-in-out;
}
.field.is-error label {
  color: #ef4444 !important;
}
.field__error {
  display: none;
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  line-height: 1.3;
}
.field.is-error .field__error {
  display: block;
}

@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.form .btn { margin-top: 22px; }
.form__note { font-size: 12px; color: var(--muted); text-align: center; }
.form__success {
  position: absolute; inset: -10px; border-radius: var(--radius); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
  opacity: 0; visibility: hidden; transform: scale(.96); transition: .6s var(--ease);
}
.form__success span { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 30px; margin-bottom: 10px; }
.form__success h3 { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -.03em; }
.form__success p { color: var(--muted); }
.form.is-sent .form__success { opacity: 1; visibility: visible; transform: none; }

/* ============ Footer ============ */
.footer { padding: 80px 0 32px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 32px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__col { display: grid; gap: 6px; }
.footer__col small { color: var(--muted); font-size: 13px; }
.footer__col a { width: fit-content; transition: color .3s; }
.footer__col a:hover { color: var(--accent); }
[data-theme='light'] .footer__col a:hover { color: #5f9a00; }
.footer__social { display: flex; gap: 18px; flex-wrap: wrap; }
.to-top { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); transition: transform .5s var(--ease); }
.to-top svg { width: 22px; height: 22px; }
.footer__brand {
  font-family: var(--font-display); font-weight: 600; text-align: center; letter-spacing: -.07em; line-height: .8;
  font-size: clamp(64px, 17.5vw, 260px); white-space: nowrap; padding: 40px 0 20px;
  background: linear-gradient(180deg, var(--text) 20%, transparent 110%); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .95; user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); }

/* =========================================================
   INNER PAGES
   ========================================================= */

/* Nav dropdown */
.nav__item { position: relative; }
.nav__item .nav__link { display: inline-flex; align-items: center; gap: 4px; }
.nav__chev { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.nav__item--drop:hover .nav__chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: -6px; min-width: 260px; padding: 8px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .35s var(--ease);
}
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item--drop:hover .dropdown, .nav__item--drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; transition: background .25s, color .25s; }
.dropdown a i { font-style: normal; font-size: 11px; color: var(--muted); font-family: var(--font-display); }
.dropdown a:hover, .dropdown a.is-active { background: var(--surface-2); }
.dropdown a:hover i, .dropdown a.is-active i { color: var(--accent); }
.mobile-menu { overflow-y: auto; }
.mobile-menu__sub { display: grid; padding: 6px 0 10px 34px; border-bottom: 1px solid var(--line); }
.mobile-menu__sub a { padding: 6px 0; color: var(--muted); font-size: 17px; }

.services__more { margin-top: 48px; display: flex; justify-content: center; }
a.service { color: inherit; cursor: pointer; }

/* Page hero */
.page-hero { position: relative; padding: clamp(150px, 18vw, 220px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.page-hero .hero__bg .orb--1 { width: 420px; height: 420px; }
.page-hero .hero__bg .orb--2 { width: 360px; height: 360px; top: 10%; right: 8%; }
.page-hero .hero__bg .orb--3 { display: none; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 36px; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero__title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 8.4vw, 132px);
  line-height: .98; letter-spacing: -.055em; max-width: 1150px;
}
.page-hero__title em { color: inherit; font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, var(--accent) 10%, #6cf0c2 50%, var(--violet) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
[data-theme='light'] .page-hero__title em { background: linear-gradient(100deg, #5f9a00 10%, #0fae84 50%, var(--violet) 95%); -webkit-background-clip: text; background-clip: text; }
.page-hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-top: 44px; }
.page-hero__lead { max-width: 620px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.page-hero__lead strong { color: var(--text); font-weight: 600; }
.page-hero__facts { display: flex; gap: 40px; }
.page-hero__facts div { display: grid; }
.page-hero__facts b { font-family: var(--font-display); font-weight: 500; font-size: 34px; letter-spacing: -.04em; line-height: 1.1; }
.page-hero__facts span { font-size: 13px; color: var(--muted); }

/* Portfolio */
.pf { padding: 0 0 clamp(90px, 12vw, 160px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; position: sticky; top: 84px; z-index: 5; padding: 8px; width: fit-content; max-width: 100%;
  border-radius: 100px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--muted); transition: .3s var(--ease); }
.filter sup { font-size: 11px; opacity: .7; }
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--text); color: var(--bg); }
.pf__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.pf-card { width: 100%; display: flex; flex-direction: column; gap: 16px; text-align: left; cursor: pointer; transition: opacity .4s, transform .5s var(--ease); }
.pf-card.is-hidden { display: none; }
.pf-card__frame {
  display: block; position: relative; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease), box-shadow .6s var(--ease);
}
.pf-card:hover .pf-card__frame { border-color: var(--line-strong); transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.pf-card__bar { display: flex; gap: 6px; align-items: center; height: 30px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.pf-card__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.pf-card__view { display: block; position: relative; aspect-ratio: 16 / 11; overflow: hidden; container-type: size; }
.pf-card__view img { position: absolute; left: 0; top: 0; width: 100%; }
.pf-card--cover .pf-card__view img { height: 100%; object-fit: cover; object-position: top center; transition: transform 1s var(--ease); }
.pf-card--cover:hover .pf-card__view img { transform: scale(1.05); }
.pf-card--scroll .pf-card__view img { height: auto; transition: transform var(--dur, 4s) cubic-bezier(.45, 0, .25, 1); }
.pf-card--scroll:hover .pf-card__view img { transform: translateY(calc(-100% + 100cqh)); }

.pf-card--placeholder .pf-card__view {
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pf-card__placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  color: var(--muted);
}
.pf-card__placeholder-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.pf-card__placeholder-icon svg { width: 26px; height: 26px; }
.pf-card__placeholder-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-display);
}

.pf-card--doc .pf-card__view { background: #fff; }
.pf-card--doc .pf-card__view img { inset: 8%; width: 84%; height: 84%; object-fit: contain; transition: transform .8s var(--ease); }
.pf-card--doc:hover .pf-card__view img { transform: scale(1.04); }
.pf-card__zoom {
  position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); transform: scale(.4); opacity: 0; transition: .45s var(--ease); z-index: 2;
}
.pf-card__zoom svg { width: 20px; height: 20px; }
.pf-card:hover .pf-card__zoom { transform: none; opacity: 1; }
.pf-card__hint { position: absolute; left: 14px; bottom: 14px; z-index: 2; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 100px; background: rgba(10, 10, 12, .75); color: #fff; backdrop-filter: blur(6px); transition: opacity .3s; }
.pf-card:hover .pf-card__hint { opacity: 0; }
@media (hover: none) { .pf-card__hint { display: none; } .pf-card__zoom { opacity: 1; transform: none; width: 38px; height: 38px; } }
.pf-card__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 0 4px; }
.pf-card__title { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.3; letter-spacing: -.025em; }
.pf-card__cat { flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: rgba(6, 6, 8, .94); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: .4s var(--ease); color: #f3f3ee; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--pad); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lightbox__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(15px, 1.6vw, 20px); letter-spacing: -.02em; }
.lightbox__title small { display: block; font-family: var(--font-body); font-size: 12px; color: #8c8c96; letter-spacing: 0; }
.lightbox__ctrl { display: flex; gap: 8px; }
.lightbox__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; transition: .3s; }
.lightbox__btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__body { flex: 1; overflow-y: auto; padding: 32px var(--pad) 60px; display: flex; justify-content: center; align-items: flex-start; }
.lightbox__body img { width: min(1000px, 100%); height: auto; border-radius: 14px; background: #fff; transform: translateY(20px); opacity: 0; transition: .5s var(--ease); }
.lightbox.is-open .lightbox__body img.is-ready { transform: none; opacity: 1; }

/* Service pages */
.svc-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.svc-intro__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.045em; position: sticky; top: 120px; }
.svc-intro__text p { color: var(--muted); font-size: 18px; margin-bottom: 22px; }
.svc-intro__text p strong { color: var(--text); font-weight: 600; }
.qlist { display: grid; gap: 0; margin-bottom: 36px; border-top: 1px solid var(--line-strong); }
.qlist li { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -.03em; }
.qlist li span { font-family: var(--font-body); font-size: 12px; color: var(--muted); width: 26px; }
.callout { padding: 26px 28px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 32px 30px 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; transition: transform .6s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 40px; color: var(--accent); }
[data-theme='light'] .card__icon { color: #5f9a00; }
.card__icon svg { width: 24px; height: 24px; }
.card__num { font-family: var(--font-display); font-size: 13px; color: var(--muted); display: block; margin-bottom: 40px; }
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.2; letter-spacing: -.03em; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.card--accent p, .card--accent .card__num { color: rgba(10, 10, 12, .7); }

.svc-band { background: var(--bg-2); border-radius: 48px; margin: 0 clamp(8px, 1.5vw, 20px); }

.stages { display: grid; border-top: 1px solid var(--line-strong); counter-reset: st; }
.stage { display: grid; grid-template-columns: 110px 1fr 1.2fr; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line-strong); align-items: baseline; transition: padding .5s var(--ease); }
.stage:hover { padding-left: 12px; }
.stage__num { font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.stage h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.04em; line-height: 1.1; }
.stage p { color: var(--muted); }

.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.term { background: var(--bg); padding: 34px 28px; display: flex; flex-direction: column; gap: 10px; }
.term small { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.term b { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -.04em; line-height: 1.15; }
.term p { color: var(--muted); font-size: 15px; }
.terms-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.faq { display: grid; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2vw, 26px); letter-spacing: -.035em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { color: var(--muted); max-width: 820px; padding: 0 0 30px; animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

.next-svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.next-svc a { display: flex; flex-direction: column; justify-content: space-between; gap: 50px; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line-strong); transition: .5s var(--ease); }
.next-svc a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.next-svc small { font-size: 13px; color: var(--muted); transition: color .3s; }
.next-svc a:hover small { color: rgba(10, 10, 12, .65); }
.next-svc b { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -.035em; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.next-svc svg { width: 22px; height: 22px; transition: transform .5s var(--ease); }
.next-svc a:hover svg { transform: rotate(45deg); }

/* Services overview */
.svc-list { display: grid; gap: 20px; }
.svc-row {
  display: grid; grid-template-columns: 80px 1.1fr 1fr auto; gap: 40px; align-items: start; padding: 44px 44px; border-radius: 32px;
  background: var(--surface); border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .4s; position: relative; overflow: hidden; isolation: isolate;
}
.svc-row::after { content: ''; position: absolute; z-index: -1; width: 380px; height: 380px; right: -140px; top: -140px; border-radius: 50%; background: var(--accent); filter: blur(80px); opacity: 0; transition: opacity .6s; }
.svc-row:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.svc-row:hover::after { opacity: .18; }
.svc-row__num { font-family: var(--font-display); font-size: 15px; color: var(--muted); padding-top: 10px; }
.svc-row h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 16px; }
.svc-row p { color: var(--muted); }
.svc-row ul { display: grid; gap: 12px; padding-top: 10px; }
.svc-row li { display: flex; gap: 12px; align-items: baseline; }
.svc-row li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.svc-row .service__arrow { align-self: start; }
.svc-row:hover .service__arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.svc-row:hover .service__arrow svg { transform: rotate(45deg); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.review--accent.reveal.is-in { transform: translateY(40px); }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .pf__grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .terms { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 1fr auto; padding: 36px; }
  .svc-row__num { display: none; }
  .svc-row ul { grid-column: 1 / -1; grid-row: 2; }
  .nav { display: none; }
  .burger { display: block; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 60px 1fr 64px; }
  .service__icon { display: none; }
}

@media (max-width: 860px) {
  .svc-intro { grid-template-columns: 1fr; }
  .svc-intro__title { position: static; }
  .stage { grid-template-columns: 60px 1fr; gap: 10px 20px; }
  .stage p { grid-column: 2; }
  .next-svc, .cards--2 { grid-template-columns: 1fr; }
  .page-hero__facts { gap: 28px; }
  .filters { top: 72px; border-radius: 24px; }
  .header__actions .btn { display: none; }
  .about__grid, .reviews__grid { grid-template-columns: 1fr; }
  .about__num { margin-bottom: 28px; }
  .review--accent, .review--accent.reveal.is-in { transform: none; }
  .work__grid { grid-template-columns: 1fr; }
  .project--wide .project__media { aspect-ratio: 16 / 10; }
  .project__info { flex-direction: column; gap: 14px; }
  .project .tags { justify-content: flex-start; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 40px 20px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .contact__box { grid-template-columns: 1fr; border-radius: 32px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .to-top { grid-column: 2; grid-row: 1; justify-self: end; }
  .hero__meta { gap: 28px; flex-wrap: wrap; }
  .scroll-hint { display: none; }
  .services { border-radius: 32px; }
  .service__desc { max-height: 200px; opacity: 1; margin: 12px 0 18px; }
}

@media (max-width: 560px) {
  .pf__grid, .cards, .cards--4, .terms { grid-template-columns: 1fr; }
  .svc-row { padding: 28px 24px; gap: 20px; border-radius: 24px; }
  .svc-band { border-radius: 28px; }
  .filters { position: static; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; border-radius: 100px; }
  .filter { flex-shrink: 0; }
  body { font-size: 16px; }
  .process__grid { grid-template-columns: 1fr; }
  .step { min-height: 260px; }
  .service { grid-template-columns: 1fr 48px; gap: 16px; padding: 32px 0; }
  .service__num { display: none; }
  .service__arrow { width: 48px; height: 48px; align-self: start; }
  .hero__cta, .hero__cta .btn { width: 100%; }
  .hero__meta-item b { font-size: 24px; }
  .footer__top { grid-template-columns: 1fr; }
  .to-top { grid-column: auto; grid-row: auto; justify-self: start; }
}

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


/* =========================================================
   Floating To-Top Button & Live Chat Widget
   ========================================================= */

.floating-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 80;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.floating-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-to-top:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 30px rgba(200, 255, 62, 0.35);
}

.floating-to-top svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.floating-to-top:hover svg {
  transform: translateY(-2px);
}

/* Toast message */
.webiseo-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  z-index: 1000;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.webiseo-toast.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 560px) {
  .floating-to-top {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
  }
}


/* =========================================================
   WEBiSEO Custom Live Chat Widget (Telegram Connected)
   ========================================================= */

.live-chat-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s, background 0.25s;
}

.live-chat-launcher:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(200, 255, 62, 0.25);
}

.live-chat-launcher__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.live-chat-launcher__dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--surface);
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.live-chat-launcher__label {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.live-chat-launcher__label small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Chat Window ---------- */
.live-chat-window {
  position: fixed;
  bottom: 95px;
  right: 28px;
  z-index: 90;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.live-chat-window.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.live-chat-header {
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-chat-header__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-chat-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-chat-header__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.live-chat-header__status {
  font-size: 11px;
  color: #22c55e;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-chat-header__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 6px #22c55e;
}

.live-chat-close {
  background: transparent;
  border: none;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.live-chat-close:hover {
  background: var(--line);
  color: var(--text);
}

.live-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble--bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-bubble--user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.chat-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.chat-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.chat-quick-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  transform: translateX(4px);
}

.chat-quick-btn--tg {
  border-color: rgba(41, 169, 234, 0.35);
  color: #38bdf8;
}

.chat-quick-btn--viber {
  border-color: rgba(115, 96, 242, 0.35);
  color: #a78bfa;
}

.chat-quick-btn--phone {
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.chat-typing {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: chatBounce 1.4s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

.live-chat-footer {
  padding: 12px 14px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.chat-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-contact-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 5px 9px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.chat-contact-badge strong {
  color: var(--text);
  font-weight: 600;
  margin-left: 3px;
}

.chat-contact-edit-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.chat-contact-edit-btn:hover {
  opacity: 0.8;
}

.chat-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input--error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.chat-contact-hint {
  font-size: 11px;
  color: #ef4444;
  margin-top: -4px;
  display: none;
  padding-left: 2px;
}

.chat-contact-hint.is-visible {
  display: block;
}

.chat-input:focus {
  border-color: var(--accent);
}

.chat-input::placeholder {
  color: var(--muted);
}

.chat-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.chat-send-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .live-chat-launcher {
    bottom: 20px;
    right: 20px;
    padding: 6px 14px 6px 8px;
  }
  .live-chat-launcher__avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .live-chat-window {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 80px;
    height: 470px;
  }
}
