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

:root {
  --bg: #05071a;
  --bg-soft: #0b1027;
  --panel: rgba(14, 17, 41, 0.9);
  --panel-strong: rgba(16, 19, 46, 0.98);
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #aeb5d9;
  --pink: #ff4bc1;
  --pink-strong: #da2cff;
  --violet: #7f56ff;
  --blue: #2c82ff;
  --orange: #ff9a3d;
  --green: #5cff84;
  --shadow: 0 30px 90px rgba(5, 10, 40, 0.55);
  --header-bg: rgba(3, 6, 19, 0.72);
  --header-border: rgba(255, 255, 255, 0.04);
  --header-control-bg: rgba(15, 17, 39, 0.74);
  --header-control-text: rgba(255, 255, 255, 0.78);
  --nav-text: rgba(255, 255, 255, 0.92);
  --body-grid-line: rgba(255, 255, 255, 0.015);
  --text-soft: #d9ddf3;
  --card-surface: linear-gradient(180deg, rgba(18, 19, 46, 0.98), rgba(10, 12, 31, 0.98));
  --card-surface-soft: linear-gradient(180deg, rgba(16, 18, 45, 0.95), rgba(10, 12, 30, 0.96));
  --footer-bg: linear-gradient(180deg, rgba(6, 8, 22, 0.94), rgba(5, 7, 18, 0.98));
  --btn-secondary-bg: linear-gradient(180deg, rgba(22, 16, 42, 0.82), rgba(14, 15, 33, 0.92));
  --btn-secondary-text: #ffffff;
  --btn-secondary-border: rgba(186, 109, 255, 0.65);
  --anchor-offset: 108px;
  --header-height: 96px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
  color-scheme: dark;
  overflow-x: hidden;
}

html.lang-switching *,
html.lang-switching *::before,
html.lang-switching *::after {
  transition: none !important;
  animation: none !important;
}

:where(section[id], footer[id]) {
  scroll-margin-top: var(--anchor-offset);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #eff3ff;
  --bg-soft: #f8f9ff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(26, 33, 68, 0.12);
  --text: #111830;
  --muted: #354263;
  --shadow: 0 24px 60px rgba(116, 132, 193, 0.18);
  --header-bg: rgba(255, 255, 255, 0.78);
  --header-border: rgba(34, 45, 88, 0.08);
  --header-control-bg: rgba(241, 244, 255, 0.96);
  --header-control-text: #243053;
  --nav-text: #16203e;
  --body-grid-line: rgba(41, 57, 110, 0.04);
  --text-soft: #2b375a;
  --card-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 246, 255, 0.98));
  --card-surface-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 244, 255, 0.98));
  --footer-bg: linear-gradient(180deg, rgba(242, 245, 255, 0.98), rgba(232, 238, 255, 0.98));
  --btn-secondary-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 255, 0.98));
  --btn-secondary-text: #17213f;
  --btn-secondary-border: rgba(112, 132, 255, 0.32);
}

body {
  min-width: 320px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(123, 57, 255, 0.22), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(255, 59, 196, 0.18), transparent 20%),
    radial-gradient(circle at 70% 48%, rgba(55, 108, 255, 0.14), transparent 22%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 38%, var(--bg) 68%, var(--bg) 100%);
}

body.is-ready .scroll-reveal,
body.is-ready .scroll-reveal-group > * {
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
}

body.is-ready .scroll-reveal:not(.is-visible),
body.is-ready .scroll-reveal-group > *:not(.is-visible) {
  opacity: 0.08;
  filter: blur(4px);
}

body.is-ready .reveal-readable:not(.is-visible) {
  opacity: 0.38;
  filter: none;
}

.scroll-reveal.is-visible,
.scroll-reveal-group > .is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

body.is-ready .scroll-reveal[data-reveal="left"]:not(.is-visible),
body.is-ready .scroll-reveal-group > [data-reveal="left"]:not(.is-visible) {
  transform: translate3d(-88px, 0, 0) scale(0.975);
}

body.is-ready .scroll-reveal[data-reveal="right"]:not(.is-visible),
body.is-ready .scroll-reveal-group > [data-reveal="right"]:not(.is-visible) {
  transform: translate3d(88px, 0, 0) scale(0.975);
}

body.is-ready .scroll-reveal[data-reveal="top"]:not(.is-visible),
body.is-ready .scroll-reveal-group > [data-reveal="top"]:not(.is-visible) {
  transform: translate3d(0, -72px, 0) scale(0.975);
}

body.is-ready .scroll-reveal[data-reveal="bottom"]:not(.is-visible),
body.is-ready .scroll-reveal-group > [data-reveal="bottom"]:not(.is-visible) {
  transform: translate3d(0, 72px, 0) scale(0.975);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.site-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: clip;
  padding-top: var(--header-height);
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--body-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--body-grid-line) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.22;
  pointer-events: none;
}

