* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Nunito", sans-serif;
}

body {
  background: linear-gradient(135deg, #0f0f1b, #1a1a2e);
  color: var(--text-color);
  transition: background 0.5s, color 0.5s;
}

.navbar {
  width: 100%;
  padding: 1.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #ffffff;
}

.menu a {
  color: #ffffff;
  margin-left: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #fa709a;
}

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.card {
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  padding: 2rem;
  z-index: 10;
  color: whitesmoke;
  text-align: center;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background-color: #fa709a;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #f94878;
}

.blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(47, 184, 255, 0.35),
    rgba(90, 80, 255, 0.45)
  );
  mix-blend-mode: screen;
  filter: blur(40px);
  opacity: 0.5;
  z-index: 1;
  transition: transform 0.4s ease, background 0.6s ease;
}

/* Hover: меняем цвет и немного увеличиваем */
.blob:hover {
  background: linear-gradient(135deg, #fa709a, #784ba8);
  transform: scale(1.2) rotate(10deg);
}

/* Класс для пульса при клике */
.blob.clicked {
  animation: pulse 0.4s ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1.3);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

/* Начальные позиции */
.blob1 { top: 10%; left: 5%; }
.blob2 { bottom: 10%; right: 10%; }
.blob3 { top: 50%; left: 60%; transform: translate(-50%, -50%); }


.section {
  padding: 5rem 2rem;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}
/* Анимации появления */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Модалка */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  color: #fff;
  text-align: center;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.modal-content input {
  margin: 0.5rem 0;
  width: 100%;
  padding: 0.7rem;
  border-radius: 0.8rem;
  border: none;
}

/* Крестик закрытия */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Форма */
.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 0.8rem;
  background: rgba(255,255,255,0.1);
  color: white;
}

/* Отзывы (слайдер) */
.slider {
  max-width: 600px;
  margin: auto;
  text-align: center;
  position: relative;
}

.testimonial {
  display: none;
  font-size: 1.2rem;
}

.testimonial.active {
  display: block;
}

/* Кнопка "вверх" */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #fa709a;
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
}

/* Футер */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}
:root {
  --bg-color: #0f0f1b;
  --text-color: #e0e0e0;
  --card-bg: rgba(30, 30, 60, 0.3);
  --button-bg: #d63384;
  --blur-bg: rgba(0, 0, 0, 0.4);
}

body.light-theme {
  --bg-color: #f5f5f5;
  --text-color: #222;
  --card-bg: rgba(255, 255, 255, 0.6);
  --button-bg: #5c9df1;
  --blur-bg: rgba(255, 255, 255, 0.6);
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.5s, color 0.5s;
}

.card,
.service-card,
.modal-content,
.contact-form input,
.contact-form textarea,
.footer {
  background: var(--card-bg);
  color: var(--text-color);
}

.btn {
  background-color: var(--button-bg);
  transition: background 0.3s;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-color);
  margin-left: 1rem;
  cursor: pointer;
}

.modal {
  background: var(--blur-bg);
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  z-index: 100;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

.navbar {
  display: flex;
  gap: 2rem;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}


@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(30, 30, 60, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 99;
    padding: 0 2rem;
  }

  .navbar.open {
    max-height: 500px;
    padding-bottom: 1rem;
  }

  .navbar a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: right;
  }
}

@media (max-width: 768px) {
  .card {
    width: 90%;
    padding: 1rem;
    font-size: 0.95rem;
  }

  .title {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
  }

  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1rem;
    font-size: 1rem;
  }

  .slider {
    padding: 1rem;
  }

  .testimonial {
    font-size: 0.95rem;
    padding: 1rem;
  }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .blob {
    width: 250px;
    height: 250px;
    filter: blur(30px);
  }

  .blob1,
  .blob2,
  .blob3 {
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    position: fixed;
    z-index: 0;
  }
}
