:root {
  --ink: #0a0508;
  --burgundy: #800032;
  --burgundy-bright: #a31448;
  --mist: #b8a4ab;
  --paper: #f7eef1;
  --paper-soft: #d8c6cd;
  --line: rgba(201, 130, 155, 0.28);
  --line-strong: rgba(128, 0, 50, 0.55);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --radius: 18px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--paper);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #060308;
}

.aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 45% at 20% 25%, rgba(128, 0, 50, 0.42), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(90, 20, 55, 0.35), transparent 58%),
    radial-gradient(ellipse 40% 35% at 55% 15%, rgba(163, 40, 80, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 50% at 40% 90%, rgba(45, 10, 30, 0.55), transparent 60%),
    linear-gradient(160deg, #12060c 0%, #060308 45%, #0a0408 100%);
  background-size: 140% 140%;
  animation: aurora-shift 28s ease-in-out infinite alternate;
  will-change: background-position, transform;
}

.veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, transparent 0%, rgba(6, 3, 8, 0.35) 55%, rgba(6, 3, 8, 0.75) 100%);
  animation: veil-breathe 12s ease-in-out infinite alternate;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.orb--1 {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  top: -8%;
  left: -12%;
  background: radial-gradient(circle, rgba(160, 30, 75, 0.55) 0%, rgba(128, 0, 50, 0.15) 45%, transparent 70%);
  animation: orb-float-a 22s ease-in-out infinite;
}

.orb--2 {
  width: min(44vw, 400px);
  height: min(44vw, 400px);
  right: -10%;
  bottom: 5%;
  background: radial-gradient(circle, rgba(120, 40, 90, 0.45) 0%, rgba(70, 15, 50, 0.12) 50%, transparent 72%);
  animation: orb-float-b 26s ease-in-out infinite;
}

.orb--3 {
  width: min(30vw, 280px);
  height: min(30vw, 280px);
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(200, 90, 120, 0.22) 0%, transparent 68%);
  filter: blur(50px);
  animation: orb-float-c 18s ease-in-out infinite;
}

.orb--4 {
  width: min(24vw, 220px);
  height: min(24vw, 220px);
  top: 18%;
  right: 18%;
  background: radial-gradient(circle, rgba(255, 180, 200, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  animation: orb-float-a 30s ease-in-out infinite reverse;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 130, 155, 0.12);
  box-shadow:
    inset 0 0 40px rgba(128, 0, 50, 0.08),
    0 0 60px rgba(128, 0, 50, 0.06);
}

.ring--1 {
  width: min(70vw, 620px);
  height: min(70vw, 620px);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  animation: ring-spin 80s linear infinite;
}

.ring--2 {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-color: rgba(201, 130, 155, 0.08);
  animation: ring-spin 55s linear infinite reverse;
}

.dust {
  position: absolute;
  inset: 0;
}

.dust span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 230, 238, 0.95);
  box-shadow:
    0 0 6px 2px rgba(255, 200, 220, 0.75),
    0 0 14px 4px rgba(200, 80, 120, 0.45);
  animation: dust-drift linear infinite;
  opacity: 0;
}

.dust span:nth-child(1)  { left: 8%;  top: 70%; animation-duration: 16s; animation-delay: 0s; }
.dust span:nth-child(2)  { left: 18%; top: 85%; animation-duration: 20s; animation-delay: 2s; width: 5px; height: 5px; }
.dust span:nth-child(3)  { left: 28%; top: 60%; animation-duration: 14s; animation-delay: 4s; width: 4px; height: 4px; }
.dust span:nth-child(4)  { left: 40%; top: 90%; animation-duration: 22s; animation-delay: 1s; }
.dust span:nth-child(5)  { left: 52%; top: 75%; animation-duration: 18s; animation-delay: 6s; width: 5px; height: 5px; }
.dust span:nth-child(6)  { left: 63%; top: 88%; animation-duration: 17s; animation-delay: 3s; width: 4px; height: 4px; }
.dust span:nth-child(7)  { left: 74%; top: 65%; animation-duration: 21s; animation-delay: 5s; }
.dust span:nth-child(8)  { left: 85%; top: 80%; animation-duration: 15s; animation-delay: 7s; width: 5px; height: 5px; }
.dust span:nth-child(9)  { left: 12%; top: 40%; animation-duration: 23s; animation-delay: 8s; width: 4px; height: 4px; }
.dust span:nth-child(10) { left: 35%; top: 30%; animation-duration: 19s; animation-delay: 1.5s; }
.dust span:nth-child(11) { left: 68%; top: 25%; animation-duration: 24s; animation-delay: 4.5s; width: 5px; height: 5px; }
.dust span:nth-child(12) { left: 90%; top: 45%; animation-duration: 17s; animation-delay: 9s; width: 4px; height: 4px; }
.dust span:nth-child(13) { left: 22%; top: 55%; animation-duration: 15s; animation-delay: 0.8s; width: 4px; height: 4px; }
.dust span:nth-child(14) { left: 47%; top: 48%; animation-duration: 21s; animation-delay: 3.2s; width: 5px; height: 5px; }
.dust span:nth-child(15) { left: 58%; top: 82%; animation-duration: 18s; animation-delay: 5.5s; }
.dust span:nth-child(16) { left: 78%; top: 38%; animation-duration: 20s; animation-delay: 2.4s; width: 4px; height: 4px; }
.dust span:nth-child(17) { left: 5%;  top: 58%; animation-duration: 19s; animation-delay: 7.2s; width: 5px; height: 5px; }
.dust span:nth-child(18) { left: 33%; top: 78%; animation-duration: 16s; animation-delay: 1.1s; }
.dust span:nth-child(19) { left: 71%; top: 92%; animation-duration: 22s; animation-delay: 4.8s; width: 4px; height: 4px; }
.dust span:nth-child(20) { left: 94%; top: 62%; animation-duration: 14s; animation-delay: 6.3s; width: 5px; height: 5px; }

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
  animation: grain-shift 8s steps(6) infinite;
}