.container {
  width: min(100% - 40px, 1420px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  display: inline-flex;
  align-items: flex-start;
}

.logo-mark,
.footer-brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.logo img {
  width: 94px;
  height: auto;
}

.logo-caption {
  display: block;
  width: 100%;
  padding-left: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-align: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(220, 227, 255, 0.1));
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -6px 12px rgba(26, 19, 70, 0.2),
    0 10px 22px rgba(21, 18, 55, 0.16);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--header-control-text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

body.menu-open {
  overflow: hidden;
}

.nav a {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  color: var(--nav-text);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 54px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--header-control-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -3px 10px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.theme-toggle {
  gap: 6px;
  border-color: rgba(94, 86, 255, 0.34);
  background: linear-gradient(135deg, rgba(235, 101, 214, 0.96), rgba(108, 108, 255, 0.96));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    inset 0 -8px 18px rgba(56, 27, 138, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 12px 22px rgba(45, 32, 119, 0.24);
}

.nav-theme-toggle {
  display: none;
}

.theme-btn,
.lang-switcher a {
  min-width: 42px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--header-control-text);
}

.theme-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 0;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08) 72%);
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
  font-size: 22px;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -6px 12px rgba(39, 21, 95, 0.22),
    0 4px 12px rgba(23, 16, 65, 0.18);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-btn[data-theme-choice="light"],
.theme-btn[data-theme-choice="dark"] {
  width: 44px;
  min-width: 44px;
  height: 44px;
}

.theme-btn:hover,
.lang-switcher a:hover {
  transform: translateY(-1px);
}

.theme-btn.is-active,
.lang-switcher a.is-active {
  background: linear-gradient(135deg, rgba(255, 71, 196, 0.9), rgba(124, 87, 255, 0.9));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -5px 12px rgba(54, 20, 116, 0.22),
    0 3px 10px rgba(0, 0, 0, 0.12);
}

.theme-btn.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(237, 242, 255, 0.98));
  color: #4f43ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -6px 12px rgba(180, 190, 255, 0.58),
    0 7px 16px rgba(26, 20, 64, 0.24);
}

.lang-switcher {
  --lang-pad: 5px;
  --lang-knob-size: 44px;
  --lang-count: 5;
  --lang-track: calc((100% - (var(--lang-pad) * 2)) / var(--lang-count));
  --lang-knob-offset: calc(var(--lang-pad) + ((var(--lang-track) - var(--lang-knob-size)) / 2));
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: 270px;
  border-color: rgba(121, 95, 255, 0.44);
  background: linear-gradient(135deg, rgba(235, 101, 214, 0.96), rgba(108, 108, 255, 0.96));
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  clip-path: inset(0 round 999px);
  transform: translateZ(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -5px 14px rgba(53, 32, 132, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(94, 86, 255, 0.26);
}

.lang-switcher-gloss,
.lang-switcher-knob {
  position: absolute;
  pointer-events: none;
}

.lang-switcher-gloss {
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05) 42%, rgba(255, 255, 255, 0) 60%);
  z-index: 0;
}

.lang-switcher-knob {
  top: var(--lang-pad);
  left: var(--lang-knob-offset);
  width: var(--lang-knob-size);
  height: var(--lang-knob-size);
  border-radius: 50%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 245, 255, 0.98) 74%, rgba(227, 233, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -6px 12px rgba(187, 196, 255, 0.56),
    0 4px 10px rgba(29, 22, 74, 0.18);
  transition: left 0.22s ease;
}

.lang-switcher--uz .lang-switcher-knob {
  left: calc(var(--lang-track) + var(--lang-knob-offset));
}

.lang-switcher--en .lang-switcher-knob {
  left: calc((var(--lang-track) * 2) + var(--lang-knob-offset));
}

.lang-switcher--tr .lang-switcher-knob {
  left: calc((var(--lang-track) * 3) + var(--lang-knob-offset));
}

.lang-switcher--cn .lang-switcher-knob {
  left: calc((var(--lang-track) * 4) + var(--lang-knob-offset));
}

.lang-switcher a {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: var(--lang-knob-size);
  height: var(--lang-knob-size);
  min-width: var(--lang-knob-size);
  padding: 0;
  text-align: center;
  border-radius: 999px;
  -webkit-appearance: none;
  transform: translateZ(0);
  background-clip: padding-box;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.lang-switcher a.is-active {
  color: #513cff;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

.theme-btn[data-theme-choice="light"] {
  color: #ffb347;
}

html[data-theme="dark"] .theme-btn[data-theme-choice="light"] {
  color: #ffffff;
}

.theme-btn[data-theme-choice="dark"] {
  color: #bc63ff;
}

html[data-theme="light"] .theme-btn[data-theme-choice="dark"] {
  color: #ffffff;
}

.hero-section {
  padding: 48px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 620px);
  align-items: center;
  gap: 20px;
  min-height: 780px;
}

.hero-copy {
  max-width: 730px;
  padding: 52px 0 20px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(156, 53, 255, 0.32), rgba(255, 67, 181, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #ff95e0;
  margin-bottom: 28px;
}

.hero-copy h1 {
  font-size: clamp(54px, 5vw, 82px);
  line-height: 0.97;
  font-weight: 900;
  letter-spacing: -0.04em;
  max-width: 820px;
}

.hero-copy h1 span {
  display: block;
  margin-top: 10px;
  background: linear-gradient(90deg, #ff5ec4 0%, #bc63ff 48%, #4f68ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 620px;
  margin-top: 24px;
  font-size: 24px;
  line-height: 1.45;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.btn {
  min-height: 72px;
  padding: 16px 26px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 21px;
  font-weight: 700;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.btn::before,
.ghost-link::before,
.footer-telegram::before,
.step-link::before,
.menu-toggle::before,
.telegram-fab::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
  opacity: 0.9;
}

.btn::after,
.ghost-link::after,
.footer-telegram::after,
.step-link::after,
.menu-toggle::after,
.telegram-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -8px 16px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.btn:hover,
.btn:focus-visible,
.ghost-link:hover,
.footer-telegram:hover,
.telegram-fab:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.04);
}

.btn:active,
.ghost-link:active,
.footer-telegram:active,
.step-link:active,
.menu-toggle:active,
.telegram-fab:active,
.theme-btn:active,
.lang-switcher a:active {
  transform: translateY(1px) scale(0.985);
}

.btn img,
.footer-telegram img,
.telegram-fab img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #ff4fbe 0%, #4f73ff 100%);
  box-shadow:
    0 16px 35px rgba(85, 95, 255, 0.34),
    0 6px 0 rgba(60, 48, 146, 0.24);
}

.btn-secondary {
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-border);
  background: var(--btn-secondary-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 26px rgba(13, 16, 35, 0.24),
    0 5px 0 rgba(20, 18, 40, 0.22);
}

.btn strong {
  font-size: 21px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 770px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
}

.hero-glow-pink {
  right: 76px;
  top: 136px;
  width: 390px;
  height: 390px;
  background: radial-gradient(circle, rgba(255, 69, 197, 0.95) 0%, rgba(255, 69, 197, 0.4) 38%, rgba(255, 69, 197, 0) 72%);
}

.hero-glow-blue {
  right: 168px;
  top: 202px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(66, 126, 255, 0.88) 0%, rgba(66, 126, 255, 0.35) 42%, rgba(66, 126, 255, 0) 74%);
}

