:root {
  --bg: #070912;
  --card: #111625;
  --card-2: #161d31;
  --text: #f3f5ff;
  --muted: #9aa3c4;
  --line: #2a3148;
  /* Фирменный акцент: красный + бордо на тёмном */
  --accent: #e53935;
  --accent-burgundy: #6d1f27;
  --accent-muted: rgba(229, 57, 53, 0.14);
  --accent-border: rgba(229, 57, 53, 0.45);
  --accent-glow: rgba(200, 45, 55, 0.32);
  --accent-soft: rgba(229, 57, 53, 0.1);
  --surface: rgba(18, 22, 38, 0.55);
  --border-soft: rgba(120, 140, 200, 0.16);
  --code-font: 'JetBrains Mono', ui-monospace, monospace;
  --content-max: 1080px;
  --panel-pad-x: clamp(18px, 4.5vw, 42px);
  --panel-pad-y: clamp(20px, 3.5vh, 36px);
  --section-gap: clamp(22px, 3vw, 36px);
}

* {
  box-sizing: border-box;
}

/* Used across index.html (modal, wizard, success block). Admin uses the same class name. */
.hidden {
  display: none !important;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body {
  overflow-y: hidden;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 3000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  will-change: transform;
}

.orb-top {
  top: -12vw;
  left: -10vw;
  background: radial-gradient(circle, var(--accent) 0%, rgba(229, 57, 53, 0.35) 38%, transparent 62%);
  animation: orb-float-a 22s ease-in-out infinite;
}

.orb-mid {
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(28vw, 360px);
  height: min(28vw, 360px);
  background: radial-gradient(circle, #8b2330 0%, rgba(109, 31, 39, 0.45) 45%, transparent 68%);
  opacity: 0.2;
  animation: orb-float-mid 28s ease-in-out infinite;
}

.orb-bottom {
  right: -14vw;
  bottom: -16vw;
  background: radial-gradient(circle, var(--accent-burgundy) 0%, rgba(80, 18, 28, 0.5) 42%, transparent 62%);
  animation: orb-float-b 26s ease-in-out -3s infinite;
}

@keyframes orb-float-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(6vw, 4vh) scale(1.08);
  }
  50% {
    transform: translate(2vw, 10vh) scale(0.94);
  }
  75% {
    transform: translate(-5vw, 3vh) scale(1.05);
  }
}

@keyframes orb-float-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  30% {
    transform: translate(-7vw, -5vh) scale(1.06);
  }
  60% {
    transform: translate(4vw, -8vh) scale(0.92);
  }
}

@keyframes orb-float-mid {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(0, 0);
  }
  40% {
    transform: translate(-50%, -50%) translate(4vw, -6vh);
  }
  70% {
    transform: translate(-50%, -50%) translate(-5vw, 5vh);
  }
}

.bg-code {
  position: absolute;
  inset: 0;
}

.code-chip {
  position: absolute;
  margin: 0;
  padding: 10px 14px;
  font-family: var(--code-font);
  font-size: clamp(10px, 1.1vw, 12px);
  line-height: 1.45;
  color: rgba(180, 195, 235, 0.22);
  border: 1px solid rgba(120, 140, 200, 0.12);
  border-radius: 12px;
  background: rgba(8, 10, 22, 0.35);
  white-space: pre;
  max-width: min(240px, 32vw);
  overflow: hidden;
  pointer-events: none;
  animation: code-drift 40s ease-in-out infinite;
  will-change: transform;
}

.code-chip code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.code-chip::before {
  content: attr(data-lang);
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(229, 57, 53, 0.42);
  margin-bottom: 6px;
}

.code-chip--1 {
  top: 12%;
  left: 4%;
  animation-duration: 38s;
  animation-delay: 0s;
}

.code-chip--2 {
  top: 22%;
  right: 6%;
  animation-duration: 44s;
  animation-delay: -8s;
}

.code-chip--3 {
  bottom: 28%;
  left: 8%;
  animation-duration: 36s;
  animation-delay: -4s;
}

.code-chip--4 {
  top: 48%;
  right: 4%;
  animation-duration: 42s;
  animation-delay: -12s;
}

.code-chip--5 {
  bottom: 14%;
  right: 18%;
  animation-duration: 50s;
  animation-delay: -6s;
}

.code-chip--6 {
  top: 62%;
  left: 2%;
  animation-duration: 34s;
  animation-delay: -18s;
}

@keyframes code-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(-0.5deg);
  }
  20% {
    transform: translate(12px, -18px) rotate(0.3deg);
  }
  45% {
    transform: translate(-8px, 14px) rotate(-0.4deg);
  }
  70% {
    transform: translate(16px, 8px) rotate(0.2deg);
  }
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  padding: 14px 0 16px;
}

.topbar--glass {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.2s;
}

.brand:visited {
  color: var(--text);
}

.brand span {
  color: var(--accent);
}

.brand:visited span {
  color: var(--accent);
}

