/* ========== ОБНОВЛЁННЫЙ HERO-БЛОК С КРАСКАМИ И АНИМАЦИЯМИ ========== */

/* главный контейнер hero — карточка с фоном и границей "пузырьков" */
.hero {
  max-width: 100%;
  min-height: 100%;
  position: relative;
  border-radius: 0px;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
}

/* анимированный градиентный фон */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.08), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.08), transparent 50%),
              radial-gradient(circle at 40% 90%, rgba(219, 39, 119, 0.05), transparent 50%);
  pointer-events: none;
  animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
  0% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.5; transform: scale(1); }
}

/* внутренняя сетка: слева аватарка + соц. ссылки, справа текст + кнопки */
.hero__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 9.4rem 5rem;
  position: relative;
  z-index: 2;
}

/* ========= ЛЕВАЯ КОЛОНКА (АВАТАРКА + ПУЗЫРЬКИ) ========= */
.hero__left {
  flex: 1.2;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.avatar-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

/* Аватар с мягкой градиентной рамкой и анимацией при наведении */
.avatar {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 32% 68% 44% 56% / 45% 38% 62% 55%;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  padding: 4px;
  box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.3);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1), border-radius 0.6s ease;
  animation: floatAvatar 5s ease-in-out infinite;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30% 70% 42% 58% / 42% 38% 62% 58%;
  display: block;
  transition: filter 0.3s, transform 0.3s;
}

/* анимация плавания аватарки */
@keyframes floatAvatar {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.avatar:hover {
  transform: scale(1.02) rotate(1deg);
  border-radius: 45% 55% 48% 52% / 52% 40% 60% 48%;
}

.avatar:hover img {
  filter: brightness(1.05) saturate(1.1);
}

/* ПУЗЫРЬКИ (bubbles) — анимированные круги по краям блока */
.bubble {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(59,130,246,0.2));
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px);
  transition: all 0.3s ease;
  animation: bubbleFloat 6s infinite alternate;
}

/* отдельные пузырьки с разными размерами, задержками и позициями */
.bubble-1 { width: 80px; height: 80px; top: -15px; left: -25px; background: radial-gradient(circle, rgba(168,85,247,0.35), rgba(37,99,235,0.15)); animation-duration: 8s; }
.bubble-2 { width: 120px; height: 120px; bottom: -30px; right: -20px; background: radial-gradient(circle, rgba(236,72,153,0.3), rgba(59,130,246,0.12)); animation-duration: 11s; animation-delay: 0.5s; }
.bubble-3 { width: 55px; height: 55px; top: 30%; right: -15px; background: radial-gradient(circle, rgba(6,182,212,0.35), rgba(59,130,246,0.15)); animation-duration: 5s; animation-delay: 1s; }
.bubble-4 { width: 40px; height: 40px; bottom: 20%; left: 15px; background: radial-gradient(circle, rgba(139,92,246,0.35), rgba(59,130,246,0.15)); animation-duration: 7s; animation-delay: 0.2s; }
.bubble-5 { width: 95px; height: 95px; top: 60%; left: -30px; background: radial-gradient(circle, rgba(245,158,11,0.3), rgba(236,72,153,0.12)); animation-duration: 9s; animation-delay: 2s; }
.bubble-6 { width: 65px; height: 65px; bottom: -10px; left: 40%; background: radial-gradient(circle, rgba(34,197,94,0.3), rgba(59,130,246,0.12)); animation-duration: 6s; animation-delay: 0.8s; }
.bubble-7 { width: 45px; height: 45px; top: 15%; left: 20%; background: radial-gradient(circle, rgba(251,113,133,0.35), rgba(168,85,247,0.15)); animation-duration: 7.5s; animation-delay: 1.5s; }
.bubble-8 { width: 70px; height: 70px; bottom: 15%; right: 10%; background: radial-gradient(circle, rgba(52,211,153,0.3), rgba(6,182,212,0.12)); animation-duration: 9.5s; animation-delay: 0.3s; }

@keyframes bubbleFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(8px, -12px) scale(1.05); opacity: 0.6; }
  100% { transform: translate(12px, -18px) scale(1.1); opacity: 0.8; }
}