.page {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.75rem, 5vh, 2.75rem) 0 calc(1.5rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  text-align: center;
}

.brand {
  margin-bottom: 1.35rem;
}

.brand__logo {
  display: block;
  width: min(360px, 86vw);
  height: auto;
  margin: 0 auto;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 8px 24px rgba(128, 0, 50, 0.25));
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.6rem) clamp(1.4rem, 3vw, 1.85rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(48, 16, 28, 0.55), rgba(18, 8, 14, 0.42));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(128, 0, 50, 0.18);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0c4d2;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--burgundy-bright);
  box-shadow: 0 0 0 0 rgba(163, 20, 72, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

.hero__title {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.hero__copy {
  max-width: 36rem;
  margin-bottom: 1.35rem;
}

.hero__copy p,
.closing p {
  margin: 0 0 0.85rem;
  font-size: clamp(0.92rem, 2.4vw, 1.02rem);
  color: var(--paper-soft);
  text-wrap: balance;
}

.hero__copy p:last-child,
.closing p:last-child {
  margin-bottom: 0;
}

.contacts {
  width: 100%;
  max-width: 400px;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.2rem 1.1rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(128, 0, 50, 0.38), rgba(128, 0, 50, 0.12)),
    rgba(26, 10, 16, 0.85);
  box-shadow: 0 10px 28px rgba(80, 0, 30, 0.28);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.phone:hover,
.phone:focus-visible {
  transform: translateY(-2px);
  border-color: #c94d75;
  box-shadow: 0 14px 32px rgba(128, 0, 50, 0.35);
  outline: none;
}

.phone__label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.phone__number {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #f6d0dc;
}

.messengers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0.85rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid rgba(184, 164, 171, 0.24);
  background: rgba(20, 10, 16, 0.72);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--paper);
  white-space: nowrap;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.messenger:hover,
.messenger:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(232, 180, 196, 0.45);
  background: rgba(48, 18, 30, 0.85);
  outline: none;
}

.messenger__icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.messenger__icon--tg {
  color: #5dade2;
}

.messenger__icon--max {
  color: #6b6bff;
}

.closing {
  max-width: 34rem;
}

.closing__note {
  margin-top: 0.85rem !important;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.6vw, 1.02rem) !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--paper) !important;
}

.footer {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(184, 164, 171, 0.14);
}

.footer p {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--mist);
}

.footer__hits {
  margin-top: 0.4rem !important;
  opacity: 0.7;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.34s; }
.delay-5 { animation-delay: 0.44s; }
.delay-6 { animation-delay: 0.54s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(163, 20, 72, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(163, 20, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 20, 72, 0); }
}

@keyframes aurora-shift {
  0% {
    background-position: 0% 20%, 100% 80%, 50% 0%, 40% 100%, 0% 0%;
    transform: scale(1) rotate(0deg);
  }
  50% {
    background-position: 30% 40%, 70% 50%, 40% 30%, 60% 70%, 0% 0%;
    transform: scale(1.04) rotate(1.2deg);
  }
  100% {
    background-position: 60% 10%, 40% 90%, 70% 20%, 20% 60%, 0% 0%;
    transform: scale(1.02) rotate(-0.8deg);
  }
}

@keyframes veil-breathe {
  from { opacity: 0.75; }
  to { opacity: 1; }
}

@keyframes orb-float-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  35% { transform: translate3d(6%, 8%, 0) scale(1.08); opacity: 0.95; }
  70% { transform: translate3d(3%, -4%, 0) scale(0.96); opacity: 0.6; }
}

@keyframes orb-float-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.65; }
  40% { transform: translate3d(-7%, -6%, 0) scale(1.1); opacity: 0.9; }
  75% { transform: translate3d(-2%, 5%, 0) scale(0.94); opacity: 0.55; }
}

@keyframes orb-float-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
  50% { transform: translate3d(-5%, 6%, 0) scale(1.2); opacity: 0.75; }
}

@keyframes ring-spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes dust-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(0.7);
    opacity: 0;
  }
  10% { opacity: 1; }
  50% {
    transform: translate3d(14px, -45vh, 0) scale(1.15);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(-10px, -95vh, 0) scale(0.55);
    opacity: 0;
  }
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-1%, 1%); }
  40% { transform: translate(1%, -1%); }
  60% { transform: translate(-1%, -1%); }
  80% { transform: translate(1%, 1%); }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 1.25rem, 640px);
    justify-content: flex-start;
    padding-top: calc(1.15rem + env(safe-area-inset-top));
  }

  .brand {
    margin-bottom: 1.1rem;
  }

  .brand__logo {
    width: min(300px, 90vw);
  }

  .hero {
    padding: 1.2rem 0.95rem 1.35rem;
  }

  .status {
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    padding: 0.38rem 0.75rem;
  }

  .hero__title {
    max-width: none;
    font-size: clamp(1.15rem, 5.5vw, 1.35rem);
  }

  .hero__copy p,
  .closing p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .phone {
    padding: 1.1rem 0.85rem 1.2rem;
  }

  .phone__number {
    font-size: clamp(1.28rem, 6.5vw, 1.55rem);
  }

  .messenger {
    font-size: 0.88rem;
    min-height: 3rem;
  }

  .contacts {
    max-width: none;
  }

  .ring {
    opacity: 0.45;
  }

  .dust span:nth-child(n+13) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .aurora,
  .veil,
  .orb,
  .ring,
  .dust span,
  .grain,
  .status__dot {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .phone,
  .messenger {
    transition: none;
  }

  .hero {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
