:root {
  --bg: #07060b;
  --bg-2: #0c0913;
  --surface: rgba(18, 14, 28, 0.72);
  --surface-solid: #120e1c;
  --border: rgba(196, 181, 253, 0.14);
  --border-strong: rgba(196, 181, 253, 0.28);
  --text: #f7f4ff;
  --muted: #b7b0c8;
  --violet: #8b5cf6;
  --lilac: #c4b5fd;
  --orchid: #e9d5ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.24), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(196, 181, 253, 0.12), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(109, 40, 217, 0.16), transparent 34%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--violet);
  color: white;
  padding: 10px 14px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* =============================
   Header
   ============================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(7, 6, 11, 0.88), rgba(7, 6, 11, 0.58));
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(7, 6, 11, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.logo-svg {
  width: 44px;
  height: 44px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.45));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s ease;
}

.logo:hover .logo-svg {
  transform: rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 0 22px rgba(196, 181, 253, 0.6));
}

.logo em {
  font-style: normal;
  color: var(--lilac);
  font-weight: 600;
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #a855f7 45%, #c084fc);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 38px rgba(139, 92, 246, 0.36);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}

.menu-toggle i {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  position: relative;
}

.menu-toggle i::before,
.menu-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.menu-toggle i::before {
  top: -6px;
}

.menu-toggle i::after {
  top: 6px;
}

/* =============================
   Hero
   ============================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  padding: 112px 0 88px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    460px circle at var(--mouse-x, 70%) var(--mouse-y, 35%),
    rgba(139, 92, 246, 0.16),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.hero:hover::before {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.hero-orb-1 {
  width: 420px;
  height: 420px;
  left: -90px;
  top: -50px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.42), transparent 65%);
  animation: orbFloat1 16s ease-in-out infinite;
}

.hero-orb-2 {
  width: 360px;
  height: 360px;
  right: -70px;
  top: 10%;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.24), transparent 66%);
  animation: orbFloat2 19s ease-in-out infinite;
}

.hero-orb-3 {
  width: 520px;
  height: 520px;
  left: 35%;
  bottom: -240px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.22), transparent 68%);
  animation: orbFloat3 22s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 181, 253, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 181, 253, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black, transparent 72%);
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 72%);
  opacity: 0.42;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero .container {
  width: min(100% - 32px, 1220px);
  position: relative;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.08);
  color: var(--orchid);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.badge-icon {
  width: 15px;
  height: 15px;
  color: var(--lilac);
  opacity: 0.85;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.35));
  flex: 0 0 auto;
}

h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin: 0 0 22px;
  max-width: 18ch;
}

.text-gradient {
  background: linear-gradient(90deg, #ffffff, var(--lilac), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 32px;
}

.cat-line {
  display: block;
  margin-top: 12px;
  color: var(--orchid);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
}

.stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(196, 181, 253, 0.12);
  backdrop-filter: blur(10px);
}

.stat strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 30px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.18);
  display: grid;
  justify-items: center;
  padding-top: 9px;
  color: var(--muted);
  text-decoration: none;
  z-index: 2;
  background: rgba(7, 6, 11, 0.25);
  backdrop-filter: blur(8px);
}

.scroll-hint span {
  width: 4px;
  height: 9px;
  border-radius: 99px;
  background: var(--lilac);
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.08); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-35px, 45px, 0) scale(1.1); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(25px, -35px, 0) scale(1.06); }
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

/* =============================
   Сцена: окно + лежащая кошка
   Свечение — градиентами (не фильтрами), чтобы было видно всегда
   ============================= */

.cat-scene {
  width: clamp(330px, 42vw, 560px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.5));
  animation: sceneBreathe 8s ease-in-out infinite;
  will-change: transform;
}

@keyframes sceneBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* --- окно --- */
.win-frame {
  fill: rgba(14, 11, 22, 0.66);
  stroke: rgba(196, 181, 253, 0.22);
  stroke-width: 1.6;
}

.win-bar {
  stroke: rgba(196, 181, 253, 0.14);
  stroke-width: 1.2;
}

