/* ============================================================
   VitalyWorks — портфолио скриптера Roblox Studio
   Тёмная графитовая палитра, индиго-акцент, скруглённые панели.
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url('fonts/Unbounded.ttf') format('truetype');
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono.ttf') format('truetype');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #080a0e;
  --panel: #12161c;
  --control: #1a2028;
  --border: #46505c;
  --border-soft: #313944;
  --border-strong: #66717e;
  --title: #f5f7fa;
  --text: #cbd1d8;
  --muted: #89929d;
  --accent: #6d84ff;
  --accent-hover: #8093ff;
  --ok: #55cf82;
  --warm: #f2b45d;
  --cyan: #52c7df;
  --radius: 18px;
  --radius-sm: 14px;
  --radius-lg: 22px;
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(circle at 86% 6%, rgba(109, 132, 255, 0.1), transparent 28rem),
    radial-gradient(circle at 6% 48%, rgba(82, 199, 223, 0.045), transparent 24rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--title);
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.86em;
}

::selection {
  background: rgba(109, 132, 255, 0.35);
}

.hidden {
  display: none !important;
}

button,
a,
summary {
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
}

/* ---------- Кнопки ---------- */

button {
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6d84ff, #526ce9);
  border: 2px solid #9cafff;
  box-shadow: 0 8px 24px rgba(79, 101, 224, 0.22);
  transition: background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease;
}

.primary:hover {
  background: var(--accent-hover);
  border-color: #c2caff;
  box-shadow: 0 11px 30px rgba(79, 101, 224, 0.34);
  transform: translateY(-1px);
  text-decoration: none;
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 17px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--title);
  background: rgba(20, 23, 27, 0.88);
  border: 2px solid var(--border);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.secondary:hover {
  color: #fff;
  background: var(--control);
  border-color: #4d5560;
  text-decoration: none;
}

.ghost {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}

.ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.compact-auth {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.message {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.82rem;
  color: var(--ok);
}

/* ---------- Общее ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--title);
}

.brand:hover {
  text-decoration: none;
}

.app-brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 11px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 9px;
  border: 2px solid rgba(82, 199, 223, 0.34);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(82, 199, 223, 0.07);
}

.section-title {
  max-width: 620px;
  margin: 0 0 36px;
}

.section-title h2 {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.section-title p {
  max-width: 560px;
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- Верхняя панель ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 68px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(11, 13, 16, 0.92);
  border-bottom: 2px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
}

.topnav {
  display: flex;
  gap: 4px;
}

.topnav a {
  position: relative;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #a5adb7;
  transition: color 0.18s ease, background 0.18s ease;
}

.topnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.topnav a::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.topnav a:hover::after,
.topnav a.active::after {
  transform: scaleX(1);
}

.topnav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ---------- Переключатель языка ---------- */

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--border);
}

