:root {
  --bg: #0a0908;
  --card-bg: #161311;
  --scarlet: #e8283d;
  --ember: #ff6a3d;
  --ink: #f4ede4;
  --muted: #8a8378;
  --glow: 0 0 40px rgba(232,40,61,0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
  height: 100%;
  cursor: grab;
}
body.dragging { cursor: grabbing; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, rgba(232,40,61,0.06), transparent 40%),
                     radial-gradient(circle at 80% 70%, rgba(255,106,61,0.05), transparent 45%);
  z-index: 1;
}

/* ===== ФОНОВОЕ ВИДЕО ===== */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.bg-video.loaded { opacity: 0.5; }

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,9,8,0.75) 0%, rgba(10,9,8,0.55) 40%, rgba(10,9,8,0.85) 100%);
  pointer-events: none;
}

header {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 32px 48px;
}

.profile-block {
  position: fixed;
  top: 28px;
  left: 48px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.profile-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 28px rgba(232,40,61,0.32), 0 0 72px rgba(255,106,61,0.18);
}
.profile-label {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.7px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(232,40,61,0.4);
}
nav { display: flex; gap: 32px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.main-nav a:hover { color: var(--scarlet); }

.hero-text {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 128px 24px 0;
}
.hero-text h1 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--scarlet);
  text-shadow: var(--glow);
}
.hero-text p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.cta-section {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 60px 24px 70px;
}
.cta-section h2 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3.8vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  padding: 20px 44px;
  background: #CC1122;
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 0 30px rgba(204,17,34,0.25);
}
.cta-button:hover {
  background: #ff1a33;
  transform: translateY(-3px);
  box-shadow: 0 0 48px rgba(255,26,51,0.4);
}
.cta-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.35s ease;
}
.cta-button:hover svg { transform: translateX(4px); }

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
}
.social-row a {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}
.social-row a:hover { color: var(--scarlet); }

.stage {
  position: relative;
  height: 620px;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  user-select: none;
}
.spiral {
  position: relative;
  width: 240px;
  height: 320px;
  transform-style: preserve-3d;
  transition: transform 0.05s linear;
}
.card {
  position: absolute;
  top: 0; left: 0;
  width: 240px;
  height: 320px;
  border-radius: 18px;
  background: linear-gradient(155deg, var(--card-bg), #0f0d0b);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  backface-visibility: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.card .num {
  position: absolute;
  top: 18px; left: 20px;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: var(--muted);
  transition: color 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.card .icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.card p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.card.active {
  border-color: rgba(232,40,61,0.5);
  box-shadow: var(--glow);
}
.card.active .icon { color: var(--scarlet); filter: drop-shadow(0 0 10px rgba(232,40,61,0.7)); transform: scale(1.08); }

.card.has-media {
  background-size: cover;
  background-position: center;
}
.card.has-media::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10,9,8,0.15) 0%, rgba(10,9,8,0.9) 85%);
}
.card.has-media .num,
.card.has-media .icon,
.card.has-media h3,
.card.has-media p {
  position: relative;
  z-index: 2;
}
.card .card-media {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.card.has-video::before {
  background: linear-gradient(180deg, rgba(10,9,8,0.25) 0%, rgba(10,9,8,0.92) 85%);
}
.card .audio-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}
.card .audio-waves span {
  width: 5px;
  background: var(--scarlet);
  border-radius: 2px;
  animation: wave 1.2s infinite ease-in-out;
}
.card .audio-waves span:nth-child(1) { height: 18px; animation-delay: 0s; }
.card .audio-waves span:nth-child(2) { height: 34px; animation-delay: 0.15s; }
.card .audio-waves span:nth-child(3) { height: 52px; animation-delay: 0.3s; }
.card .audio-waves span:nth-child(4) { height: 40px; animation-delay: 0.45s; }
.card .audio-waves span:nth-child(5) { height: 26px; animation-delay: 0.6s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.45); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}
.card.active h3 { color: #fff; }

.hint {
  position: relative;
  z-index: 5;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hint .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--scarlet);
  animation: pulse 1.6s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 28px 20px 36px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.6px;
}

body {
  cursor: none;
}
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 2px solid rgba(232,40,61,0.85);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 16px rgba(232,40,61,0.55), 0 0 34px rgba(232,40,61,0.28);
  mix-blend-mode: screen;
}
body.dragging .cursor-ring {
  transform: scale(0.75);
  border-color: rgba(255,106,61,0.9);
  box-shadow: 0 0 24px rgba(255,106,61,0.7), 0 0 48px rgba(255,106,61,0.35);
}