.hero-phone {
  position: absolute;
  right: 128px;
  top: 80px;
  width: min(100%, 470px);
  transform: rotate(11deg);
  filter: drop-shadow(0 45px 60px rgba(0, 0, 0, 0.55));
}

.hero-phone-screen {
  position: absolute;
  right: 183px;
  top: 168px;
  z-index: 2;
  width: 240px;
  transform: rotate(11deg);
  color: #f5f6ff;
  text-shadow: 0 8px 18px rgba(6, 8, 26, 0.6);
}

.hero-phone-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: #f07cd9;
  font-size: 13px;
  font-weight: 700;
}

.hero-phone-kicker::after {
  content: "";
  width: 44px;
  height: 2px;
  margin-left: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 99, 203, 0.8), rgba(84, 104, 255, 0.7));
}

.hero-phone-screen h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-phone-screen h3 span {
  background: linear-gradient(90deg, #ff5ec4 0%, #bc63ff 52%, #4f8aff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-phone-screen p {
  margin: 18px 0 0;
  color: rgba(235, 240, 255, 0.82);
  font-size: 15px;
  line-height: 1.5;
}

.hero-phone-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4fbe 0%, #4f73ff 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(75, 84, 255, 0.3);
}

.hero-phone-meta {
  display: flex;
  gap: 18px;
  margin-top: 22px;
  color: rgba(238, 241, 255, 0.9);
  font-size: 12px;
}

.hero-phone-meta strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.hero-ring {
  position: absolute;
  opacity: 0.92;
}

.hero-ring-left {
  left: 34px;
  top: 246px;
  width: 160px;
  transform: rotate(-18deg);
  filter: drop-shadow(0 0 25px rgba(53, 127, 255, 0.55));
}

.hero-ring-right {
  right: 44px;
  top: 92px;
  width: 94px;
  transform: rotate(18deg);
  filter: drop-shadow(0 0 22px rgba(255, 73, 207, 0.45));
}

.hero-shape {
  position: absolute;
  filter: drop-shadow(0 0 14px rgba(110, 104, 255, 0.35));
}

.hero-shape-sphere {
  left: 184px;
  top: 156px;
  width: 80px;
}

.hero-shape-cube {
  left: 80px;
  bottom: 198px;
  width: 74px;
}

.hero-shape-code {
  right: 10px;
  bottom: 136px;
  width: 124px;
}

.section {
  padding: 16px 0 28px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(36px, 2.7vw, 50px);
  line-height: 1.06;
  font-weight: 800;
}

.section-heading h2::after {
  content: "";
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  margin-top: 10px;
}

.services-grid,
.portfolio-grid,
.stack-grid,
.why-grid,
.footer-grid,
.stats-grid {
  display: grid;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 360px;
  padding: 28px 28px 34px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(18, 19, 46, 0.95) 0%, rgba(12, 12, 32, 0.96) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
}

.service-card-pink::before {
  background: linear-gradient(135deg, rgba(255, 74, 193, 0.55), transparent 50%);
}

.service-card-blue::before {
  background: linear-gradient(135deg, rgba(53, 122, 255, 0.6), transparent 55%);
}

.service-card-orange::before {
  background: linear-gradient(135deg, rgba(255, 148, 67, 0.52), transparent 55%);
}

.service-card-top {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
}

