/* 🔹 Hero-блок */
.hero {
  position: relative;
  padding: 8rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #004a80 0%, #0069a7 50%, #66aaff 100%);
  color: #fff;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
}

.hero::before {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
  top: -100px; left: -100px;
  animation: floatLeft 10s infinite linear alternate;
}

.hero::after {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,0,0,0.1), transparent 70%);
  bottom: -200px; right: -200px;
  animation: floatRight 12s infinite linear alternate;
}

@keyframes floatLeft {
  from { transform: translate(0,0) rotate(0deg); }
  to { transform: translate(30px, 30px) rotate(15deg); }
}
@keyframes floatRight {
  from { transform: translate(0,0) rotate(0deg); }
  to { transform: translate(-40px, -40px) rotate(-20deg); }
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 0.3rem;
}
.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0.5rem auto 2rem;
  position: relative;
  z-index: 1;
  line-height: 1.6;
  opacity: 0.95;
}
.hero .btn-main {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--primary);
  padding: 1rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}
.hero .btn-main:hover {
  background: var(--primary-light);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* 🔹 Секция "Что я делаю" */
#what-i-do {
  padding: 4rem 1rem;
  background: #f9f9f9;
}
#what-i-do h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.what-i-do-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: auto;
}
.what-i-do-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.what-i-do-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.what-i-do-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.what-i-do-item p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  flex-grow: 1;
}

/* 🔹 Секция "Преимущества" */
#benefits {
  padding: 4rem 1rem;
}
#benefits h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.benefits-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.benefit-box {
  flex: 0 0 260px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  text-align: left;
}
.benefit-box:hover {
  transform: translateY(-4px);
}
.benefit-box small {
  display: block;
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* 🔹 CTA-блок */
.home-cta {
  padding: 4rem 1rem;
  background: var(--primary);
  color: #fff;
  text-align: center;
}
.home-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.home-cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-inline: auto;
}
.home-cta .btn-main {
  background: #fff;
  color: var(--primary);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.home-cta .btn-main:hover {
  background: var(--primary-light);
  color: #fff;
}
.home-cta .btn-main::after {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 50%; height: 100%;
  background: rgba(255,255,255,0.4);
  transform: skewX(-25deg);
  transition: left 0.4s;
}
.home-cta .btn-main:hover::after {
  left: 120%;
}

/* 🔹 Адаптив */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 1rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }

  .what-i-do-grid {
    gap: 1.5rem;
  }

  /* Преимущества в 2 колонки на мобильных */
  .benefits-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    overflow-x: unset;
  }
  .benefit-box {
    flex: unset;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0.5rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero .btn-main {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }

  .what-i-do-item {
    padding: 1.5rem;
  }

  /* Более компактная сетка преимуществ */
  .benefits-scroll {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .benefit-box {
    font-size: 0.95rem;
    padding: 0.75rem;
  }
}