.brand:hover {
  opacity: 0.88;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.topbar__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.main-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(120, 140, 200, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.main-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(120, 140, 200, 0.35);
}

.main-nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.main-nav-toggle__bars,
.main-nav-toggle__bars::before,
.main-nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.main-nav-toggle__bars {
  position: relative;
}

.main-nav-toggle__bars::before,
.main-nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.main-nav-toggle__bars::before {
  top: -6px;
}

.main-nav-toggle__bars::after {
  top: 6px;
}

.main-nav-backdrop {
  display: none;
}

.segmented {
  --pill-x: 0px;
  --pill-y: 0px;
  --pill-w: 0px;
  --pill-h: 0px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(120, 140, 200, 0.15);
  background: rgba(0, 0, 0, 0.22);
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.segmented-pill {
  position: absolute;
  left: var(--pill-x);
  top: var(--pill-y);
  width: var(--pill-w);
  height: var(--pill-h);
  border-radius: 10px;
  background: var(--accent-muted);
  box-shadow: 0 0 0 1px var(--accent-border);
  pointer-events: none;
  z-index: 0;
  transition:
    left 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.segmented.segmented--pill-snap .segmented-pill {
  transition: none !important;
}

.segmented::-webkit-scrollbar {
  height: 4px;
}

.segmented::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.segment {
  position: relative;
  z-index: 1;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 14px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
  transition:
    color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.segment:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.segment.is-active {
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.segment:hover:not(.is-active) {
  color: #c5cce8;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.15s;
}

.btn-top--ghost {
  border: 1px solid var(--line);
  background: rgba(18, 24, 42, 0.6);
  color: var(--text);
}

.btn-top--ghost:hover {
  transform: translateY(-1px);
  border-color: #50619d;
}

.btn-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shell-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  padding: var(--panel-pad-y) var(--panel-pad-x) calc(var(--panel-pad-y) + 8px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.panel[data-panel='projects'],
.panel[data-panel='services'],
.panel[data-panel='contacts'] {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel[data-panel='projects'] > .panel-inner,
.panel[data-panel='services'] > .panel-inner,
.panel[data-panel='contacts'] > .panel-inner {
  width: 100%;
  max-width: var(--content-max);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel[data-panel='projects'] > .panel-inner > *,
.panel[data-panel='services'] > .panel-inner > *,
.panel[data-panel='contacts'] > .panel-inner > * {
  width: 100%;
  max-width: var(--content-max);
}

.panel-inner {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.panel.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.panel.is-active.panel--reconstruction {
  overflow: hidden;
}

.home-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-panel > .panel-inner {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: min(6vh, 48px);
}

.home-stack {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-hero {
  max-width: 640px;
  padding: 6vh 16px 0;
  display: flex;
  justify-content: center;
}

.home-hero-brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
}

.home-logo {
  margin: 0 0 18px;
  line-height: 1.05;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  text-align: center;
}

.home-logo-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  padding: 0.18em 0.38em;
  font-size: clamp(2.15rem, 8vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  z-index: 0;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.5));
}

.home-logo-brackets {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.04em;
  margin-right: 0.02em;
  /* Общая высота ряда — обе скобки в одной линии по центру */
  height: 1.22em;
}

.home-logo-inner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 118%;
  height: 155%;
  z-index: -1;
  background: radial-gradient(
    ellipse 80% 72% at 50% 48%,
    rgba(200, 45, 55, 0.32) 0%,
    rgba(90, 22, 32, 0.14) 48%,
    transparent 70%
  );
  pointer-events: none;
}

.home-logo-bracket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 100%;
  line-height: 1;
  font-weight: 800;
  font-family: inherit;
  user-select: none;
}

/* Скобки: чуть разный размер; символ по центру по вертикали в общей высоте */
.home-logo-bracket--open {
  font-size: 1.06em;
  color: #f8f9ff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.4),
    0 5px 26px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(255, 255, 255, 0.06);
}

.home-logo-bracket--close {
  font-size: 0.94em;
  color: var(--accent);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 4px 20px rgba(160, 35, 45, 0.55),
    0 0 22px rgba(229, 57, 53, 0.28);
}

.home-logo-text {
  color: #f8f9ff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 4px 22px rgba(0, 0, 0, 0.5);
}

.home-logo-dev {
  font-weight: 800;
  color: var(--accent);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 4px 18px rgba(160, 35, 45, 0.45);
}

.home-slogan {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  font-family: var(--code-font);
  font-size: clamp(0.7rem, 1.65vw, 0.82rem);
  font-weight: 600;
  color: #a8b0c8;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(0, 0, 0, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 10px 32px rgba(0, 0, 0, 0.22),
    0 0 36px rgba(120, 35, 45, 0.06);
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: clamp(12px, 2.5vh, 28px);
  margin-bottom: clamp(28px, 5vh, 48px);
  padding: 0 16px;
}

.btn-home-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid var(--accent-border);
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.95), rgba(109, 31, 39, 0.92));
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28), 0 0 28px rgba(120, 30, 40, 0.2);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.btn-home-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 160, 165, 0.55);
}

.btn-home-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-home-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 24, 42, 0.65);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.btn-home-secondary:hover {
  transform: translateY(-1px);
  border-color: #50619d;
}

.btn-home-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.home-process,
.home-trust {
  width: 100%;
  max-width: 640px;
  text-align: left;
  padding: 0 16px 32px;
}

.home-section-title {
  margin: 0 0 18px;
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-process-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(229, 57, 53, 0.35);
  background: linear-gradient(155deg, rgba(22, 26, 42, 0.98), rgba(18, 22, 38, 0.95));
  box-shadow:
    0 0 0 1px rgba(229, 57, 53, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 0 36px rgba(120, 35, 45, 0.14);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.home-process-step:hover {
  border-color: rgba(229, 57, 53, 0.55);
  box-shadow:
    0 0 0 1px rgba(229, 57, 53, 0.22),
    0 16px 48px rgba(0, 0, 0, 0.32),
    0 0 44px rgba(160, 40, 50, 0.18);
  transform: translateY(-2px);
}

.home-process-step__n {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #ffc8cc;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.home-process-step__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.home-process-step__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #8b96c4;
}

.home-trust-note {
  margin: -8px 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #6d7a9e;
}

.home-testimonials {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-testimonial {
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(120, 140, 200, 0.18);
  background: rgba(0, 0, 0, 0.14);
}

.home-testimonial__quote {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #c5cce8;
  font-style: normal;
}

.home-testimonial__meta {
  margin: 0;
}

.home-testimonial__author {
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  color: #7f8ab2;
}

.trust-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(120, 140, 200, 0.18);
  background: rgba(0, 0, 0, 0.14);
}

.home-testimonial__logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.home-testimonial__logo--empty {
  visibility: hidden;
}

.home-testimonial__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trust-card__body {
  min-width: 0;
}

.panel-cta {
  margin-top: clamp(20px, 4vh, 36px);
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(120, 140, 200, 0.2);
  background: rgba(0, 0, 0, 0.12);
  text-align: center;
}

.panel-cta__text {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: #b4bddc;
  line-height: 1.45;
}

.panel-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.panel-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: 11px;
  border: 1px solid var(--accent-border);
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.9), rgba(109, 31, 39, 0.88));
  transition: transform 0.15s ease;
}

