/* Wizard Production v3 - Cinematic Dark */

:root {
  --bg: #070712;
  --bg2: #0c0d1c;
  --panel: rgba(18, 20, 40, 0.72);
  --panel2: rgba(12, 13, 28, 0.55);
  --text: #f3f5ff;
  --muted: rgba(243, 245, 255, 0.76);
  --muted2: rgba(243, 245, 255, 0.56);
  --line: rgba(255, 255, 255, 0.1);
  --line2: rgba(255, 255, 255, 0.14);
  --accent: #8b5cf6;
  --accent2: #d946ef;
  --hot: #ff3dce;
  --good: #22c55e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius2: 28px;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --container: min(1180px, 94vw);
  --pad: 64px;
}

@media (min-width: 768px) {
  :root { --pad: 92px; }
}

@media (min-width: 1024px) {
  :root { --pad: 120px; }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

body.theme-light {
  --bg: #f6f6fb;
  --bg2: #ffffff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel2: rgba(255, 255, 255, 0.82);
  --text: #15172e;
  --muted: rgba(21, 23, 46, 0.76);
  --muted2: rgba(21, 23, 46, 0.58);
  --line: rgba(21, 23, 46, 0.13);
  --line2: rgba(21, 23, 46, 0.2);
  --shadow: 0 18px 44px rgba(39, 48, 87, 0.14);
}

body.theme-light .ambient__orb--a {
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.26), transparent 58%);
}

body.theme-light .ambient__orb--b {
  background: radial-gradient(circle at 40% 40%, rgba(255, 61, 206, 0.18), transparent 62%);
}

body.theme-light .ambient__grid {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(21,23,46,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,23,46,0.08) 1px, transparent 1px);
}

body.theme-light .ambient__noise {
  opacity: 0.06;
}

body.theme-light .top__bar,
body.theme-light .drawer,
body.theme-light .card,
body.theme-light .faqitem,
body.theme-light .work,
body.theme-light .leadbox,
body.theme-light .quote,
body.theme-light .final,
body.theme-light .footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,248,255,0.92));
  border-color: rgba(32, 38, 70, 0.16);
  box-shadow: 0 14px 38px rgba(34, 42, 74, 0.12);
}

body.theme-light .hero__shade {
  background:
    radial-gradient(ellipse 78% 58% at 20% 20%, rgba(139, 92, 246, 0.24), transparent 56%),
    radial-gradient(ellipse 68% 52% at 72% 60%, rgba(217, 70, 239, 0.16), transparent 56%),
    linear-gradient(180deg, rgba(7, 7, 18, 0.62), rgba(7, 7, 18, 0.94));
}

body.theme-light .hero__vignette {
  background: radial-gradient(ellipse at center, rgba(7,7,18,0.08) 33%, rgba(7,7,18,0.82) 100%);
}

body.theme-light .hero__video {
  opacity: 0.52;
  filter: saturate(0.84) contrast(1.08) brightness(0.16);
}

body.theme-light .hero__title,
body.theme-light .hero__lead,
body.theme-light .scrollhint,
body.theme-light .scrollhint__text,
body.theme-light .meta-link__label,
body.theme-light .meta-link__value,
body.theme-light .chip,
body.theme-light .pill,
body.theme-light .hero .btn--glass {
  color: rgba(243, 245, 255, 0.94) !important;
}

body.theme-light .hero .meta-link,
body.theme-light .hero .chip,
body.theme-light .hero .pill,
body.theme-light .hero .btn--glass {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

body.theme-light .hero .btn--glass:hover,
body.theme-light .hero .meta-link:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.36) !important;
}

body.theme-light .section--alt {
  background: linear-gradient(180deg, rgba(248, 249, 255, 0.78), rgba(246, 247, 255, 0.42));
  border-top-color: rgba(21, 23, 46, 0.08);
  border-bottom-color: rgba(21, 23, 46, 0.08);
}

body.theme-light #sites {
  background: linear-gradient(180deg, rgba(251, 252, 255, 0.96), rgba(244, 246, 255, 0.9));
  border-top: 1px solid rgba(35, 42, 78, 0.08);
  border-bottom: 1px solid rgba(35, 42, 78, 0.08);
}

body.theme-light #how,
body.theme-light #fit {
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.12), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(217, 70, 239, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(248,249,255,0.88), rgba(244,246,255,0.74));
}

body.theme-light .meta-link,
body.theme-light .quick,
body.theme-light .field__input,
body.theme-light .pill,
body.theme-light .backlink {
  background: rgba(255,255,255,0.82);
  border-color: rgba(32, 38, 70, 0.17);
}

body.theme-light .form {
  background: rgba(250, 251, 255, 0.88);
  border-top-color: rgba(21, 23, 46, 0.1);
}

body.theme-light .field__label,
body.theme-light .card__k,
body.theme-light .quick__k,
body.theme-light .meta-link__label,
body.theme-light .footer__muted {
  color: rgba(21, 23, 46, 0.62);
}

body.theme-light .btn--glass {
  background: rgba(255,255,255,0.86);
  border-color: rgba(32, 38, 70, 0.2);
}

body.theme-light .btn--glass:hover {
  background: rgba(255,255,255,0.96);
  border-color: rgba(32, 38, 70, 0.28);
}

body.theme-light .top__bar,
body.theme-light .top__bar .nav__link,
body.theme-light .top__bar .brand__text,
body.theme-light .drawer,
body.theme-light .drawer__link,
body.theme-light .drawer__contact,
body.theme-light .hero__title,
body.theme-light .section__title,
body.theme-light .page__title,
body.theme-light .card__title,
body.theme-light .work__title,
body.theme-light .faqitem__q,
body.theme-light .quote__title,
body.theme-light .final__title,
body.theme-light .btn--glass,
body.theme-light .mini,
body.theme-light .field__input,
body.theme-light .backlink,
body.theme-light .footer a {
  color: #171a33;
}

body.theme-light .section__eyebrow,
body.theme-light .tstep__idx,
body.theme-light .drawer__footer,
body.theme-light .scrollhint,
body.theme-light .work__tag,
body.theme-light .badge,
body.theme-light .article__meta,
body.theme-light .article__meta span {
  color: rgba(23, 26, 51, 0.7);
}

body.theme-light .hero__lead,
body.theme-light .section__subtitle,
body.theme-light .page__lead,
body.theme-light .card__text,
body.theme-light .tstep__text,
body.theme-light .work__desc,
body.theme-light .quote__text,
body.theme-light .final__text,
body.theme-light .faqitem__a p,
body.theme-light .article__body p,
body.theme-light .article__body li {
  color: rgba(23, 26, 51, 0.8);
}