.lang-option {
  padding: 5px 11px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-option:hover {
  color: #fff;
}

.lang-option.active {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 3px 12px rgba(109, 132, 255, 0.3);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: clamp(540px, calc(100svh - 180px), 720px);
  max-height: none;
  padding: 56px max(24px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  isolation: isolate;
  border-bottom: 2px solid var(--border);
  background: #090b0e;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 64% 46%, rgba(109, 132, 255, 0.16), transparent 31%),
    linear-gradient(
      90deg,
      rgba(7, 9, 12, 0.99) 0%,
      rgba(7, 9, 12, 0.94) 34%,
      rgba(7, 9, 12, 0.43) 68%,
      rgba(7, 9, 12, 0.2) 100%
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--accent), transparent 76%);
}

.hero-shot {
  position: absolute;
  inset: -12px;
  z-index: -2;
  overflow: hidden;
  transform: translate3d(var(--hero-shift-x, 0), var(--hero-shift-y, 0), 0);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.shot-frame {
  width: 100%;
  height: 100%;
  background: #090b0e;
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.82;
  animation: hero-ambient-zoom 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-ambient-zoom {
  from {
    transform: scale(1.025);
  }
  to {
    transform: scale(1.045);
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(620px, 58%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c5cbd2;
  background: rgba(19, 23, 28, 0.85);
  border: 2px solid rgba(85, 207, 130, 0.38);
  box-shadow: 0 0 0 4px rgba(85, 207, 130, 0.05);
  backdrop-filter: blur(10px);
}

.hero-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(85, 207, 130, 0.13);
}

.hero-copy h1 {
  max-width: 600px;
  margin: 22px 0 18px;
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 56px;
  font-weight: 650;
  line-height: 1.12;
}

.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #6d84ff, #a9b6ff, #6d84ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
  text-decoration: underline;
  text-decoration-color: rgba(82, 199, 223, 0.5);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.hero-copy > p {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
  color: #c4cad2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-button {
  position: relative;
  min-height: 44px;
  padding: 11px 20px;
  overflow: hidden;
  isolation: isolate;
  font-size: 0.9rem;
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}

.hero-button::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -36%;
  width: 28%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-18deg);
  transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-button:hover {
  transform: translateY(-2px);
}

.hero-button:hover::after {
  left: 116%;
}

.hero-button:active {
  transform: translateY(0) scale(0.985);
}

.hero .secondary {
  color: #f5f7fa;
  background: rgba(16, 19, 23, 0.75);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 610px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 13px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(12, 15, 19, 0.62);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.18s ease;
}

.hero-points li:hover {
  border-color: rgba(109, 132, 255, 0.62);
  background: rgba(22, 28, 39, 0.82);
  transform: translateY(-2px);
}

.hero-points strong {
  color: #fff;
  font-size: 0.83rem;
}

.hero-points span {
  color: #9ca5b0;
  line-height: 1.4;
}

/* ---------- Секции ---------- */

.works,
.features,
.how,
.faq,
.contact,
.site-footer {
  width: var(--shell);
  margin-inline: auto;
}

.works,
.features,
.faq {
  padding: 92px 0;
}

/* ---------- Работы ---------- */

.works .section-title {
  max-width: 680px;
}

.work-grid {
  display: grid;
  gap: 14px;
}

.work-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 14px;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  color: var(--text);
  background: linear-gradient(120deg, rgba(109, 132, 255, 0.045), var(--panel) 38%);
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 18% auto 18% -2px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--cyan), var(--accent));
  opacity: 0.76;
  transition: inset 0.22s ease, opacity 0.22s ease;
}

.work-card:hover {
  border-color: #6579e8;
  background: #171b20;
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32),
    0 0 0 3px rgba(109, 132, 255, 0.08);
}

.work-card:hover::before {
  inset-block: 8%;
  opacity: 1;
}

.work-shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #0d0f12;
  border: 2px solid var(--border-soft);
}

.work-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.work-card:hover .work-shot img {
  transform: scale(1.04);
}

.work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(11, 13, 16, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-play::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #fff;
}

.work-card:hover .work-play {
  background: var(--accent);
  border-color: var(--accent-hover);
  transform: translate(-50%, -50%) scale(1.08);
}

.work-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.7rem;
  color: #e8ebf0;
  background: rgba(9, 11, 14, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.work-body {
  display: grid;
  gap: 10px;
  padding: 8px 12px 8px 0;
}

.work-body strong {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--title);
}

.work-text {
  max-width: 520px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.work-tags em {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  color: #aab2bd;
  background: var(--control);
  border: 2px solid var(--border-soft);
}

.works-note {
  max-width: 640px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 2px solid rgba(242, 180, 93, 0.32);
  border-left: 5px solid var(--warm);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.6;
  color: #e0d3bd;
  background: rgba(242, 180, 93, 0.06);
}

/* ---------- Специализация ---------- */

.features {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  border-top: 2px solid var(--border-soft);
}

.features .section-title {
  position: sticky;
  top: 104px;
  margin: 0;
}

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

.feature-card {
  --card-accent: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 14px;
  min-height: 148px;
  padding: 22px 20px;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.2s ease, box-shadow 0.22s ease;
}

.feature-card:nth-child(3n + 2) {
  --card-accent: var(--ok);
}

.feature-card:nth-child(3n + 3) {
  --card-accent: var(--warm);
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: #171b20;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: -2px;
  width: 5px;
  border-radius: 0 2px 2px 0;
  background: var(--card-accent);
  opacity: 0.62;
  transform: scaleY(0.7);
  transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover::after {
  opacity: 1;
  transform: scaleY(1);
}

.feature-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--control);
  border: 2px solid var(--border);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.18s ease, border-color 0.18s ease;
}

