:root {
  --bg: #030304;
  --bg-soft: #070709;
  --bg-card: #0a0a0d;
  --bg-elevated: #0e0e12;
  --surface: #121218;
  --surface-hover: #18181f;
  --text: #f4f4f5;
  --text-muted: #8e8e93;
  --text-faint: #52525a;
  --text-display-muted: #0c0c0e;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.1);
  --accent: #e4e4e7;
  --accent-ghost: rgba(228, 228, 231, 0.14);
  --glow: rgba(255, 255, 255, 0.04);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.85);
  --shadow-float: 0 8px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.28s;
  /* Деловой акцент: фокус, линии, без кричащего неона */
  --focus-ring: 0 0 0 2px rgba(99, 102, 241, 0.22);
  --focus-border: rgba(129, 140, 248, 0.45);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
img,
video {
  max-width: 100%;
  height: auto;
}
::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fafafa;
}
a:focus-visible,
button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.to-top:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}
.nav a.nav__cta:focus-visible {
  outline-color: #0a0a0b;
}
@media (max-width: 768px) {
  body {
    padding-bottom: 88px;
  }
}

/* Фон: глубокий чёрный + едва заметная сетка и виньетка */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(40, 40, 50, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(30, 30, 60, 0.12), transparent),
    var(--bg);
}
.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 100%);
  opacity: 0.45;
}
@media (prefers-reduced-motion: no-preference) {
  .bg-grid::after {
    animation: bg-grid-drift 32s ease-in-out infinite;
  }
}

/* Тонкий зерновой слой (над сеткой, под контентом) */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: overlay;
  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");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.page-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-blobs__b {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.22;
  animation: blob-drift 28s ease-in-out infinite;
}
.page-blobs__b--1 {
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  top: -8%;
  left: -12%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, transparent 70%);
  animation-delay: 0s;
}
.page-blobs__b--2 {
  width: min(360px, 80vw);
  height: min(360px, 80vw);
  bottom: 5%;
  right: -10%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25) 0%, transparent 70%);
  animation-delay: -9s;
}
.page-blobs__b--3 {
  width: min(280px, 60vw);
  height: min(280px, 60vw);
  top: 42%;
  left: 35%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.12) 0%, transparent 70%);
  animation-delay: -5s;
  opacity: 0.18;
}
@keyframes blob-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(24px, -18px) scale(1.04);
  }
  66% {
    transform: translate(-16px, 12px) scale(0.98);
  }
}

/* Фон: едва заметный «сдвиг» сетки, без визуального шума */
@keyframes bg-grid-drift {
  0%,
  100% {
    background-position: 0 0, 0 0;
  }
  50% {
    background-position: 28px 20px, -12px 16px;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Крупный номер в hero — невесомое дыхание, только десктоп */
@keyframes hero-wm {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(calc(-50% - 4px)) translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-blobs__b {
    animation: none;
  }
  .bg-grid::after {
    animation: none;
  }
  .hero__watermark {
    animation: none;
  }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 8px 16px;
  background: var(--text);
  color: #000;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

code {
  font-size: 0.9em;
  background: var(--bg-elevated);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 3, 4, 0.85);
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
}
.header--scrolled {
  background: rgba(3, 3, 4, 0.92);
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--t) var(--ease-out-expo);
  white-space: nowrap;
  position: relative;
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease-out-expo);
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:not(.nav__cta):hover::after,
  .nav a:not(.nav__cta):focus-visible::after {
    transform: scaleX(1);
  }
}
.nav__cta {
  font-family: var(--font-display);
  color: #0a0a0b !important;
  padding: 8px 16px;
  background: var(--text);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s, filter 0.15s;
}
.nav__cta:hover,
.nav__cta:focus-visible {
  filter: brightness(1.08);
  color: #0a0a0b !important;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.12), 0 2px 4px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.header__menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.header__menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: center;
}

@media (max-width: 999px) {
  .header__menu {
    display: flex;
    margin-left: auto;
  }
  .nav {
    position: fixed;
    z-index: 199;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    background: rgba(5, 5, 7, 0.97);
    border-bottom: 1px solid var(--line);
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.2s, visibility 0.2s;
  }
  .header--open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-of-type {
    border-bottom: 0;
    margin-top: 8px;
    text-align: center;
  }
  .header--open .header__menu span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header--open .header__menu span:nth-child(2) {
    opacity: 0;
  }
  .header--open .header__menu span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  line-height: 1.15;
  transition: opacity 0.15s ease, color 0.15s ease, transform 0.25s var(--ease-out-expo);
}
.logo--text {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  column-gap: 10px;
  row-gap: 0;
  max-width: 100%;
}
.logo__wordmark {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  column-gap: 0;
  max-width: 100%;
}
.logo__mark {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.25s var(--ease-out-expo), filter 0.25s;
}
a.logo--text:hover .logo__mark,
a.logo--text:focus-visible .logo__mark {
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.12);
  filter: brightness(1.05);
}
.logo__name {
  color: #f4f4f5;
  letter-spacing: -0.045em;
}
.logo__tld {
  color: #71717a;
  font-weight: 800;
  letter-spacing: -0.02em;
}
a.logo--text:hover {
  transform: translateY(-1px);
}
a.logo--text:hover .logo__name {
  color: #fff;
}
a.logo--text:hover .logo__tld {
  color: #a1a1aa;
}
.logo--footer {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 1.02rem;
}
.logo--footer .logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
a.logo--footer {
  text-decoration: none;
}
a.logo--footer:hover .logo__name {
  color: #fff;
}
a.logo--footer:hover .logo__tld {
  color: #a1a1aa;
}