body.theme-light .card__k,
body.theme-light .work__tag,
body.theme-light .meta-link__label,
body.theme-light .quick__k,
body.theme-light .field__label,
body.theme-light .scrollhint,
body.theme-light .footer__muted {
  color: rgba(23, 26, 51, 0.62);
}

body.theme-light .meta-link__value,
body.theme-light .quick__v,
body.theme-light .chip,
body.theme-light .pill,
body.theme-light .form__msg,
body.theme-light .article__body strong,
body.theme-light .article__body h2,
body.theme-light .article__body h3 {
  color: rgba(23, 26, 51, 0.88);
}

body.theme-light .chip,
body.theme-light .pill,
body.theme-light .meta-link,
body.theme-light .quick,
body.theme-light .tstep,
body.theme-light .pillitem,
body.theme-light .marquee,
body.theme-light .badge,
body.theme-light .work__tag,
body.theme-light .faqitem__q::after,
body.theme-light .drawer__link,
body.theme-light .drawer__contact,
body.theme-light .field__input,
body.theme-light .backlink {
  border-color: rgba(32, 38, 70, 0.2);
  background-color: rgba(255, 255, 255, 0.94);
}

body.theme-light .cards .card,
body.theme-light .timeline .tstep,
body.theme-light .leadbox,
body.theme-light .quote,
body.theme-light .final,
body.theme-light .work,
body.theme-light .faqitem {
  border-color: rgba(35, 42, 78, 0.18);
  box-shadow: 0 14px 34px rgba(35, 42, 78, 0.12);
}

body.theme-light .timeline .tstep {
  background: rgba(255, 255, 255, 0.96) !important;
}

body.theme-light .timeline .tstep::before {
  background: none !important;
}

body.theme-light .work__top {
  background:
    radial-gradient(circle at 20% 10%, rgba(139, 92, 246, 0.14), transparent 58%),
    radial-gradient(circle at 80% 60%, rgba(255, 61, 206, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(247,248,255,0.9));
  border-bottom-color: rgba(35, 42, 78, 0.14);
}

body.theme-light .faqitem__q::after {
  color: rgba(23, 26, 51, 0.88);
}

body.theme-light .faqitem[open] .faqitem__q::after {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.34);
}

body.theme-light .nav__link:hover,
body.theme-light .drawer__link:hover,
body.theme-light .drawer__contact:hover,
body.theme-light .meta-link:hover,
body.theme-light .mini:hover,
body.theme-light .backlink:hover {
  background: rgba(236, 239, 255, 0.95);
  border-color: rgba(62, 72, 126, 0.35);
}

body.theme-light .nav__link--accent,
body.theme-light .drawer__link--accent {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(217, 70, 239, 0.14));
  border-color: rgba(139, 92, 246, 0.3);
  color: #171a33;
  font-weight: 800;
  text-shadow: none;
}

body.theme-light .form__fineprint {
  color: rgba(23, 26, 51, 0.64);
}

body.theme-light .tstep__idx,
body.theme-light .marquee__chip,
body.theme-light .badge,
body.theme-light .pillitem,
body.theme-light .scrollhint__text,
body.theme-light .meta-link__value,
body.theme-light .quick__v,
body.theme-light .ads__label,
body.theme-light .inc__label {
  color: rgba(23, 26, 51, 0.84);
}

body.theme-light .field__input::placeholder,
body.theme-light textarea::placeholder,
body.theme-light input::placeholder {
  color: rgba(23, 26, 51, 0.48);
}

body.theme-light .form__msg.ok {
  color: #0f8d46;
}

body.theme-light .form__msg.err {
  color: #c01b6f;
}

body.theme-light .btn--primary {
  color: #161932;
}

body.theme-light .rail::-webkit-scrollbar-thumb {
  background: rgba(42, 49, 92, 0.24);
}

body.theme-light .footer {
  border-top-color: rgba(21, 23, 46, 0.1);
}

/* In light theme keep header in original dark style */
body.theme-light .top__bar {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(180deg, rgba(7, 7, 18, 0.68), rgba(7, 7, 18, 0.35)) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
}

body.theme-light .top__bar .brand__text,
body.theme-light .top__bar .nav__link,
body.theme-light .top__bar .pill,
body.theme-light .top__bar .burger,
body.theme-light .top__bar .burger span {
  color: rgba(243, 245, 255, 0.92) !important;
}

body.theme-light .top__bar .nav__link {
  border-color: transparent !important;
  background: transparent !important;
}

body.theme-light .top__bar .nav__link:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(243, 245, 255, 0.98) !important;
}

body.theme-light .top__bar .nav__link--accent {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(217, 70, 239, 0.16)) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
  color: rgba(243, 245, 255, 0.98) !important;
}

body.theme-light .top__bar .pill,
body.theme-light .top__bar .burger {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

body.theme-light .top__bar .pill--ghost,
body.theme-light .top__bar .burger {
  background: transparent !important;
}

body.theme-light .top__bar .pill:hover,
body.theme-light .top__bar .burger:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

body.theme-light .top__bar .burger span {
  background: rgba(243, 245, 255, 0.9) !important;
}

/* Light theme readability hardening */
body.theme-light .article,
body.theme-light .note,
body.theme-light .panel,
body.theme-light .tabbtn,
body.theme-light .footer__links a,
body.theme-light .footer__contacts a,
body.theme-light .form,
body.theme-light .leadbox,
body.theme-light .quote,
body.theme-light .final,
body.theme-light .card,
body.theme-light .tstep,
body.theme-light .work,
body.theme-light .faqitem {
  color: #171a33 !important;
}

body.theme-light .article {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,249,255,0.93)) !important;
  border-color: rgba(35, 42, 78, 0.18) !important;
}

/* Portfolio page readability in light theme */
body.theme-light[data-page="portfolio"] .card,
body.theme-light[data-page="portfolio"] .card__inner {
  color: #171a33 !important;
}

body.theme-light[data-page="portfolio"] .card__k {
  color: rgba(23, 26, 51, 0.68) !important;
}

body.theme-light[data-page="portfolio"] .card__title {
  color: #171a33 !important;
}

body.theme-light[data-page="portfolio"] .card__text,
body.theme-light[data-page="portfolio"] .card__text strong {
  color: rgba(23, 26, 51, 0.86) !important;
}

body.theme-light[data-page="portfolio"] .card__list li {
  color: rgba(23, 26, 51, 0.84) !important;
}

body.theme-light .article__body p,
body.theme-light .article__body li,
body.theme-light .article__body ul,
body.theme-light .article__body h2,
body.theme-light .article__body h3,
body.theme-light .policy__pre,
body.theme-light .note,
body.theme-light .panel p {
  color: rgba(23, 26, 51, 0.88) !important;
}

body.theme-light .note {
  background: rgba(139, 92, 246, 0.1) !important;
  border-color: rgba(139, 92, 246, 0.32) !important;
}