.panel-cta__link:hover {
  transform: translateY(-1px);
}

.panel-cta__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.panel-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(18, 24, 42, 0.55);
  transition: border-color 0.15s ease;
}

.panel-cta__btn:hover {
  border-color: #50619d;
}

.panel-cta__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-list--animated {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-list--animated .faq-item {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.faq-item__summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background 0.2s ease;
}

.faq-item__summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-item__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-item__chev {
  flex-shrink: 0;
  font-weight: 800;
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-item__chev {
  transform: rotate(45deg);
}

.faq-item__region {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-item__region {
  grid-template-rows: 1fr;
}

.faq-item__inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item__a {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #8b96c4;
  white-space: pre-line;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__region,
  .faq-item__chev {
    transition: none;
  }
}

.panel.about-panel,
.panel.process-panel,
.panel.trust-panel,
.panel.faq-panel {
  scrollbar-width: none;
}

.panel.about-panel::-webkit-scrollbar,
.panel.process-panel::-webkit-scrollbar,
.panel.trust-panel::-webkit-scrollbar,
.panel.faq-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* —— About, Process, Trust, FAQ —— */
.about-panel,
.process-panel,
.trust-panel,
.faq-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-panel > .panel-inner,
.process-panel > .panel-inner,
.trust-panel > .panel-inner,
.faq-panel > .panel-inner {
  width: 100%;
  max-width: var(--content-max);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-panel .page-block-flow.home-process,
.trust-panel .page-block-flow,
.faq-panel .faq-list--animated {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 0 8px;
  text-align: left;
}

.nav-group {
  position: relative;
  display: inline-flex;
  z-index: 2;
}

.nav-group__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--card), var(--card-2));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
}

.nav-group__menu[hidden] {
  display: none !important;
}

.nav-group__item {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.nav-group__item:hover,
.nav-group__item.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.segment--group::after {
  content: '▾';
  display: inline-block;
  margin-left: 6px;
  font-size: 9px;
  opacity: 0.75;
  vertical-align: middle;
}

.section-page {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.section-header {
  position: relative;
  margin: 0;
  padding: 4px 0 4px 22px;
  max-width: 42rem;
}

.section-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  bottom: 0.45em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-burgundy) 100%);
}

.section-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(229, 57, 53, 0.88);
}

.about-headline {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 4.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.about-lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
  color: #8b96c4;
  line-height: 1.55;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px) clamp(32px, 5vw, 56px);
  align-items: center;
  margin: 0;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  position: relative;
}

@media (min-width: 721px) {
  .about-visual {
    position: sticky;
    top: calc(var(--panel-pad-y) + 8px);
    align-self: start;
    padding-top: 8px;
  }
}

.about-avatar {
  position: relative;
  width: min(196px, 46vw);
  aspect-ratio: 1;
}

.about-avatar-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--accent-border);
  box-shadow:
    0 0 28px var(--accent-glow),
    inset 0 0 20px rgba(109, 31, 39, 0.15);
  animation: none;
}

.about-avatar-core {
  position: absolute;
  inset: 5px;
  z-index: 1;
  border-radius: 50%;
  background: linear-gradient(165deg, #181d32, #0e111f);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.about-avatar-mono {
  font-family: var(--code-font);
  font-size: clamp(1.85rem, 5.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.05em;
}

.about-avatar-mono::first-letter {
  color: var(--accent);
}

.about-visual-tag {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d7ab0;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-height: 0;
  padding: 4px 0 8px;
}

.about-copy .about-body {
  margin: 0 0 1.1em;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 54ch;
}

.about-body--secondary {
  margin-bottom: 0 !important;
  color: #949ec9;
}

.about-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
  align-items: stretch;
}

.about-pillar {
  margin: 0;
  padding: 20px 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--card), var(--card-2));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.about-pillar:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.about-pillar-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: rgba(255, 200, 200, 0.92);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.about-pillar-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.about-pillar-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
  color: #8f99be;
  flex: 1;
}

.about-skills {
  margin: 0;
  padding: 22px 20px 20px;
  border-radius: 18px;
  border: 1px solid rgba(120, 140, 200, 0.14);
  background: linear-gradient(165deg, rgba(18, 24, 42, 0.55), rgba(10, 14, 26, 0.35));
}

.about-skills-label {
  display: block;
  margin-bottom: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a87b5;
}

.about-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.about-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--code-font);
  font-size: 12px;
  font-weight: 500;
  color: #c8d0ef;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

