body {
  margin: 0;
  background: linear-gradient(180deg, #f3e8ff 0%, #ffffff 100%);
  color: #111;
  font-family: 'Fredoka', sans-serif;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  align-items: center;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav a, .btn-black {
    display: inline-block;
    padding: 8px 16px;
  }
}

.logo {
  font-size: 26px;
  font-weight: bold;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #111;
  font-weight: bold;
}

.btn-black {
  background: #000;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s ease;
}
.btn-black:hover {
  transform: scale(1.05);
}

.hero {
  display: flex;
  justify-content: center; /* <-- вот здесь ключ */
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  gap: 40px;
  flex-direction: row;
}

.hero .text {
  max-width: 500px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 20px;
}

.mascot {
  width: 300px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero .text {
    max-width: 100%;
  }
  .mascot {
    order: 0;
  }
}

footer {
  text-align: center;
  padding: 30px;
  font-size: 14px;
  background: #f3f3f3;
  margin-top: 40px;
}

/* Анимации */
@keyframes fadeInTop {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}
@keyframes fadeInBottom {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}
@keyframes slideUp {
  from {opacity: 0; transform: translateY(50px);}
  to {opacity: 1; transform: translateY(0);}
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fade-in-top {
  animation: fadeInTop 0.8s ease-out;
}
.fade-in-bottom {
  animation: fadeInBottom 0.8s ease-out;
}
.slide-up {
  animation: slideUp 1s ease-out;
}
.bounce {
  animation: bounce 1.2s infinite;
}
.pulse {
  animation: pulse 2s infinite;
}