/* ===== МОДАЛЬНАЯ ГАЛЕРЕЯ УСЛУГИ ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.modal.open { display: flex; }
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,9,8,0.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal-content {
  position: relative;
  width: 100%;
  max-width: 1140px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #161311 0%, #0f0d0b 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 34px 36px 40px;
  z-index: 101;
  box-shadow: 0 0 60px rgba(232,40,61,0.18);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: var(--scarlet);
  border-color: var(--scarlet);
  color: #fff;
}
.modal-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 600;
  margin-bottom: 28px;
  padding-right: 50px;
}
.modal-title em {
  font-style: normal;
  color: var(--scarlet);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0f0d0b;
  border: 1px solid rgba(255,255,255,0.06);
  aspect-ratio: 4 / 3;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(232,40,61,0.45);
  box-shadow: 0 12px 30px rgba(232,40,61,0.15);
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item.audio {
  aspect-ratio: auto;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 14px;
}
.gallery-item.audio audio {
  width: 100%;
  height: 36px;
}
.gallery-item.audio .audio-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  color: var(--ink);
  text-align: center;
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 15px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 14px;
}

/* ===== КНОПКА ЗВУКА ===== */
.sound-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(22,19,17,0.85);
  border: 1px solid rgba(232,40,61,0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.sound-toggle:hover {
  box-shadow: var(--glow);
  border-color: rgba(232,40,61,0.7);
}
.sound-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.8;
}
.sound-toggle .wave { opacity: 0; transition: opacity 0.25s ease; }
.sound-toggle.playing .wave { opacity: 1; }
.sound-toggle.playing .mute-line { opacity: 0; }
.sound-toggle .mute-line { transition: opacity 0.25s ease; }

.sound-label {
  position: fixed;
  bottom: 42px;
  right: 90px;
  z-index: 10;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.sound-toggle:hover ~ .sound-label { opacity: 1; }

/* ===== СТРАНИЦА «ОБО МНЕ» ===== */
.about-page {
  min-height: 100vh;
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}
.about-header {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 48px;
}
.about-header .logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.about-header .logo span { color: var(--scarlet); }
.about-nav a {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.about-nav a:hover { color: var(--scarlet); }

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 48px 80px;
}
.about-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 720px;
  box-shadow: 0 0 60px rgba(232,40,61,0.18);
  border: 1px solid rgba(255,255,255,0.08);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,9,8,0.35) 100%);
  pointer-events: none;
}
.about-content h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.about-content h1 em {
  font-style: normal;
  color: var(--scarlet);
  text-shadow: var(--glow);
}
.about-content .tagline {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}
.about-content .intro {
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.about-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 48px 0;
}
.about-section h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  margin-bottom: 32px;
}
.about-section h2 em {
  font-style: normal;
  color: var(--scarlet);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-chip {
  background: linear-gradient(155deg, var(--card-bg), #0f0d0b);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-chip:hover {
  transform: translateY(-4px);
  border-color: rgba(232,40,61,0.35);
  box-shadow: 0 12px 30px rgba(232,40,61,0.12);
}
.service-chip .icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.service-chip h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(155deg, var(--card-bg), #0f0d0b);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px;
}
.why-item .mark {
  color: var(--scarlet);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.why-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.steps {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  counter-reset: step;
}
.step {
  flex: 1;
  position: relative;
  background: linear-gradient(155deg, var(--card-bg), #0f0d0b);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 28px 18px;
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--scarlet);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h4 {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.step p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.about-cta {
  text-align: center;
  padding: 80px 24px 40px;
}
.about-cta h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  margin-bottom: 28px;
}

@media (max-width: 980px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 24px 60px;
  }
  .about-photo {
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
  }
  .about-section {
    padding: 50px 24px 0;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-list {
    grid-template-columns: 1fr;
  }
  .steps {
    flex-wrap: wrap;
  }
  .step {
    flex: 1 1 40%;
  }
}

@media (max-width: 540px) {
  .about-header {
    padding: 24px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .step {
    flex: 1 1 100%;
  }
  body {
    cursor: auto;
  }
  .cursor-ring {
    display: none;
  }
}