/* Main */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px) 88px;
  box-sizing: border-box;
}
@media (min-width: 600px) {
  main {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 100px;
  min-height: 70vh;
  overflow: hidden;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 72px;
  }
}

.hero__watermark {
  position: absolute;
  z-index: 0;
  right: -2%;
  top: 38%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5.5rem, 16vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  color: #08080a;
  user-select: none;
  pointer-events: none;
  text-shadow: 0 0 80px rgba(255, 255, 255, 0.02);
}
@media (max-width: 900px) {
  .hero__watermark {
    right: -10%;
    top: 8%;
    transform: none;
    font-size: clamp(4.5rem, 36vw, 7rem);
  }
}
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .hero__watermark {
    animation: hero-wm 26s ease-in-out infinite;
  }
}

/* Первый экран: каскад появления */
@media (prefers-reduced-motion: no-preference) {
  .hero__label {
    animation: hero-rise 0.7s var(--ease-out-expo) 0.04s both;
  }
  .hero__title {
    animation: hero-rise 0.75s var(--ease-out-expo) 0.1s both;
  }
  .hero__price {
    animation: hero-rise 0.72s var(--ease-out-expo) 0.16s both;
  }
  .hero__text {
    animation: hero-rise 0.72s var(--ease-out-expo) 0.2s both;
  }
  .hero__chips {
    animation: hero-rise 0.7s var(--ease-out-expo) 0.24s both;
  }
  .hero__chips li {
    opacity: 0;
    animation: hero-fade 0.5s var(--ease-out-expo) forwards;
  }
  .hero__chips li:nth-child(1) {
    animation-delay: 0.28s;
  }
  .hero__chips li:nth-child(2) {
    animation-delay: 0.33s;
  }
  .hero__chips li:nth-child(3) {
    animation-delay: 0.38s;
  }
  .hero__chips li:nth-child(4) {
    animation-delay: 0.42s;
  }
  .hero__actions {
    animation: hero-rise 0.7s var(--ease-out-expo) 0.3s both;
  }
  .hero__messengers {
    animation: hero-rise 0.68s var(--ease-out-expo) 0.34s both;
  }
  .hero__visual {
    animation: hero-rise 0.8s var(--ease-out-expo) 0.12s both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__label,
  .hero__title,
  .hero__price,
  .hero__text,
  .hero__chips,
  .hero__actions,
  .hero__messengers,
  .hero__visual {
    animation: none;
  }
  .hero__chips li {
    animation: none;
    opacity: 1;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 20px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glow);
  box-shadow: var(--shadow-inset);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.hero__label:hover {
  border-color: rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0 0 8px;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--text);
}
.hero__title-br {
  display: block;
  margin-top: 0.06em;
  font-weight: 800;
  background: linear-gradient(120deg, #e4e4e7 0%, #71717a 45%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not (background-clip: text) {
  .hero__title-br {
    color: #a1a1aa;
    background: none;
  }
}

.hero__price {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fafafa;
}
.hero__price > span:first-of-type {
  font-size: 0.75em;
  font-weight: 600;
  opacity: 0.5;
  margin-left: 0.1em;
}
.hero__price-hint {
  display: block;
  margin-top: 4px;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #71717a;
}
@media (min-width: 500px) {
  .hero__price-hint {
    display: inline;
    margin-top: 0;
    margin-left: 8px;
  }
}

.hero__text {
  margin: 0 0 16px;
  color: var(--text-muted);
  max-width: 32em;
  font-size: 1.02rem;
  line-height: 1.65;
}
.hero__chips {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: 32em;
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  transform: rotate(-1deg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), var(--shadow-inset);
  transition: border-color var(--t), color var(--t), transform var(--t), box-shadow var(--t);
}
.hero__chips li:nth-child(2) {
  transform: rotate(1.2deg);
}
.hero__chips li:nth-child(3) {
  transform: rotate(-0.5deg);
}
.hero__chips li:nth-child(4) {
  transform: rotate(0.8deg);
}
.hero__chip:hover {
  color: #e4e4e7;
  border-color: #3f3f46;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), var(--shadow-inset);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, background 0.15s, color 0.15s, border-color 0.15s, filter 0.15s;
}
.button:active {
  transform: scale(0.98);
}
.button--light {
  background: var(--text);
  color: #0a0a0b;
  border-color: var(--text);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s, filter 0.15s, border-color 0.15s;
}
.button--light:hover,
.button--light:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.12), 0 4px 10px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}
.button--light:active {
  transform: translateY(0) scale(0.99);
}
.button--light:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}
.button--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s, color 0.15s, border-color 0.15s, background 0.2s;
}
.button--ghost:hover,
.button--ghost:focus-visible {
  color: var(--text);
  border-color: #52525a;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}
.button--ghost:active {
  transform: translateY(0);
}

.hero__messengers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-faint);
}
.hero__messengers > span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}
.hero__messenger {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color var(--t), border-color var(--t);
}
.hero__messenger:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-code {
  width: 100%;
  max-width: min(100%, 540px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: #050508;
  box-shadow: var(--shadow), 0 0 0 1px rgba(99, 102, 241, 0.06);
  overflow: hidden;
  text-align: left;
  transition: box-shadow 0.45s var(--ease-out-expo), border-color var(--t);
}
@media (hover: hover) and (pointer: fine) {
  .hero-code:hover {
    box-shadow: var(--shadow), 0 0 0 1px rgba(99, 102, 241, 0.1), 0 12px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-code {
    transition: none;
  }
  @media (hover: hover) and (pointer: fine) {
    .hero-code:hover {
      box-shadow: var(--shadow), 0 0 0 1px rgba(99, 102, 241, 0.06);
      border-color: rgba(255, 255, 255, 0.08);
    }
  }
}
@media (min-width: 1000px) {
  .hero-code {
    max-width: 560px;
  }
}
.hero-code__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #0e0e12;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: #71717a;
  font-family: var(--font-mono);
}
.hero-code__dots {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 13px 0 #ffbd2e, 26px 0 #28c840;
  flex-shrink: 0;
  margin-right: 26px;
}
.hero-code__filename {
  color: #a1a1aa;
}
.hero-code__pre {
  margin: 0;
  padding: 20px 18px 22px;
  font-family: var(--font-mono);
  font-size: clamp(0.88rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  color: #c4c4c8;
  overflow-x: auto;
  min-height: 0;
}
@media (min-width: 1000px) {
  .hero-code__pre {
    padding: 22px 20px 24px;
    font-size: clamp(0.95rem, 1.2vw, 1.12rem);
  }
}
@media (max-width: 520px) {
  .hero-code__pre {
    font-size: clamp(0.78rem, 3vw, 0.95rem);
  }
}
.hero-code__pre code {
  display: block;
  font: inherit;
  background: none;
  border: none;
  padding: 0;
}
.hl-k {
  color: #c678dd;
}
.hl-f {
  color: #61afef;
}
.hl-t {
  color: #e5c07b;
}
.hl-s {
  color: #98c379;
}
.hl-m {
  color: #e06c75;
}
.hl-n {
  color: #abb2bf;
}

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0%, transparent 8px);
}
.section__head--center {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  text-align: center;
}
.section__head--center h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}
.section__lede {
  margin: 0.35rem 0 0;
  color: #a1a1aa;
  font-size: 1.02rem;
  line-height: 1.65;
}
.section__head--center .section__lede {
  margin-top: 0.75rem;
}
.section--dark {
  margin: 0;
  padding: 56px 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 32px;
  padding-right: 32px;
}
.section--prices {
  padding: 32px 24px 36px;
  margin-left: 0;
  margin-right: 0;
}
@media (min-width: 600px) {
  .section--prices {
    padding: 28px 28px 32px;
    margin-left: -8px;
    margin-right: -8px;
  }
}
@media (max-width: 600px) {
  .section--dark {
    margin-left: 0;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
  }
}
.section--form {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  padding-bottom: 80px;
}
.section--form-structured {
  padding-top: 60px;
  padding-bottom: 88px;
}
.form-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
  width: 100%;
  box-sizing: border-box;
}