/* при наведении на hero — пузырьки оживают сильнее */
.hero:hover .bubble {
  animation-play-state: running;
  transition: transform 0.2s;
}
.hero:hover .bubble-1 { transform: scale(1.08) translate(8px, -10px); background: radial-gradient(circle, rgba(168,85,247,0.45), rgba(37,99,235,0.25)); }
.hero:hover .bubble-2 { transform: scale(1.12) translate(-15px, 8px); background: radial-gradient(circle, rgba(236,72,153,0.4), rgba(59,130,246,0.2)); }
.hero:hover .bubble-3 { transform: scale(1.15) translate(10px, 8px); background: radial-gradient(circle, rgba(6,182,212,0.45), rgba(59,130,246,0.25)); }
.hero:hover .bubble-4 { transform: scale(1.1) translate(-8px, -10px); background: radial-gradient(circle, rgba(139,92,246,0.45), rgba(59,130,246,0.25)); }
.hero:hover .bubble-5 { transform: scale(1.06) translate(12px, 12px); background: radial-gradient(circle, rgba(245,158,11,0.4), rgba(236,72,153,0.2)); }
.hero:hover .bubble-6 { transform: scale(1.13) translate(-10px, -6px); background: radial-gradient(circle, rgba(34,197,94,0.4), rgba(59,130,246,0.2)); }
.hero:hover .bubble-7 { transform: scale(1.08) translate(6px, -8px); background: radial-gradient(circle, rgba(251,113,133,0.45), rgba(168,85,247,0.25)); }
.hero:hover .bubble-8 { transform: scale(1.11) translate(-8px, 6px); background: radial-gradient(circle, rgba(52,211,153,0.4), rgba(6,182,212,0.2)); }

/* Социальные иконки под аватаркой */
.social-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(114, 18, 193, 0.9), rgba(37, 99, 235, 0.9));
  border-radius: 30px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  text-decoration: none;
  color: white;
  font-weight: 600;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

.social-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  box-shadow: 0 15px 25px -8px rgba(37, 99, 235, 0.5);
  border-color: rgba(255,255,255,0.4);
}

/* ========= ПРАВАЯ КОЛОНКА (ТЕКСТ + КНОПКИ) ========= */
.hero__right {
  flex: 1.5;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.1));
  backdrop-filter: blur(4px);
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
  width: fit-content;
  border: 1px solid rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateX(5px);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(124, 58, 237, 0.2));
  border-color: rgba(37, 99, 235, 0.5);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 0px rgba(37, 99, 235, 0); }
  50% { text-shadow: 0 0 20px rgba(37, 99, 235, 0.2); }
  100% { text-shadow: 0 0 0px rgba(37, 99, 235, 0); }
}

