/* === Общие улучшения для всех экранов === */
*, *::before, *::after {
  box-sizing: border-box; /* Убедимся, что padding и border учитываются в размере */
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f9fc;
  color: #333;
}
h1,h2,h3{ font-weight:700; }
a{ text-decoration:none; }

#hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background: linear-gradient(135deg,#006699,#28a745);
  color: white;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 900px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.hero-left {
  flex: 2;
  min-width: 250px;
  max-width: 650px; /* Ограничиваем максимальную ширину блока */
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2; /* Увеличиваем межстрочный интервал, чтобы текст не сливался */
  word-wrap: break-word; /* Позволяет тексту переноситься */
}
.hero-subtitle {
  font-size: 18px;
  color: #e0f7fa;
  min-height: 60px;  /* увеличиваем заранее, чтобы вместить 2 строки */
  max-height: 60px;  /* фиксируем высоту */
  line-height: 1.5;
  height: 3em; /* фиксируем визуальную высоту */
  overflow: hidden;
  white-space: normal;
  display: block;
  box-sizing: border-box;
  position: relative;
}

#cursor {
  display: inline-block;
  width: 1ch;           /* ширина символа курсора */
  animation: blink 0.7s steps(1) infinite;
}


@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.cta-buttons { display:flex; gap:20px; margin-bottom:15px; }
.cta { padding:16px 40px; border-radius:30px; font-weight:600; transition:all 0.3s ease; }
.cta-primary { background-color:#28a745; color:white; }
.cta-primary:hover { background-color:#218838; }
.cta-secondary { background-color:#fff; color:#006699; }
.cta-secondary:hover { background-color:#e6e6e6; }

.hero-right {
  position: relative;
  width: 220px;
  margin: 0 auto;
}

.document-container {
  position: absolute;
  top: -70px; /* сверху головы */
  left: 0;
  width: 100%;
  height: 140px; /* высота падения */
  pointer-events: none;
}

.doc-icon {
  width: 30px;
  height: 40px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #7f8c8d;
  position: absolute;
  top: 0;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.doc-docx { border-color: #2980b9; color:#2980b9; }
.doc-pdf  { border-color: #c0392b; color:#c0392b; }
.doc-txt  { border-color: #7f8c8d; color:#7f8c8d; }

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(140px) rotate(360deg); opacity: 0; }
}

  /* Моргание глаз */
  .eye-left ellipse, .eye-right ellipse {
    transform-origin: center center;
    animation: blink 4s infinite;
  }

  @keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    92%, 96% { transform: scaleY(0.1); }
  }

/* Румянец стыдненько */
.blush-active {
  animation: blushPulse 1.4s ease-in-out infinite;
}

/* индивидуальные центры для каждого румянца */
#blushLeft.blush-active {
  transform-origin: 75px 135px; /* cx и cy левого румянца */
}

#blushRight.blush-active {
  transform-origin: 145px 135px; /* cx и cy правого румянца */
}

@keyframes blushPulse {
  0%, 100% {
    transform: scale(1);
    fill: #e27c7c;
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15); /* увеличиваем мягко */
    fill: #f28c8c;
    opacity: 0.7;
  }
}

.blush-active {
  animation: blushPulse 1.4s ease-in-out infinite;
  transform-origin: center center;
}

/* === Секция "Features" === */
#features {
  background: linear-gradient(135deg, #006699, #28a745);
  position: relative;
  overflow: visible;
  padding: 60px 20px;
  color: white;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

#features::after {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Карточки */
#features .feature {
  background-color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  text-align: center;
  cursor: default;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Staggered анимация карточек */
#features .feature:nth-child(1) { animation-delay: 0.2s; }
#features .feature:nth-child(2) { animation-delay: 0.4s; }
#features .feature:nth-child(3) { animation-delay: 0.6s; }

/* Hover карточки */
.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 0 30px rgba(40, 167, 69, 0.5);
}

/* Иконка */
.feature-icon {
  background-color: #fff;
  border-radius: 50%;
  padding: 10px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* SVG иконка подпрыгивание и пульсация */
@keyframes bounceIn {
  0% { transform: translateY(50px) scale(0.8) rotate(-10deg); opacity: 0; }
  60% { transform: translateY(-10px) scale(1.05) rotate(5deg); opacity: 1; }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

#features .feature-icon svg {
  animation: bounceIn 0.8s ease-out forwards, iconPulse 2s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.feature:hover .feature-icon svg {
  transform: scale(1.25) rotate(10deg);
}

/* Заголовки */
.feature h3 {
  font-size: 22px;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
  transition: color 0.3s ease, transform 0.3s ease;
}

.feature:hover h3 {
  color: #28a745;
  transform: translateY(-3px);
}

/* Текст */
.feature p {
  color: #555;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.5s;
  transition: color 0.3s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
  #features {
    flex-direction: column;
    align-items: center;
  }

  .feature {
    padding: 16px;
  }

  .feature h3 {
    font-size: 18px;
  }

  .feature p {
    font-size: 14px;
  }
}

/* Анимация появления карточек */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* === Секция "Документы → Ассистент" === */
#doc-to-bot {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #28a745, #006699);
  color: white;
  position: relative;
  overflow: hidden;
}

#doc-to-bot h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

/* Внутренний контейнер для документов и бота — выравнивание по центру */
.doc-bot-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;  /* Центрирование по вертикали */
  gap: 20px;
  min-height: 200px;
}

/* Входящие документы */
.doc {
  width: 50px;
  height: 70px;
  color: #fff;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  cursor: default;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: 50%;            /* Центрируем вертикально */
  right: 70%;          /* Начинаем справа */
  transform: translate(-50%, -50%); /* Позиция по центру */
  opacity: 0;          /* Скрыт до начала анимации */
}

/* Типы документов */
.docx { background: #007bff; }
.pdf { background: #dc3545; }
.txt { background: #ffc107; color: #333; }

/* Центр — Gella (бот) */
.bot {
  width: 120px;
  height: 120px;
  background: #fff;
  color: #28a745;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  position: relative;  /* Центрируем относительно .doc-bot-container */
  z-index: 2;
  transition: box-shadow 0.4s ease;
}

.bot.glow {
  box-shadow: 0 0 25px #28a745, 0 0 60px #28a74566;
}

/* Исходящий результат — маленький робот */
.result {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 200px;
  background: transparent; /* Прозрачный фон */
  color: #28a745;
  display: none;  /* Скрыт по умолчанию */
  justify-content: center;
  align-items: center;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, -50%) translateX(-50px); /* Начальная позиция */
}


/* Стили для секции чата */
.chat-section {
  padding: 20px;
  text-align: center;
  background-color: #f1f1f1;
  color: #333;
  position: relative;
}

.gella-chat-window {
  width: 350px;
  height: 450px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 10px;
}

.gella-chat-header {
  background-color: #28a745;
  color: white;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 10px;
}

.gella-chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #ccc;
}

.gella-chat-input {
  display: flex;
  padding: 10px;
  background-color: #f7f7f7;
  border-radius: 8px;
}

.gella-chat-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.gella-chat-input button {
  background-color: #28a745;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.gella-chat-input button:hover {
  background-color: #218838;
}

.gella-chat-messages div {
  margin: 5px 0;
}

.gella-chat-messages .message-user {
  text-align: right;
  color: black;
}

.gella-chat-messages .message-bot {
  text-align: left;
  color: #28a745;
}


/* Преимущества регистрации и оплаты */
#benefits-registration {
  padding: 40px 20px;
  background-color: #f9fafb;
  text-align: center;
}

#benefits-registration h2 {
  font-size: 2em;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Легкая тень для глубины */
}