body.theme-light .quote,
body.theme-light .final {
  background:
    radial-gradient(circle at 20% 10%, rgba(139, 92, 246, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,247,255,0.92)) !important;
}

body.theme-light .quote__badge,
body.theme-light .quote__text,
body.theme-light .final__text,
body.theme-light .footer__links a,
body.theme-light .footer__contacts a,
body.theme-light .tabbtn,
body.theme-light .panel h1,
body.theme-light .panel p,
body.theme-light .backlink {
  color: rgba(23, 26, 51, 0.86) !important;
}

body.theme-light .footer__links a,
body.theme-light .tabbtn,
body.theme-light .panel,
body.theme-light .backlink {
  background: rgba(255,255,255,0.94) !important;
  border-color: rgba(35, 42, 78, 0.2) !important;
}

body.theme-light .ads-icon.yandex,
body.theme-light .ads-icon.google,
body.theme-light .ads-icon.insta {
  box-shadow: 0 8px 18px rgba(35, 42, 78, 0.16);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }

.container {
  width: var(--container);
  margin: 0 auto;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ambient__orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
}

.ambient__orb--a {
  left: -140px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.65), transparent 55%);
}

.ambient__orb--b {
  right: -220px;
  bottom: -200px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 61, 206, 0.5), transparent 60%);
}

.ambient__grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 60%, transparent 100%);
}

.ambient__noise {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: overlay;
}

/* Top bar */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 12px 0 0;
  pointer-events: none;
}

.top__bar {
  pointer-events: auto;
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(7, 7, 18, 0.68), rgba(7, 7, 18, 0.35));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: url("assets/logo%20final.png") center/cover no-repeat;
  border: 1px solid rgba(255,255,255,0.42);
  filter: saturate(1.25) contrast(1.12) brightness(1.12);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), 0 0 18px rgba(255,255,255,0.18), 0 8px 18px rgba(0,0,0,0.28);
}

.brand--footer .brand__mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 14px;
}

.nav { display: none; }

.nav__link {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav__link:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  color: var(--text);
}

.nav__link--accent {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(217, 70, 239, 0.16));
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--text);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pill--ghost {
  background: transparent;
}

.pill:hover {
  border-color: var(--line2);
  background: rgba(255,255,255,0.06);
}

.burger {
  height: 38px;
  width: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: rgba(243, 245, 255, 0.9);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* Drawer */
.drawer {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  position: fixed;
  inset: 0;
  padding: 92px 18px 24px;
  background: rgba(7, 7, 18, 0.62);
  backdrop-filter: blur(18px);
}

body.drawer-open .drawer {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

body.drawer-open { overflow: hidden; }

.drawer__nav {
  width: min(540px, 92vw);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 13, 28, 0.58);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.drawer__link {
  display: block;
  padding: 16px 16px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.drawer__link:last-child { border-bottom: 0; }

.drawer__link--accent {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(255, 61, 206, 0.12));
  color: rgba(243,245,255,0.98);
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
  border-top: 1px solid rgba(139, 92, 246, 0.22);
}

.drawer__footer {
  width: min(540px, 92vw);
  margin: 14px auto 0;
  display: flex;
  gap: 10px;
}

.drawer__contact {
  flex: 1;
  text-align: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}

.drawer__contact:hover { color: var(--text); border-color: var(--line2); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 118px 0 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  filter: saturate(0.9) contrast(1.05) brightness(0.85);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(139, 92, 246, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 55% at 70% 60%, rgba(217, 70, 239, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(7, 7, 18, 0.2), rgba(7, 7, 18, 0.86));
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 35%, transparent 30%, rgba(7, 7, 18, 0.95) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  padding-inline: clamp(28px, 6vw, 48px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.08);
  color: rgba(243,245,255,0.88);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 64px);
}

.hero__lead {
  margin: 0 0 22px;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  user-select: none;
}

.btn__icon {
  font-family: var(--font-mono);
  font-weight: 600;
  opacity: 0.9;
}

.btn--primary {
  color: #0b0b18;
  background: linear-gradient(135deg, #a78bfa 0%, #d946ef 45%, #ff3dce 100%);
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.22);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(217, 70, 239, 0.24);
}

.btn--glass {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

.btn--glass:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.btn--wide { width: 100%; }

.mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.36);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(217, 70, 239, 0.12));
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card__text .mini {
  margin-top: 10px;
  display: inline-flex;
}

.mini:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 26px rgba(139, 92, 246, 0.25);
}

.hero__meta {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.hero__contacts {
  display: grid;
  gap: 10px;
}

.meta-link {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(12, 13, 28, 0.55);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}

.meta-link:hover { border-color: rgba(139, 92, 246, 0.25); }

.meta-link__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243,245,255,0.7);
}

.meta-link__value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(243,245,255,0.9);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(243,245,255,0.82);
}

.scrollhint {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  color: rgba(243,245,255,0.8);
}

.scrollhint__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--hot));
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.12);
  animation: pulse 1.8s ease-in-out infinite;
}

.scrollhint__text {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.14); opacity: 1; }
}

/* Sections */
.section {
  padding: calc(var(--pad) * 0.95) 0;
}

.section[id] {
  scroll-margin-top: 110px;
}

.section--alt {
  background: linear-gradient(180deg, rgba(12, 13, 28, 0.36), rgba(12, 13, 28, 0.06));
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Process section custom background */
#how {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.18), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(217, 70, 239, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(12, 13, 28, 0.65), rgba(7, 7, 18, 0.6));
  overflow: hidden;
}

#how::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

#how > .container {
  position: relative;
}

/* Fit section highlight */
#fit {
  position: relative;
  background:
    radial-gradient(circle at 18% 25%, rgba(139, 92, 246, 0.14), transparent 45%),
    radial-gradient(circle at 78% 30%, rgba(217, 70, 239, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(7, 7, 18, 0.82), rgba(12, 13, 28, 0.65));
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

#fit::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
  pointer-events: none;
}

#fit > .container {
  position: relative;
}

/* Sites section highlight */
#sites {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.16), transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(217, 70, 239, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(18, 20, 40, 0.58), rgba(12, 13, 28, 0.4));
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

#sites::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.45;
  pointer-events: none;
}

#sites > .container {
  position: relative;
}

.card--site {
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(139,92,246,0.08));
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  overflow: hidden;
  position: relative;
}

.card--site::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at center, rgba(139,92,246,0.25), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.card--site::after {
  content: "";
  position: absolute;
  inset: auto -20% -20% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at center, rgba(217,70,239,0.18), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.card--site .card__inner {
  position: relative;
  padding: 22px;
  gap: 12px;
}

.card--site .card__k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.card--site .card__title {
  margin: 6px 0 8px;
  font-size: 19px;
}

.card--site .card__text {
  font-size: 21px;
  color: rgba(243,245,255,0.9);
  line-height: 1.7;
}

.card--site:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(139,92,246,0.28);
}