.service-icon {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.service-icon img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.service-icon-pink {
  background: linear-gradient(135deg, rgba(255, 142, 189, 0.62), rgba(239, 66, 204, 0.95));
}

.service-icon-blue {
  background: linear-gradient(135deg, rgba(87, 166, 255, 0.78), rgba(28, 96, 255, 0.95));
}

.service-icon-orange {
  background: linear-gradient(135deg, rgba(255, 193, 112, 0.76), rgba(255, 128, 0, 0.94));
}

.service-card h3 {
  font-size: 24px;
  line-height: 1.05;
  margin-bottom: 12px;
  font-weight: 800;
}

.service-card p,
.footer-brand p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.service-card li {
  position: relative;
  padding-left: 22px;
  color: #eef2ff;
  font-size: 17px;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}

.service-card-pink li::before {
  color: #f665df;
}

.service-card-blue li::before {
  color: #4ca4ff;
}

.service-card-orange li::before {
  color: #ff9d3e;
}

.service-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 22px;
}

.service-card-pink .service-arrow {
  color: #f76be0;
}

.service-card-blue .service-arrow {
  color: #529cff;
}

.service-card-orange .service-arrow {
  color: #ff9840;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: var(--card-surface-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 30px 34px;
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.stat-card + .stat-card {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong {
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
}

.stat-card:nth-child(1) strong,
.stat-card:nth-child(2) strong,
.stat-card:nth-child(3) strong {
  color: #d458ff;
}

.stat-card:nth-child(4) strong {
  color: #ff9e2f;
}

.stat-card span {
  font-size: 18px;
  line-height: 1.35;
  color: #f2f4ff;
}

.ghost-link {
  min-height: 58px;
  padding: 0 24px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 102, 255, 0.45);
  background: linear-gradient(180deg, rgba(30, 16, 46, 0.72), rgba(14, 15, 30, 0.92));
  color: #faf6ff;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(18, 16, 42, 0.22),
    0 5px 0 rgba(24, 18, 44, 0.18);
}

.portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 248px;
  padding: 22px 22px 20px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 86, 198, 0.13), transparent 34%),
    radial-gradient(circle at bottom left, rgba(51, 118, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(18, 19, 46, 0.98), rgba(10, 12, 31, 0.98));
  box-shadow: var(--shadow);
}

html[data-theme="light"] .service-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .portfolio-card,
html[data-theme="light"] .why-card {
  background:
    radial-gradient(circle at top right, rgba(255, 86, 198, 0.09), transparent 34%),
    radial-gradient(circle at bottom left, rgba(51, 118, 255, 0.1), transparent 36%),
    var(--card-surface);
}

html[data-theme="light"] .stack-card,
html[data-theme="light"] .stats-grid,
html[data-theme="light"] .footer-telegram,
html[data-theme="light"] .ghost-link {
  background: var(--card-surface-soft);
}

html[data-theme="light"] .service-card h3,
html[data-theme="light"] .project-card h3,
html[data-theme="light"] .portfolio-copy h3,
html[data-theme="light"] .why-card span,
html[data-theme="light"] .footer h3,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .hero-copy h1,
html[data-theme="light"] .cta-grid h2,
html[data-theme="light"] .stack-card span,
html[data-theme="light"] .stat-card span,
html[data-theme="light"] .footer li a,
html[data-theme="light"] .footer li,
html[data-theme="light"] .footer-brand p {
  color: var(--text);
}

html[data-theme="light"] .project-card p,
html[data-theme="light"] .service-card p,
html[data-theme="light"] .portfolio-copy span,
html[data-theme="light"] .cta-grid p,
html[data-theme="light"] .footer-bottom,
html[data-theme="light"] .hero-copy p {
  color: var(--muted);
}

html[data-theme="light"] .service-card li,
html[data-theme="light"] .section-pill {
  color: #39486d;
}

html[data-theme="light"] .service-card li::before {
  color: #1f74ff;
}

html[data-theme="light"] .btn img,
html[data-theme="light"] .footer-telegram img,
html[data-theme="light"] .telegram-fab img {
  filter: none;
}

html[data-theme="light"] .btn-primary img {
  filter: brightness(0) invert(1);
}

.scroll-reveal-group > .project-card:nth-child(6n + 1):not(.is-visible),
.scroll-reveal-group > .stack-card:nth-child(6n + 1):not(.is-visible),
.scroll-reveal-group > .why-card:nth-child(6n + 1):not(.is-visible) {
  transform: translate3d(-72px, 0, 0) scale(0.975);
}

.scroll-reveal-group > .project-card:nth-child(6n + 2):not(.is-visible),
.scroll-reveal-group > .stack-card:nth-child(6n + 2):not(.is-visible),
.scroll-reveal-group > .why-card:nth-child(6n + 2):not(.is-visible) {
  transform: translate3d(72px, 0, 0) scale(0.975);
}

.scroll-reveal-group > .project-card:nth-child(6n + 3):not(.is-visible),
.scroll-reveal-group > .stack-card:nth-child(6n + 3):not(.is-visible),
.scroll-reveal-group > .why-card:nth-child(6n + 3):not(.is-visible) {
  transform: translate3d(0, 32px, 0) scale(0.975);
}

.scroll-reveal-group > .project-card:nth-child(6n + 4):not(.is-visible),
.scroll-reveal-group > .stack-card:nth-child(6n + 4):not(.is-visible),
.scroll-reveal-group > .why-card:nth-child(6n + 4):not(.is-visible) {
  transform: translate3d(-42px, 0, 0) scale(0.975);
}