.section__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 2px solid rgba(99, 102, 241, 0.42);
  opacity: 0.95;
}

.section__head {
  max-width: 40em;
  margin-bottom: 28px;
}
.section__head h2,
.form-intro h2 {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--text);
  transition: color var(--t);
}
.section__head p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  max-width: 100%;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
}
#faq .section__head h2 {
  text-shadow: 0 0 32px rgba(99, 102, 241, 0.08);
}
.section__head--compact {
  margin-bottom: 18px;
  max-width: 36em;
}
.section__head.section__head--compact h2 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}
.section__head--compact p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #71717a;
  margin: 0;
}
/* Услуги: сетка в духе студийного лендинга */
.services-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .services-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 22px;
  }
}
.service-tile {
  --tile-accent: #6366f1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  background: linear-gradient(165deg, rgba(18, 18, 28, 0.55) 0%, #08080c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  overflow: hidden;
}
.service-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tile-accent), transparent);
  opacity: 0.9;
  border-radius: 20px 20px 0 0;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal .service-tile {
    transform: translateY(20px);
    transition: transform 0.62s var(--ease-out-expo);
  }
  .reveal.is-visible .service-tile {
    transform: translateY(0);
  }
  .reveal.is-visible .service-tile:nth-child(1) {
    transition-delay: 0.03s;
  }
  .reveal.is-visible .service-tile:nth-child(2) {
    transition-delay: 0.09s;
  }
  .reveal.is-visible .service-tile:nth-child(3) {
    transition-delay: 0.15s;
  }
  .reveal.is-visible .service-tile:nth-child(4) {
    transition-delay: 0.21s;
  }
}
@media (hover: hover) and (pointer: fine) {
  .reveal.is-visible .service-tile:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
  }
}
.service-tile--web {
  --tile-accent: #818cf8;
}
.service-tile--net {
  --tile-accent: #22d3ee;
}
.service-tile--app {
  --tile-accent: #fbbf24;
}
.service-tile--biz {
  --tile-accent: #f472b6;
}
.service-tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 0;
  margin-bottom: 4px;
}
.service-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-inset);
  transition: border-color var(--t), background var(--t);
}
.service-tile:hover .service-tile__icon {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}
.service-tile--web .service-tile__icon {
  color: #a5b4fc;
}
.service-tile--net .service-tile__icon {
  color: #67e8f9;
}
.service-tile--app .service-tile__icon {
  color: #fcd34d;
}
.service-tile--biz .service-tile__icon {
  color: #f9a8d4;
}
.service-tile__badge {
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #52525a;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
}
.service-tile__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  padding: 0 22px;
  color: #fafafa;
}
.service-tile__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0 24px 0 22px;
  flex: 1;
}
.service-tile__list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 20px;
  color: #b4b4bc;
  font-size: 0.9rem;
  line-height: 1.45;
}
.service-tile__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tile-accent);
  opacity: 0.8;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.service-tile__list li:last-child {
  margin-bottom: 0;
}
.service-tile__foot {
  margin-top: auto;
  padding: 20px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}
