/* ===== Design Tokens ===== */
:root {
  --bg: #07070b;
  --bg-elevated: #0c0c12;
  --bg-card: #121218;
  --bg-card-hover: #18181f;
  --border: rgba(255, 255, 255, 0.055);
  --border-strong: rgba(255, 255, 255, 0.1);
  --text: #f0f0f4;
  --text-secondary: #a8a8b3;
  --text-muted: #6e6e7a;
  --accent: #9b8afb;
  --accent-soft: rgba(155, 138, 251, 0.12);
  --accent-glow: rgba(155, 138, 251, 0.28);
  --accent-strong: #b4a6ff;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --container: 1140px;
  --header-h: 76px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

button, input, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

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

/* ===== Noise ===== */
.noise {
  display: none !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  js .reveal:not(.visible) {
    /* kept visible as fallback - animation optional */
  }
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #0c0c0f;
}

.btn--primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(155, 138, 251, 0.4);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.btn--ghost:hover {
  border-color: rgba(155, 138, 251, 0.4);
  color: var(--text);
  background: var(--accent-soft);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 0.875rem;
}

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

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: #0c0c12;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header.scrolled {
  background: #0c0c12;
  border-bottom-color: rgba(255,255,255,0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo__img {
  height: 48px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .logo__img {
    height: 56px;
  }
}

.logo__sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  display: none;
}

@media (min-width: 900px) {
  .logo__sub {
    display: block;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: nowrap;
}

.nav a.nav__link {
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 4px;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  box-shadow: none;
  text-shadow: none;
  filter: none !important;
  opacity: 1;
  transform: none !important;
}

.nav a.nav__link:hover {
  color: #f4f4f5;
}

@media (max-width: 960px) {
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #07070b;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px 40px;
    gap: 8px;
    z-index: 80;
    overflow-y: auto;
    border-bottom: none;
  }
  .nav.open {
    display: flex;
  }
  .burger {
    display: flex !important;
    position: relative;
    z-index: 90;
  }
}


.nav__messenger {
  display: none;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}


.header__phone {
  color: #f4f4f5;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color .2s ease, opacity .2s ease;
}
.header__phone:hover { color: var(--accent-strong); }
.nav__phone { display: none; }

@media (max-width: 1180px) {
  .header__phone { display: none; }
}
@media (max-width: 960px) {
  .nav__phone { display: block !important; color: #f4f4f5 !important; font-weight: 650 !important; }
}

.lang-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.lang-btn:hover {
  border-color: rgba(155, 138, 251, 0.45);
  color: var(--accent);
  background: var(--accent-soft);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s var(--ease);
}
.burger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
body.nav-open {
  overflow: hidden;
  touch-action: none;
}
.site-build {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.18);
  user-select: all;
  pointer-events: auto;
}
.footer { position: relative; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 110px;
  overflow: hidden;
  background: #07070b;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Main spotlight — the key of this style */
.hero__spotlight {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 120%;
  height: 90%;
  transform: translateX(-50%);
  background:
    radial-gradient(
      ellipse 55% 50% at 50% 35%,
      rgba(155, 138, 251, 0.38) 0%,
      rgba(120, 100, 230, 0.18) 32%,
      rgba(80, 60, 160, 0.06) 55%,
      transparent 72%
    );
  filter: blur(8px);
  animation: spotlightPulse 10s ease-in-out infinite alternate;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hero__glow--1 {
  width: 480px;
  height: 480px;
  top: 5%;
  right: 8%;
  background: radial-gradient(circle, rgba(180, 160, 255, 0.22) 0%, transparent 70%);
  animation: floatGlow1 16s ease-in-out infinite alternate;
}

.hero__glow--2 {
  width: 360px;
  height: 360px;
  bottom: 8%;
  left: 5%;
  background: radial-gradient(circle, rgba(100, 80, 200, 0.16) 0%, transparent 70%);
  animation: floatGlow2 20s ease-in-out infinite alternate;
}

.hero__glow--3 {
  display: none;
}

.hero__grid {
  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: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, black 10%, transparent 65%);
  opacity: 0.55;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, transparent 20%, rgba(5, 5, 8, 0.75) 100%),
    linear-gradient(to bottom, transparent 50%, #07070b 95%);
}

.hero__line {
  display: none;
}

@keyframes spotlightPulse {
  0%   { opacity: 0.85; transform: translateX(-50%) scale(1); }
  100% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

@keyframes floatGlow1 {
  0%   { transform: translate(0, 0); opacity: 0.7; }
  100% { transform: translate(-30px, 20px); opacity: 1; }
}

@keyframes floatGlow2 {
  0%   { transform: translate(0, 0); opacity: 0.6; }
  100% { transform: translate(25px, -15px); opacity: 0.95; }
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__content.reveal {
  opacity: 1;
  transform: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: rgba(22, 22, 28, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ddea5;
  box-shadow: 0 0 12px rgba(93, 222, 165, 0.55);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.88); }
}

.hero__title {
  font-size: clamp(2.75rem, 6.5vw, 4.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent-strong);
  text-shadow:
    0 0 40px rgba(155, 138, 251, 0.45),
    0 0 80px rgba(155, 138, 251, 0.2);
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ===== Sections ===== */
.section {
  padding: 96px 0;
  position: relative;
}

.section--alt {
  background: var(--bg-elevated);
}

.section__header {
  margin-bottom: 40px;
  max-width: 560px;
}

.section__header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.9rem, 3.8vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section__lead {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(155, 138, 251, 0.07), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.service-card:hover {
  border-color: rgba(155, 138, 251, 0.22);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__num {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.service-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.service-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card__list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ===== Case ===== */
.case {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.case__frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.025),
    0 28px 70px rgba(0,0,0,0.45);
}

.case__browser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

.case__dots {
  display: flex;
  gap: 6px;
}

.case__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.case__dots span:nth-child(1) { background: #ff5f57; opacity: 0.75; }
.case__dots span:nth-child(2) { background: #febc2e; opacity: 0.75; }
.case__dots span:nth-child(3) { background: #28c840; opacity: 0.75; }

.case__url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 5px 14px;
  border-radius: 6px;
  max-width: 200px;
  margin: 0 auto;
}

.case__screen {
  aspect-ratio: 16 / 11;
  background: linear-gradient(150deg, #1c1a28 0%, #13121c 55%, #0f0e16 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.case__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 25%, rgba(155, 138, 251, 0.14), transparent 55%);
}

.case__screen-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.case__brand-mark {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.2);
  margin-bottom: 6px;
}

.case__brand-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.case__brand-line {
  width: 40px;
  height: 1px;
  background: rgba(155, 138, 251, 0.4);
  margin: 0 auto 14px;
}

.case__brand-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.case__tags span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  letter-spacing: 0.02em;
}

.case__title {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.3;
}

.case__desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.case__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.case__meta-item {
  display: flex;
  gap: 16px;
}

.case__meta-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  min-width: 110px;
}

.case__meta-value {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.case__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.case__link:hover {
  gap: 12px;
  color: var(--accent-strong);
}

/* ===== Process ===== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  padding: 0 8px;
}

.process-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  transition: all 0.3s var(--ease);
}

.process-step:hover .process-step__num {
  border-color: rgba(155, 138, 251, 0.4);
  background: var(--accent-soft);
  box-shadow: 0 0 24px var(--accent-glow);
}

.process-step__title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.process-step__desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 80px;
  align-items: center;
}

.about__photo-wrap {
  position: relative;
}

.about__photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.about__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92);
}

.about__photo-accent {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid rgba(155, 138, 251, 0.14);
  z-index: 1;
}

.about__content .section__label {
  margin-bottom: 14px;
}

.about__content .section__title {
  margin-bottom: 28px;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.about__text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about__tags span {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}

.about__tags span:hover {
  border-color: rgba(155, 138, 251, 0.35);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 36px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(155, 138, 251, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
}

.contact-card:hover {
  border-color: rgba(155, 138, 251, 0.28);
  background: var(--bg-card-hover);
  transform: translateX(5px);
}

.contact-card__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.contact-card__value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.footer__brand span {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer__logo {
  height: 36px;
  width: auto;
  margin: 0 auto;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}

.footer__logo:hover {
  opacity: 1;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin: 0;
  text-align: center;
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .process {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .process::before {
    display: none;
  }

  .case {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__photo-wrap {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .hero__spotlight,
  .hero__glow {
    animation: none !important;
    filter: none !important;
    opacity: 0.35;
  }
  .flip-card,
  .flip-card__inner {
    perspective: none;
    transform: none !important;
    transform-style: flat;
    will-change: auto;
  }
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #07070b;
    border-bottom: none;
    flex-direction: column;
    padding: 28px;
    gap: 18px;
    z-index: 80;
  }

  .nav.open {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .header__actions .btn--sm {
    display: none;
  }

  .nav__messenger {
    display: block;
    color: var(--accent-strong);
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 48px) 0 80px;
  }

  .hero__title {
    font-size: 2.4rem;
  }

  .hero__scroll {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .section__header {
    margin-bottom: 48px;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .contact-form {
    padding: 28px;
  }

  /* footer already centered */
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .hero__title {
    font-size: 2.1rem;
  }

  .hero__desc {
    font-size: 1rem;
  }

  .service-card {
    padding: 28px 24px;
  }
}

/* ===== Flip Cards Portfolio ===== */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
  perspective: 1400px;
}

.flip-card {
  height: 270px;
  cursor: pointer;
  perspective: 1400px;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.flip-card:hover .flip-card__inner,
.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg) scale(1.02);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.flip-card:hover .flip-card__front,
.flip-card:hover .flip-card__back,
.flip-card.is-flipped .flip-card__front,
.flip-card.is-flipped .flip-card__back {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(155, 138, 251, 0.15),
    0 0 40px rgba(155, 138, 251, 0.08);
}

.flip-card__front {
  background: var(--bg-card);
}

.flip-card__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card:hover .flip-card__front img {
  transform: scale(1.04);
}

.flip-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px;
  background: linear-gradient(
    to top,
    rgba(8, 8, 12, 0.92) 0%,
    rgba(8, 8, 12, 0.45) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.flip-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}

.flip-card__back {
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(155, 138, 251, 0.12), transparent 55%),
    linear-gradient(160deg, #1a1a22 0%, #121218 50%, #0e0e14 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 22px;
  border-color: rgba(155, 138, 251, 0.12);
}

.flip-card__back-num {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.flip-card__back-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.flip-card__back-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.work-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.work-footer__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-footer__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.work-footer__value {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .flip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flip-card {
    height: 250px;
  }
}

@media (max-width: 560px) {
  .flip-grid {
    grid-template-columns: 1fr;
  }

  .flip-card {
    height: 230px;
  }

  .work-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Project blocks (portfolio) ===== */
.project-block {
  margin-bottom: 72px;
}
.project-block:last-child {
  margin-bottom: 0;
}
.project-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.project-block__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 8px;
}
.project-block__title {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.project-block__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 520px;
}

.tsm-preview {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.tsm-preview__card {
  background: linear-gradient(145deg, #f7f3ee 0%, #efe8df 100%);
  border: 1px solid rgba(196, 164, 132, 0.25);
  border-radius: 24px;
  padding: 36px 32px;
  color: #3d342c;
}
.tsm-preview__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9a7b;
  background: rgba(138, 154, 123, 0.15);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.tsm-preview__card h4 {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #3d342c;
}
.tsm-preview__card > p {
  color: #6b5e52;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.tsm-preview__card ul {
  list-style: none;
  margin-bottom: 28px;
  display: grid;
  gap: 8px;
}
.tsm-preview__card li {
  font-size: 0.9rem;
  color: #6b5e52;
  padding-left: 14px;
  position: relative;
}
.tsm-preview__card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c4a484;
}
.tsm-preview__card .btn--primary {
  background: #3d342c;
  color: #f7f3ee;
}
.tsm-preview__card .btn--primary:hover {
  background: #2a241f;
  box-shadow: 0 8px 24px rgba(61, 52, 44, 0.2);
}
.tsm-preview__meta {
  display: grid;
  gap: 14px;
  align-content: start;
}
.tsm-preview__meta-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.tsm-preview__meta-item strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.tsm-preview__meta-item span {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

@media (max-width: 800px) {
  .tsm-preview {
    grid-template-columns: 1fr;
  }
}

/* Coffee project card */
.coffee-preview__card {
  background: linear-gradient(145deg, #f4efe6 0%, #ebe3d6 100%) !important;
  border-color: rgba(107, 68, 35, 0.18) !important;
  color: #2c241c !important;
}
.coffee-preview__badge {
  color: #6b4423 !important;
  background: rgba(107, 68, 35, 0.12) !important;
}
.coffee-preview__card h4,
.coffee-preview__card p,
.coffee-preview__card li {
  color: #2c241c !important;
}
.coffee-preview__card li::before {
  background: #c4785a !important;
}
.coffee-preview__card .btn--primary {
  background: #6b4423 !important;
  color: #fffaf3 !important;
}
.coffee-preview__card .btn--primary:hover {
  background: #4a2f18 !important;
}

.project-block + .project-block {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* SEO keyword feature spotlight */
.feature-spotlight {
  margin-top: 48px;
  padding: 36px 32px;
  border-radius: 24px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(167, 139, 250, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(94, 234, 212, 0.08), transparent 50%),
    var(--bg-card);
  position: relative;
  overflow: hidden;
}
.feature-spotlight__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.14);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.feature-spotlight__title {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.feature-spotlight__text {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 640px;
  margin-bottom: 22px;
  line-height: 1.65;
}
.feature-spotlight__text strong {
  color: var(--text);
  font-weight: 600;
}
.feature-spotlight__text em {
  font-style: normal;
  color: #c4b5fd;
}
.feature-spotlight__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  max-width: 720px;
}
.feature-spotlight__list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.feature-spotlight__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.55);
}
@media (max-width: 640px) {
  .feature-spotlight { padding: 28px 20px; }
  .feature-spotlight__list { grid-template-columns: 1fr; }
}

/* Unified work list with previews — compact */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}
.work-item {
  display: grid;
  grid-template-columns: 36px 120px 1fr auto;
  gap: 12px 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.work-item:last-child {
  border-bottom: 1px solid var(--border);
}
.work-item__num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.work-item__preview {
  display: block;
  width: 120px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
  transition: transform 0.25s ease, border-color 0.25s;
}
.work-item__preview:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.4);
}
.work-item__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-item__preview--tsm {
  background: linear-gradient(145deg, #1a1216 0%, #2a1a22 50%, #3d2430 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 10px;
  gap: 2px;
}
.work-item__preview--ai {
  background:
    radial-gradient(ellipse 80% 70% at 80% 20%, rgba(167,139,250,.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(34,211,238,.2), transparent 50%),
    #0a0a12;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 10px;
  gap: 2px;
}
.work-item__preview-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.work-item__preview-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f4f4f7;
  letter-spacing: -0.02em;
}
.work-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.work-item__tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary, var(--text-muted));
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.work-item__title {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1.25;
}
.work-item__desc {
  color: var(--text-secondary, var(--text-muted));
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 520px;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-item__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.work-item__facts span {
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 11px;
}
.work-item__facts span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.work-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.work-item__link:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.08);
  transform: translateY(-1px);
}
@media (max-width: 900px) {
  .work-item {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px 12px;
    align-items: start;
    padding: 14px 0;
  }
  .work-item__preview {
    grid-column: 2;
    width: 100%;
    max-width: 220px;
    height: 100px;
  }
  .work-item__body { grid-column: 2; }
  .work-item__link { grid-column: 2; justify-self: start; }
}

.header__contact {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.header__contact:hover { color: var(--text); }
@media (max-width: 980px) {
  .header__contact--phone { display: none; }
}
@media (max-width: 720px) {
  .header__contact { display: none; }
}

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.price-card {
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transform: translateY(0) scale(1);
  transition: transform .25s cubic-bezier(.22,.8,.36,1), border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.price-card:hover,
.price-card:focus-within {
  transform: translateY(-8px) scale(1.03);
  border-color: #9b8afb;
  background: #1a1a24;
  box-shadow: 0 18px 44px rgba(155, 138, 251, 0.22);
}
.price-card:hover .price-card__sum {
  color: #c4b8ff;
}
@media (prefers-reduced-motion: reduce) {
  .price-card,
  .price-card:hover,
  .price-card:focus-within {
    transition: none;
    transform: none;
  }
}
.price-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.price-card__sum {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.price-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary, var(--text-muted));
  line-height: 1.5;
}
.price-note {
  margin-top: 22px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.guide-link {
  color: #c4b8ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
}
.guide-link:hover {
  color: #fff;
}
@media (max-width: 768px) {
  .price-grid { grid-template-columns: 1fr; }
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 4px 18px;
  transition: border-color 0.2s;
}
.faq-item:hover {
  border-color: rgba(155, 138, 251, 0.35);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.2s;
  margin-top: -4px;
}
.faq-item summary:hover::after {
  border-color: var(--accent);
  transform: rotate(45deg) scale(1.15);
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: var(--accent);
}
.faq-item[open] {
  border-color: rgba(155, 138, 251, 0.3);
}
.faq-item p {
  color: var(--text-secondary, var(--text-muted));
  font-size: 0.95rem;
  line-height: 1.6;
  padding-bottom: 14px;
}


/* ===== Works collapsible ===== */
.work-spoiler {
  margin-top: 8px;
}
.work-spoiler__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  text-align: left;
  color: var(--text);
}
.work-spoiler__toggle:hover {
  border-color: rgba(155, 138, 251, 0.35);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px rgba(155, 138, 251, 0.08);
}
.work-spoiler__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.work-spoiler__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.work-spoiler__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-spoiler__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.work-spoiler__meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.work-spoiler__chevron {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, background 0.25s;
  background: rgba(255,255,255,0.03);
}
.work-spoiler__toggle:hover .work-spoiler__chevron {
  border-color: rgba(155, 138, 251, 0.4);
  background: var(--accent-soft);
}
.work-spoiler.is-open .work-spoiler__chevron {
  transform: rotate(180deg);
  border-color: rgba(155, 138, 251, 0.45);
  background: var(--accent-soft);
}
.work-spoiler__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-spoiler.is-open .work-spoiler__panel {
  grid-template-rows: 1fr;
}
.work-spoiler__inner {
  overflow: hidden;
  min-height: 0;
}
.work-spoiler__inner .work-list {
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease 0.05s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}
.work-spoiler.is-open .work-spoiler__inner .work-list {
  opacity: 1;
  transform: translateY(0);
}


/* If JS fails, content must remain visible */
.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* ===== 2026-09 Retention / first-screen redesign ===== */
.header {
  background: rgba(7, 7, 11, 0.78);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.header.scrolled {
  background: rgba(7, 7, 11, 0.94);
}
.btn--primary {
  background: linear-gradient(135deg, #a994ff 0%, #8e78f4 52%, #b6a8ff 100%);
  color: #08080c;
  box-shadow: 0 8px 28px rgba(155, 138, 251, 0.16);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #b9adff 0%, #9d8afb 52%, #cabfff 100%);
}

.hero--conversion {
  min-height: 100vh;
  padding: calc(var(--header-h) + 54px) 0 86px;
  align-items: center;
}
.hero--conversion::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155,138,251,.28), transparent);
}
.hero__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: clamp(42px, 6vw, 84px);
  align-items: center;
}
.hero--conversion .hero__content {
  max-width: 690px;
}
.hero__microcopy {
  margin: 0 0 18px;
  color: #c8c5d6;
  font-size: .92rem;
  line-height: 1.45;
  letter-spacing: -.01em;
}
.hero--conversion .hero__badge {
  margin-bottom: 20px;
  background: rgba(18,18,26,.7);
  border-color: rgba(155,138,251,.18);
}
.hero--conversion .hero__title {
  font-size: clamp(2.85rem, 4.75vw, 4.55rem);
  line-height: 1.03;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero--conversion .hero__title em {
  background: linear-gradient(92deg, #e7e2ff 0%, #ad9cff 40%, #8f78f4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 56px rgba(155,138,251,.24);
}
.hero--conversion .hero__desc {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: 1.04rem;
  line-height: 1.65;
}
.hero--conversion .hero__actions {
  margin-bottom: 34px;
}
.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 690px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero__proof-item {
  min-width: 0;
  padding-right: 18px;
}
.hero__proof-item + .hero__proof-item {
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.08);
}
.hero__proof-item strong {
  display: block;
  margin-bottom: 5px;
  color: #f5f3ff;
  font-size: 1.38rem;
  line-height: 1;
  letter-spacing: -.04em;
}
.hero__proof-item span {
  display: block;
  color: var(--text-muted);
  font-size: .75rem;
  line-height: 1.4;
}

.hero__visual {
  position: relative;
  min-height: 570px;
  perspective: 1100px;
}
.hero-preview {
  position: absolute;
  top: 42px;
  left: 50%;
  width: min(100%, 520px);
  transform: translateX(-50%) rotateY(-4deg) rotateX(1.5deg);
  transform-style: preserve-3d;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 25px;
  overflow: hidden;
  background: #111118;
  box-shadow:
    0 42px 90px rgba(0,0,0,.45),
    0 0 0 1px rgba(155,138,251,.05),
    0 0 90px rgba(107,89,220,.13);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.hero__visual:hover .hero-preview {
  transform: translateX(-50%) rotateY(-1deg) rotateX(0deg) translateY(-4px);
  box-shadow: 0 50px 110px rgba(0,0,0,.5), 0 0 100px rgba(155,138,251,.18);
}
.hero-preview__chrome {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: rgba(17,17,24,.96);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hero-preview__chrome > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43434d;
}
.hero-preview__chrome > span:nth-child(1) { background: #ff7b8c; }
.hero-preview__chrome > span:nth-child(2) { background: #f4bd68; }
.hero-preview__chrome > span:nth-child(3) { background: #5dd79b; }
.hero-preview__chrome div {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(155,138,251,.08);
  color: #9f95c8;
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-preview__screen {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #16161e;
}
.hero-preview__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease-out), filter .7s ease;
}
.hero-preview__screen:hover img { transform: scale(1.035); filter: saturate(1.07); }
.hero-preview__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,11,.86) 0%, rgba(7,7,11,.2) 46%, transparent 70%);
}
.hero-preview__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-preview__caption span {
  margin-bottom: 5px;
  color: #d8d2ff;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-preview__caption strong {
  font-size: 1.55rem;
  letter-spacing: -.035em;
}
.hero-preview__caption small { color: #c0bdc9; font-size: .76rem; }

.hero-float-card {
  position: absolute;
  z-index: 4;
  width: 190px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 17px;
  background: rgba(14,14,20,.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 22px 54px rgba(0,0,0,.34);
  transition: transform .35s var(--ease-out), border-color .3s ease, box-shadow .3s ease;
}
.hero-float-card:hover {
  border-color: rgba(155,138,251,.35);
  box-shadow: 0 26px 60px rgba(0,0,0,.42), 0 0 40px rgba(155,138,251,.11);
}
.hero-float-card img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 9px;
}
.hero-float-card > span { display: flex; flex-direction: column; padding: 0 4px 3px; }
.hero-float-card small { color: var(--accent-strong); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-float-card strong { margin-top: 2px; font-size: .78rem; font-weight: 600; }
.hero-float-card--left {
  left: -18px;
  top: 325px;
  transform: rotate(-5deg);
  animation: heroCardFloatLeft 6.4s ease-in-out infinite alternate;
}
.hero-float-card--left:hover { transform: rotate(-2deg) translateY(-5px); }
.hero-float-card--right {
  right: -18px;
  top: 14px;
  transform: rotate(4.5deg);
  animation: heroCardFloatRight 7.2s ease-in-out infinite alternate;
}
.hero-float-card--right:hover { transform: rotate(2deg) translateY(-5px); }
@keyframes heroCardFloatLeft { to { translate: 0 -8px; } }
@keyframes heroCardFloatRight { to { translate: 0 9px; } }

.hero-impression {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 22px;
  width: min(330px, 70%);
  padding: 16px 18px 15px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(10,10,15,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 55px rgba(0,0,0,.35);
}
.hero-impression__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
  color: #c5c2ce;
  font-size: .72rem;
}
.hero-impression__top strong { color: #ece8ff; font-size: .78rem; }
.hero-impression__track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin-bottom: 9px;
}
.hero-impression__track i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #7f69ee, #c3b6ff);
  animation: fiveSecondImpression 5s linear infinite;
}
.hero-impression > small {
  display: block;
  color: #777483;
  font-size: .63rem;
  line-height: 1.45;
}
@keyframes fiveSecondImpression {
  0% { transform: scaleX(0); opacity: .55; }
  92% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

.work-item--new {
  border-color: rgba(155,138,251,.16);
  background: linear-gradient(135deg, rgba(155,138,251,.045), transparent 42%), var(--bg-card);
}
.work-item__preview { position: relative; }
.work-item__new-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(9,9,13,.8);
  color: #d7ceff;
  border: 1px solid rgba(155,138,251,.26);
  backdrop-filter: blur(10px);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
}

/* Make the selected-work spoiler feel intentional when closed. */
.work-spoiler:not(.is-open) .work-spoiler__toggle {
  background:
    radial-gradient(500px circle at 12% 50%, rgba(155,138,251,.08), transparent 55%),
    var(--bg-card);
}

@media (max-width: 1120px) {
  .hero__inner--split { grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: 42px; }
  .hero-float-card { width: 165px; }
  .hero-float-card--left { left: -8px; }
  .hero-float-card--right { right: -8px; }
  .hero--conversion .hero__title { font-size: clamp(2.65rem, 4.6vw, 3.75rem); }
}

@media (max-width: 960px) {
  .hero--conversion { padding-top: calc(var(--header-h) + 58px); min-height: auto; }
  .hero__inner--split { grid-template-columns: 1fr; gap: 50px; }
  .hero--conversion .hero__content { max-width: 760px; }
  .hero--conversion .hero__title { font-size: clamp(3rem, 7.2vw, 4.6rem); }
  .hero__visual { width: min(100%, 650px); min-height: 590px; margin: 0 auto; }
  .hero-preview { width: min(100%, 560px); }
  .hero-float-card--left { left: 0; }
  .hero-float-card--right { right: 0; }
  .hero__scroll { display: none; }
}

@media (max-width: 700px) {
  .hero--conversion { padding: calc(var(--header-h) + 34px) 0 62px; }
  .hero--conversion .hero__badge { margin-bottom: 16px; }
  .hero__microcopy { font-size: .82rem; }
  .hero--conversion .hero__title { font-size: clamp(2.45rem, 11vw, 3.4rem); margin-bottom: 20px; }
  .hero--conversion .hero__desc { font-size: .94rem; margin-bottom: 26px; }
  .hero--conversion .hero__desc br { display: none; }
  .hero--conversion .hero__actions { flex-direction: column; align-items: stretch; }
  .hero--conversion .hero__actions .btn { width: 100%; }
  .hero__proof { grid-template-columns: 1fr; gap: 14px; }
  .hero__proof-item, .hero__proof-item + .hero__proof-item { padding: 0 0 14px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .hero__proof-item:last-child { border-bottom: 0; }
  .hero__proof-item { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: start; }
  .hero__proof-item strong { font-size: 1.16rem; margin: 0; }
  .hero__proof-item span { font-size: .72rem; }
  .hero__visual { min-height: 430px; margin-top: 0; }
  .hero-preview { top: 12px; width: 100%; border-radius: 20px; transform: none; }
  .hero__visual:hover .hero-preview { transform: translateY(-2px); }
  .hero-preview__chrome { height: 36px; }
  .hero-preview__caption { left: 17px; right: 17px; bottom: 15px; }
  .hero-preview__caption strong { font-size: 1.22rem; }
  .hero-preview__caption small { font-size: .66rem; }
  .hero-float-card { display: none; }
  .hero-impression { right: 10px; left: 10px; bottom: 0; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-card--left, .hero-float-card--right, .hero-impression__track i { animation: none !important; }
  .hero-impression__track i { transform: scaleX(.72); }
}

/* Final first-screen polish */
.hero--conversion .hero__scroll { display: none; }
.hero-float-card--right { right: -38px; top: -24px; width: 174px; }
@media (max-width: 1120px) { .hero-float-card--right { right: -12px; top: -18px; width: 158px; } }

/* ===== UX refinement v3 — 2026-09-04 ===== */
/* Make websites the primary offer, presentations/AI secondary. */
.services {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.service-card--primary {
  grid-column: 1 / -1;
  padding: 42px 36px;
  background:
    radial-gradient(700px circle at 10% 0%, rgba(155,138,251,.12), transparent 48%),
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 52%),
    var(--bg-card);
  border-color: rgba(155,138,251,.18);
}
.service-card--primary .service-card__title {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}
.service-card--primary .service-card__desc {
  max-width: 760px;
  font-size: 1rem;
}
.service-card--primary .service-card__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

/* Featured case stays visible; the rest remain under the spoiler. */
.work-list--featured {
  margin: 2px 0 18px;
}
.work-list--featured .work-item {
  grid-template-columns: 42px minmax(240px, 320px) minmax(0, 1fr) auto;
  gap: 18px 24px;
  padding: 22px;
  border: 1px solid rgba(155,138,251,.20);
  border-radius: 22px;
  background:
    radial-gradient(600px circle at 12% 0%, rgba(155,138,251,.10), transparent 52%),
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 55%),
    var(--bg-card);
  box-shadow: 0 24px 70px rgba(0,0,0,.16);
}
.work-list--featured .work-item__preview {
  width: 100%;
  height: 178px;
  border-radius: 14px;
}
.work-list--featured .work-item__title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}
.work-list--featured .work-item__desc {
  max-width: 620px;
  -webkit-line-clamp: 3;
}
.work-list--featured .work-item__link {
  align-self: center;
}
.work-list--featured .work-item:last-child {
  border-bottom: 1px solid rgba(155,138,251,.20);
}
.work-spoiler {
  margin-top: 14px;
}

/* Trust without fabricated testimonials. */
.trust-section {
  position: relative;
  overflow: hidden;
}
.trust-section::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -220px;
  top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,138,251,.09), transparent 68%);
  pointer-events: none;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.trust-card {
  min-height: 220px;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
  transition: transform .28s var(--ease), border-color .28s ease, background .28s ease;
}
.trust-card:hover {
  transform: translateY(-5px);
  border-color: rgba(155,138,251,.28);
  background: var(--bg-card-hover);
}
.trust-card > strong {
  display: block;
  margin-bottom: 26px;
  color: var(--accent-strong);
  font-size: clamp(1.55rem, 2vw, 2rem);
  letter-spacing: -.05em;
}
.trust-card h3 {
  margin: 0 0 9px;
  font-size: 1rem;
  line-height: 1.3;
}
.trust-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.6;
}
.trust-industries {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.018);
}
.trust-industries > span {
  margin-right: 6px;
  color: var(--text-muted);
  font-size: .82rem;
}
.trust-industries b {
  padding: 6px 10px;
  border: 1px solid rgba(155,138,251,.16);
  border-radius: 999px;
  color: #c9c2ef;
  background: rgba(155,138,251,.06);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .02em;
}

/* Pricing: keep the decision to four options. */
.price-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.price-card--custom {
  background:
    radial-gradient(360px circle at 100% 0%, rgba(155,138,251,.10), transparent 55%),
    var(--bg-card);
}
.price-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
  color: var(--text-secondary);
  font-size: .88rem;
}