/* Site icons */
.site-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  margin-right: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(217, 70, 239, 0.16));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  color: #0b0b18;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.site-icon.site-landing { background: linear-gradient(135deg, #8b5cf6, #d946ef); color: #0b0b18; content: "+"; }
.site-icon.site-company { background: linear-gradient(135deg, #22c55e, #16a34a); color: #0b1b0b; }
.site-icon.site-catalog { background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #f5fbff; }
.site-icon.site-portfolio { background: linear-gradient(135deg, #f97316, #f43f5e); color: #0b0b18; }
.site-icon.site-custom { background: linear-gradient(135deg, #a855f7, #22d3ee); color: #0b0b18; }

.site-icon::after {
  content: "";
  width: 14px;
  height: 14px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.site-icon.site-landing::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M3 5h18v14H3V5Zm2 2v10h14V7H5Zm2 2h10v2H7V9Zm0 4h7v2H7v-2Z'/%3E%3C/svg%3E"); }
.site-icon.site-company::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b1b0b' d='M4 4h7v16H4V4Zm9 4h7v12h-7V8Zm2 2v2h3v-2h-3Zm0 4v2h3v-2h-3ZM6 6v2h3V6H6Zm0 4v2h3v-2H6Zm0 4v2h3v-2H6Z'/%3E%3C/svg%3E"); }
.site-icon.site-catalog::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5fbff' d='M5 5h14v14H5V5Zm2 2v3h3V7H7Zm0 5v3h3v-3H7Zm5-5v3h5V7h-5Zm0 5v3h5v-3h-5Z'/%3E%3C/svg%3E"); }
.site-icon.site-portfolio::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M7 5h10l2 3h-3v2h-8V8H5l2-3Zm-2 5h14v9H5v-9Zm5 2v2h4v-2h-4Z'/%3E%3C/svg%3E"); }
.site-icon.site-custom::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M4 4h7v7H4V4Zm9 0h7v7h-7V4ZM4 13h7v7H4v-7Zm9 0h7v3h-4v4h-3v-7Z'/%3E%3C/svg%3E"); }

.site__label { vertical-align: middle; }

.section__head {
  max-width: 72ch;
}

.section__eyebrow {
  font-family: var(--font-mono);
  color: rgba(243,245,255,0.74);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section__title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin: 0 0 12px;
  font-size: clamp(27px, 4.4vw, 48px);
}

.section__subtitle {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.65;
}

.section__actions { margin-top: 22px; }

/* Cards */
.cards {
  display: grid;
  gap: 14px;
}

.card {
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(180deg, rgba(18, 20, 40, 0.62), rgba(12, 13, 28, 0.5));
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at 25% 20%, rgba(139, 92, 246, 0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.card__inner { position: relative; }

.card__k {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(243,245,255,0.7);
  margin: 0 0 10px;
}

.card__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

#benefits .card__title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

#benefits .card__text {
  font-size: 17px;
  line-height: 1.6;
}

/* Portfolio "Why" section: bigger titles, smaller descriptions */
#whyGrid .card__title {
  font-size: clamp(20px, 1.2vw + 16px, 28px);
  font-weight: 900;
  line-height: 1.2;
}

#whyGrid .card__text {
  font-size: 15px;
  line-height: 1.55;
}

.card__text { margin: 0; color: var(--muted); font-size: 21px; line-height: 1.7; }

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
}

.faqitem {
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(12, 13, 28, 0.56);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}

.faqitem::before {
  content: none;
}

.faqitem__q {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 18px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: clamp(18px, 1.1vw + 14px, 24px);
}

.faqitem__q::-webkit-details-marker { display: none; }

.faqitem__q::marker { content: ""; }

.faqitem__q::after {
  content: "+";
  margin-left: auto;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(243,245,255,0.86);
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.faqitem[open] .faqitem__q::after {
  content: "-";
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.34);
}

.faqitem__q:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.7);
  outline-offset: 2px;
}

.faqitem__a {
  position: relative;
  padding: 0 16px 16px;
}

.faqitem__a p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 85ch;
}

/* Blog list: bigger titles, smaller descriptions */
[data-page="blog"] .page__title {
  font-size: clamp(34px, 5.4vw, 64px);
}

[data-page="blog"] .page__lead {
  font-size: 20px;
  line-height: 1.6;
}

[data-page="blog"] #postsGrid .card__title {
  font-size: clamp(20px, 1.2vw + 14px, 28px);
  line-height: 1.2;
}

[data-page="blog"] #postsGrid .card__text {
  font-size: 16px;
  line-height: 1.65;
}

/* Home blog preview: big titles, no lead */
[data-page="home"] #blogCards .card__title {
  font-size: clamp(24px, 1.4vw + 16px, 36px);
  line-height: 1.14;
}

[data-page="home"] #blogCards .card__text {
  font-size: 16px;
  line-height: 1.5;
}

.card__list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.card__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(243,245,255,0.84);
  font-size: 13px;
}

.card__list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 3px;
  background: linear-gradient(135deg, var(--accent), var(--hot));
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
  flex: 0 0 auto;
}

/* Portfolio page cases: image left, text right */
.caseslist {
  display: grid;
  gap: 16px;
}

.pcase {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(18, 20, 40, 0.56), rgba(12, 13, 28, 0.52));
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 14px;
  content-visibility: auto;
  contain-intrinsic-size: 760px;
}

.pcase__media {
  min-width: 0;
}

.pcase__preview {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  background: transparent;
  cursor: zoom-in;
  display: block;
}

.pcase__viewport {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  overflow: auto;
  height: clamp(220px, 35vw, 420px);
}

.pcase__viewport::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.pcase__viewport::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}

.pcase__img {
  display: block;
  width: 100%;
  height: auto;
}