@media (max-width: 720px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-visual {
    order: -1;
    position: relative;
    top: auto;
    align-self: center;
    padding-top: 0;
  }

  .section-header {
    max-width: none;
    padding-left: 18px;
  }

  .about-pillars {
    grid-template-columns: 1fr;
  }

  .about-skills {
    padding: 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-avatar-ring {
    animation: none;
  }
}

.section-header .section-title {
  margin-bottom: 0;
}

.contacts-title.section-title {
  margin-bottom: 12px;
}

.section-page > .grid,
.section-page > .filters {
  margin-top: 0;
}

.section-title {
  margin: 0 0 clamp(14px, 2vh, 20px);
  padding-top: 2px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.panel > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 760px;
}

.grid {
  margin-top: clamp(12px, 2vh, 22px);
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: clamp(12px, 1.8vw, 16px);
}

.grid.grid--empty-projects {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.projects-empty {
  width: 100%;
  max-width: 560px;
}

.projects-empty__card {
  position: relative;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 32px) clamp(20px, 4vw, 28px);
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(165deg, rgba(22, 28, 48, 0.92) 0%, rgba(14, 18, 32, 0.88) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.projects-empty__accent {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(72%, 280px);
  height: 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, transparent, var(--accent) 22%, var(--accent-burgundy) 78%, transparent);
  opacity: 0.9;
}

.projects-empty__title {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}

.projects-empty__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.filters {
  margin-top: clamp(8px, 1.5vh, 14px);
  margin-bottom: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.filter-btn.is-active {
  border-color: var(--accent-border);
  background: var(--accent-muted);
  color: var(--text);
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(150deg, var(--card), var(--card-2));
  padding: 14px;
}

.card--project {
  padding-top: 0;
}

.card-media {
  margin: 0 -14px 12px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: rgba(0, 0, 0, 0.35);
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #151a2e, #0d101c);
  border-bottom: 1px solid var(--line);
}

.card-placeholder-svg {
  color: rgba(140, 155, 200, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card--clickable {
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.2s ease,
    box-shadow 0.22s ease;
}

.card--clickable:hover {
  border-color: var(--accent-border);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(229, 57, 53, 0.08);
  transform: translateY(-3px);
}

.card--clickable:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 3px;
}

.card-top {
  min-height: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-category {
  font-size: 12px;
  color: #8f99be;
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* HOT — тёплый оранжевый */
.badge-hot {
  color: #ffe8d4;
  border: 1px solid rgba(255, 160, 85, 0.55);
  background: linear-gradient(
    155deg,
    rgba(255, 145, 65, 0.38) 0%,
    rgba(200, 95, 35, 0.22) 48%,
    rgba(45, 28, 14, 0.45) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 210, 160, 0.14) inset,
    0 0 0 1px rgba(0, 0, 0, 0.2) inset,
    0 4px 14px rgba(255, 130, 50, 0.18);
}

/* Выгодно — насыщенный красный */
.badge-best {
  color: #ffd8dc;
  border: 1px solid rgba(255, 95, 95, 0.52);
  background: linear-gradient(
    155deg,
    rgba(255, 85, 85, 0.32) 0%,
    rgba(190, 45, 55, 0.3) 50%,
    rgba(50, 16, 20, 0.5) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 190, 195, 0.12) inset,
    0 0 0 1px rgba(0, 0, 0, 0.22) inset,
    0 4px 16px rgba(220, 55, 65, 0.22);
}

/* NEW — изумрудно-зелёный */
.badge-new {
  color: #d4f5e4;
  border: 1px solid rgba(80, 200, 145, 0.5);
  background: linear-gradient(
    155deg,
    rgba(55, 190, 125, 0.28) 0%,
    rgba(35, 130, 88, 0.26) 52%,
    rgba(10, 38, 28, 0.48) 100%
  );
  box-shadow:
    0 1px 0 rgba(170, 255, 210, 0.1) inset,
    0 0 0 1px rgba(0, 0, 0, 0.2) inset,
    0 4px 14px rgba(50, 190, 120, 0.16);
}

.card h3 {
  margin: 0 0 8px;
}

.card p {
  font-size: 14px;
  min-height: 56px;
}

.card .meta {
  margin-top: 12px;
  color: #d6dcf7;
  font-weight: 600;
}

/* —— Contacts —— */
.contacts-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #8b96c4;
  max-width: 36rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 22px);
  align-items: stretch;
}

.contacts-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  text-decoration: none;
  color: inherit;
  padding: 24px 22px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--card), var(--card-2));
  box-shadow: none;
  transition:
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
  min-height: 200px;
}

.contacts-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 40px rgba(120, 30, 40, 0.12);
}

.contacts-card:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: 3px;
}

.contacts-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.contacts-card-icon--tg {
  color: rgba(255, 200, 205, 0.95);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.contacts-card-icon--mail {
  color: #f0c4c8;
  background: rgba(109, 31, 39, 0.35);
  border: 1px solid rgba(139, 45, 55, 0.55);
}

.contacts-card-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.contacts-card-value {
  display: block;
  font-family: var(--code-font);
  font-size: 13px;
  font-weight: 500;
  color: #b4bddc;
  margin-bottom: 10px;
  word-break: break-all;
}

.contacts-card-hint {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #7f8ab2;
  margin-bottom: auto;
  padding-bottom: 16px;
  flex: 1;
}

.contacts-card-action {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #c8d3ff;
  margin-top: 4px;
}

.contacts-card:hover .contacts-card-action {
  color: var(--accent);
}

.contacts-card-arrow {
  color: var(--accent);
  font-weight: 700;
}

.shell-main:focus-visible {
  outline: none;
}

.contacts-footnote {
  margin: 0;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #6d7a9e;
  border-radius: 14px;
  border: 1px dashed rgba(120, 140, 200, 0.25);
  background: rgba(0, 0, 0, 0.15);
  max-width: 42rem;
}

@media (max-width: 640px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contacts-card {
    min-height: 0;
  }
}

.footer-rule {
  flex-shrink: 0;
  border: none;
  height: 1px;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--line) 18%,
    var(--line) 82%,
    transparent 100%
  );
  opacity: 0.95;
}

.footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 0 20px;
  font-size: 12px;
  color: #7f8ab2;
}

.footer__start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
  flex: 1 1 200px;
}

.footer-copy {
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-note {
  color: #6a769e;
  min-width: 0;
  line-height: 1.4;
  max-width: 56ch;
}

.footer__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.footer-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  text-align: right;
  font-size: 11px;
  color: #5c678a;
  line-height: 1.45;
  flex: 0 1 auto;
  max-width: 100%;
}