.feature-card:nth-child(3n + 2) .feature-icon {
  color: var(--ok);
}

.feature-card:nth-child(3n + 3) .feature-icon {
  color: var(--warm);
}

.feature-card:hover .feature-icon {
  background: #23282f;
  border-color: #3a414a;
  transform: translateY(-3px) rotate(-3deg) scale(1.04);
}

.feature-icon svg {
  width: 19px;
  height: 19px;
}

.feature-card strong {
  margin: 1px 0 6px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--title);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover strong {
  transform: translateX(2px);
}

.feature-card p {
  grid-column: 2;
  max-width: 290px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.stack-note {
  grid-column: 2;
  margin-top: 14px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
  background: var(--panel);
}

.stack-note span {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffb4b7;
  background: rgba(255, 107, 113, 0.1);
  border: 2px solid rgba(255, 107, 113, 0.35);
}

/* ---------- Оплата ---------- */

.how {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding: 64px 0;
  border-top: 2px solid var(--border-soft);
  border-bottom: 2px solid var(--border-soft);
}

.how .section-title {
  margin: 0;
}

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

.how-steps div {
  min-height: 116px;
  padding: 18px 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.18s ease, border-color 0.18s ease;
}

.how-steps div:hover {
  border-color: #454d58;
  background: #171b20;
  transform: translateX(3px);
}

.how-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--warm);
  background: rgba(242, 180, 93, 0.12);
  border: 2px solid rgba(242, 180, 93, 0.38);
}

.how-steps p {
  max-width: 240px;
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--title);
}

.how-steps .payment-featured {
  border-color: rgba(242, 180, 93, 0.42);
  background: linear-gradient(110deg, rgba(242, 180, 93, 0.11), var(--panel) 55%);
}

.payment-featured span {
  color: var(--warm);
}

.payment-featured small {
  display: block;
  margin-top: 8px;
  color: #d9b98e;
  line-height: 1.45;
}

/* ---------- Вопросы ---------- */

.faq {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.faq .section-title {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-list details:hover {
  transform: translateY(-1px);
}

.faq-list details[open] {
  border-color: #6375db;
  background: #15191e;
}

.faq-list summary {
  position: relative;
  min-height: 60px;
  padding: 18px 46px 18px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--title);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.18s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  color: #fff;
  transform: translateX(2px);
}

.faq-list summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cyan);
  transition: transform 0.25s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  max-width: 680px;
  padding: 0 46px 20px 18px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted);
  animation: faq-open 0.3s ease;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- Контакты ---------- */

.contact {
  padding-bottom: 92px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 40px;
  align-items: center;
  padding: 36px;
  border: 2px solid #5d6cc0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 18%, rgba(109, 132, 255, 0.17), transparent 34%),
    linear-gradient(110deg, rgba(109, 132, 255, 0.08), var(--panel) 52%);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24),
    0 0 0 4px rgba(109, 132, 255, 0.05);
}

.contact-copy h2 {
  font-family: 'Unbounded', 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 600;
}

.contact-copy p {
  max-width: 460px;
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--muted);
}

.contact-action {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(11, 13, 16, 0.55);
}

.contact-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-action code {
  padding: 12px 14px;
  border: 2px dashed rgba(109, 132, 255, 0.58);
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--title);
  background: #0d0f12;
  user-select: all;
}

/* ---------- Футер ---------- */