.pcase__body {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.pcase__title {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.pcase__text {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.pcase__meta {
  display: grid;
  gap: 6px;
}

.pcase__line {
  margin: 0;
  color: rgba(243,245,255,0.84);
  font-size: 15px;
  line-height: 1.55;
}

.pcase__line strong {
  color: rgba(243,245,255,0.96);
}

.pcase__sub {
  margin: 2px 0 0;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(243,245,255,0.7);
}

.pcase__actions {
  margin: 2px 0 0;
}

.pcase__expand {
  cursor: zoom-in;
}

@media (min-width: 860px) {
  .pcase {
    grid-template-columns: minmax(300px, 42%) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 16px;
  }
}

body.theme-light .pcase {
  border-color: rgba(35, 42, 78, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,247,255,0.92));
  box-shadow: 0 14px 34px rgba(35, 42, 78, 0.12);
}

body.theme-light .pcase__viewport {
  border-color: rgba(35, 42, 78, 0.2);
  background: rgba(255,255,255,0.94);
}

body.theme-light .pcase__viewport::-webkit-scrollbar-thumb {
  background: rgba(35, 42, 78, 0.24);
}

body.theme-light .pcase__title,
body.theme-light .pcase__line strong {
  color: #171a33;
}

body.theme-light .pcase__text,
body.theme-light .pcase__line,
body.theme-light .pcase__sub {
  color: rgba(23, 26, 51, 0.84);
}

/* Portfolio image lightbox */
body.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
}

.lightbox.is-open {
  display: block;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(3, 4, 10, 0.76);
  cursor: zoom-out;
}

.lightbox__dialog {
  position: relative;
  width: min(1200px, 94vw);
  height: min(90svh, 960px);
  margin: 5svh auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(10, 11, 22, 0.84);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
}

.lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lightbox__zoom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lightbox__zoom-btn {
  min-width: 46px;
}

.lightbox__close {
  justify-self: end;
}

.lightbox__stage {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.02);
  overflow: auto;
  padding: 6px;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: contain;
}

.lightbox__stage::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.lightbox__stage::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
}

.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  min-width: 100%;
  border-radius: 12px;
  transform-origin: top center;
  transition: width 0.16s ease;
}

/* Contact popup */
.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 108;
  display: none;
}

.contact-popup.is-open {
  display: block;
}

.contact-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(5, 6, 14, 0.72);
}

.contact-popup__dialog {
  position: relative;
  width: min(680px, 94vw);
  margin: 8svh auto;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(12,13,28,0.94), rgba(10,11,24,0.92));
  box-shadow: 0 26px 70px rgba(0,0,0,0.45);
  padding: 18px;
}

.contact-popup__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.1;
}

.contact-popup__text {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.contact-popup__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-popup__close {
  margin-top: 12px;
}

body.theme-light .contact-popup__backdrop {
  background: rgba(14, 17, 32, 0.66);
}

body.theme-light .contact-popup__dialog {
  border-color: rgba(35, 42, 78, 0.22);
  background: linear-gradient(180deg, rgba(250,251,255,0.98), rgba(246,247,255,0.96));
  box-shadow: 0 24px 60px rgba(33, 41, 74, 0.25);
}

body.theme-light .contact-popup__title,
body.theme-light .contact-popup__text {
  color: rgba(23, 26, 51, 0.88);
}

body.theme-light .contact-popup .pill {
  color: #171a33;
  border-color: rgba(35, 42, 78, 0.22);
  background: rgba(255, 255, 255, 0.94);
}

body.theme-light .contact-popup__close {
  color: #000 !important;
}

body.theme-light .contact-popup .pill:hover {
  background: rgba(240, 243, 255, 0.98);
  border-color: rgba(35, 42, 78, 0.34);
}

.lightbox__caption {
  margin: 0;
  color: rgba(243,245,255,0.84);
  font-size: 13px;
  line-height: 1.45;
}

body.theme-light .lightbox__backdrop {
  background: rgba(14, 17, 32, 0.66);
}

body.theme-light .lightbox__dialog {
  border-color: rgba(35, 42, 78, 0.22);
  background: rgba(250, 251, 255, 0.98);
  box-shadow: 0 24px 60px rgba(33, 41, 74, 0.25);
}

body.theme-light .lightbox .pill {
  color: #171a33 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(35, 42, 78, 0.22) !important;
}

body.theme-light .lightbox .pill:hover {
  background: rgba(240, 243, 255, 0.98) !important;
  border-color: rgba(35, 42, 78, 0.34) !important;
}

body.theme-light .lightbox__stage {
  border-color: rgba(35, 42, 78, 0.2);
  background: rgba(255,255,255,0.96);
}

body.theme-light .lightbox__stage::-webkit-scrollbar-thumb {
  background: rgba(35, 42, 78, 0.24);
}

body.theme-light .lightbox__caption {
  color: rgba(23, 26, 51, 0.82);
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  position: relative;
}

.tstep {
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(12, 13, 28, 0.54);
  border-radius: var(--radius);
  padding: 16px 16px;
  position: relative;
  overflow: hidden;
}

.tstep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(217, 70, 239, 0.14), transparent 60%);
  pointer-events: none;
}

.tstep__inner { position: relative; display: grid; gap: 6px; }

.tstep__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(243,245,255,0.72);
  text-transform: uppercase;
}

.tstep__title { margin: 0; font-size: 16px; font-weight: 900; letter-spacing: -0.01em; }
.tstep__text { margin: 0; color: var(--muted); font-size: 21px; line-height: 1.7; }

/* Pill grid */
.pillgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pillitem {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(243,245,255,0.9);
}

/* Marquee */
.marquee {
  margin: 18px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.marquee__track {
  display: inline-flex;
  gap: 14px;
  padding: 10px 12px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 22s linear infinite;
}

.marquee__chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243,245,255,0.78);
}

.marquee__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--hot));
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Rail (portfolio) */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.rail::-webkit-scrollbar { height: 10px; }
.rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; }

.work {
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  background: rgba(12, 13, 28, 0.54);
  overflow: hidden;
}