.footer-keys__label {
  font-weight: 600;
  color: #6a769e;
  margin-right: 2px;
}

.footer-keys__chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 5px;
}

.footer-keys__sep {
  opacity: 0.55;
  margin: 0 2px;
  user-select: none;
}

.footer-keys__join {
  opacity: 0.55;
  font-size: 0.92em;
  user-select: none;
}

.footer-keys__hint {
  opacity: 0.9;
  font-size: 10px;
  color: #4f5c7a;
}

/* Подсказки по клавишам в футере — только на широком экране (ПК) */
@media (max-width: 1024px) {
  .footer-keys {
    display: none !important;
  }
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5em;
  padding: 0.2em 0.42em;
  font-family: var(--code-font);
  font-size: 0.92em;
  font-weight: 600;
  line-height: 1.2;
  color: #e8ecff;
  background: linear-gradient(180deg, #222842 0%, #151a2d 100%);
  border: 1px solid rgba(120, 140, 200, 0.38);
  border-radius: 6px;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.kbd--wide {
  min-width: 2.75em;
  padding-left: 0.5em;
  padding-right: 0.5em;
}

.kbd--arrow {
  min-width: 1.65em;
}

.reconstruction-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  min-height: 100%;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  text-align: center;
  background: rgba(7, 9, 18, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.reconstruction-overlay[hidden] {
  display: none !important;
}

.reconstruction-overlay-text {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  /*
    Высота шапки + отступ: панель не заезжает на логотип/гамбургер.
    12px margin-top у .topbar--glass + ~52px ряд + вертикальные padding ≈ 80px.
  */
  :root {
    --main-nav-panel-top: calc(env(safe-area-inset-top, 0px) + 80px);
  }

  .topbar--glass {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .main-nav-toggle {
    display: inline-flex;
  }

  .main-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 88;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    appearance: none;
    background: rgba(4, 6, 14, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease;
  }

  .app-shell.main-nav-drawer-open .main-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /*
    Fixed #tabs lives inside .topbar--glass. backdrop-filter on the header creates a
    containing block for fixed descendants — the drawer was only as tall as the bar
    and sat under the full-screen backdrop. Lift the header above the overlay and
    drop the blur on the bar while open so the panel uses the viewport.
  */
  .app-shell.main-nav-drawer-open .topbar--glass {
    position: relative;
    z-index: 100;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .segmented {
    position: fixed;
    top: var(--main-nav-panel-top);
    left: 0;
    bottom: 0;
    z-index: 90;
    width: min(300px, 88vw);
    flex: none;
    min-width: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px 14px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 0 16px 16px 0;
    border: 1px solid rgba(42, 49, 72, 0.95);
    border-left: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(175deg, #141a2e 0%, #0d111d 55%, #0a0e18 100%);
    box-shadow:
      12px 0 40px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  .app-shell.main-nav-drawer-open .segmented {
    transform: translateX(0);
    pointer-events: auto;
  }

  .segmented .segmented-pill {
    display: none;
  }

  .segment {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    font-size: 13px;
    padding: 11px 12px;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
  }

  .segment.is-active {
    background: rgba(229, 57, 53, 0.12);
    color: var(--text);
  }

  .segment--group {
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-group__menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 4px;
    padding: 4px 0 8px 10px;
    border: none;
    background: transparent;
    box-shadow: none;
    gap: 2px;
  }

  .nav-group__menu:not([hidden]) {
    display: flex !important;
  }

  .nav-group__item {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
  }

  .nav-group__item.is-active {
    background: rgba(229, 57, 53, 0.1);
  }

  .top-actions {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb,
  .code-chip {
    animation: none !important;
  }

  .segmented-pill {
    transition: none !important;
  }

  .main-nav-backdrop,
  .segmented {
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 0 14px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .code-chip--5,
  .code-chip--6 {
    display: none;
  }

  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .footer__start,
  .footer__end {
    flex-direction: column;
    align-items: flex-start;
    flex: none;
    width: 100%;
  }

  .footer__end {
    gap: 12px;
  }

  .footer-keys {
    justify-content: flex-start;
    text-align: left;
  }

  .section-title {
    font-size: 1.45rem;
  }
}

/* —— Project detail modal —— */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, 4vh) 16px;
}

.project-modal.hidden {
  display: none !important;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(10px);
}

.project-modal-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.project-modal-card {
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 880px);
  border-radius: 22px;
  border: 1px solid rgba(120, 140, 200, 0.28);
  background: linear-gradient(165deg, #12182c 0%, #0c101f 48%, #0a0e1a 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}

.project-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 24, 42, 0.92);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.project-modal-close:hover {
  border-color: #50619d;
  background: #1a2238;
}

.project-modal-body {
  overflow-y: auto;
  padding: 0 22px 26px;
  -webkit-overflow-scrolling: touch;
}

.pm-hero {
  position: relative;
  width: calc(100% + 44px);
  margin-left: -22px;
  margin-right: -22px;
  margin-bottom: 22px;
  aspect-ratio: 16 / 9;
  min-height: 176px;
  max-height: min(42vh, 320px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.pm-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-hero-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e243c 0%, #12162a 40%, #0a0d18 100%);
}

.pm-hero-fallback-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(140, 155, 200, 0.4);
}

.pm-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(6, 8, 16, 0.94) 0%,
    rgba(6, 8, 16, 0.55) 42%,
    rgba(6, 8, 16, 0.15) 100%
  );
  pointer-events: none;
}

.pm-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 22px 20px;
  padding-right: 56px;
}

.pm-case-number {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 240, 245, 0.72);
}

.pm-title--hero {
  margin: 0;
  font-size: clamp(1.4rem, 4.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

.pm-head {
  margin-bottom: 18px;
}

.pm-tagline {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.pm-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pm-meta-text {
  font-size: 13px;
  color: #8f99be;
}

.pm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.pm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: #c5cce8;
}

.pm-chip b {
  font-weight: 700;
  color: #8f99be;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.pm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  margin-bottom: 22px;
  align-items: start;
}

.pm-two-col--single {
  grid-template-columns: 1fr;
}

.pm-two-col .pm-section {
  margin-bottom: 0;
}

.pm-section--full {
  margin-bottom: 22px;
}

.pm-section--full:last-child {
  margin-bottom: 0;
}

.pm-list--cols {
  column-count: 2;
  column-gap: 32px;
}

.pm-list--cols li {
  break-inside: avoid;
}

.pm-tech-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.pm-tech-cols--single {
  grid-template-columns: 1fr;
}

.pm-tech-block {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.pm-subh {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa3c8;
}

.pm-subh--extra {
  margin-top: 18px;
  margin-bottom: 12px;
  color: rgba(229, 57, 53, 0.88);
}

.pm-stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-stack-chip {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 10px;
  font-family: var(--code-font);
  font-size: 12px;
  font-weight: 500;
  color: #e8e8f0;
  border: 1px solid var(--accent-border);
  background: rgba(109, 31, 39, 0.22);
}

.pm-infra-text {
  white-space: pre-wrap;
  margin: 0;
}

.pm-spec-grid--dense {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .pm-two-col {
    grid-template-columns: 1fr;
  }

  .pm-list--cols {
    column-count: 1;
  }

  .pm-tech-cols {
    grid-template-columns: 1fr;
  }

  .pm-spec-grid--dense {
    grid-template-columns: 1fr;
  }
}

.pm-section {
  margin-bottom: 22px;
}

.pm-section:last-child {
  margin-bottom: 0;
}

.pm-section h3 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(229, 57, 53, 0.92);
}

.pm-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #b8c0df;
  white-space: pre-wrap;
}

.pm-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #b8c0df;
  font-size: 14px;
  line-height: 1.6;
}

.pm-list li {
  margin-bottom: 6px;
}

.pm-list li:last-child {
  margin-bottom: 0;
}

.pm-spec-grid {
  display: grid;
  gap: 10px;
}

.pm-spec {
  display: grid;
  grid-template-columns: minmax(100px, 34%) 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  align-items: start;
}

.pm-spec dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8f99be;
}

.pm-spec dd {
  margin: 0;
  font-size: 14px;
  color: #dce2f5;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .pm-spec {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* —— Lead request modal —— */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, 4vh) 16px;
}

.lead-modal.hidden {
  display: none !important;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(10px);
}

.lead-modal-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  pointer-events: none;
}

.lead-modal-card {
  pointer-events: auto;
  position: relative;
  padding: 22px 22px 20px;
  border-radius: 22px;
  border: 1px solid rgba(120, 140, 200, 0.28);
  background: linear-gradient(165deg, #12182c 0%, #0c101f 48%, #0a0e1a 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

/* После отправки: только блок успеха + ссылка на Telegram, без повторного мастера */
.lead-modal-card--lead-done .lead-modal-lead,
.lead-modal-card--lead-done .lead-honeypot,
.lead-modal-card--lead-done #leadClassicFields,
.lead-modal-card--lead-done #leadWizardHost,
.lead-modal-card--lead-done #leadCaptchaRow,
.lead-modal-card--lead-done #leadTurnstileMount,
.lead-modal-card--lead-done #leadFormError {
  display: none !important;
}

.lead-modal-card--lead-done .lead-submit,
.lead-modal-card--lead-done #leadModalTgLink {
  display: none !important;
}

.lead-modal-card--lead-done #leadFormSuccess {
  margin-top: 0;
}