.benefit-card:hover {
  transform: translateY(-8px); /* Немного больше подъем при наведении */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* Более заметная тень при наведении */
}

.benefit-card h3 {
  font-size: 1.4em;
  color: #1abc9c;
  margin-bottom: 10px;
  font-weight: 500;
}

.benefit-card p {
  font-size: 1em;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Days Summary */
/* Days Summary */
#days-summary {
  padding: 60px 20px;
  background: #f0f8ff;
  text-align: center;
}

#days-summary h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.days-bar-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.days-bar {
  display: flex;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.day {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  cursor: pointer;
  transition: width 1.2s ease;  /* Плавное изменение ширины */
}

.day.demo {
  background: #a0a0a0;
}

.day.test {
  background: #3b82f6;
}

.day.paid {
  background: #28a745;
}

.day-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
}

.day-labels span {
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.day-labels span:hover {
  transform: scale(1.1);
  background: #f3f4f6;
}

.total-days {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}


/* ==== TESTIMONIALS SECTION ==== */
#testimonials {
  text-align: center;
  padding: 60px 20px;
  background: #f8faff;
}

#testimonials h2 {
  font-size: 2em;
  color: #1b1f3b;
  margin-bottom: 30px;
}

/* Основной контейнер */
.testimonial-carousel {
  position: relative;
  width: 950px;
  margin: 0 auto;
  overflow: hidden;
}