.work__top {
  padding: 16px 16px;
  background: radial-gradient(circle at 20% 10%, rgba(139, 92, 246, 0.25), transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(255, 61, 206, 0.18), transparent 55%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.work__tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(7,7,18,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(243,245,255,0.86);
}

.work__body { padding: 16px 16px; display: grid; gap: 10px; }
.work__title { margin: 0; font-size: 16px; font-weight: 900; letter-spacing: -0.01em; }
.work__desc { margin: 0; color: var(--muted); font-size: 14px; }
.work__meta { display: flex; gap: 10px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: rgba(243,245,255,0.84);
  font-size: 12px;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.ads-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  margin-right: 8px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #0b0b18;
  background: linear-gradient(135deg, #a78bfa, #d946ef);
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.25);
}

.ads-icon.google {
  background: #ffffff;
  color: transparent;
  border: 1px solid rgba(0,0,0,0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.3 0 6.2 1.1 8.5 3l6.3-6.3C34.7 2.7 29.7 1 24 1 14.9 1 6.9 5.9 2.5 13.2l7.4 5.8C11.7 12 17.3 9.5 24 9.5z'/%3E%3Cpath fill='%23FBBC05' d='M46.5 24.5c0-1.6-.1-2.8-.4-4.2H24v8h12.6c-.5 2.6-2.1 4.9-4.4 6.4l6.9 5.3c4-3.7 6.4-9.2 6.4-15.5z'/%3E%3Cpath fill='%2334A853' d='M9.9 28.9c-.5-1.6-.8-3.3-.8-4.9s.3-3.3.8-4.9l-7.4-5.8C.9 16 0 19.4 0 24s.9 8 2.5 10.7l7.4-5.8z'/%3E%3Cpath fill='%234285F4' d='M24 47c6.5 0 12-2.1 16-5.7l-6.9-5.3c-1.9 1.3-4.4 2.1-7.1 2.1-6.7 0-12.3-4.5-14.3-10.5l-7.4 5.8C6.9 42.1 14.9 47 24 47z'/%3E%3Cpath fill='none' d='M0 0h48v48H0z'/%3E%3C/svg%3E");
  background-size: 20px 20px;
  background-position: center;
  background-repeat: no-repeat;
}
.ads-icon.yandex {
  background: #ffffff;
  color: #e2001a;
  border: 1px solid rgba(226, 0, 26, 0.15);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0;
}
.ads-icon.vk {
  background: #2787f5;
  color: #ffffff;
}
.ads-icon.insta {
  background: #ffffff;
  color: transparent;
  border: 1px solid rgba(0,0,0,0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3ClinearGradient id='g' x1='32' x2='480' y1='480' y2='32' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23f58529'/%3E%3Cstop offset='.3' stop-color='%23dd2a7b'/%3E%3Cstop offset='.6' stop-color='%238134af'/%3E%3Cstop offset='1' stop-color='%23515bd4'/%3E%3C/linearGradient%3E%3Crect width='448' height='448' x='32' y='32' rx='112' fill='url(%23g)'/%3E%3Cpath fill='%23fff' d='M256 170c-47.4 0-86 38.6-86 86s38.6 86 86 86 86-38.6 86-86-38.6-86-86-86Zm0 140a54 54 0 1 1 0-108 54 54 0 0 1 0 108Zm106-144a22 22 0 1 1-44 0 22 22 0 0 1 44 0Zm-16-58H166c-38.6 0-70 31.4-70 70v180c0 38.6 31.4 70 70 70h180c38.6 0 70-31.4 70-70V178c0-38.6-31.4-70-70-70Zm38 250a38 38 0 0 1-38 38H166a38 38 0 0 1-38-38V178a38 38 0 0 1 38-38h180a38 38 0 0 1 38 38Z'/%3E%3C/svg%3E");
  background-size: 22px 22px;
  background-position: center;
  background-repeat: no-repeat;
}
.ads-icon.fb { background: linear-gradient(135deg, #1877f2, #0f5ec4); color: #f2f6ff; }
.ads-icon.ad { background: linear-gradient(135deg, #8b5cf6, #d946ef); color: #0b0b18; }

.ads__label { vertical-align: middle; }

/* Included icons */
.inc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  margin-right: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(217, 70, 239, 0.18));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  position: relative;
}

.inc-icon::after {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.inc-icon.brush::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M20.7 3.3a1 1 0 0 0-1.4 0l-6.7 6.7L11 14l3.9-1.6 6.7-6.7a1 1 0 0 0 0-1.4zM10 13c-2 0-3.5 1.5-3.5 3.5S6 20 4 20s-2 2-2 2h7.5c1.9 0 3.5-1.6 3.5-3.5S11.9 13 10 13z'/%3E%3C/svg%3E"); }
.inc-icon.device::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M7 4h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm0 2v10h10V6H7Zm5 12.5a1.25 1.25 0 1 0 0-2.5a1.25 1.25 0 0 0 0 2.5Z'/%3E%3C/svg%3E"); }
.inc-icon.speed::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M13 2L4 14h6l-1 8l9-12h-6l1-8Z'/%3E%3C/svg%3E"); }
.inc-icon.form::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M3 6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6Zm2 0v.8l7 4.2l7-4.2V6H5Zm0 3.6V18h14V9.6l-7 4.2l-7-4.2Z'/%3E%3C/svg%3E"); }
.inc-icon.form::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14H3V5Zm2 .8v1L12 11l7-4.2v-1L12 10.2L5 5.8Zm0 3.2V18h14v-9l-7 4.2l-7-4.2Z'/%3E%3C/svg%3E"); }
.inc-icon.seo::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M12 2a10 10 0 1 0 10 10A10.011 10.011 0 0 0 12 2Zm6.93 9H16.1a15.2 15.2 0 0 0-.64-4.14A8.022 8.022 0 0 1 18.93 11ZM12 4.07A13.3 13.3 0 0 1 13.9 11h-3.8A13.3 13.3 0 0 1 12 4.07ZM4.26 13h3.64a15.4 15.4 0 0 0 .56 3.65A8.015 8.015 0 0 1 4.26 13Zm0-2a8.015 8.015 0 0 1 4.2-3.65A15.4 15.4 0 0 0 7.9 11Zm3.79 2h3.9a13.3 13.3 0 0 1-1.9 6.93A13.3 13.3 0 0 1 8.05 13Zm4.16-2h3.64a8.015 8.015 0 0 1-4.2 3.65A15.4 15.4 0 0 0 12.21 11Z'/%3E%3C/svg%3E"); }
.inc-icon.ad::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M3 5h2v14H3Zm5 0l11 7l-11 7V5Z'/%3E%3C/svg%3E"); }
.inc-icon.host::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M6 3h12a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm0 9h12a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2Zm1 2v2h10v-2H7Z'/%3E%3C/svg%3E"); }
.inc-icon.domain::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M12 2a10 10 0 1 0 10 10A10.011 10.011 0 0 0 12 2Zm7.93 9H16.9a12.9 12.9 0 0 0-1-4.24A8.022 8.022 0 0 1 19.93 11ZM12 4.07A11.07 11.07 0 0 1 13.86 11h-3.72A11.07 11.07 0 0 1 12 4.07ZM4.07 13h4a12.9 12.9 0 0 0 1 4.24A8.022 8.022 0 0 1 4.07 13Zm0-2a8.022 8.022 0 0 1 5-4.24A12.9 12.9 0 0 0 8.07 11Zm3.07 2h5.72A11.07 11.07 0 0 1 12 19.93A11.07 11.07 0 0 1 8.93 13Zm7.1-2h4.9a8.022 8.022 0 0 1-5 4.24A12.9 12.9 0 0 0 16.03 11Z'/%3E%3C/svg%3E"); }
.inc-icon.consult::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M12 2a10 10 0 1 0 10 10A10.011 10.011 0 0 0 12 2Zm1 15h-2v-2h2Zm1.07-7.75l-.9.92A3 3 0 0 0 11 13h-2v-.5a4.5 4.5 0 0 1 1.33-3.17l1.24-1.26a1.5 1.5 0 0 0 .43-1.06a1.5 1.5 0 0 0-3 0H7a3 3 0 0 1 6 0a3 3 0 0 1-.93 2.11Z'/%3E%3C/svg%3E"); }
.inc-icon.default::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230b0b18' d='M12 2a10 10 0 1 0 10 10A10.011 10.011 0 0 0 12 2Zm1 15h-2v-2h2Zm0-4h-2V7h2Z'/%3E%3C/svg%3E"); }

.inc__label { vertical-align: middle; }

/* Lead box */
.leadbox {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(18, 20, 40, 0.55), rgba(12, 13, 28, 0.55));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.leadbox__text { padding: 22px 18px; }

.leadbox__quick {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.quick {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}

.quick__k {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243,245,255,0.7);
}

.quick__v {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(243,245,255,0.9);
}

.form {
  padding: 22px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(7,7,18,0.28);
}

.form__row {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}

.form .field {
  margin-bottom: 14px;
}

.form button[type="submit"] {
  margin-top: 18px;
}

.field { display: grid; gap: 8px; }

.field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243,245,255,0.72);
}

.field__input {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12, 13, 28, 0.6);
  padding: 15px 16px;
  outline: none;
  color: rgba(243,245,255,0.92);
}

.field__input:focus {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.12);
}

.field__input--area { resize: vertical; min-height: 120px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__fineprint { margin: 12px 0 0; color: var(--muted2); font-size: 12px; }
.form__msg { margin: 12px 0 0; font-size: 13px; color: rgba(243,245,255,0.86); }
.form__msg.ok { color: rgba(34, 197, 94, 0.95); }
.form__msg.err { color: rgba(255, 61, 206, 0.95); }

/* Quote */
.quote {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius2);
  padding: 26px 18px;
  background: radial-gradient(circle at 20% 10%, rgba(139, 92, 246, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(18, 20, 40, 0.52), rgba(12, 13, 28, 0.52));
  box-shadow: var(--shadow);
}

.quote__badge {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243,245,255,0.78);
  margin: 0 0 10px;
}

.quote__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.14;
}

.quote__text { margin: 0 0 18px; color: var(--muted); font-size: 16px; }

/* Final */
.final {
  border-radius: var(--radius2);
  padding: 30px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(217, 70, 239, 0.12), rgba(255, 61, 206, 0.06));
  position: relative;
  overflow: hidden;
}

.final__glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.32), transparent 55%),
    radial-gradient(circle at 80% 60%, rgba(255, 61, 206, 0.22), transparent 55%);
  filter: blur(40px);
  opacity: 0.8;
}