.lead-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(18, 24, 42, 0.92);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.lead-modal-close:hover {
  border-color: #50619d;
  background: #1a2238;
}

.lead-modal-title {
  margin: 0 44px 8px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.lead-modal-lead {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-field--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.lead-label {
  font-size: 12px;
  font-weight: 600;
  color: #b4bdd9;
}

.lead-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 26, 0.85);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}

.lead-input:focus {
  outline: none;
  border-color: #50619d;
}

.lead-input--short {
  max-width: 120px;
  flex: 0 0 auto;
}

.lead-textarea {
  min-height: 120px;
  resize: vertical;
}

.lead-captcha-q {
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.lead-turnstile {
  min-height: 68px;
  display: flex;
  justify-content: center;
}

.lead-form-error {
  margin: 0;
  font-size: 13px;
  color: #ff8a80;
}

.lead-form-success-wrap {
  margin: 0;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(100, 200, 150, 0.28);
  background: rgba(20, 40, 32, 0.35);
}

.lead-form-success-msg {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #9ed9b8;
}

.lead-form-success-wrap--with-cabinet .lead-form-success-msg {
  margin-bottom: 12px;
}

.lead-cabinet-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-cabinet-link-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8aa0c8;
}

.lead-cabinet-warn {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #c5d0ea;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.22);
}

.lead-cabinet-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.lead-cabinet-url-input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 22, 0.9);
  color: #dbe3ff;
  font-family: var(--code-font, ui-monospace, monospace);
  font-size: 12px;
  line-height: 1.35;
}

.lead-cabinet-copy {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--accent-border);
  background: linear-gradient(165deg, rgba(229, 57, 53, 0.22) 0%, rgba(109, 31, 39, 0.35) 100%);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.lead-cabinet-copy:hover {
  border-color: rgba(229, 57, 53, 0.65);
  background: linear-gradient(165deg, rgba(229, 57, 53, 0.32) 0%, rgba(109, 31, 39, 0.45) 100%);
}

.lead-cabinet-copied {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #8bc4a8;
}

