@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Bitcount+Grid+Double+Ink:wght@400;600;700&family=Pangolin:wght@300;400;500&family=Poppins:wght@300;400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --deep-purple: #1e1029;
  --rich-lavender: #7a5a9c;
  --soft-lavender: #b8a9d9;
  --magic-gold: #e4c580;
  --light-glow: #f8f0ff;
  --text-light: #f3ebf8;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

body {
  font-family: 'Pangolin', sans-serif;
  background: linear-gradient(145deg, #23142e 0%, #2d1b3a 100%);
  color: var(--text-light);
  line-height: 1.6;
  scroll-behavior: smooth;
  min-height: 100vh;
}

/* звёздный фон (лёгкий паттерн) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff8 1px, transparent 0),
                    radial-gradient(2px 2px at 40px 70px, #fffa 1px, transparent 0),
                    radial-gradient(1px 1px at 90px 40px, #fffd 1px, transparent 0),
                    radial-gradient(2px 2px at 160px 120px, #fff9 1px, transparent 0),
                    radial-gradient(1px 1px at 240px 80px, #fffc 1px, transparent 0),
                    radial-gradient(2px 2px at 300px 190px, #fffb 1px, transparent 0);
  background-size: 350px 250px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Хедер */
.magic-header {
  padding: 24px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(180, 150, 210, 0.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 600;
  font-family: 'Bitcount Grid Double Ink', serif;
  letter-spacing: 2px;
}

.logo i {
  color: var(--magic-gold);
  font-size: 1.5rem;
  filter: drop-shadow(0 0 6px #e7c27d);
}

.logo span {
  background: linear-gradient(135deg, #f3e3c2, var(--magic-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 400;
}

.nav-links a {
  color: var(--soft-lavender);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
  font-size: 1.1rem;
}

.nav-links a:hover {
  color: var(--magic-gold);
  text-shadow: 0 0 8px #eac48b;
}

/* Hero секция */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-family: 'Caveat', serif;
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 0 15px #aa7ecc, 0 0 30px #623f7e;
  margin-bottom: 24px;
}

.hero h1 i {
  color: var(--magic-gold);
  font-size: 0.7em;
  margin: 0 4px;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #daccee;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 14px 42px;
  border-radius: 60px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  background: linear-gradient(145deg, #7a5a9c, #5d3b7c);
  color: #fffbee;
  box-shadow: 0 8px 18px rgba(90, 40, 120, 0.5);
  font-size: 1.2rem;
}

.btn i {
  margin-right: 10px;
}

.btn:hover {
  transform: scale(1.05);
  background: linear-gradient(145deg, #8d6bb3, #6e4791);
  box-shadow: 0 0 25px #b18cd9, 0 8px 20px #3f2952;
  border-color: #e9cba7;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--magic-gold);
  color: var(--magic-gold);
  box-shadow: none;
  padding: 12px 36px;
}

.btn-outline:hover {
  background: rgba(228, 197, 128, 0.1);
  border-color: #ffdfa0;
  color: #ffeac2;
  box-shadow: 0 0 30px #e9c27d;
}

/* секция услуг */
.section-title {
  text-align: center;
  font-family: 'Caveat', serif;
  font-size: 2.8rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--magic-gold), transparent);
  margin: 16px auto 0;
}

.services {
  padding: 60px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.card {
  background: rgba(45, 30, 55, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 36px 24px 32px;
  text-align: center;
  border: 1px solid rgba(200, 170, 220, 0.25);
  transition: all 0.4s;
  box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.6);
}

.card:hover {
  transform: translateY(-12px);
  border-color: var(--magic-gold);
  box-shadow: 0 0 35px #966eb3, 0 25px 30px -10px black;
  background: rgba(55, 40, 70, 0.8);
}

.card i {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #dbbf93, #b491cf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 10px #a36ecf);
}

.card h3 {
  font-size: 1.9rem;
  font-family: 'Caveat', serif;
  margin-bottom: 16px;
  color: #f3e5d8;
}

.card p {
  color: #cfc1e3;
  margin-bottom: 24px;
}

.card .price-tag {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--magic-gold);
  letter-spacing: 1px;
}

/* секция призыва (CTA) */
.cta-section {
  background: linear-gradient(135deg, #321f3f, #24162e);
  border-radius: 80px 20px 80px 20px;
  margin: 50px 0 80px;
  padding: 60px 40px;
  text-align: center;
  border: 1px solid rgba(228, 197, 128, 0.3);
  box-shadow: 0 0 60px rgba(110, 60, 140, 0.5);
}

.cta-section h2 {
  font-size: 2.8rem;
  font-family: 'Caveat', serif;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: #cabfdf;
}

.cta-buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

/* футер */
.footer {
  padding: 40px 0 20px;
  border-top: 1px solid rgba(180, 150, 210, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer .socials a {
  color: var(--soft-lavender);
  font-size: 1.5rem;
  margin-left: 20px;
  transition: color 0.3s, text-shadow 0.3s;
}

.footer .socials a:hover {
  color: var(--magic-gold);
  text-shadow: 0 0 12px #f5cf96;
}

/* адаптивность */
@media (max-width: 700px) {
  .magic-header {
    flex-direction: column;
    gap: 20px;
  }
  .nav-links {
    gap: 24px;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
  .section-title {
    font-size: 2.2rem;
    white-space: normal;
  }
  .cta-section h2 {
    font-size: 2.2rem;
  }
  .footer {
    flex-direction: column;
    text-align: center;
  }
  .footer .socials a {
    margin: 0 10px;
  }
}

@media (max-width: 450px) {
  .btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
  .card {
    padding: 24px 16px;
  }
}

.sparkle {
  color: #ffd78c;
  text-shadow: 0 0 20px #ffb86b;
}


/* 404 */
.error-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.error-content {
  max-width: 700px;
}

.error-code {
  font-size: clamp(8rem, 20vw, 15rem);
  font-family: 'Bitcount Grid Double Ink', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, #b491cf, #e4c580);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 40px #9f7aca, 0 0 80px #5d3b7c;
}

.error-icon {
  font-size: 5rem;
  color: var(--magic-gold);
  filter: drop-shadow(0 0 25px #ffd78c);
  margin: 20px 0 0;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

.error-title {
  font-size: 2.5rem;
  font-family: 'Caveat', serif;
  margin-bottom: 24px;
  color: #f3e5d8;
}

.error-message {
  font-size: 1.3rem;
  color: #cabfdf;
  margin-bottom: 40px;
}