/* Лента отзывов */
.testimonial-cards {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

/* Оформление карточек как сообщений Telegram */
.testimonial-card {
  flex: 0 0 300px;
  background: #ffffff;
  border-radius: 18px 18px 18px 6px;
  padding: 20px;
  margin: 10px;
  border: 1px solid #e3e9f0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  position: relative;
  user-select: none;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: -8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-right-color: #ffffff;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.testimonial-text {
  font-size: 1em;
  color: #2c3e50;
  line-height: 1.4;
  margin-bottom: 10px;
}

.testimonial-author {
  font-weight: 600;
  color: #1b1f3b;
}

.testimonial-rating {
  color: #f1c40f;
  font-size: 1.1em;
}

/* Кнопки */
.carousel-button {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.3em;
  color: #1b1f3b;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.3s;
  z-index: 5;
}

.carousel-button:hover {
  background: #e8f0ff;
}

.carousel-button.left {
  left: -50px;
}

.carousel-button.right {
  right: -50px;
}

/* === Мобильная версия === */
@media (max-width: 768px) {
  .testimonial-carousel {
    width: 100%;
    overflow: visible; /* убираем скролл */
    height: auto;
  }

  .testimonial-cards {
    flex-direction: column; /* вертикально */
    align-items: center;
    gap: 15px;
    transform: none !important; /* отключаем сдвиг */
  }

  .testimonial-card {
    width: 90%;
  }

  .carousel-button {
    display: none; /* убираем стрелки */
  }
}


  /* CTA Scroll */
  #cta-scroll{padding:80px 20px;text-align:center;background:#006699;color:white;}
  #cta-scroll .cta{font-size:20px;padding:16px 50px;}


/* === CTA Scroll === */
#cta-scroll {
  background: radial-gradient(circle at center, #2563eb 0%, #1e3a8a 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

/* Светящееся кольцо */
#cta-scroll::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  filter: blur(120px);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

#cta-scroll h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

#cta-scroll p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Кнопки */
.cta-fbuttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-fbtn {
  padding: 16px 34px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.cta-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}

.cta-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.cta-secondary {
  background: transparent;
  border: 2px solid #93c5fd;
  color: #fff;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(147, 197, 253, 0.3);
}

/* Анимация появления */
#cta-scroll h2,
#cta-scroll p,
.cta-buttons {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}

#cta-scroll.visible h2,
#cta-scroll.visible p,
#cta-scroll.visible .cta-buttons {
  opacity: 1;
  transform: translateY(0);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  #cta-scroll {
    padding: 80px 20px;
  }

  #cta-scroll h2 {
    font-size: 1.8rem;
  }

  #cta-scroll p {
    font-size: 1rem;
  }

  .cta-btn {
    width: 90%;
    text-align: center;
  }
}

/* Нога РФ */
#compliance {
  background: #f9fafb;
  padding: 80px 20px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

#compliance .container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

#compliance h2 {
  font-size: 1.8em;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
}

#compliance .intro {
  font-size: 1.1em;
  color: #4b5563;
  margin-bottom: 40px;
}

.compliance-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  text-align: left;
}

.compliance-points .point h3 {
  font-size: 1.1em;
  color: #1f2937;
  margin-bottom: 8px;
}

.compliance-points .point p {
  font-size: 0.95em;
  color: #4b5563;
  line-height: 1.6;
}

#compliance a {
  color: #10b981;
  text-decoration: none;
}

#compliance a:hover {
  text-decoration: underline;
}



/* === 📱 Адаптация === */
@media (max-width: 1024px) {
  .hero-title { font-size: 38px; }
  .hero-subtitle { font-size: 16px; }
  .cta { padding: 14px 30px; }
}

@media (max-width: 768px) {
  #hero { flex-direction: column; text-align: center; padding: 70px 20px; }
  .hero-container { flex-direction: column; align-items: center; }
  .hero-left { margin-bottom: 40px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 15px; min-height: 80px; max-height: 90px;}
  .cta-buttons { flex-direction: column; gap: 12px; }
  .hero-right { width: 180px; }
  #features { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; min-height: 90px; max-height: 90px;}
  .cta { width: 100%; padding: 14px; }
  .hero-right { width: 160px; }
  .feature { max-width: 260px; }
  .benefit-card { padding: 16px; }
  #testimonials h2 { font-size: 1.8rem; }
}