.lead-cabinet-open {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid rgba(229, 57, 53, 0.35);
  padding-bottom: 1px;
}

.lead-cabinet-open:hover {
  color: #ff7961;
  border-bottom-color: rgba(255, 121, 97, 0.5);
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 4px;
}

.lead-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.lead-alt-link {
  font-size: 13px;
  font-weight: 600;
  color: #9aa8d8;
  text-decoration: none;
  border-bottom: 1px dotted rgba(154, 168, 216, 0.45);
  transition: color 0.2s;
}

.lead-alt-link:hover {
  color: var(--text);
}

/* —— Cookie notice —— */
.cookie-banner.hidden {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  padding: 12px var(--panel-pad-x) calc(14px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.cookie-banner__card {
  pointer-events: auto;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px 16px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 -8px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(229, 57, 53, 0.08);
}

.cookie-banner__layout {
  display: flex;
  align-items: flex-start;
  gap: 14px 18px;
}

.cookie-banner__emoji {
  flex-shrink: 0;
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.cookie-banner__textblock {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-banner__title {
  display: block;
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.cookie-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-banner__accept {
  flex-shrink: 0;
  align-self: center;
  margin-top: 2px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--accent-border);
  background: linear-gradient(180deg, rgba(229, 57, 53, 0.22) 0%, rgba(109, 31, 39, 0.35) 100%);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}

.cookie-banner__accept:hover {
  border-color: rgba(229, 57, 53, 0.65);
  box-shadow: 0 0 20px var(--accent-glow);
}

.cookie-banner__accept:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-cookie {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 12px;
  color: #8b93b8;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-cookie:hover {
  color: #b4bdd9;
}

.footer-cookie:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .cookie-banner__layout {
    flex-wrap: wrap;
  }

  .cookie-banner__accept {
    width: 100%;
    margin-top: 4px;
  }
}

/* —— Legal pages (privacy, public offer) —— */
body.legal-page {
  overflow-y: auto;
  min-height: 100dvh;
  background: var(--bg);
}

.legal-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(var(--content-max) + var(--panel-pad-x) * 2);
  margin: 0 auto;
  padding: 14px var(--panel-pad-x);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.legal-brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.legal-brand:visited {
  color: var(--text);
}

.legal-brand span {
  color: var(--accent);
}

.legal-lang {
  display: inline-flex;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.legal-lang__btn {
  padding: 8px 14px;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.legal-lang__btn:hover {
  color: var(--text);
  background: var(--accent-muted);
}

.legal-lang__btn.is-active {
  color: var(--text);
  background: rgba(229, 57, 53, 0.2);
}

.legal-lang__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.legal-main {
  max-width: calc(var(--content-max) + var(--panel-pad-x) * 2);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) var(--panel-pad-x) 48px;
}

.legal-doc {
  max-width: 72ch;
}

.legal-doc__title,
.legal-doc h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.legal-doc__meta {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--muted);
}

.legal-doc h2 {
  margin: 28px 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #dce0f5;
}

.legal-doc p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: #b8c0df;
}

.legal-doc ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
  color: #b8c0df;
  line-height: 1.6;
}

.legal-doc li {
  margin-bottom: 8px;
}

.legal-doc li strong {
  color: #d4daf0;
}

.legal-doc__note,
.legal-doc blockquote {
  margin-top: 32px !important;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(0, 0, 0, 0.2);
  font-size: 13px !important;
  font-style: italic;
  color: var(--muted) !important;
}

.legal-doc blockquote {
  margin-left: 0;
  margin-right: 0;
}

.legal-foot {
  max-width: calc(var(--content-max) + var(--panel-pad-x) * 2);
  margin: 0 auto;
  padding: 0 var(--panel-pad-x) 32px;
}

.legal-foot a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.legal-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  flex-shrink: 0;
}

.footer-legal__link {
  font-size: 12px;
  color: #7c88b0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal__link:hover {
  color: #aab6d8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal__sep {
  color: #4f5c7a;
  user-select: none;
  font-size: 12px;
}

/* —— Client cabinet (cabinet.html) —— */
.cabinet-body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  position: relative;
}

.cabinet-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cabinet-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}

.cabinet-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  opacity: 0.24;
}

.cabinet-bg__glow--a {
  width: min(72vw, 500px);
  height: min(72vw, 500px);
  top: -22%;
  left: -18%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
}

.cabinet-bg__glow--b {
  width: min(52vw, 400px);
  height: min(52vw, 400px);
  bottom: -12%;
  right: -22%;
  background: radial-gradient(circle, var(--accent-burgundy) 0%, transparent 62%);
  opacity: 0.2;
}

.cabinet-wrap {
  position: relative;
  z-index: 1;
  max-width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 5vw, 32px) clamp(16px, 4vw, 28px) 56px;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 800px) {
  .cabinet-layout {
    grid-template-columns: 1fr;
  }
}

.cabinet-span-full {
  grid-column: 1 / -1;
}

.cabinet-hero.cabinet-span-full {
  margin: 0;
}

.cabinet-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.cabinet-head {
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
}

.cabinet-head-tag {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.cabinet-brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
}

.cabinet-brand span {
  color: var(--accent);
}

.cabinet-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cabinet-hero {
  padding: clamp(22px, 4vw, 30px) clamp(20px, 4vw, 28px);
  border-radius: 20px;
  border: 1px solid rgba(120, 140, 200, 0.24);
  background: linear-gradient(
    155deg,
    rgba(22, 28, 48, 0.94) 0%,
    rgba(12, 16, 30, 0.9) 48%,
    rgba(14, 18, 32, 0.96) 100%
  );
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.cabinet-eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cabinet-project-title {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cabinet-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(229, 57, 53, 0.3);
  background: rgba(229, 57, 53, 0.09);
  font-size: 13px;
  font-weight: 600;
  color: #e8eaf6;
}

.cabinet-status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  flex-shrink: 0;
}