.service-tile__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 4px;
}
.service-tile__from {
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #71717a;
  margin-right: 2px;
}
.service-tile__sum {
  font-size: 1.85rem;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1;
  color: #f4f4f5;
}
.service-tile__cur {
  font-size: 1.05rem;
  font-weight: 700;
  color: #a1a1aa;
  margin-left: 1px;
}
.service-tile__hint {
  margin: 0 0 16px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #6b6b76;
  font-weight: 500;
}
.service-tile__btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: #0a0a0b;
  background: linear-gradient(180deg, #fff 0%, #e4e4e7 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 0 #c4c4c8, 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: filter var(--t), transform 0.1s, box-shadow var(--t);
}
.service-tile__btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 2px 0 #b4b4b8, 0 10px 28px rgba(0, 0, 0, 0.5);
  color: #0a0a0b;
}
.service-tile__btn:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 #999, 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Price row */
.price-row {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .price-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .price-row {
    grid-template-columns: 1fr;
  }
}
/* Компактная сетка цен */
.price-row--compact {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  margin-bottom: 12px;
}
@media (min-width: 800px) {
  .price-row--compact {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .price-row--compact {
    grid-template-columns: 1fr;
  }
}
.price-tile--row,
.price-tile--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 12px;
}
@media (max-width: 500px) {
  .price-tile--row {
    flex-direction: column;
    align-items: flex-start;
  }
}
.price-tile {
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.price-tile:hover {
  border-color: #3f3f46;
  background: #050506;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}
.section--prices .price-tile__name {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #8e8e93;
  font-weight: 500;
}
.price-tile__name {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.price-tile__from {
  font-size: 0.82rem;
  color: #a1a1aa;
  font-weight: 500;
}
.price-tile__from strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #e4e4e7;
}
.section--prices .price-tile__from strong {
  font-size: 0.95rem;
}
.price-note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #52525a;
  max-width: 42em;
}
.price-brief__title {
  margin: 4px 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #52525a;
  font-family: var(--font-display);
}
.price-table-wrap {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), var(--shadow-inset);
}
.price-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.price-table th,
.price-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  transition: background 0.2s var(--ease-out-expo);
}
.price-table thead th {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #71717a;
  font-weight: 700;
  background: #050506;
}
.price-table th[scope="row"] {
  color: #d4d4d8;
  font-weight: 600;
  max-width: 11em;
}
.price-table td:nth-child(2) {
  white-space: nowrap;
  color: #e4e4e7;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price-table td:last-child {
  color: #8e8e93;
  font-size: 0.82rem;
  line-height: 1.45;
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: none;
}
.price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.price-table__footer {
  margin: 16px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #52525a;
  max-width: 48em;
}