.scroll-reveal-group > .project-card:nth-child(6n + 5):not(.is-visible),
.scroll-reveal-group > .stack-card:nth-child(6n + 5):not(.is-visible),
.scroll-reveal-group > .why-card:nth-child(6n + 5):not(.is-visible) {
  transform: translate3d(42px, 0, 0) scale(0.975);
}

.scroll-reveal-group > .project-card:nth-child(6n):not(.is-visible),
.scroll-reveal-group > .stack-card:nth-child(6n):not(.is-visible),
.scroll-reveal-group > .why-card:nth-child(6n):not(.is-visible) {
  transform: translate3d(0, -32px, 0) scale(0.975);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--blue));
}

.project-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.project-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 95, 196, 0.18), rgba(74, 112, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

html[data-theme="light"] .project-icon img {
  filter: none;
}

.project-card h3 {
  font-size: 24px;
  line-height: 1.08;
  font-weight: 800;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

.project-card p {
  color: #d6dbf7;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.project-card p:first-of-type {
  color: var(--text-soft);
  font-weight: 600;
}

.project-card p + p {
  position: relative;
  margin-top: 6px;
  padding-top: 0;
  padding-left: 14px;
  border-top: 0;
}

.project-card p + p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
}

.portfolio-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card-surface);
  box-shadow: var(--shadow);
}

.portfolio-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.portfolio-copy {
  padding: 16px 18px 18px;
}

.portfolio-copy h3 {
  font-size: 22px;
  font-weight: 700;
}

.portfolio-copy span {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8def9;
  font-size: 14px;
}

.stack-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.stack-card {
  min-height: 104px;
  border-radius: 18px;
  padding: 14px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card-surface-soft);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  box-shadow: var(--shadow);
}

.stack-card img {
  width: 42px;
  height: 42px;
}

.stack-card span {
  font-size: 14px;
  font-weight: 600;
  color: #f1f3ff;
  text-align: center;
}

.section-why {
  position: relative;
  padding-bottom: 44px;
}

.section-why::before {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 8px;
  height: 210px;
  background:
    radial-gradient(120% 120% at 0% 100%, rgba(255, 53, 116, 0.4), transparent 48%),
    radial-gradient(90% 110% at 100% 100%, rgba(150, 34, 255, 0.42), transparent 50%),
    linear-gradient(90deg, rgba(255, 58, 88, 0.35), rgba(147, 69, 255, 0.28), rgba(40, 96, 255, 0.35));
  opacity: 0.7;
  filter: blur(28px);
  pointer-events: none;
}

.why-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.why-card {
  min-height: 118px;
  padding: 22px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card-surface);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.why-card img {
  width: 34px;
  height: 34px;
}

.why-card:nth-child(1) img,
.why-card:nth-child(2) img,
.why-card:nth-child(3) img {
  filter: invert(36%) sepia(95%) saturate(1531%) hue-rotate(276deg) brightness(105%) contrast(101%);
}

.why-card:nth-child(4) img,
.why-card:nth-child(5) img {
  filter: invert(68%) sepia(93%) saturate(1207%) hue-rotate(358deg) brightness(102%) contrast(102%);
}

.why-card:nth-child(6) img {
  filter: invert(64%) sepia(72%) saturate(734%) hue-rotate(71deg) brightness(107%) contrast(104%);
}

.why-card span {
  font-size: 16px;
  line-height: 1.24;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

.section-steps {
  padding-top: 28px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 28px 24px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--card-surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 79, 169, 0.24), transparent 34%),
    radial-gradient(circle at bottom left, rgba(56, 116, 255, 0.2), transparent 36%);
  pointer-events: none;
}

.step-card:nth-child(2)::before {
  background:
    radial-gradient(circle at top center, rgba(91, 141, 255, 0.24), transparent 34%),
    radial-gradient(circle at bottom right, rgba(120, 52, 255, 0.18), transparent 34%);
}

.step-card:nth-child(3)::before {
  background:
    radial-gradient(circle at top left, rgba(255, 143, 63, 0.24), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 79, 169, 0.18), transparent 34%);
}

.step-top-row,
.step-number,
.step-title-row,
.step-card h3,
.step-card p,
.step-link {
  position: relative;
  z-index: 1;
}

.step-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 68px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 12, 37, 0.46);
  color: var(--heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step-number img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}

.step-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.step-title-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 95, 196, 0.18), rgba(74, 112, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-title-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

html[data-theme="light"] .step-number img,
html[data-theme="light"] .step-title-icon img {
  filter: none;
}

html[data-theme="light"] .step-number {
  background: linear-gradient(180deg, rgba(255, 226, 242, 0.96), rgba(255, 214, 235, 0.96));
  border-color: rgba(255, 136, 192, 0.28);
  color: #a52b70;
}

.step-card h3 {
  margin: 0;
  color: var(--heading);
  font-size: 25px;
  line-height: 1.14;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.step-card p + p {
  margin-top: 10px;
}

.step-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 54px;
  max-width: 100%;
  padding: 0 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #ff4fbe 0%, #4f73ff 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 16px 35px rgba(85, 95, 255, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.step-link img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  filter: brightness(0) invert(1);
}

.step-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(85, 95, 255, 0.38), 0 6px 0 rgba(56, 47, 145, 0.24);
}

.step-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 3px;
}

html[data-theme="light"] .step-link img {
  filter: brightness(0) invert(1);
}