.cabinet-staging-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(120, 140, 200, 0.26);
  background: rgba(16, 22, 40, 0.78);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.cabinet-staging-card:hover {
  border-color: rgba(229, 57, 53, 0.42);
  background: rgba(22, 30, 52, 0.9);
  transform: translateY(-1px);
}

.cabinet-staging-card__label {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}

.cabinet-staging-card__arrow {
  font-size: 18px;
  color: var(--accent);
  align-self: start;
  line-height: 1.2;
}

.cabinet-staging-card__hint {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
}

.cabinet-staging-card--muted {
  cursor: default;
  text-decoration: none;
  color: inherit;
  pointer-events: none;
  opacity: 0.92;
}

.cabinet-staging-card--muted:hover {
  transform: none;
  border-color: rgba(120, 140, 200, 0.26);
  background: rgba(16, 22, 40, 0.78);
}

.cabinet-soon {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.45;
}

.cabinet-phase--soon .cabinet-phase-body {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.cabinet-staging-card--accent .cabinet-staging-card__label {
  color: #b8c4ff;
}

.cabinet-meta-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cabinet-meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.cabinet-meta-row dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cabinet-meta-row dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #dde2f5;
  line-height: 1.4;
}

@media (min-width: 480px) {
  .cabinet-meta-row {
    grid-template-columns: minmax(120px, 38%) 1fr;
    align-items: baseline;
    gap: 12px 20px;
  }
}

.cabinet-card {
  padding: 20px 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(120, 140, 200, 0.22);
  background: rgba(14, 18, 32, 0.74);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.cabinet-card__title {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cabinet-phases-block .cabinet-card__title {
  margin-bottom: 16px;
}

.cabinet-phase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cabinet-phase {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 0 0 18px;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

.cabinet-phase:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 20px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(180deg, rgba(229, 57, 53, 0.5), rgba(120, 140, 200, 0.12));
  border-radius: 2px;
}

.cabinet-phase--empty {
  padding-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.cabinet-phase--empty::before {
  display: none;
}

.cabinet-phase-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(229, 57, 53, 0.65);
  background: rgba(229, 57, 53, 0.2);
  box-shadow: 0 0 14px rgba(229, 57, 53, 0.28);
}

.cabinet-phase-body {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 22, 38, 0.58);
}

.cabinet-phase--empty .cabinet-phase-body {
  border-style: dashed;
  background: rgba(12, 16, 28, 0.42);
}

.cabinet-phase-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.cabinet-phase-top strong {
  font-weight: 600;
}

.cabinet-phase-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.cabinet-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.cabinet-badge--done {
  background: rgba(229, 57, 53, 0.15);
  color: #f5b4b2;
}

.cabinet-note__body {
  margin: 0;
  line-height: 1.6;
  color: #c5cce8;
  font-size: 14px;
}

.cabinet-err,
.cabinet-loading {
  color: var(--muted);
  line-height: 1.55;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 32, 0.5);
}

.cabinet-err {
  color: #e57373;
  border-color: rgba(229, 57, 53, 0.25);
  background: rgba(229, 57, 53, 0.06);
}

/* —— Lead wizard (main site modal) —— */
.lead-wizard-progress {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.lead-wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.lead-wizard-next,
.lead-wizard-prev {
  margin-top: 0;
}

.lead-wizard-custom {
  margin-top: 4px;
}

.lead-wz-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.lead-wz-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.lead-wz-chip input {
  accent-color: var(--accent);
}

.lead-wz-dates {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-wz-date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lead-wz-date-row .lead-input[type='date'] {
  flex: 1 1 160px;
  min-width: 0;
}

.lead-wz-budget-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 520px) {
  .lead-wz-budget-row {
    grid-template-columns: 1fr;
  }
}

.lead-wz-contact-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(14, 18, 32, 0.45);
}

.lead-wz-prefix {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.lead-wz-prefix.hidden {
  display: none;
}

.lead-wz-contact-wrap .lead-wz-contact-value {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}

.lead-field--block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-tg-link--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: transparent;
  border: none;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--muted);
  padding: 0;
}

.lead-wizard-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(120, 140, 200, 0.12);
}

.lead-wizard-track-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-burgundy), var(--accent));
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lead-wizard-dots {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.lead-wizard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(120, 140, 200, 0.2);
}

.lead-wizard-dot--done {
  background: rgba(229, 57, 53, 0.4);
  border-color: rgba(229, 57, 53, 0.55);
}

.lead-wizard-dot--active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.lead-input.lead-input--invalid {
  border-color: rgba(229, 57, 53, 0.65) !important;
  box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.12);
}

/* —— Thank you (thank-you.html) —— */
.thank-you-body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

.thank-you-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 48px) clamp(18px, 4vw, 28px);
}

.thank-you-brand {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 24px;
}

.thank-you-brand span {
  color: var(--accent);
}

.thank-you-card {
  padding: clamp(22px, 4vw, 28px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 32, 0.55);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.thank-you-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 800;
}

.thank-you-lead {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.thank-you-rid {
  margin: 0 0 18px;
  font-size: 14px;
}

.thank-you-rid__l {
  color: var(--muted);
}

.thank-you-rid code {
  font-family: JetBrains Mono, ui-monospace, monospace;
  font-size: 13px;
}

.thank-you-subh {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.thank-you-muted {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.thank-you-cabinet {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.thank-you-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.thank-you-url-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 20, 0.45);
  color: var(--text);
  font-size: 13px;
}

.thank-you-copy-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.thank-you-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 4px;
}

.thank-you-actions {
  margin: 24px 0 0;
}

.thank-you-home-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.thank-you-home-link:hover {
  text-decoration: underline;
}