.win-dot { opacity: 0.6; }
.win-dot-r { fill: #ff5f57; }
.win-dot-y { fill: #ffbd2e; }
.win-dot-g { fill: #27c93f; }

.win-url {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(196, 181, 253, 0.12);
  stroke-width: 1;
}
.win-url-line { fill: rgba(255, 255, 255, 0.14); }

.win-code line {
  stroke: rgba(196, 181, 253, 0.18);
  stroke-width: 5;
  stroke-linecap: round;
}
.win-caret {
  fill: var(--lilac);
  animation: caretBlink 1.1s steps(1) infinite;
}
@keyframes caretBlink {
  0%, 50% { opacity: 0.9; }
  51%, 100% { opacity: 0; }
}

/* курсор-мышь на экране */
.win-mouse-halo { fill: url(#mouseHaloGrad); }
.win-mouse-arrow {
  fill: var(--orchid);
  filter: drop-shadow(0 0 6px rgba(196, 181, 253, 0.8));
}

/* --- зарево за кошкой: пульсирует = «живое» свечение без риска для геометрии --- */
.cat-backlight {
  fill: url(#backlightGrad);
  animation: backlightPulse 6s ease-in-out infinite;
}
@keyframes backlightPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* --- кошка: тёмная шерсть + яркий лиловый контур (rim-light) --- */
.cat-torso,
.cat-chest,
.cat-face,
.cat-ear,
.cat-paw,
.cat-tail {
  stroke: rgba(196, 181, 253, 0.55);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.cat-torso,
.cat-chest,
.cat-face,
.cat-ear,
.cat-paw {
  fill: url(#furGrad);
}

.cat-ear-inner {
  fill: rgba(139, 92, 246, 0.22);
  stroke: none;
}

.cat-nose {
  fill: rgba(233, 213, 255, 0.6);
  stroke: none;
}

.cat-mouth {
  fill: none;
  stroke: rgba(196, 181, 253, 0.4);
  stroke-width: 1.4;
  stroke-linecap: round;
}

/* усы: светлые, длинные, видимые БЕЗ фильтра */
.cat-whiskers path {
  fill: none;
  stroke: rgba(233, 213, 255, 0.78);
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* --- глаз: ореол(град) -> радужка(град) -> зрачок(двигается) -> веко(прищур) --- */
.cat-eye-halo { fill: url(#eyeHaloGrad); }

.cat-iris {
  fill: url(#irisGrad);
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 0.8;
}

/* двигается ТОЛЬКО зрачок с бликом */
.cat-pupil-move {
  transform: translate(
    calc(var(--look-x, 0) * 4px),
    calc(var(--look-y, 0) * 3px)
  );
  transition: transform 0.12s linear;
  will-change: transform;
}

.cat-pupil { fill: #07060b; }
.cat-spark { fill: rgba(255, 255, 255, 0.95); }

/* веко = прищур: заливка цветом шерсти поверх верхней части глаза */
.cat-lid {
  fill: url(#furGrad);
  stroke: rgba(196, 181, 253, 0.5);
  stroke-width: 1.2;
}

/* --- хвост: лента, махает кончиком рвано (покой -> быстрый взмах -> покой) --- */
.cat-tail-g {
  transform-box: view-box;
  transform-origin: 452px 158px;
  animation: tailFlick 5.4s ease-in-out infinite;
  will-change: transform;
}

.cat-tail { fill: url(#tailGrad); }

.cat-tail-tip-halo { fill: url(#tailTipGrad); }
.cat-tail-tip {
  fill: #ffffff;
  filter: drop-shadow(0 0 8px rgba(233, 213, 255, 0.9));
}

@keyframes tailFlick {
  0%, 56%   { transform: rotate(0deg); }     /* лежит спокойно */
  60%       { transform: rotate(10deg); }     /* быстрый взмах */
  64%       { transform: rotate(-8deg); }
  68%       { transform: rotate(5deg); }
  72%, 100% { transform: rotate(0deg); }      /* возврат и покой до следующего */
}

/* =============================
   Sections / cards / process
   ============================= */

.section {
  padding: 86px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.kicker {
  color: var(--lilac);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}

h3 {
  letter-spacing: -0.02em;
}

.section-description {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.cat-note {
  margin-top: 12px;
  color: var(--orchid);
}

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

.card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 14, 28, 0.86), rgba(12, 9, 19, 0.72));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

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

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(196, 181, 253, 0.18);
  color: var(--orchid);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.card ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.card li {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 18px;
  position: relative;
}

.card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--lilac);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(196, 181, 253, 0.06));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.panel h3 {
  margin-top: 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.5;
}

.checklist li::before {
  content: "✓";
  color: var(--lilac);
  font-weight: 800;
  flex: 0 0 auto;
}

.process-list {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(196, 181, 253, 0.12));
  border: 1px solid var(--border-strong);
  font-weight: 800;
  color: var(--orchid);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* =============================
   Хвост-разделитель
   ============================= */

.tail-divider {
  position: relative;
  padding: 8px 0;
  margin: -8px 0 4px;
  overflow: hidden;
}

.tail-svg {
  display: block;
  width: 100%;
  height: 90px;
}

.tail-path {
  fill: none;
  stroke: url(#tailGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tail-divider.visible .tail-path {
  stroke-dashoffset: 0;
}

.tail-tip {
  fill: var(--lilac);
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.55));
  transition: opacity 0.5s ease 1.3s;
}

.tail-divider.visible .tail-tip {
  opacity: 0.7;
}

/* =============================
   Портфолио / стек / FAQ
   ============================= */

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

.project {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.18), rgba(7, 6, 11, 0.92) 55%);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project:nth-child(even) {
  background: linear-gradient(200deg, rgba(196, 181, 253, 0.16), rgba(7, 6, 11, 0.94) 55%);
}

.project:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--orchid);
  font-size: 0.78rem;
  font-weight: 700;
}

.project h3 {
  margin: 18px 0 8px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.project p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-footer {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--lilac);
  font-weight: 700;
}

.project-footer a {
  color: inherit;
  text-decoration: none;
}

.project-footer a:hover {
  text-decoration: underline;
}

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

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(139, 92, 246, 0.1);
}

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

details {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 54px 20px 22px;
  font-weight: 700;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  background: rgba(139, 92, 246, 0.08);
}

summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lilac);
  font-size: 1.35rem;
  font-weight: 700;
}

details[open] summary::after {
  content: "−";
}

.faq-content {
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.65;
}

/* =============================
   Тихий след (paw trail)
   ============================= */

.paw-trail-wrap {
  padding: 4px 0 28px;
}

.paw-trail {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 5vw, 56px);
}

.paw {
  width: 22px;
  height: 22px;
  color: var(--lilac);
  opacity: 0;
  transform: rotate(calc(var(--r) * 1deg)) translateY(calc(var(--y) * 1px)) scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i) * 90ms);
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.25));
}

.paw-trail.visible .paw {
  opacity: var(--o, 0.25);
  transform: rotate(calc(var(--r) * 1deg)) translateY(calc(var(--y) * 1px)) scale(1);
}

.paw-final {
  width: 26px;
  height: 26px;
  color: var(--violet);
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.5));
}

/* =============================
   Контакты / футер
   ============================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.contact-card {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 14, 28, 0.9), rgba(12, 9, 19, 0.7));
  border: 1px solid var(--border);
}

.contact-card h3 {
  margin-top: 0;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 6px;
}

.contact-buttons .btn {
  min-width: 190px;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}

.contact-info li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info span {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-info strong {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.contact-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

footer {
  padding: 34px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

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

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* =============================
   Reveal on scroll
   ============================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* =============================
   Responsive
   ============================= */

@media (max-width: 1080px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual {
    min-height: 340px;
    order: 2;
  }

  .cat-scene {
    width: clamp(300px, 66vw, 480px);
  }
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(12, 9, 19, 0.97);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .menu-toggle {
    display: grid;
  }

  .header-cta {
    display: none;
  }

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

  .hero {
    padding: 84px 0 64px;
    min-height: auto;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 46px 1fr;
    gap: 14px;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .contact-buttons .btn {
    width: 100%;
  }

  .cat-scene {
    width: clamp(250px, 84vw, 380px);
  }

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

  .scroll-hint {
    display: none;
  }

  h1 {
    max-width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .cat-scene,
  .cat-backlight,
  .cat-tail-g,
  .cat-pupil-move,
  .win-caret,
  .hero-orb,
  .scroll-hint span {
    animation: none !important;
  }

  .cat-pupil-move {
    transform: none !important;
  }

  .cat-backlight {
    opacity: 1 !important;
  }

  .tail-path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .tail-tip {
    opacity: 0.7;
  }

  .paw {
    opacity: var(--o, 0.25) !important;
    transform: rotate(calc(var(--r) * 1deg)) translateY(calc(var(--y) * 1px)) !important;
  }
}