.final__title {
  position: relative;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.final__text { position: relative; margin: 0 0 18px; color: rgba(243,245,255,0.86); font-size: 16px; }
.final__actions { position: relative; }

/* Footer */
.footer {
  padding: 64px 0 78px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  display: grid;
  gap: 20px;
}

.brand--footer { padding: 0; }

.footer__muted {
  margin: 10px 0 0;
  color: var(--muted2);
  font-size: 12px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__links a {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-size: 13px;
  color: rgba(243,245,255,0.86);
}

.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer__contacts a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(243,245,255,0.9);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

/* Responsive */
@media (max-width: 767px) {
  :root {
    --pad: 20px;
  }

  .ambient__noise,
  .ambient__grid {
    opacity: 0.03;
  }

  .ambient__orb {
    filter: blur(34px);
  }

  .top { padding: 10px 0 0; }
  .top__bar {
    padding: 12px 14px;
    gap: 10px;
  }

  /* Mobile: hide theme switch, use burger navigation */
  #themeToggle {
    display: none !important;
  }

  .burger {
    display: inline-flex;
  }

  .brand { gap: 9px; }
  .brand__mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }
  .brand__text {
    font-size: 14px;
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .drawer .drawer__link--accent {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(92, 56, 179, 0.66), rgba(126, 28, 138, 0.58)) !important;
    border-color: rgba(255,255,255,0.18) !important;
  }

  .hero {
    padding: 108px 0 70px;
    min-height: 85svh;
  }

  /* Mobile: keep hero background darker (no bright wash) */
  body.theme-light .hero {
    background: linear-gradient(180deg, #0a0b17 0%, #070712 100%);
  }

  body.theme-light .hero__shade {
    background:
      radial-gradient(ellipse 78% 58% at 20% 20%, rgba(139, 92, 246, 0.2), transparent 56%),
      radial-gradient(ellipse 68% 52% at 72% 60%, rgba(217, 70, 239, 0.12), transparent 56%),
      linear-gradient(180deg, rgba(7, 7, 18, 0.66), rgba(7, 7, 18, 0.94));
  }

  body.theme-light .hero__vignette {
    background: radial-gradient(ellipse at center, rgba(7,7,18,0.1) 32%, rgba(7,7,18,0.82) 100%);
  }

  body.theme-light .hero__video {
    opacity: 0.52;
    filter: saturate(0.82) contrast(1.08) brightness(0.15);
  }

  .hero__inner {
    max-width: 100%;
    padding-inline: 8px;
  }

  .hero__title {
    font-size: clamp(28px, 7.7vw, 40px);
    line-height: 1.08;
    margin: 0 0 10px;
  }

  .hero__lead {
    font-size: 18px;
    line-height: 1.58;
    max-width: 100%;
  }

  .hero__ctas {
    gap: 10px;
    margin-top: 16px;
  }

  .btn {
    min-height: 48px;
    padding: 13px 16px;
    font-size: 13px;
    letter-spacing: 0.07em;
  }

  .hero__meta {
    margin-top: 16px;
    gap: 10px;
  }

  .hero__contacts {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .meta-link {
    min-height: 60px;
    padding: 10px 11px;
  }

  .meta-link__label { font-size: 10px; }
  .meta-link__value { font-size: 13px; }

  .section {
    padding: 42px 0;
  }

  .section__head {
    margin-bottom: 18px;
  }

  .section__title {
    font-size: clamp(26px, 8.2vw, 40px);
    line-height: 1.1;
  }

  .section__subtitle,
  .page__lead,
  .card__text,
  .tstep__text,
  .faqitem__a p,
  .final__text,
  .quote__text,
  .pcase__text,
  .article__body p {
    font-size: 16px !important;
    line-height: 1.58 !important;
  }

  .page { padding: 102px 0 24px; }

  .page__title {
    font-size: clamp(28px, 8.6vw, 40px);
    line-height: 1.1;
  }

  .cards,
  .cards--2,
  .cards--3 {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .card,
  .work,
  .pcase,
  .tstep,
  .faqitem,
  .leadbox,
  .quote,
  .final,
  .article,
  .panel {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.24);
  }

  .pillgrid {
    gap: 8px;
  }

  .pillitem {
    font-size: 15px;
    line-height: 1.4;
    padding: 10px 12px;
  }

  .timeline { gap: 10px; }
  .tstep { padding: 14px 12px; }
  .tstep__title { font-size: 15px; }

  .faqitem__q {
    font-size: 17px;
    line-height: 1.28;
    padding: 14px 12px;
  }

  .faqitem__q::after {
    width: 34px;
    height: 34px;
  }

  .leadbox__text,
  .form {
    padding: 18px 14px;
  }

  .form__row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .field__input {
    min-height: 46px;
    padding: 11px 12px;
    font-size: 15px;
  }

  .field__input--area {
    min-height: 122px;
  }

  .rail {
    grid-auto-columns: 86%;
    gap: 12px;
  }

  /* Portfolio page mobile layout */
  .caseslist { gap: 12px; }

  .pcase {
    padding: 12px;
    gap: 12px;
    content-visibility: visible;
  }

  .pcase__viewport {
    height: clamp(170px, 52vw, 250px);
    overflow: hidden;
  }

  .pcase__img {
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .pcase__title {
    font-size: clamp(18px, 6.1vw, 24px);
    line-height: 1.15;
  }

  .pcase__line,
  .card__list li {
    font-size: 13px;
    line-height: 1.5;
  }

  .pcase__sub {
    font-size: 11px;
  }

  .lightbox__dialog {
    width: min(98vw, 98vw);
    height: min(94svh, 94svh);
    margin: 3svh auto;
    padding: 10px;
    gap: 8px;
  }

  .lightbox__toolbar {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .lightbox__zoom {
    width: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    gap: 6px;
  }

  .lightbox__zoom-btn,
  .lightbox__close {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .lightbox__close {
    flex: 0 0 auto;
  }

  .lightbox__caption {
    font-size: 12px;
    line-height: 1.4;
  }

  .contact-popup__dialog {
    width: min(96vw, 96vw);
    margin: 5svh auto;
    padding: 14px;
    border-radius: 16px;
  }

  .contact-popup__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-popup__close {
    width: 100%;
    justify-content: center;
  }

  .footer {
    padding: 46px 0 58px;
  }

  .footer__inner {
    gap: 14px;
  }

  .footer__links,
  .footer__contacts {
    gap: 8px;
  }

  .footer__links a,
  .footer__contacts a {
    font-size: 12px;
    padding: 9px 11px;
  }

  .reveal {
    filter: none;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
}

@media (max-width: 430px) {
  .hero__title { font-size: clamp(26px, 8.8vw, 34px); }
  .hero__lead { font-size: 15px !important; }
  .section__title { font-size: clamp(24px, 8.8vw, 34px); }
  .section__subtitle,
  .page__lead,
  .card__text,
  .tstep__text,
  .faqitem__a p,
  .article__body p { font-size: 15px !important; }
  .pcase__viewport { height: 180px; }
  .meta-link__value { font-size: 12px; }
}

@media (min-width: 560px) {
  .hero__ctas { flex-direction: row; align-items: center; justify-content: flex-start; }
  .btn { justify-content: center; padding: 16px 20px; }
  .btn--wide { width: auto; }
  .hero__contacts { grid-template-columns: repeat(2, 1fr); }
  .rail { grid-auto-columns: 72%; }
}

@media (max-width: 559px) {
}

@media (min-width: 768px) {
  .nav { display: flex; gap: 6px; align-items: center; }
  .burger { display: none; }
  .drawer { display: none; }
  body.drawer-open { overflow: auto; }

  .top { padding: 18px 0 0; }
  .top__bar { padding: 16px 20px; gap: 14px; }

  .hero { padding: 140px 0 108px; }
  .hero__meta { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .hero__contacts { grid-template-columns: repeat(3, 1fr); }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .leadbox { display: grid; grid-template-columns: 1.05fr 0.95fr; }
  .leadbox__text { padding: 32px 28px; }
  .form { border-top: 0; border-left: 1px solid rgba(255,255,255,0.08); padding: 32px 28px; }
  .form__row { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
  .rail { grid-auto-columns: 44%; }
  .footer__inner { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
  .footer__links { justify-content: center; }
  .footer__contacts { justify-content: flex-end; }

  .section[id] { scroll-margin-top: 120px; }
}

@media (min-width: 768px) and (max-width: 920px) {
  .nav { gap: 4px; }
  .nav__link { padding: 9px 10px; font-size: 12px; }
}

@media (min-width: 1024px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: 31%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .scrollhint__dot, .marquee__track { animation: none; }
}

/* Article / page templates */
.page {
  padding: 118px 0 32px;
}

.page__title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.06;
}

.page__lead { margin: 0 0 22px; color: var(--muted); font-size: 24px; line-height: 1.65; max-width: 72ch; }

.backlink {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(243,245,255,0.86);
  font-size: 13px;
  margin-bottom: 16px;
}

.article {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(12, 13, 28, 0.5);
  border-radius: var(--radius2);
  padding: 22px 18px;
  box-shadow: 0 10px 44px rgba(0,0,0,0.3);
}

.article__body { display: grid; gap: 16px; }

.article__body p { margin: 0; color: var(--muted); font-size: 24px; line-height: 1.85; }

.article__body h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.article__body ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: rgba(243,245,255,0.86);
}

.article__body li { margin: 8px 0; color: rgba(243,245,255,0.82); line-height: 1.7; }

.note {
  border: 1px solid rgba(139, 92, 246, 0.26);
  background: rgba(139, 92, 246, 0.08);
  border-radius: 16px;
  padding: 14px 14px;
  color: rgba(243,245,255,0.86);
}

.policy__pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

/* Admin (mainpanel) */
body.admin {
  background: radial-gradient(circle at 12% 10%, rgba(139, 92, 246, 0.22), transparent 35%), var(--bg);
}

.adminwrap { padding: 118px 0 62px; }

.panel {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(18, 20, 40, 0.62), rgba(12, 13, 28, 0.55));
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel h1 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.panel p { margin: 8px 0 0; color: var(--muted); }

.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.tabbtn {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.tabbtn.active {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.12);
}

.adminarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7,7,18,0.35);
  color: rgba(243,245,255,0.92);
  padding: 14px;
  min-height: 520px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
}

.adminrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }

.adminmsg { margin-top: 10px; font-size: 13px; color: rgba(243,245,255,0.86); }
.adminmsg.ok { color: rgba(34, 197, 94, 0.95); }
.adminmsg.err { color: rgba(255, 61, 206, 0.95); }

.tablewrap { overflow: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); }

table.admintable {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  background: rgba(7,7,18,0.18);
}

table.admintable th, table.admintable td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
  text-align: left;
}

table.admintable th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243,245,255,0.74);
}

table.admintable td { color: rgba(243,245,255,0.86); font-size: 13px; }

.mini {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(243,245,255,0.82);
}