/* FAQ: technical detail stays available, but no longer dominates the page. */
.faq-item--more {
  margin-top: 6px;
  border-style: dashed;
  background: rgba(155,138,251,.025);
}
.faq-more-content {
  padding: 0 0 14px;
}
.faq-more-content p {
  margin: 0 0 9px;
  padding-bottom: 0;
}
.faq-more-content p:last-child { margin-bottom: 0; }
.faq-more-content strong { color: var(--text); }

/* With the 5-second widget gone the project preview can breathe. */
.hero__visual { min-height: 525px; }

@media (max-width: 1120px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-list--featured .work-item { grid-template-columns: 34px 220px minmax(0, 1fr); }
  .work-list--featured .work-item__link { grid-column: 3; justify-self: start; }
}

@media (max-width: 1024px) {
  .services { max-width: none; }
  .service-card--primary { grid-column: auto; }
  .service-card--primary .service-card__list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .work-list--featured .work-item {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto auto;
    padding: 18px;
  }
  .work-list--featured .work-item__preview {
    grid-column: 2;
    width: 100%;
    max-width: none;
    height: clamp(160px, 34vw, 260px);
  }
  .work-list--featured .work-item__body,
  .work-list--featured .work-item__link { grid-column: 2; }
}

@media (max-width: 720px) {
  .trust-grid,
  .price-grid--compact { grid-template-columns: 1fr; }
  .trust-card { min-height: auto; }
  .price-extras { align-items: flex-start; flex-direction: column; }
  .service-card--primary { padding: 34px 26px; }
}