.hero__title span {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
  animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.hero__description {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 2rem;
  max-width: 90%;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* группа кнопок */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  background: white;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  backdrop-filter: blur(2px);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary-hero {
  background: linear-gradient(105deg, #2563eb, #4f46e5);
  color: white;
  box-shadow: 0 8px 20px -6px #2563eb70;
  position: relative;
  z-index: 1;
}

.btn-primary-hero::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777, #2563eb);
  border-radius: 60px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary-hero:hover::after {
  opacity: 1;
}

.btn-primary-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px -10px #2563eb;
  background: linear-gradient(105deg, #3b82f6, #6366f1);
}

.btn-outline {
  border: 1px solid #cbd5e1;
  background: rgba(255,255,255,0.7);
}

.btn-outline:hover {
  border-color: #2563eb;
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 18px -12px rgba(0,0,0,0.1);
  color: #2563eb;
}

/* пузырьковая анимация по краям блока кнопок / наведения */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0%;
  height: 0%;
  background: radial-gradient(circle, rgba(255,255,255,0.5) 10%, rgba(255,255,255,0) 80%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
  pointer-events: none;
}

.btn:active::after {
  width: 200%;
  height: 200%;
}

/* дополнительные пузырьки для правого края блока текста (края блока hero) */
.edge-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.edge-bubble {
  position: absolute;
  background: radial-gradient(circle, rgba(255,255,240,0.6), rgba(147,51,234,0.15));
  border-radius: 50%;
  filter: blur(4px);
  transition: transform 0.5s ease, background 0.5s ease;
}

.edge-bubble-1 { width: 250px; height: 250px; top: -80px; right: -80px; background: radial-gradient(circle, rgba(37,99,235,0.15), rgba(124,58,237,0.05)); }
.edge-bubble-2 { width: 180px; height: 180px; bottom: -60px; left: -60px; background: radial-gradient(circle, rgba(219,39,119,0.12), rgba(37,99,235,0.05)); }
.edge-bubble-3 { width: 150px; height: 150px; top: 40%; right: 10%; background: radial-gradient(circle, rgba(6,182,212,0.12), rgba(168,85,247,0.05)); animation: edgePulse 6s ease-in-out infinite; }
.edge-bubble-4 { width: 120px; height: 120px; bottom: 20%; left: 15%; background: radial-gradient(circle, rgba(245,158,11,0.1), rgba(236,72,153,0.05)); animation: edgePulse 8s ease-in-out infinite reverse; }

@keyframes edgePulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero:hover .edge-bubble {
  transform: scale(1.05);
}
.hero:hover .edge-bubble-1 { transform: scale(1.08) translate(10px, -10px); background: radial-gradient(circle, rgba(37,99,235,0.25), rgba(124,58,237,0.1)); }
.hero:hover .edge-bubble-2 { transform: scale(1.06) translate(-10px, 10px); background: radial-gradient(circle, rgba(219,39,119,0.2), rgba(37,99,235,0.1)); }

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 850px) {
  .hero__grid {
    flex-direction: column;
    padding: 4rem 1.8rem;
  }
  .hero__left {
    order: 1;
  }
  .hero__right {
    order: 2;
    text-align: center;
    align-items: center;
  }
  .hero__description {
    max-width: 100%;
    text-align: center;
  }
  .badge {
    margin-left: auto;
    margin-right: auto;
  }
  .button-group {
    justify-content: center;
  }
  .avatar-wrapper {
    max-width: 220px;
  }
  .edge-bubble-3, .edge-bubble-4 {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__grid {
    padding: 2rem 1.2rem;
  }
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  .social-icon {
    width: 38px;
    height: 38px;
  }
  .bubble-2, .bubble-5, .bubble-8 {
    display: none;
  }
}

/* плавное появление элементов при скролле (если используется) */
.hero__left, .hero__right {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ОБНОВЛЁННЫЙ ФУТЕР ========== */
.footer-section {
  width: 100%;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  padding: 3rem 1.5rem 1.5rem;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.05), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.05), transparent 50%);
  pointer-events: none;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: -0.2px;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, transparent);
  border-radius: 2px;
}

/* Контакты */
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}

.contact-line:hover {
  transform: translateX(5px);
}

.contact-icon {
  font-size: 1.1rem;
  color: #60a5fa;
  transition: transform 0.2s;
}

.contact-line:hover .contact-icon {
  transform: scale(1.1);
}

.contact-line a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.contact-line a:hover {
  color: #60a5fa;
}

/* Ссылки */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  display: inline-block;
}

.footer-links a:hover {
  color: #60a5fa;
  transform: translateX(6px);
}

/* Копирайт */
.footer-bottom {
  text-align: left;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-bottom p:hover {
  color: #94a3b8;
}

/* Нижние ссылки */
.footer-links-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.footer-links-bottom a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.footer-links-bottom a:hover {
  color: #60a5fa;
  transform: translateY(-2px);
}

/* Адаптивность футера */
@media (max-width: 768px) {
  .footer-section {
    padding: 2rem 1rem 1rem;
  }
  .footer-grid {
    gap: 1.5rem;
  }
  .footer-col h3 {
    font-size: 1rem;
  }
  .footer-links a {
    font-size: 0.8rem;
  }
  .footer-links-bottom {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-contacts {
    align-items: center;
  }
  .footer-links a:hover {
    transform: translateX(0);
  }
  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-links-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }
  .footer-bottom {
    text-align: center;
  }
}