.site-footer {
  padding: 28px 0 34px;
  border-top: 2px solid var(--border-soft);
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-line nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-line nav a {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-line nav a:hover {
  color: var(--title);
  text-decoration: none;
}

.footer-copy {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Модальное окно с видео ---------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 9, 0.82);
  backdrop-filter: blur(8px);
  animation: modal-backdrop-in 0.2s ease-out;
}

.modal-panel {
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 20px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #15181d;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  animation: modal-panel-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center top;
}

.video-panel {
  width: min(1080px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h2 {
  font-size: 1.1rem;
  font-weight: 800;
}

.icon-close {
  padding: 2px 10px;
  font-size: 1.3rem;
  line-height: 1;
}

.video-frame {
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #000;
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 190px);
  aspect-ratio: 16 / 9;
  background: #000;
}

@keyframes modal-backdrop-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

/* ---------- Прогресс и появление ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 3px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--accent), var(--ok));
  box-shadow: 0 0 12px rgba(109, 132, 255, 0.38);
  will-change: transform;
}

.reveal-ready {
  opacity: 1;
  filter: none;
  transform: translateY(6px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform;
}

.reveal-ready.revealed {
  opacity: 1;
  filter: blur(0);
  transform: none;
  will-change: auto;
}

/* ---------- Адаптивность ---------- */

@media (max-width: 1000px) {
  .hero-copy {
    width: min(620px, 70%);
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .features,
  .how,
  .faq {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 40px;
  }

  .work-card {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 18px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 820px) {
  .topnav {
    display: none;
  }

  .hero {
    min-height: 590px;
    padding-block: 52px;
  }

  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(7, 9, 12, 0.98) 0%,
      rgba(7, 9, 12, 0.88) 58%,
      rgba(7, 9, 12, 0.5) 100%
    );
  }

  .hero-shot {
    inset: 0;
    transform: none;
  }

  .hero-shot img {
    object-position: 62% center;
    opacity: 0.64;
  }

  .hero-copy {
    width: min(580px, 82%);
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .features,
  .how,
  .faq {
    display: block;
  }

  .features .section-title {
    position: static;
    margin-bottom: 30px;
  }

  .how .section-title,
  .faq .section-title {
    margin-bottom: 30px;
  }

  .stack-note {
    margin-top: 14px;
  }

  .work-card {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .work-body {
    padding: 8px 8px 10px;
  }

  .feature-card:hover,
  .faq-list details:hover,
  .work-card:hover,
  .how-steps div:hover {
    transform: none;
    box-shadow: none;
  }

  .feature-card:hover .feature-icon,
  .feature-card:hover strong,
  .faq-list summary:hover {
    transform: none;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .topbar {
    min-height: 62px;
    padding: 10px 16px;
    gap: 12px;
  }

  .hero {
    height: auto;
    min-height: calc(100svh - 206px);
    max-height: none;
    padding: 48px 18px 36px;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(7, 9, 12, 0.5) 0%,
      rgba(7, 9, 12, 0.91) 42%,
      rgba(7, 9, 12, 0.99) 100%
    );
  }

  .hero-shot img {
    object-position: 56% center;
    opacity: 0.68;
  }

  .hero-copy {
    width: 100%;
    align-self: flex-end;
  }

  .hero-copy h1 {
    margin-top: 18px;
    font-size: 32px;
    line-height: 1.16;
  }

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

  .hero-actions {
    align-items: stretch;
  }

  .hero-points {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .hero-points li {
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 10px 11px;
  }

  .works,
  .features,
  .faq {
    padding: 64px 0;
  }

  .how {
    padding: 54px 0;
  }

  .contact {
    padding-bottom: 64px;
  }

  .section-title h2 {
    font-size: 23px;
  }

  .feature-grid,
  .how-steps {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 128px;
  }

  .how-steps div {
    min-height: 92px;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .modal-panel {
    padding: 16px;
  }

  .video-modal {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .compact-auth {
    display: none;
  }

  .top-actions {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-ready {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }

  .hero-shot,
  .hero-shot img,
  .hero-copy h1 em,
  .hero-button,
  .hero-button::after,
  .feature-icon,
  .feature-card strong,
  .work-card,
  .work-shot img,
  .work-play,
  .how-steps div,
  .faq-list summary,
  .faq-list details p,
  .modal-backdrop,
  .modal-panel {
    animation: none !important;
    transition: none !important;
  }

  .hero-shot,
  .hero-shot img,
  .hero-button,
  .feature-icon,
  .feature-card strong,
  .work-card,
  .work-shot img,
  .how-steps div,
  .faq-list summary,
  .modal-panel {
    transform: none !important;
  }
}