/* ===== Mobile reconstruction v4 — 2026-09-04 ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }

  .container { padding-left: 20px; padding-right: 20px; }

  .header__inner { gap: 10px; }
  .logo__img { height: 44px; }
  .header__actions { gap: 10px; }
  .lang-btn { width: 44px; height: 44px; }
  .burger { width: 34px; height: 34px; }

  /* Sections should feel like mobile sections, not shrunken desktop blocks. */
  .section { padding: 58px 0; }
  .section__header { margin-bottom: 30px; }
  .section__label { margin-bottom: 10px; font-size: .72rem; }
  .section__title { font-size: clamp(1.9rem, 9vw, 2.35rem); line-height: 1.08; }
  .section__lead { margin-top: 12px; font-size: .96rem; line-height: 1.6; }

  /* Hero: fully flow-based on mobile. No absolute-position desktop composition. */
  .hero--conversion {
    padding: calc(var(--header-h) + 28px) 0 54px;
    min-height: auto;
  }
  .hero__inner--split { display: block; }
  .hero--conversion .hero__content { max-width: none; }
  .hero--conversion .hero__badge { margin-bottom: 14px; }
  .hero__microcopy { margin-bottom: 12px; font-size: .78rem; line-height: 1.45; }
  .hero--conversion .hero__title {
    font-size: clamp(2.25rem, 11.2vw, 3.05rem);
    line-height: 1.02;
    margin-bottom: 18px;
    text-wrap: pretty;
  }
  .hero--conversion .hero__desc { font-size: .94rem; line-height: 1.58; margin-bottom: 22px; }
  .hero--conversion .hero__actions { gap: 10px; margin-bottom: 28px; }
  .hero--conversion .hero__actions .btn { min-height: 50px; }

  .hero__proof { gap: 0; padding-top: 8px; }
  .hero__proof-item,
  .hero__proof-item + .hero__proof-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .hero__proof-item:last-child { border-bottom: 0; }
  .hero__proof-item strong { font-size: 1.32rem; align-self: start; }
  .hero__proof-item span { font-size: .75rem; line-height: 1.45; }

  .hero__visual {
    width: 100%;
    min-height: 0 !important;
    margin: 30px 0 0;
    perspective: none;
  }
  .hero-preview {
    position: relative;
    inset: auto;
    top: auto;
    left: auto !important;
    width: 100%;
    transform: none !important;
    border-radius: 18px;
    box-shadow: 0 22px 56px rgba(0,0,0,.38), 0 0 48px rgba(107,89,220,.10);
  }
  .hero__visual:hover .hero-preview { transform: none !important; }
  .hero-preview__chrome { height: 32px; padding: 0 11px; }
  .hero-preview__chrome div { font-size: .55rem; padding: 4px 7px; }
  .hero-preview__screen { aspect-ratio: 16 / 10; }
  .hero-preview__caption { left: 15px; right: 15px; bottom: 14px; }
  .hero-preview__caption span { font-size: .58rem; }
  .hero-preview__caption strong { font-size: 1.18rem; }
  .hero-preview__caption small { font-size: .62rem; line-height: 1.35; }
  .hero-float-card,
  .hero-impression { display: none !important; }

  /* Services: one deliberate card per row. */
  .services {
    grid-template-columns: 1fr !important;
    gap: 14px;
    max-width: none !important;
  }
  .service-card,
  .service-card--primary {
    grid-column: 1 !important;
    padding: 24px 20px;
    border-radius: 18px;
  }
  .service-card__top { margin-bottom: 18px; }
  .service-card__icon { width: 46px; height: 46px; border-radius: 13px; }
  .service-card__title,
  .service-card--primary .service-card__title { font-size: 1.35rem; margin-bottom: 9px; }
  .service-card__desc,
  .service-card--primary .service-card__desc {
    max-width: none;
    font-size: .94rem;
    line-height: 1.58;
    margin-bottom: 18px;
  }
  .service-card__list,
  .service-card--primary .service-card__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: none;
  }
  .service-card__list li { font-size: .86rem; line-height: 1.5; }

  /* Featured work: a vertical mobile card, not a desktop grid squeezed into a phone. */
  .work-list--featured .work-item {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 16px;
    border-radius: 18px;
  }
  .work-list--featured .work-item__num {
    align-self: flex-start;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .68rem;
  }
  .work-list--featured .work-item__preview {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }
  .work-list--featured .work-item__body,
  .work-list--featured .work-item__link { width: 100%; }
  .work-list--featured .work-item__link { justify-content: center; min-height: 46px; }
  .work-spoiler__toggle { padding: 16px; border-radius: 14px; }
  .work-spoiler__title { font-size: .96rem; }
  .work-spoiler__meta { font-size: .76rem; }
  .work-spoiler__chevron { width: 36px; height: 36px; }

  /* Process: number + copy in one compact row. */
  .process {
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  .process::before { display: none; }
  .process-step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 5px;
    padding: 19px 0;
    border-bottom: 1px solid rgba(255,255,255,.065);
  }
  .process-step:last-child { border-bottom: 0; }
  .process-step__num {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
    margin: 0;
    font-size: .75rem;
  }
  .process-step__title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: 1.05rem;
  }
  .process-step__desc {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: .88rem;
    line-height: 1.55;
  }

  /* General decision blocks stay comfortably single-column. */
  .trust-grid,
  .price-grid--compact { grid-template-columns: 1fr !important; gap: 12px; }
  .trust-card { min-height: auto; padding: 21px 19px; }
  .trust-card > strong { margin-bottom: 16px; }
  .price-extras { align-items: flex-start; flex-direction: column; }

  .contact-form { padding: 22px 18px; border-radius: 18px; }
  .contact-card { padding: 16px 18px; }
}