/* Направления (сетка) */
.directions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 900px) {
  .directions {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 550px) {
  .directions {
    grid-template-columns: 1fr;
  }
}
.directions__item {
  position: relative;
  padding: 24px 22px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: linear-gradient(160deg, #0a0a0d 0%, #050506 100%);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.04), var(--shadow-inset);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
@media (prefers-reduced-motion: no-preference) {
  .reveal .directions__item {
    transform: translateY(16px);
    transition: border-color var(--t), transform 0.58s var(--ease-out-expo), box-shadow var(--t);
  }
  .reveal.is-visible .directions__item {
    transform: translateY(0);
  }
  .reveal.is-visible .directions__item:nth-child(1) {
    transition-delay: 0.02s;
  }
  .reveal.is-visible .directions__item:nth-child(2) {
    transition-delay: 0.07s;
  }
  .reveal.is-visible .directions__item:nth-child(3) {
    transition-delay: 0.12s;
  }
  .reveal.is-visible .directions__item:nth-child(4) {
    transition-delay: 0.16s;
  }
  .reveal.is-visible .directions__item:nth-child(5) {
    transition-delay: 0.2s;
  }
  .reveal.is-visible .directions__item:nth-child(6) {
    transition-delay: 0.24s;
  }
}
@media (hover: hover) and (pointer: fine) {
  .reveal.is-visible .directions__item:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
  }
}
.directions__n {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(244, 244, 245, 0.16);
  letter-spacing: -0.04em;
  user-select: none;
  text-shadow: 0 0 32px rgba(0, 0, 0, 0.5);
}
@media (min-width: 700px) {
  .directions__n {
    color: rgba(244, 244, 245, 0.22);
  }
}
.directions__item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 8px;
  padding-right: 2.2rem;
  letter-spacing: -0.03em;
  color: #e4e4e7;
}
.directions__item p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.directions__item:nth-child(3n + 1) {
  background: linear-gradient(165deg, rgba(35, 35, 55, 0.35) 0%, #08080b 100%);
  border-color: rgba(80, 80, 100, 0.25);
}
.directions__item:nth-child(3n + 2) {
  background: linear-gradient(165deg, rgba(45, 35, 50, 0.3) 0%, #08080b 100%);
  border-color: rgba(80, 70, 90, 0.22);
}
.directions__item:nth-child(3n) {
  background: linear-gradient(165deg, rgba(30, 50, 45, 0.28) 0%, #08080b 100%);
  border-color: rgba(60, 80, 70, 0.22);
}

/* Коллаж «студия» (поляроиды) */
.studio-rail {
  max-width: var(--max);
  margin: 0 auto 52px;
  padding: 12px 24px 8px;
  position: relative;
}
.studio-rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(200px, 40%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.08) 70%, transparent);
  pointer-events: none;
}
.studio-rail__kicker {
  margin: 0 0 8px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #52525a;
  font-family: var(--font-display);
  text-align: center;
  opacity: 0.95;
}
.studio-rail__title {
  margin: 0 0 30px;
  padding: 0 8px;
  max-width: 24em;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.1vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.28;
  text-align: center;
  color: #e4e4e7;
}
.studio-rail__strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: 20px 22px;
  padding: 10px 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  scroll-snap-type: x proximity;
}
.studio-rail__strip::-webkit-scrollbar {
  height: 5px;
}
.studio-rail__strip::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}
.studio-rail__strip::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12));
  border-radius: 4px;
}
.studio-polaroid {
  flex: 0 0 auto;
  width: min(44vw, 180px);
  padding: 11px 11px 15px;
  border-radius: 3px 3px 4px 4px;
  scroll-snap-align: center;
  background: linear-gradient(165deg, #fafafa 0%, #e4e4e7 48%, #d4d4d8 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 10px 28px rgba(0, 0, 0, 0.4), 0 24px 48px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s, opacity 0.45s var(--ease-out-expo);
}
@media (prefers-reduced-motion: no-preference) {
  .reveal .studio-polaroid {
    opacity: 0;
  }
  .reveal.is-visible .studio-polaroid {
    opacity: 1;
  }
  .reveal.is-visible .studio-polaroid:nth-child(1) {
    transition-delay: 0.05s;
  }
  .reveal.is-visible .studio-polaroid:nth-child(2) {
    transition-delay: 0.1s;
  }
  .reveal.is-visible .studio-polaroid:nth-child(3) {
    transition-delay: 0.15s;
  }
  .reveal.is-visible .studio-polaroid:nth-child(4) {
    transition-delay: 0.2s;
  }
}
.studio-polaroid:hover {
  transform: translateY(-5px) rotate(0deg) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 0, 0, 0.08);
}
.studio-polaroid:nth-child(1) { transform: rotate(-3.5deg) translateY(2px); }
.studio-polaroid:nth-child(2) { transform: rotate(2.2deg) translateY(-3px); }
.studio-polaroid:nth-child(3) { transform: rotate(-1.6deg) translateY(3px); }
.studio-polaroid:nth-child(4) { transform: rotate(3deg) translateY(-2px); }
.studio-polaroid__img {
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
  min-height: 0;
  border-radius: 2px;
  background: #0a0a0b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 0 2px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.studio-polaroid__art {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
.studio-polaroid:hover .studio-polaroid__art {
  transform: scale(1.04);
  filter: contrast(1.05) brightness(1.04) saturate(1.04);
}
.studio-polaroid__cap {
  margin: 12px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #52525b;
}
.studio-rail__note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #3f3f46;
  max-width: 28em;
  margin-left: auto;
  margin-right: auto;
  padding: 0 8px;
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  .studio-rail {
    margin-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .studio-rail__strip {
    justify-content: flex-start;
    padding-left: 4px;
    padding-bottom: 16px;
  }
  .studio-polaroid {
    width: 140px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-polaroid {
    transform: none !important;
  }
  .studio-polaroid:hover {
    transform: none !important;
  }
  .studio-polaroid:hover .studio-polaroid__art {
    transform: none;
    filter: none;
  }
}

/* FAQ */
.faq {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}
.faq.faq--grid {
  box-shadow: none;
  border: none;
  background: transparent;
}
.faq--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  overflow: visible;
  align-items: start;
}
@media (max-width: 800px) {
  .faq--grid {
    grid-template-columns: 1fr;
  }
}
.faq__col {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: linear-gradient(180deg, #0c0c10 0%, #0a0a0d 100%);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s ease, border-color 0.3s;
}
@media (hover: hover) and (pointer: fine) {
  .faq--grid .faq__col:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }
}
.faq__group-title {
  margin: 0;
  padding: 18px 20px 14px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a1a1aa;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: var(--shadow-inset);
}
.faq--grid .faq__item summary {
  padding-left: 20px;
  padding-right: 58px;
}
.faq__item {
  position: relative;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease-out-expo);
}
.faq__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #a5b4fc 0%, #818cf8 40%, #6366f1 100%);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
}
.faq__item[open]::before {
  transform: scaleY(1);
}
.faq__item:last-child {
  border-bottom: none;
}
.faq__item summary {
  list-style: none;
  padding: 20px 22px;
  padding-right: 58px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.88rem, 2.2vw, 0.95rem);
  color: #d4d4d8;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  transition: background 0.3s var(--ease-out-expo), color 0.25s ease, box-shadow 0.3s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border: none;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.5L7 9L10.5 5.5' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 50% 55%;
  box-shadow: var(--shadow-inset), 0 2px 8px rgba(0, 0, 0, 0.2);
  transform: rotate(0deg);
  transition: transform 0.5s var(--ease-spring), background-color 0.3s, box-shadow 0.35s;
}
.faq__item[open] summary::after {
  transform: rotate(180deg);
  background-color: rgba(99, 102, 241, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.5L7 9L10.5 5.5' stroke='%23c7d2fe' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 24px rgba(99, 102, 241, 0.25);
}
.faq__item[open] summary {
  color: #f4f4f5;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.faq__item summary:hover {
  background: rgba(255, 255, 255, 0.05);
}
.faq__item[open] summary:hover {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}
.faq__answer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out-expo);
}
.faq__item[open] .faq__answer {
  grid-template-rows: 1fr;
}
.faq__answer-inner {
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.faq__item[open] .faq__answer-inner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.faq__answer-inner p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 22px 22px 22px;
  color: var(--text-muted);
  font-size: clamp(0.86rem, 2vw, 0.95rem);
  line-height: 1.7;
  border-top: 1px solid transparent;
  padding-top: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s var(--ease-out-expo) 0.04s, transform 0.5s var(--ease-out-expo) 0.04s, border-color 0.3s, padding 0.45s;
}
.faq__item[open] .faq__answer-inner p {
  border-top-color: rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  margin-top: 0;
  opacity: 1;
  transform: translateY(0);
}
.faq--grid .faq__answer-inner p {
  padding-left: 20px;
  padding-right: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .faq__col,
  .faq__item::before,
  .faq__answer,
  .faq__answer-inner p,
  .faq__item summary::after {
    transition: none;
  }
  .faq--grid .faq__col:hover {
    transform: none;
  }
  .faq__item::before {
    transform: scaleY(0);
  }
  .faq__item[open]::before {
    transform: scaleY(1);
  }
  .faq__answer-inner p {
    transform: none;
  }
  .faq__item[open] .faq__answer-inner p {
    opacity: 1;
  }
  .faq__item:not([open]) .faq__answer-inner p {
    opacity: 0;
  }
  .faq__item summary::after {
    transform: rotate(0deg);
  }
  .faq__item[open] summary::after {
    transform: rotate(180deg);
  }
}
@media (max-width: 480px) {
  .faq__item summary {
    padding: 16px 18px;
    padding-right: 52px;
  }
  .faq__item summary::after {
    right: 12px;
    width: 32px;
    height: 32px;
    margin-top: -16px;
  }
  .faq__answer-inner p {
    padding-left: 18px;
    padding-right: 18px;
  }
  .faq--grid .faq__answer-inner p {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Form */
.form-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px 48px;
  align-items: start;
  padding: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.form-wrap--enhanced {
  gap: 36px 48px;
  align-items: stretch;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal .form-wrap--enhanced {
    transform: translateY(14px);
    transition: transform 0.6s var(--ease-out-expo) 0.04s;
  }
  .reveal.is-visible .form-wrap--enhanced {
    transform: translateY(0);
  }
}
@media (max-width: 800px) {
  .form-wrap {
    grid-template-columns: 1fr;
  }
}
.form-intro--card {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0c0c10 0%, #08080a 100%);
  overflow: hidden;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.35s var(--ease-out-expo), border-color 0.25s;
}
.form-intro--card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
}
@media (hover: none) {
  .form-intro--card:hover {
    box-shadow: var(--shadow-card);
  }
}
.form-intro--card .form-intro__content {
  padding: 1.5rem 28px 1.45rem;
  margin: 0;
}
.form-intro__head {
  display: block;
  margin: 0;
  padding: 1.5rem 28px 1.35rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.form-intro__titles {
  text-align: left;
  min-width: 0;
  max-width: 36em;
}
.form-intro--card h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.form-intro__kicker {
  margin: 0.4rem 0 0;
  padding: 0;
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #52525a;
  line-height: 1.4;
}
.form-intro__lede {
  margin: 0 0 1rem;
  color: #a1a1aa;
  font-size: clamp(0.86rem, 1.2vw, 0.9rem);
  line-height: 1.6;
  max-width: 32em;
  letter-spacing: 0.01em;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.form-intro__lede strong {
  color: #d4d4d8;
  font-weight: 600;
}
.form-mailto {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.form-mailto--inline {
  margin-bottom: 14px;
}
.form-intro .form-mailto p {
  margin: 0;
}
.form-mailto__label {
  margin: 0 0 8px;
  font-size: 0.64rem;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #52525a;
}
.form-mailto__addr {
  display: inline-block;
  font-size: 0.95rem;
}
.form-tldr {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-tldr li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  min-width: 0;
  font-size: clamp(0.75rem, 1.1vw, 0.8rem);
  line-height: 1.5;
  color: #71717a;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
}
.form-tldr li > span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: #18181b;
  background: linear-gradient(180deg, #e4e4e7 0%, #d4d4d8 100%);
  border-radius: 6px;
  margin-top: 1px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
@media (max-width: 600px) {
  .form-intro__head {
    padding: 1.2rem 1.15rem 1.1rem;
  }
  .form-intro--card .form-intro__content {
    padding: 1.2rem 1.15rem 1.3rem;
  }
  .form-tldr {
    gap: 6px;
  }
  .form-tldr li > span {
    width: 20px;
    height: 20px;
    font-size: 0.6rem;
  }
}
.form-intro p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.form-intro__email,
.form-mailto__addr {
  color: #e4e4e7;
  font-weight: 600;
  word-break: break-all;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.15s, border-color 0.15s;
}
.form-intro__email:hover,
.form-mailto__addr:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.form {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.form--enhanced {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px 28px 36px;
  background: linear-gradient(180deg, #09090d 0%, #08080b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.35s var(--ease-out-expo), border-color 0.25s;
}
.form--enhanced:hover {
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
@media (hover: none) {
  .form--enhanced:hover {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}
@media (max-width: 600px) {
  .form--enhanced {
    padding: 1.4rem 1.1rem 1.5rem;
  }
}
.form__footer {
  margin-top: 4px;
}
.form__actions--end {
  margin-top: 6px;
}
.button--form {
  min-width: 200px;
  width: 100%;
  max-width: 100%;
  padding: 16px 28px;
  font-size: 0.95rem;
}
@media (min-width: 500px) {
  .button--form {
    width: auto;
  }
}

.form__row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.form__row--2 {
  grid-template-columns: 1fr 1fr;
  min-width: 0;
}
@media (max-width: 600px) {
  .form__row--2 {
    grid-template-columns: 1fr;
  }
}
.form__row .field,
.form__row .field--custom-select {
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: #71717a;
}
.form--enhanced .field__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #71717a;
  margin-bottom: 2px;
}
.field__req {
  color: #ff4d6a;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(255, 77, 106, 0.45);
  margin-left: 0.12em;
  letter-spacing: 0;
}
.field--check .field__req {
  color: #ff4d6a;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(255, 77, 106, 0.4);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #050506;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-inset);
}
.form--enhanced .field input,
.form--enhanced .field select,
.form--enhanced .field textarea {
  padding: 14px 16px;
  background: #040405;
  border-color: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}
.form--enhanced .field textarea {
  min-height: 150px;
  line-height: 1.55;
}
.field--select select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238e8e93' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field--custom-select {
  position: relative;
  z-index: 1;
}
.field--custom-select:has(.custom-select.is-open) {
  z-index: 30;
}
.custom-select {
  position: relative;
}
.form--enhanced .custom-select__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: #040405;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-inset);
  transition: border-color var(--t), box-shadow var(--t);
}
.custom-select__value {
  flex: 1;
  min-width: 0;
}
.custom-select__value.is-placeholder {
  color: #71717a;
}
.custom-select__btn::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #8e8e93;
  border-bottom: 2px solid #8e8e93;
  transform: translateY(-2px) rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.custom-select.is-open .custom-select__btn::after {
  transform: translateY(2px) rotate(225deg);
}
.custom-select.is-open .custom-select__btn,
.form--enhanced .custom-select.is-open .custom-select__btn {
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring), var(--shadow-inset);
}
.custom-select.is-invalid .custom-select__btn {
  border-color: rgba(248, 113, 113, 0.55);
}
.custom-select__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 200;
  padding: 6px;
  background: #08080b;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  max-height: min(60vh, 300px);
  overflow-y: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .custom-select.is-open .custom-select__dropdown {
    animation: customSelectIn 0.18s ease;
  }
}
@keyframes customSelectIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.custom-select__opt {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.92rem;
  color: #d4d4d8;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.custom-select__opt:hover,
.custom-select__opt:focus-visible {
  background: var(--glow);
  color: #fafafa;
  outline: none;
}
.custom-select__opt--active {
  background: rgba(255, 255, 255, 0.05);
  color: #fafafa;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.form--enhanced .custom-select__btn:focus {
  outline: none;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.form--enhanced .custom-select__btn:focus-visible {
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring), var(--shadow-inset);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  cursor: pointer;
}
.field--check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #fafafa;
  cursor: pointer;
}
.field--check span {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #8e8e93;
  font-weight: 400;
}
.field--inline {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}
.field--inline input {
  width: auto;
  margin-top: 4px;
  accent-color: #fff;
}
.field--inline span {
  font-size: 0.88rem;
  color: #a1a1aa;
}
.field__error {
  min-height: 1.2em;
  font-size: 0.8rem;
  color: #f87171;
}
.field__error--block {
  margin: -8px 0 8px;
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.form__hint {
  margin: 0;
  font-size: 0.88rem;
  color: #a3a3a3;
  max-width: 300px;
  line-height: 1.45;
}
.form__hint[hidden] {
  display: none;
}

/* Всплывающий статус заявки (успех / ошибка / загрузка) */
.form-toast[hidden] {
  display: none;
}
.form-toast:not([hidden]) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(0);
  max-width: min(400px, calc(100vw - 32px));
  margin: 0;
  padding: 16px 20px 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  background: linear-gradient(145deg, #12121a, #0c0c12);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(0, 0, 0, 0.35);
  animation: form-toast-in 0.45s var(--ease-out-expo) both;
}
@media (prefers-reduced-motion: reduce) {
  .form-toast:not([hidden]) {
    animation: none;
  }
}
@keyframes form-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@media (max-width: 768px) {
  .form-toast:not([hidden]) {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}
.form-toast--sending:not([hidden]) {
  align-items: center;
}
.form-toast--sending {
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: var(--shadow-float), 0 0 32px -8px rgba(99, 102, 241, 0.25);
}
.form-toast--sending::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid rgba(129, 140, 248, 0.35);
  border-top-color: #a5b4fc;
  border-radius: 50%;
  animation: form-toast-spin 0.7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .form-toast--sending::before {
    animation: none;
    border-top-color: #a5b4fc;
  }
}
@keyframes form-toast-spin {
  to {
    transform: rotate(360deg);
  }
}
.form-toast--success:not([hidden]) {
  align-items: center;
}
.form-toast--success {
  padding-left: 16px;
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(145deg, #0c1510, #0a0a0d);
  box-shadow: var(--shadow-float), 0 0 40px -12px rgba(34, 197, 94, 0.35);
}
.form-toast--success::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' fill='%2322c55e' fill-opacity='0.2' stroke='%2322c55e' stroke-width='1.5'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9' stroke='%2386efac' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.form-toast--error {
  border-color: rgba(244, 63, 94, 0.4);
  background: linear-gradient(145deg, #150c10, #0a0a0d);
  box-shadow: var(--shadow-float), 0 0 36px -10px rgba(244, 63, 94, 0.25);
}
.form-toast--error::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 7v6m0 3.5h.01' stroke='%23fb7185' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23f43f5e' stroke-opacity='0.5' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: #020203;
  padding: 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px 24px;
}
@media (max-width: 800px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}
.footer__brand p {
  margin: 0;
  color: #71717a;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 20em;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__col a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  max-width: 100%;
  padding-left: 6px;
  margin-left: -6px;
  border-left: 2px solid transparent;
  transition: color var(--t), border-color var(--t);
  outline: none;
  border-radius: 2px;
}
.footer__col a:hover {
  color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover {
    border-left-color: rgba(99, 102, 241, 0.45);
  }
}
.footer__col a:focus-visible {
  color: var(--text);
  border-left-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 2px #020203, 0 0 0 4px rgba(99, 102, 241, 0.35);
}
.footer__title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #52525a;
  font-family: var(--font-display);
}
.footer__meta {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #52525a;
}
.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--line);
}
.footer__bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: #52525a;
  line-height: 1.5;
  text-align: center;
}

/* —— Облако технологий, motion —— */
.tech-slab {
  margin: 0 auto 0;
  padding: 3.5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  scroll-margin-top: 96px;
}
.tech-slab.tech-cloud {
  margin-bottom: 8px;
}
.tech-cloud {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0 8px;
}
.tech-cloud__inner {
  position: relative;
  z-index: 1;
  padding-top: 0.75rem;
}
.tech-cloud__label {
  text-align: center;
  margin: 0 0 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #52525a;
  font-family: var(--font-display);
}
.tech-cloud__title {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 0 14px;
  padding-top: 0.25rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #e4e4e7;
}
.tech-cloud__lead {
  text-align: center;
  margin: 0 auto 24px;
  max-width: 40em;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.tech-cloud__groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 14px;
  padding: 4px 0 8px;
}
@media (min-width: 800px) {
  .tech-cloud__groups {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 500px) {
  .tech-cloud__groups {
    grid-template-columns: 1fr;
  }
}
.tech-group {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 16px 14px;
  background: linear-gradient(165deg, #0a0a0f 0%, #050506 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28), var(--shadow-inset);
  transition: border-color var(--t), box-shadow var(--t), transform 0.55s var(--ease-out-expo);
}
@media (hover: hover) and (pointer: fine) {
  .tech-group:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), var(--shadow-inset);
  }
  .reveal.is-visible .tech-group:hover {
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal .tech-group {
    transform: translateY(12px);
  }
  .reveal.is-visible .tech-group {
    transform: translateY(0);
  }
  .reveal.is-visible .tech-group:nth-child(1) {
    transition-delay: 0.04s;
  }
  .reveal.is-visible .tech-group:nth-child(2) {
    transition-delay: 0.1s;
  }
  .reveal.is-visible .tech-group:nth-child(3) {
    transition-delay: 0.16s;
  }
  .reveal.is-visible .tech-group:nth-child(4) {
    transition-delay: 0.22s;
  }
}
.tech-group__h {
  margin: 0 0 10px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #71717a;
  font-family: var(--font-display);
}
.tech-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tech-group__list li {
  font-size: 0.86rem;
  font-weight: 600;
  color: #a1a1aa;
  letter-spacing: -0.02em;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color var(--t), transform 0.22s var(--ease-out-expo);
}
@media (hover: hover) and (pointer: fine) {
  .tech-group__list li:hover {
    color: #e4e4e7;
    transform: translateX(3px);
  }
}
.tech-group__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.tech-cloud__list {
  list-style: none;
  margin: 0;
  padding: 20px 18px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #08080c 0%, #040405 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), var(--shadow-inset);
}
.tech-cloud__list li {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a1a1aa;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0a0a0c;
  letter-spacing: -0.02em;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  transition: border-color var(--t), color var(--t), box-shadow var(--t), transform 0.22s var(--ease-out-expo);
}
.tech-cloud__list li:hover {
  color: #e4e4e7;
  border-color: #3f3f46;
}
@media (hover: hover) and (pointer: fine) {
  .tech-cloud__list li:hover {
    transform: translateY(-2px);
  }
}
.tech-cloud__note {
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #52525a;
  max-width: 38em;
  margin-left: auto;
  margin-right: auto;
}

.tech-cloud__note-accent {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffe8a3;
  background: linear-gradient(180deg, rgba(72, 55, 18, 0.85) 0%, rgba(47, 34, 10, 0.9) 100%);
  border: 1px solid rgba(255, 214, 120, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 223, 140, 0.08) inset;
}

/* Появление при скролле */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(1.5px);
  transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo), filter 0.75s var(--ease-out-expo);
  will-change: opacity, transform, filter;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: none;
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Кнопка наверх */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 150;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #18181c 0%, #121214 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #a1a1aa;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.3s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), visibility 0.3s, color 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.to-top:hover,
.to-top:focus-visible {
  color: #f4f4f5;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.2) inset, 0 0 30px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px) scale(1.02);
}
.to-top:active {
  transform: translateY(0) scale(0.98);
}
@media (max-width: 768px) {
  .to-top {
    bottom: 100px;
    right: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .to-top:hover,
  .to-top:focus-visible,
  .to-top:active {
    transform: translateY(0) scale(1);
  }
}

/* Мобильная панель */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 30%, #020203 100%);
  border-top: 1px solid var(--line);
  justify-content: center;
  align-items: stretch;
}
@media (max-width: 768px) {
  .mobile-cta {
    display: flex;
  }
}
.mobile-cta__btn {
  flex: 1;
  max-width: 180px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: filter 0.15s, border-color 0.15s;
}
.mobile-cta__btn--wa {
  background: #0a0a0b;
  color: #a1a1aa;
  border-color: #3f3f46;
}
.mobile-cta__btn--wa:active {
  filter: brightness(1.1);
}
.mobile-cta__btn--main {
  background: #fafafa;
  color: #0a0a0b;
  border-color: #fafafa;
  flex: 1.2;
  max-width: 220px;
}
.mobile-cta__btn--main:active {
  filter: brightness(0.95);
}
.mobile-cta__btn--full {
  max-width: none;
  width: 100%;
  background: #fafafa;
  color: #0a0a0b;
  border-color: #fafafa;
  padding: 14px 20px;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
}
.mobile-cta__btn--full:active {
  filter: brightness(0.95);
}