.cta-section {
  padding: 30px 0 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 34px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-grid h2 {
  font-size: clamp(36px, 3vw, 52px);
  line-height: 1.08;
  font-weight: 800;
}

.cta-grid p {
  margin-top: 12px;
  font-size: 22px;
  color: var(--muted);
}

.cta-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.footer {
  position: relative;
  padding: 28px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--footer-bg);
}

.footer-grid {
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.footer-brand-logo {
  margin-bottom: 16px;
}

.footer-brand img {
  width: 86px;
  height: auto;
}

.footer-brand .logo-caption {
  width: 100%;
  padding-left: 0;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-align: center;
}

.footer h3 {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 700;
}

.footer li,
.footer li a {
  color: #d6dbf7;
  font-size: 16px;
  line-height: 1.85;
}

.footer-contacts-list a:hover,
.footer a:hover,
.footer-bottom-links a:hover {
  color: #fff;
}

.footer-telegram {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(86, 124, 255, 0.45);
  background: linear-gradient(135deg, rgba(55, 88, 255, 0.22), rgba(18, 22, 40, 0.78));
  position: relative;
  overflow: hidden;
  box-shadow:
    0 14px 30px rgba(32, 52, 118, 0.2),
    0 5px 0 rgba(24, 30, 60, 0.18);
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: #9da7d8;
  font-size: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.telegram-fab {
  display: none;
}

.telegram-fab img {
  width: 34px;
  height: 34px;
}

@media (max-width: 1360px) {
  .nav {
    gap: 24px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 540px);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    min-height: 232px;
    padding: 20px 20px 18px;
  }

  .project-card h3 {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .project-card p {
    font-size: 15px;
    line-height: 1.4;
  }

  .stack-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  :root {
    --anchor-offset: 34px;
    --header-height: 88px;
  }

  .header-inner,
  .header-actions,
  .section-heading-row,
  .cta-grid,
  .footer-bottom {
    flex-wrap: wrap;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px 20px;
  }

  .nav {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 18px 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding-top: 26px;
    max-width: none;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-phone {
    left: 50%;
    right: auto;
    top: 70px;
    transform: translateX(-50%) rotate(8deg);
  }

  .hero-phone-screen {
    left: 50%;
    right: auto;
    top: 154px;
    width: 230px;
    transform: translateX(-50%) rotate(8deg);
  }

  .hero-ring-left {
    left: 16%;
  }

  .hero-ring-right {
    right: 12%;
  }

  .services-grid,
  .stats-grid,
  .footer-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {
  :root {
    --anchor-offset: 26px;
    --header-height: 82px;
  }

  body.is-ready .scroll-reveal:not(.is-visible),
  body.is-ready .scroll-reveal-group > *:not(.is-visible),
  .scroll-reveal-group > .project-card:nth-child(n):not(.is-visible),
  .scroll-reveal-group > .stack-card:nth-child(n):not(.is-visible),
  .scroll-reveal-group > .why-card:nth-child(n):not(.is-visible) {
    transform: translate3d(0, 24px, 0) scale(0.99);
    filter: blur(2px);
  }

  body {
    background-size: auto;
  }

  .container {
    width: min(100% - 24px, 1420px);
  }

  .header .container {
    width: 100%;
  }

  .telegram-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #57b8ff, #3d86ff);
    box-shadow:
      0 22px 40px rgba(43, 132, 255, 0.4),
      0 8px 0 rgba(31, 93, 194, 0.24);
    overflow: hidden;
  }

  .section-why::before {
    left: 0;
    right: 0;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(120, 132, 189, 0.2);
    box-shadow: 0 6px 18px rgba(80, 92, 156, 0.16);
  }

  .menu-toggle::before,
  .menu-toggle::after {
    display: none;
  }

  .menu-toggle span {
    background: #27314f;
  }

  .nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    z-index: 220;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 18px 18px;
    background: rgba(8, 10, 28, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 54px rgba(4, 7, 22, 0.56);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  html[data-theme="light"] .nav {
    border-color: rgba(173, 119, 255, 0.22);
    background: linear-gradient(180deg, rgba(252, 238, 255, 0.97), rgba(242, 232, 255, 0.97));
    box-shadow: 0 24px 54px rgba(175, 128, 232, 0.22);
  }

html[data-theme="light"] .nav a {
    color: #2a214a;
    background: rgba(168, 120, 255, 0.08);
  }

  html[data-theme="light"] .nav .theme-toggle {
    background: linear-gradient(135deg, rgba(255, 128, 205, 0.95), rgba(151, 111, 255, 0.95));
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.26),
      inset 0 -8px 18px rgba(120, 76, 188, 0.28),
      0 12px 22px rgba(163, 125, 228, 0.18);
  }

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

  .nav a {
    font-size: 14px;
    font-weight: 700;
    white-space: normal;
    padding: 12px 14px;
    border-radius: 12px;
    color: #f6f8ff;
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-theme-toggle {
    display: block;
    margin-top: 8px;
  }

  .nav-theme-toggle .theme-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
  }

  .nav-theme-toggle .theme-btn {
    min-width: 0;
    width: 100%;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .theme-toggle,
  .lang-switcher {
    width: auto;
    justify-content: center;
    gap: 0;
    padding: 4px;
    min-width: 0;
    flex-shrink: 1;
    min-height: 46px;
  }

  .header-actions .theme-toggle {
    display: none;
  }

  .theme-btn,
  .lang-switcher a {
    min-width: 34px;
    height: 38px;
    padding: 0 9px;
    font-size: 12px;
  }

  .lang-switcher {
    --lang-pad: 4px;
    --lang-knob-size: 38px;
    width: 238px;
    background: linear-gradient(135deg, rgba(235, 101, 214, 0.96), rgba(108, 108, 255, 0.96));
    box-shadow: 0 8px 22px rgba(98, 85, 224, 0.2);
    min-height: 46px;
    padding: 4px;
  }

  .lang-switcher-gloss {
    display: none;
  }

  .lang-switcher-knob {
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(35, 42, 78, 0.16);
  }

  .lang-switcher a {
    width: var(--lang-knob-size);
    min-width: var(--lang-knob-size);
    padding: 0;
    border-radius: 999px;
  }

  .lang-switcher a.is-active {
    color: #513cff;
    background: transparent;
    box-shadow: none;
    text-shadow: none;
  }

  body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-section {
    padding-top: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .hero-copy p {
    font-size: 18px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 17px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-phone {
    width: min(100%, 280px);
    top: 42px;
  }

  .hero-phone-screen {
    top: 106px;
    width: 154px;
  }

  .hero-phone-kicker {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .hero-phone-kicker::after {
    width: 24px;
    margin-left: 6px;
  }

  .hero-phone-screen h3 {
    font-size: 19px;
  }

  .hero-phone-screen p {
    margin-top: 10px;
    font-size: 9px;
  }

  .hero-phone-cta {
    min-height: 28px;
    margin-top: 12px;
    padding: 0 10px;
    font-size: 9px;
  }

  .hero-phone-meta {
    gap: 10px;
    margin-top: 14px;
    font-size: 8px;
  }

  .hero-phone-meta strong {
    font-size: 11px;
  }

  .hero-glow-pink {
    right: 50%;
    transform: translateX(50%);
    top: 72px;
    width: 240px;
    height: 240px;
  }

  .hero-glow-blue {
    right: 50%;
    transform: translateX(50%);
    top: 118px;
    width: 220px;
    height: 220px;
  }

  .hero-ring-left,
  .hero-ring-right,
  .hero-shape-sphere,
  .hero-shape-cube,
  .hero-shape-code {
    transform: none;
    opacity: 0.85;
  }

  .hero-ring-left {
    left: 4%;
    top: 202px;
    width: 92px;
  }

  .hero-ring-right {
    right: 5%;
    top: 58px;
    width: 66px;
  }

  .hero-shape-sphere {
    left: 16%;
    top: 82px;
    width: 44px;
  }

  .hero-shape-cube {
    left: 12%;
    bottom: 88px;
    width: 46px;
  }

  .hero-shape-code {
    right: 2%;
    bottom: 80px;
    width: 72px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .section-heading h2::after {
    width: 44px;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding: 24px 22px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  }

  .footer-grid > div:not(.footer-brand) {
    min-height: 100%;
    padding: 18px 18px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  }

  .footer-brand p {
    max-width: 620px;
  }

  .footer h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .footer li,
  .footer li a {
    font-size: 15px;
    line-height: 1.7;
  }

  .footer-telegram {
    width: 100%;
    justify-content: center;
    min-height: 58px;
    border-radius: 18px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .stack-card {
    min-height: 88px;
    padding: 12px 8px 10px;
    border-radius: 16px;
  }

  .stack-card img {
    width: 34px;
    height: 34px;
  }

  .stack-card span {
    font-size: 12px;
  }

  .project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .project-card {
    min-height: 0;
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .project-card-head {
    gap: 10px;
    margin-bottom: 10px;
  }

  .project-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .project-icon img {
    width: 18px;
    height: 18px;
  }

  .project-card h3 {
    font-size: 17px;
    line-height: 1.15;
  }

  .project-card p {
    font-size: 13px;
    line-height: 1.32;
  }

  .project-card p + p {
    margin-top: 6px;
    padding-top: 6px;
  }

  .stat-card:nth-child(2n) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-card:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-card + .stat-card {
    border-left: 0;
    border-top: 0;
  }

  .portfolio-card img {
    height: 220px;
  }

  .why-card {
    min-height: 92px;
    gap: 14px;
  }

  .why-card img {
    width: 30px;
    height: 30px;
  }

  .why-card span {
    font-size: 13px;
    line-height: 1.18;
  }

  .step-card {
    min-height: 0;
    padding: 22px 18px 18px;
    border-radius: 20px;
  }

  .step-top-row {
    gap: 10px;
    margin-bottom: 14px;
  }

  .step-number {
    min-width: 60px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .step-number img {
    width: 12px;
    height: 12px;
  }

  .step-title-row {
    gap: 10px;
    margin-bottom: 12px;
  }

  .step-title-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
  }

  .step-title-icon img {
    width: 20px;
    height: 20px;
  }

  .step-card h3 {
    font-size: 21px;
  }

  .step-link {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 15px;
    gap: 10px;
    font-size: 13px;
  }

  .step-link img {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .step-card p {
    font-size: 14px;
    line-height: 1.55;
  }

  .cta-grid h2 {
    font-size: 32px;
  }

  .cta-grid p {
    font-size: 18px;
  }

  .footer-bottom,
  .footer-bottom-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom {
    gap: 14px;
  }

  .footer-bottom-links {
    gap: 12px;
  }

  .telegram-fab {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 560px) {
  .logo img {
    width: 78px;
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .menu-toggle {
    justify-self: end;
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }

  .header-actions {
    width: auto;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
  }

  .theme-toggle,
  .lang-switcher {
    flex: 0 1 auto;
    min-width: 0;
  }

  .lang-switcher {
    --lang-pad: 4px;
    --lang-knob-size: 38px;
    width: 218px;
  }

  .theme-btn,
  .lang-switcher a {
    min-width: 28px;
    flex: 0 1 auto;
    font-size: 12px;
    padding: 0 7px;
  }

  .stack-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .stack-card {
    min-height: 80px;
    padding: 10px 6px 8px;
  }

  .stack-card img {
    width: 30px;
    height: 30px;
  }

  .stack-card span {
    font-size: 11px;
  }

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

  .project-card {
    padding: 14px 12px 12px;
  }

  .project-card h3 {
    font-size: 15px;
    line-height: 1.14;
  }

  .project-card p {
    font-size: 12px;
    line-height: 1.28;
  }

  .section-steps {
    padding-top: 22px;
  }

  .step-card {
    padding: 20px 16px 16px;
  }

  .step-top-row {
    gap: 8px;
    margin-bottom: 12px;
  }

  .step-card h3 {
    font-size: 18px;
    line-height: 1.16;
  }

  .step-card p {
    font-size: 13px;
    line-height: 1.48;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .footer-brand {
    padding: 20px 16px 18px;
    border-radius: 20px;
  }

  .footer-grid > div:not(.footer-brand) {
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .footer h3 {
    font-size: 18px;
  }

  .footer li,
  .footer li a {
    font-size: 14px;
    line-height: 1.62;
  }

  .footer-telegram {
    min-height: 54px;
    padding: 0 14px;
  }

  .footer-telegram span {
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  :root {
    --header-height: 76px;
  }

  .container {
    width: min(100% - 16px, 1420px);
  }

  .header .container {
    width: 100%;
  }

  .logo img {
    width: 72px;
  }

  .logo-caption {
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  .header-inner {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .header-actions {
    gap: 3px;
  }

  .theme-toggle,
  .lang-switcher {
    padding: 3px;
    border-radius: 999px;
    min-height: 42px;
  }

  .nav-theme-toggle .theme-toggle {
    padding: 4px;
  }

  .theme-btn,
  .lang-switcher a {
    min-width: 28px;
    height: 34px;
    padding: 0 7px;
    font-size: 10px;
  }

  .lang-switcher {
    --lang-pad: 3px;
    --lang-knob-size: 34px;
    width: 188px;
    min-height: 42px;
  }

  .lang-switcher a {
    width: var(--lang-knob-size);
    min-width: var(--lang-knob-size);
    padding: 0;
    border-radius: 999px;
  }

  .nav-theme-toggle .theme-btn {
    height: 38px;
    font-size: 11px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
    padding: 18px 14px 16px;
    border-radius: 18px;
  }

  .footer-grid > div:not(.footer-brand) {
    padding: 14px 12px 12px;
    border-radius: 16px;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer h3 {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .footer li,
  .footer li a,
  .footer-brand p {
    font-size: 13px;
    line-height: 1.54;
  }

  .footer-telegram {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 14px;
    gap: 10px;
  }

  .footer-telegram img {
    width: 20px;
    height: 20px;
  }

  .footer-telegram span {
    font-size: 13px;
  }

  .footer-bottom {
    text-align: left;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
  }

  .footer-bottom-links {
    align-items: flex-start;
    text-align: left;
    gap: 8px 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card:nth-child(2n) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-card:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-card + .stat-card {
    border-top: 0;
    border-left: 0;
  }

  .stat-card {
    padding: 18px 14px;
    min-height: 104px;
    gap: 6px;
  }

  .stat-card strong {
    font-size: 44px;
  }

  .stat-card span {
    font-size: 14px;
    line-height: 1.24;
  }

  .stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-card-grid {
    gap: 8px;
  }

  .project-card {
    padding: 12px 10px 10px;
    border-radius: 16px;
  }

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

  .why-card {
    min-height: 84px;
    padding: 16px 12px;
    gap: 10px;
    border-radius: 16px;
  }

  .why-card img {
    width: 24px;
    height: 24px;
  }

  .why-card span {
    font-size: 11px;
    line-height: 1.14;
  }

  .step-card {
    padding: 18px 14px 14px;
    border-radius: 18px;
  }

  .step-top-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .step-number {
    min-width: 54px;
    height: 34px;
    font-size: 12px;
  }

  .step-number img {
    width: 11px;
    height: 11px;
  }

  .step-title-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .step-title-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
  }

  .step-title-icon img {
    width: 18px;
    height: 18px;
  }

  .step-link {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 13px;
    gap: 8px;
    font-size: 11px;
  }

  .step-link img {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .step-card h3 {
    font-size: 17px;
  }

  .step-card p {
    font-size: 12px;
  }

  .project-card-head {
    gap: 8px;
    margin-bottom: 8px;
  }

  .project-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }

  .project-icon img {
    width: 16px;
    height: 16px;
  }

  .project-card h3 {
    font-size: 14px;
  }

  .project-card p {
    font-size: 11px;
    line-height: 1.24;
  }
}