@media (max-width: 390px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero--conversion .hero__title { font-size: 2.16rem; }
  .hero__proof-item,
  .hero__proof-item + .hero__proof-item { grid-template-columns: 70px minmax(0, 1fr); }
  .service-card,
  .service-card--primary { padding: 22px 18px; }
}


/* ===== Mobile UX consolidation v5 — 2026-09-16 =====
   Final mobile layer. Kept at the end intentionally so legacy responsive rules
   cannot reintroduce desktop geometry on phones/tablets. */
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  overflow-x: clip;
}
button,
a,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 960px) {
  .header__actions .btn--sm { display: none !important; }
  .nav__messenger { display: block !important; }
  .burger {
    display: flex !important;
    width: 44px;
    height: 44px;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
  }
  .burger span { width: 100%; }

  .nav {
    top: var(--header-h);
    padding: 14px max(20px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    gap: 0;
    background: rgba(7,7,11,.985);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .nav a.nav__link {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 14px 4px;
    font-size: 1.05rem;
    line-height: 1.2;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav a.nav__link:last-child { border-bottom: 0; }
  .nav__messenger { color: var(--accent-strong) !important; }
  .nav__phone { margin-top: 6px; color: #fff !important; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  body { padding-bottom: env(safe-area-inset-bottom); }
  .container {
    width: 100%;
    max-width: none;
    padding-left: clamp(16px, 5vw, 20px);
    padding-right: clamp(16px, 5vw, 20px);
  }

  .header {
    background: rgba(7,7,11,.94);
    border-bottom-color: rgba(255,255,255,.07);
  }
  .header__inner { gap: 8px; }
  .logo { min-width: 0; }
  .logo__img { height: 40px; }
  .header__actions { gap: 8px; }
  .lang-btn {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  /* First screen: faster hierarchy and less vertical noise. */
  .hero--conversion {
    padding: calc(var(--header-h) + 22px) 0 44px;
  }
  .hero--conversion .hero__badge {
    margin-bottom: 14px;
    padding: 7px 10px;
    font-size: .69rem;
  }
  .hero__microcopy { display: none; }
  .hero--conversion .hero__title {
    max-width: 11ch;
    font-size: clamp(2.15rem, 10.6vw, 2.85rem);
    line-height: .99;
    letter-spacing: -.055em;
    margin-bottom: 16px;
    text-wrap: balance;
  }
  .hero--conversion .hero__desc {
    max-width: 34rem;
    margin-bottom: 20px;
    font-size: .94rem;
    line-height: 1.52;
  }
  .hero--conversion .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-bottom: 24px;
  }
  .hero--conversion .hero__actions .btn {
    width: 100%;
    min-height: 50px;
    padding: 13px 18px;
  }
  /* On mobile the conversion action comes first visually. */
  .hero--conversion .hero__actions .btn:first-child {
    order: 2;
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-secondary);
    box-shadow: none;
  }
  .hero--conversion .hero__actions .btn:nth-child(2) {
    order: 1;
    background: var(--accent);
    border-color: transparent;
    color: #0c0c0f;
  }

  .hero__proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 0;
    max-width: none;
  }
  .hero__proof-item,
  .hero__proof-item + .hero__proof-item {
    display: block;
    min-width: 0;
    padding: 11px 10px 10px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;
    background: rgba(255,255,255,.025);
  }
  .hero__proof-item:last-child { border-bottom: 1px solid rgba(255,255,255,.07); }
  .hero__proof-item strong {
    display: block;
    margin: 0 0 3px;
    font-size: 1.18rem;
    line-height: 1.1;
    letter-spacing: -.035em;
  }
  .hero__proof-item span { font-size: 0; line-height: 1; }
  html[lang="ru"] .hero__proof-item span::after { content: attr(data-short-ru); }
  html[lang="en"] .hero__proof-item span::after { content: attr(data-short-en); }
  .hero__proof-item span::after {
    display: block;
    color: var(--text-muted);
    font-size: .65rem;
    line-height: 1.25;
  }

  .hero__visual { margin-top: 24px; }
  .hero-preview {
    border-radius: 16px;
    box-shadow: 0 18px 46px rgba(0,0,0,.34), 0 0 36px rgba(107,89,220,.08);
  }
  .hero-preview__screen { aspect-ratio: 16 / 9.4; }
  .hero-preview__caption { left: 13px; right: 13px; bottom: 12px; }
  .hero-preview__caption strong { font-size: 1.06rem; }

  .section { padding: 52px 0; }
  .section__header { margin-bottom: 26px; }
  .section__title {
    font-size: clamp(1.8rem, 8.2vw, 2.25rem);
    line-height: 1.06;
    letter-spacing: -.045em;
  }
  .section__lead { font-size: .93rem; line-height: 1.55; }

  .service-card,
  .service-card--primary {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .service-card__top { margin-bottom: 15px; }
  .service-card__icon { width: 42px; height: 42px; }
  .service-card__title,
  .service-card--primary .service-card__title { font-size: 1.24rem; }
  .service-card__desc,
  .service-card--primary .service-card__desc { font-size: .91rem; line-height: 1.52; }
  .service-card__list li { font-size: .83rem; }

  .work-list--featured .work-item { padding: 14px; gap: 12px; }
  .work-list--featured .work-item__preview { border-radius: 11px; }
  .work-list--featured .work-item__title { font-size: 1.2rem; }
  .work-list--featured .work-item__desc { font-size: .88rem; line-height: 1.5; }
  .work-spoiler__toggle { min-height: 64px; padding: 13px 14px; }
  .work-spoiler__left { min-width: 0; }
  .work-spoiler__title { white-space: normal; }
  .work-spoiler__meta { white-space: normal; line-height: 1.35; }

  .trust-grid { gap: 10px; }
  .trust-card { padding: 18px 17px; border-radius: 15px; }
  .trust-card > strong { margin-bottom: 11px; font-size: 1.55rem; }
  .trust-card p { font-size: .84rem; line-height: 1.5; }
  .trust-industries { padding: 12px; gap: 6px; }

  .price-card {
    padding: 19px 17px;
    border-radius: 15px;
    cursor: default;
  }
  .price-card__sum { font-size: 1.32rem; }
  .price-card__desc { font-size: .86rem; }
  .price-note { font-size: .84rem; line-height: 1.5; }
  .guide-link { white-space: normal; }
  .price-extras { padding: 14px 15px; }

  .process-step { grid-template-columns: 44px minmax(0,1fr); column-gap: 14px; padding: 17px 0; }
  .process-step__num { width: 42px; height: 42px; }
  .process-step__title { font-size: 1rem; }
  .process-step__desc { font-size: .85rem; }

  .about { gap: 28px; }
  .about__photo-wrap { max-width: 220px; margin: 0 auto; }
  .about__photo-accent { inset: 12px -12px -12px 12px; }
  .about__content .section__title { margin-bottom: 20px; }
  .about__text { gap: 12px; margin-bottom: 24px; }
  .about__text p { font-size: .94rem; line-height: 1.62; }
  .about__tags { gap: 7px; }
  .about__tags span { padding: 7px 11px; font-size: .75rem; }

  .faq-list { gap: 8px; }
  .faq-item { padding: 2px 14px; border-radius: 13px; }
  .faq-item summary { min-height: 52px; padding: 12px 0; font-size: .92rem; line-height: 1.35; }
  .faq-item p { font-size: .87rem; line-height: 1.55; padding-bottom: 13px; }

  .contact { gap: 18px; }
  .contact-form { padding: 19px 16px; border-radius: 16px; }
  .form-group { margin-bottom: 16px; }
  .form-group label { margin-bottom: 7px; }
  .form-group input,
  .form-group textarea {
    min-height: 50px;
    padding: 13px 14px;
    font-size: 16px; /* prevents Safari auto-zoom */
    border-radius: 11px;
  }
  .form-group textarea { min-height: 116px; }
  .contact-side { gap: 8px; }
  .contact-card {
    min-height: 56px;
    padding: 12px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .contact-card__label { flex: 0 0 auto; }
  .contact-card__value {
    min-width: 0;
    max-width: 68%;
    text-align: right;
    font-size: .91rem;
    overflow-wrap: anywhere;
  }

  .footer { padding: 38px 0 calc(94px + env(safe-area-inset-bottom)); }
  .footer__links { justify-content: center; }

  .mobile-sticky-cta {
    position: fixed;
    z-index: 92;
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(155,138,251,.96);
    color: #0c0c0f;
    font-size: .92rem;
    font-weight: 650;
    box-shadow: 0 16px 40px rgba(0,0,0,.42), 0 8px 26px rgba(155,138,251,.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  .mobile-sticky-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  body.nav-open .mobile-sticky-cta { display: none; }
}

/* Touch devices must not inherit hover-only motion. */
@media (hover: none), (pointer: coarse) {
  .btn--primary:hover,
  .btn--ghost:hover,
  .service-card:hover,
  .trust-card:hover,
  .price-card:hover,
  .price-card:focus-within,
  .contact-card:hover,
  .work-item__preview:hover,
  .about__tags span:hover {
    transform: none !important;
    box-shadow: none;
  }
  .service-card:hover::before { opacity: 0 !important; }
  html body .price-card:hover,
  html body .price-card:focus-within {
    transform: none !important;
    border-color: var(--border) !important;
    background: var(--bg-card) !important;
    box-shadow: none !important;
  }
  html body .price-card:hover .price-card__sum { color: inherit !important; }
  .contact-card:hover { background: var(--bg-card); border-color: var(--border); }
}

@media (max-width: 390px) {
  .hero--conversion .hero__title { font-size: 2.04rem; }
  .hero__proof { gap: 6px; }
  .hero__proof-item,
  .hero__proof-item + .hero__proof-item { padding: 10px 8px 9px; }
  .hero__proof-item span::after { font-size: .61rem; }
  .contact-card__value { max-width: 64%; font-size: .86rem; }
}

@media (max-width: 960px) and (max-height: 520px) {
  .nav a.nav__link { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-sticky-cta { transition: none; }
}

/* ===== Mobile menu hotfix v5.1 — 2026-09-16 =====
   backdrop-filter on the fixed header can make fixed descendants use the
   header as their containing block on mobile Chromium/WebKit. Keep the menu
   attached to the fixed header, but size it explicitly to the visible viewport. */
@media (max-width: 960px) {
  .header {
    overflow: visible;
  }

  .nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100%;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    box-sizing: border-box;
    z-index: 101;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .nav.open {
    display: flex !important;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: auto;
  }
}
@media (max-width: 960px) {
  .header__inner { position: static; }
}


/* ===== Scroll-reactive background — v3 2026-09-29 =====
   Background-only implementation: no z-index/position changes to page blocks,
   so header, hero and sections keep their original geometry. */
:root {
  --scroll-bg-x: 0px;
  --scroll-bg-y: 0px;
  --scroll-bg-x2: 0px;
  --scroll-bg-y2: 0px;
  --hero-scroll-y: 0px;
  --hero-grid-x: 0px;
  --hero-grid-y: 0px;
  --hero-glow1-x: 0px;
  --hero-glow1-y: 0px;
  --hero-glow2-x: 0px;
  --hero-glow2-y: 0px;
}

/* Moving site wallpaper visible in ordinary sections. */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(760px 560px at calc(12% + var(--scroll-bg-x)) calc(14% + var(--scroll-bg-y)), rgba(155,138,251,.16), transparent 68%),
    radial-gradient(680px 520px at calc(88% + var(--scroll-bg-x2)) calc(46% + var(--scroll-bg-y2)), rgba(84,112,255,.11), transparent 70%),
    radial-gradient(620px 460px at calc(46% - var(--scroll-bg-x)) calc(92% - var(--scroll-bg-y2)), rgba(189,126,255,.08), transparent 72%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Alternate sections keep their original dark surface, with a restrained moving glow. */
.section--alt {
  background-color: var(--bg-elevated);
  background-image:
    radial-gradient(720px 520px at calc(10% + var(--scroll-bg-x2)) calc(18% + var(--scroll-bg-y)), rgba(155,138,251,.085), transparent 70%),
    radial-gradient(620px 440px at calc(92% - var(--scroll-bg-x)) calc(76% - var(--scroll-bg-y2)), rgba(94,112,230,.055), transparent 72%);
  background-repeat: no-repeat;
}

/* Hero keeps its existing composition; only decorative layers move. */
.hero__spotlight {
  translate: 0 var(--hero-scroll-y);
}
.hero__glow--1 {
  translate: var(--hero-glow1-x) var(--hero-glow1-y);
}
.hero__glow--2 {
  translate: var(--hero-glow2-x) var(--hero-glow2-y);
}
.hero__grid {
  background-position: var(--hero-grid-x) var(--hero-grid-y);
}

/* A little more contrast so the movement is actually visible, without touching layout. */
@media (min-width: 721px) {
  .hero__glow--1 { filter: blur(82px); }
  .hero__glow--2 { filter: blur(78px); }
}

@media (max-width: 720px) {
  body { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__spotlight,
  .hero__glow--1,
  .hero__glow--2 {
    translate: 0 0 !important;
  }
  .hero__grid { background-position: 0 0 !important; }
}
